Class Disk (0.23.0)

public final class Disk extends GeneratedMessage implements DiskOrBuilder

Additional disk for managed instance groups.

Protobuf type google.cloud.hypercomputecluster.v1beta.Disk

Implements

DiskOrBuilder

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()
Returns
Type Description
Descriptor

newBuilder()

public static Disk.Builder newBuilder()
Returns
Type Description
Disk.Builder

newBuilder(Disk prototype)

public static Disk.Builder newBuilder(Disk prototype)
Parameter
Name Description
prototype Disk
Returns
Type Description
Disk.Builder

parseDelimitedFrom(InputStream input)

public static Disk parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Disk
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Disk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Disk
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Disk parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Disk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Disk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Disk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Disk parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Disk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Disk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Disk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Disk parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Disk
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Disk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Disk
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Disk parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Disk
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Disk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Disk
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Disk parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Disk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Disk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Disk
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Disk> parser()
Returns
Type Description
Parser<Disk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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()

public String 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()
Returns
Type Description
Parser<Disk>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSizeGb()

public long 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()
Returns
Type Description
Disk.SourceCase

getType()

public String 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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Disk.Builder newBuilderForType()
Returns
Type Description
Disk.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Disk.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Disk.Builder
Overrides

toBuilder()

public Disk.Builder toBuilder()
Returns
Type Description
Disk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException