public final class Disk extends GeneratedMessage implements DiskOrBuilder
Additional disk for managed instance groups.
Protobuf type google.cloud.hypercomputecluster.v1beta.Disk
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
EXISTING_DISK_FIELD_NUMBER
public static final int EXISTING_DISK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SIZE_GB_FIELD_NUMBER
public static final int SIZE_GB_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SNAPSHOT_FIELD_NUMBER
public static final int SNAPSHOT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Disk getDefaultInstance()
| Returns |
| Type |
Description |
Disk |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Disk.Builder newBuilder()
newBuilder(Disk prototype)
public static Disk.Builder newBuilder(Disk prototype)
| Parameter |
| Name |
Description |
prototype |
Disk
|
public static Disk parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Disk |
|
public static Disk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Disk |
|
parseFrom(byte[] data)
public static Disk parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Disk |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Disk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Disk |
|
parseFrom(ByteString data)
public static Disk parseFrom(ByteString data)
| Returns |
| Type |
Description |
Disk |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Disk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Disk |
|
public static Disk parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Disk |
|
public static Disk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Disk |
|
public static Disk parseFrom(InputStream input)
| Returns |
| Type |
Description |
Disk |
|
public static Disk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Disk |
|
parseFrom(ByteBuffer data)
public static Disk parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Disk |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Disk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Disk |
|
parser()
public static Parser<Disk> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Disk getDefaultInstanceForType()
| Returns |
| Type |
Description |
Disk |
|
getExistingDisk()
public String getExistingDisk()
Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The existingDisk.
|
getExistingDiskBytes()
public ByteString getExistingDiskBytes()
Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for existingDisk.
|
getImage()
Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The image.
|
getImageBytes()
public ByteString getImageBytes()
Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for image.
|
getParserForType()
public Parser<Disk> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSizeGb()
Optional. Size of the disk in GB.
This field is required when creating a new disk.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
long |
The sizeGb.
|
getSnapshot()
public String getSnapshot()
Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The snapshot.
|
getSnapshotBytes()
public ByteString getSnapshotBytes()
Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for snapshot.
|
getSourceCase()
public Disk.SourceCase getSourceCase()
getType()
Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
This field is required when creating a new disk.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The type.
|
getTypeBytes()
public ByteString getTypeBytes()
Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
This field is required when creating a new disk.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for type.
|
hasExistingDisk()
public boolean hasExistingDisk()
Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the existingDisk field is set.
|
hasImage()
public boolean hasImage()
Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the image field is set.
|
hasSnapshot()
public boolean hasSnapshot()
Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
boolean |
Whether the snapshot field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Disk.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Disk.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Disk.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides