Class CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder (1.109.0)

public static final class CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder extends GeneratedMessage.Builder<CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder> implements CapacityHistoryRequestInstancePropertiesAttachedDiskOrBuilder

AttachedDisk modeled after Instance's AttachedDisk.

Protobuf type google.cloud.compute.v1.CapacityHistoryRequestInstancePropertiesAttachedDisk

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CapacityHistoryRequestInstancePropertiesAttachedDisk build()
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk

buildPartial()

public CapacityHistoryRequestInstancePropertiesAttachedDisk buildPartial()
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk

clear()

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder clear()
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder
Overrides

clearType()

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder clearType()

Specifies the type of the disk. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder

This builder for chaining.

getDefaultInstanceForType()

public CapacityHistoryRequestInstancePropertiesAttachedDisk getDefaultInstanceForType()
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getType()

public String getType()

Specifies the type of the disk. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Specifies the type of the disk. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasType()

public boolean hasType()

Specifies the type of the disk. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CapacityHistoryRequestInstancePropertiesAttachedDisk other)

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder mergeFrom(CapacityHistoryRequestInstancePropertiesAttachedDisk other)
Parameter
Name Description
other CapacityHistoryRequestInstancePropertiesAttachedDisk
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder
Overrides

setType(String value)

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder setType(String value)

Specifies the type of the disk. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder setTypeBytes(ByteString value)

Specifies the type of the disk. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
CapacityHistoryRequestInstancePropertiesAttachedDisk.Builder

This builder for chaining.