Class AwsVolumeTemplate (0.42.0)

public final class AwsVolumeTemplate extends GeneratedMessageV3 implements AwsVolumeTemplateOrBuilder

Configuration template for AWS EBS volumes.

Protobuf type google.cloud.gkemulticloud.v1.AwsVolumeTemplate

Static Fields

IOPS_FIELD_NUMBER

public static final int IOPS_FIELD_NUMBER
Field Value
Type Description
int

KMS_KEY_ARN_FIELD_NUMBER

public static final int KMS_KEY_ARN_FIELD_NUMBER
Field Value
Type Description
int

SIZE_GIB_FIELD_NUMBER

public static final int SIZE_GIB_FIELD_NUMBER
Field Value
Type Description
int

THROUGHPUT_FIELD_NUMBER

public static final int THROUGHPUT_FIELD_NUMBER
Field Value
Type Description
int

VOLUME_TYPE_FIELD_NUMBER

public static final int VOLUME_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AwsVolumeTemplate getDefaultInstance()
Returns
Type Description
AwsVolumeTemplate

getDescriptor()

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

newBuilder()

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

newBuilder(AwsVolumeTemplate prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AwsVolumeTemplate getDefaultInstanceForType()
Returns
Type Description
AwsVolumeTemplate

getIops()

public int getIops()

Optional. The number of I/O operations per second (IOPS) to provision for GP3 volume.

int32 iops = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The iops.

getKmsKeyArn()

public String getKmsKeyArn()

Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes.

If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.

string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kmsKeyArn.

getKmsKeyArnBytes()

public ByteString getKmsKeyArnBytes()

Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes.

If not specified, the default Amazon managed key associated to the AWS region where this cluster runs will be used.

string kms_key_arn = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kmsKeyArn.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSizeGib()

public int getSizeGib()

Optional. The size of the volume, in GiBs.

When unspecified, a default value is provided. See the specific reference in the parent resource.

int32 size_gib = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The sizeGib.

getThroughput()

public int getThroughput()

Optional. The throughput that the volume supports, in MiB/s. Only valid if volume_type is GP3.

If the volume_type is GP3 and this is not speficied, it defaults to 125.

int32 throughput = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The throughput.

getVolumeType()

public AwsVolumeTemplate.VolumeType getVolumeType()

Optional. Type of the EBS volume.

When unspecified, it defaults to GP2 volume.

.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AwsVolumeTemplate.VolumeType

The volumeType.

getVolumeTypeValue()

public int getVolumeTypeValue()

Optional. Type of the EBS volume.

When unspecified, it defaults to GP2 volume.

.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType volume_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for volumeType.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AwsVolumeTemplate.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AwsVolumeTemplate.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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