Class AttachedDiskConfig (4.91.1)

public final class AttachedDiskConfig extends GeneratedMessage implements AttachedDiskConfigOrBuilder

Specifies the config of attached disk options for single VM instance.

Protobuf type google.cloud.dataproc.v1.AttachedDiskConfig

Static Fields

DISK_SIZE_GB_FIELD_NUMBER

public static final int DISK_SIZE_GB_FIELD_NUMBER
Field Value
Type Description
int

DISK_TYPE_FIELD_NUMBER

public static final int DISK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_IOPS_FIELD_NUMBER

public static final int PROVISIONED_IOPS_FIELD_NUMBER
Field Value
Type Description
int

PROVISIONED_THROUGHPUT_FIELD_NUMBER

public static final int PROVISIONED_THROUGHPUT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AttachedDiskConfig getDefaultInstance()
Returns
Type Description
AttachedDiskConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

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

newBuilder(AttachedDiskConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AttachedDiskConfig getDefaultInstanceForType()
Returns
Type Description
AttachedDiskConfig

getDiskSizeGb()

public int getDiskSizeGb()

Optional. Disk size in GB.

int32 disk_size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The diskSizeGb.

getDiskType()

public AttachedDiskConfig.DiskType getDiskType()

Optional. Disk type.

.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AttachedDiskConfig.DiskType

The diskType.

getDiskTypeValue()

public int getDiskTypeValue()

Optional. Disk type.

.google.cloud.dataproc.v1.AttachedDiskConfig.DiskType disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for diskType.

getParserForType()

public Parser<AttachedDiskConfig> getParserForType()
Returns
Type Description
Parser<AttachedDiskConfig>
Overrides

getProvisionedIops()

public long getProvisionedIops()

Optional. Indicates how many IOPS to provision for the attached disk. This sets the number of I/O operations per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features

optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The provisionedIops.

getProvisionedThroughput()

public long getProvisionedThroughput()

Optional. Indicates how much throughput to provision for the attached disk. This sets the number of throughput mb per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features

optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The provisionedThroughput.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasProvisionedIops()

public boolean hasProvisionedIops()

Optional. Indicates how many IOPS to provision for the attached disk. This sets the number of I/O operations per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features

optional int64 provisioned_iops = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the provisionedIops field is set.

hasProvisionedThroughput()

public boolean hasProvisionedThroughput()

Optional. Indicates how much throughput to provision for the attached disk. This sets the number of throughput mb per second that the disk can handle. See https://cloud.google.com/compute/docs/disks/hyperdisks#hyperdisk-features

optional int64 provisioned_throughput = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the provisionedThroughput 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 AttachedDiskConfig.Builder newBuilderForType()
Returns
Type Description
AttachedDiskConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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