Class AttachedDisk (2.14.0)

public final class AttachedDisk extends GeneratedMessageV3 implements AttachedDiskOrBuilder

A node-attached disk resource. Next ID: 8;

Protobuf type google.cloud.tpu.v2.AttachedDisk

Static Fields

MODE_FIELD_NUMBER

public static final int MODE_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_DISK_FIELD_NUMBER

public static final int SOURCE_DISK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AttachedDisk getDefaultInstance()
Returns
TypeDescription
AttachedDisk

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AttachedDisk.Builder newBuilder()
Returns
TypeDescription
AttachedDisk.Builder

newBuilder(AttachedDisk prototype)

public static AttachedDisk.Builder newBuilder(AttachedDisk prototype)
Parameter
NameDescription
prototypeAttachedDisk
Returns
TypeDescription
AttachedDisk.Builder

parseDelimitedFrom(InputStream input)

public static AttachedDisk parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachedDisk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AttachedDisk parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttachedDisk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttachedDisk parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttachedDisk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttachedDisk parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachedDisk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AttachedDisk parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachedDisk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AttachedDisk parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttachedDisk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachedDisk
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AttachedDisk> parser()
Returns
TypeDescription
Parser<AttachedDisk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AttachedDisk getDefaultInstanceForType()
Returns
TypeDescription
AttachedDisk

getMode()

public AttachedDisk.DiskMode getMode()

The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.

.google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4;

Returns
TypeDescription
AttachedDisk.DiskMode

The mode.

getModeValue()

public int getModeValue()

The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.

.google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

getParserForType()

public Parser<AttachedDisk> getParserForType()
Returns
TypeDescription
Parser<AttachedDisk>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceDisk()

public String getSourceDisk()

Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".

string source_disk = 3;

Returns
TypeDescription
String

The sourceDisk.

getSourceDiskBytes()

public ByteString getSourceDiskBytes()

Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".

string source_disk = 3;

Returns
TypeDescription
ByteString

The bytes for sourceDisk.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AttachedDisk.Builder newBuilderForType()
Returns
TypeDescription
AttachedDisk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttachedDisk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AttachedDisk.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AttachedDisk.Builder toBuilder()
Returns
TypeDescription
AttachedDisk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException