Class AwsVolumeTemplate.Builder (0.22.0)

public static final class AwsVolumeTemplate.Builder extends GeneratedMessageV3.Builder<AwsVolumeTemplate.Builder> implements AwsVolumeTemplateOrBuilder

Configuration template for AWS EBS volumes.

Protobuf type google.cloud.gkemulticloud.v1.AwsVolumeTemplate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AwsVolumeTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

build()

public AwsVolumeTemplate build()
Returns
TypeDescription
AwsVolumeTemplate

buildPartial()

public AwsVolumeTemplate buildPartial()
Returns
TypeDescription
AwsVolumeTemplate

clear()

public AwsVolumeTemplate.Builder clear()
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AwsVolumeTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

clearIops()

public AwsVolumeTemplate.Builder clearIops()

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

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

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

clearKmsKeyArn()

public AwsVolumeTemplate.Builder clearKmsKeyArn()

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
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsVolumeTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

clearSizeGib()

public AwsVolumeTemplate.Builder clearSizeGib()

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
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

clearVolumeType()

public AwsVolumeTemplate.Builder clearVolumeType()

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
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

clone()

public AwsVolumeTemplate.Builder clone()
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

getDefaultInstanceForType()

public AwsVolumeTemplate getDefaultInstanceForType()
Returns
TypeDescription
AwsVolumeTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for kmsKeyArn.

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
TypeDescription
int

The sizeGib.

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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for volumeType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AwsVolumeTemplate other)

public AwsVolumeTemplate.Builder mergeFrom(AwsVolumeTemplate other)
Parameter
NameDescription
otherAwsVolumeTemplate
Returns
TypeDescription
AwsVolumeTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AwsVolumeTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AwsVolumeTemplate.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AwsVolumeTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AwsVolumeTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

setIops(int value)

public AwsVolumeTemplate.Builder setIops(int value)

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

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

Parameter
NameDescription
valueint

The iops to set.

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

setKmsKeyArn(String value)

public AwsVolumeTemplate.Builder setKmsKeyArn(String value)

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];

Parameter
NameDescription
valueString

The kmsKeyArn to set.

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

setKmsKeyArnBytes(ByteString value)

public AwsVolumeTemplate.Builder setKmsKeyArnBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for kmsKeyArn to set.

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AwsVolumeTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

setSizeGib(int value)

public AwsVolumeTemplate.Builder setSizeGib(int value)

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];

Parameter
NameDescription
valueint

The sizeGib to set.

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsVolumeTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AwsVolumeTemplate.Builder
Overrides

setVolumeType(AwsVolumeTemplate.VolumeType value)

public AwsVolumeTemplate.Builder setVolumeType(AwsVolumeTemplate.VolumeType value)

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];

Parameter
NameDescription
valueAwsVolumeTemplate.VolumeType

The volumeType to set.

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.

setVolumeTypeValue(int value)

public AwsVolumeTemplate.Builder setVolumeTypeValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for volumeType to set.

Returns
TypeDescription
AwsVolumeTemplate.Builder

This builder for chaining.