public static final class PersistentDisk.Builder extends GeneratedMessageV3.Builder<PersistentDisk.Builder> implements PersistentDiskOrBuilder
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PersistentDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PersistentDisk build()
Returns
buildPartial()
public PersistentDisk buildPartial()
Returns
clear()
public PersistentDisk.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PersistentDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PersistentDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSizeGb()
public PersistentDisk.Builder clearSizeGb()
The size, in GB, of the disk to attach. If the size is not
specified, a default is chosen to ensure reasonable I/O performance.
If the disk type is specified as local-ssd
, multiple local drives are
automatically combined to provide the requested size. Note, however, that
each physical SSD is 375GB in size, and no more than 8 drives can be
attached to a single instance.
int32 size_gb = 1;
Returns
clearSourceImage()
public PersistentDisk.Builder clearSourceImage()
An image to put on the disk before attaching it to the VM.
string source_image = 3;
Returns
clearType()
public PersistentDisk.Builder clearType()
The Compute Engine disk type. If unspecified, pd-standard
is used.
string type = 2;
Returns
clone()
public PersistentDisk.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PersistentDisk getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSizeGb()
The size, in GB, of the disk to attach. If the size is not
specified, a default is chosen to ensure reasonable I/O performance.
If the disk type is specified as local-ssd
, multiple local drives are
automatically combined to provide the requested size. Note, however, that
each physical SSD is 375GB in size, and no more than 8 drives can be
attached to a single instance.
int32 size_gb = 1;
Returns
Type | Description |
int | The sizeGb.
|
getSourceImage()
public String getSourceImage()
An image to put on the disk before attaching it to the VM.
string source_image = 3;
Returns
Type | Description |
String | The sourceImage.
|
getSourceImageBytes()
public ByteString getSourceImageBytes()
An image to put on the disk before attaching it to the VM.
string source_image = 3;
Returns
Type | Description |
ByteString | The bytes for sourceImage.
|
getType()
The Compute Engine disk type. If unspecified, pd-standard
is used.
string type = 2;
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
The Compute Engine disk type. If unspecified, pd-standard
is used.
string type = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PersistentDisk other)
public PersistentDisk.Builder mergeFrom(PersistentDisk other)
Parameter
Returns
public PersistentDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PersistentDisk.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PersistentDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PersistentDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PersistentDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSizeGb(int value)
public PersistentDisk.Builder setSizeGb(int value)
The size, in GB, of the disk to attach. If the size is not
specified, a default is chosen to ensure reasonable I/O performance.
If the disk type is specified as local-ssd
, multiple local drives are
automatically combined to provide the requested size. Note, however, that
each physical SSD is 375GB in size, and no more than 8 drives can be
attached to a single instance.
int32 size_gb = 1;
Parameter
Name | Description |
value | int
The sizeGb to set.
|
Returns
setSourceImage(String value)
public PersistentDisk.Builder setSourceImage(String value)
An image to put on the disk before attaching it to the VM.
string source_image = 3;
Parameter
Name | Description |
value | String
The sourceImage to set.
|
Returns
setSourceImageBytes(ByteString value)
public PersistentDisk.Builder setSourceImageBytes(ByteString value)
An image to put on the disk before attaching it to the VM.
string source_image = 3;
Parameter
Name | Description |
value | ByteString
The bytes for sourceImage to set.
|
Returns
setType(String value)
public PersistentDisk.Builder setType(String value)
The Compute Engine disk type. If unspecified, pd-standard
is used.
string type = 2;
Parameter
Name | Description |
value | String
The type to set.
|
Returns
setTypeBytes(ByteString value)
public PersistentDisk.Builder setTypeBytes(ByteString value)
The Compute Engine disk type. If unspecified, pd-standard
is used.
string type = 2;
Parameter
Name | Description |
value | ByteString
The bytes for type to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final PersistentDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides