Class AwsInstancePlacement.Builder (0.46.0)

public static final class AwsInstancePlacement.Builder extends GeneratedMessageV3.Builder<AwsInstancePlacement.Builder> implements AwsInstancePlacementOrBuilder

Details of placement information for an instance. Limitations for using the host tenancy:

  • T3 instances that use the unlimited CPU credit option don't support host tenancy.

Protobuf type google.cloud.gkemulticloud.v1.AwsInstancePlacement

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AwsInstancePlacement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

build()

public AwsInstancePlacement build()
Returns
Type Description
AwsInstancePlacement

buildPartial()

public AwsInstancePlacement buildPartial()
Returns
Type Description
AwsInstancePlacement

clear()

public AwsInstancePlacement.Builder clear()
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AwsInstancePlacement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsInstancePlacement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

clearTenancy()

public AwsInstancePlacement.Builder clearTenancy()

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsInstancePlacement.Builder

This builder for chaining.

clone()

public AwsInstancePlacement.Builder clone()
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

getDefaultInstanceForType()

public AwsInstancePlacement getDefaultInstanceForType()
Returns
Type Description
AwsInstancePlacement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTenancy()

public AwsInstancePlacement.Tenancy getTenancy()

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AwsInstancePlacement.Tenancy

The tenancy.

getTenancyValue()

public int getTenancyValue()

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for tenancy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AwsInstancePlacement other)

public AwsInstancePlacement.Builder mergeFrom(AwsInstancePlacement other)
Parameter
Name Description
other AwsInstancePlacement
Returns
Type Description
AwsInstancePlacement.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AwsInstancePlacement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AwsInstancePlacement.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AwsInstancePlacement.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AwsInstancePlacement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AwsInstancePlacement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

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

public AwsInstancePlacement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AwsInstancePlacement.Builder
Overrides

setTenancy(AwsInstancePlacement.Tenancy value)

public AwsInstancePlacement.Builder setTenancy(AwsInstancePlacement.Tenancy value)

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value AwsInstancePlacement.Tenancy

The tenancy to set.

Returns
Type Description
AwsInstancePlacement.Builder

This builder for chaining.

setTenancyValue(int value)

public AwsInstancePlacement.Builder setTenancyValue(int value)

Required. The tenancy for instance.

.google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy tenancy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
AwsInstancePlacement.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AwsInstancePlacement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AwsInstancePlacement.Builder
Overrides