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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PersistentDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PersistentDisk build()
buildPartial()
public PersistentDisk buildPartial()
clear()
public PersistentDisk.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PersistentDisk.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PersistentDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearSourceImage()
public PersistentDisk.Builder clearSourceImage()
An image to put on the disk before attaching it to the VM.
string source_image = 3;
clearType()
public PersistentDisk.Builder clearType()
The Compute Engine disk type. If unspecified, pd-standard
is used.
string type = 2;
clone()
public PersistentDisk.Builder clone()
Overrides
getDefaultInstanceForType()
public PersistentDisk getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for type.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(PersistentDisk other)
public PersistentDisk.Builder mergeFrom(PersistentDisk other)
public PersistentDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PersistentDisk.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PersistentDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PersistentDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PersistentDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
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.
|
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final PersistentDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides