Class AwsInstancePlacement.Builder (0.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AwsInstancePlacement build()
Returns
TypeDescription
AwsInstancePlacement

buildPartial()

public AwsInstancePlacement buildPartial()
Returns
TypeDescription
AwsInstancePlacement

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AwsInstancePlacement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AwsInstancePlacement.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AwsInstancePlacement getDefaultInstanceForType()
Returns
TypeDescription
AwsInstancePlacement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for tenancy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AwsInstancePlacement other)

public AwsInstancePlacement.Builder mergeFrom(AwsInstancePlacement other)
Parameter
NameDescription
otherAwsInstancePlacement
Returns
TypeDescription
AwsInstancePlacement.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AwsInstancePlacement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAwsInstancePlacement.Tenancy

The tenancy to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
AwsInstancePlacement.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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