Interface DiskOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Disk,Disk.Builder
public interface DiskOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()A user-supplied name for the disk.com.google.protobuf.ByteStringgetNameBytes()A user-supplied name for the disk.intgetSizeGb()The size, in GB, of the disk to attach.StringgetSourceImage()An optional image to put on the disk before attaching it to the VM.com.google.protobuf.ByteStringgetSourceImageBytes()An optional image to put on the disk before attaching it to the VM.StringgetType()The Compute Engine disk type.com.google.protobuf.ByteStringgetTypeBytes()The Compute Engine disk type.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
A user-supplied name for the disk. Used when mounting the disk into actions. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.
string name = 1;- Returns:
- The bytes for name.
-
getSizeGb
int 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 = 2;- Returns:
- The sizeGb.
-
getType
String getType()
The Compute Engine disk type. If unspecified, `pd-standard` is used.
string type = 3;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
The Compute Engine disk type. If unspecified, `pd-standard` is used.
string type = 3;- Returns:
- The bytes for type.
-
getSourceImage
String getSourceImage()
An optional image to put on the disk before attaching it to the VM.
string source_image = 4;- Returns:
- The sourceImage.
-
getSourceImageBytes
com.google.protobuf.ByteString getSourceImageBytes()
An optional image to put on the disk before attaching it to the VM.
string source_image = 4;- Returns:
- The bytes for sourceImage.
-
-