Interface PersistentDiskOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PersistentDisk,PersistentDisk.Builder
public interface PersistentDiskOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSizeGb()The size, in GB, of the disk to attach.StringgetSourceImage()An image to put on the disk before attaching it to the VM.com.google.protobuf.ByteStringgetSourceImageBytes()An 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
-
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 = 1;- Returns:
- The sizeGb.
-
getType
String getType()
The Compute Engine disk type. If unspecified, `pd-standard` is used.
string type = 2;- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()
The Compute Engine disk type. If unspecified, `pd-standard` is used.
string type = 2;- Returns:
- The bytes for type.
-
getSourceImage
String getSourceImage()
An image to put on the disk before attaching it to the VM.
string source_image = 3;- Returns:
- The sourceImage.
-
getSourceImageBytes
com.google.protobuf.ByteString getSourceImageBytes()
An image to put on the disk before attaching it to the VM.
string source_image = 3;- Returns:
- The bytes for sourceImage.
-
-