Class SoleTenantConfig.NodeAffinity.Builder (2.56.0)

public static final class SoleTenantConfig.NodeAffinity.Builder extends GeneratedMessageV3.Builder<SoleTenantConfig.NodeAffinity.Builder> implements SoleTenantConfig.NodeAffinityOrBuilder

Specifies the NodeAffinity key, values, and affinity operator according to shared sole tenant node group affinities.

Protobuf type google.container.v1.SoleTenantConfig.NodeAffinity

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public SoleTenantConfig.NodeAffinity.Builder addAllValues(Iterable<String> values)

Values for NodeAffinity.

repeated string values = 3;

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public SoleTenantConfig.NodeAffinity.Builder addValues(String value)

Values for NodeAffinity.

repeated string values = 3;

Parameter
Name Description
value String

The values to add.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public SoleTenantConfig.NodeAffinity.Builder addValuesBytes(ByteString value)

Values for NodeAffinity.

repeated string values = 3;

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

build()

public SoleTenantConfig.NodeAffinity build()
Returns
Type Description
SoleTenantConfig.NodeAffinity

buildPartial()

public SoleTenantConfig.NodeAffinity buildPartial()
Returns
Type Description
SoleTenantConfig.NodeAffinity

clear()

public SoleTenantConfig.NodeAffinity.Builder clear()
Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public SoleTenantConfig.NodeAffinity.Builder clearKey()

Key for NodeAffinity.

string key = 1;

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperator()

public SoleTenantConfig.NodeAffinity.Builder clearOperator()

Operator for NodeAffinity.

.google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2;

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

clearValues()

public SoleTenantConfig.NodeAffinity.Builder clearValues()

Values for NodeAffinity.

repeated string values = 3;

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

clone()

public SoleTenantConfig.NodeAffinity.Builder clone()
Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder
Overrides

getDefaultInstanceForType()

public SoleTenantConfig.NodeAffinity getDefaultInstanceForType()
Returns
Type Description
SoleTenantConfig.NodeAffinity

getDescriptorForType()

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

getKey()

public String getKey()

Key for NodeAffinity.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key for NodeAffinity.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getOperator()

public SoleTenantConfig.NodeAffinity.Operator getOperator()

Operator for NodeAffinity.

.google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2;

Returns
Type Description
SoleTenantConfig.NodeAffinity.Operator

The operator.

getOperatorValue()

public int getOperatorValue()

Operator for NodeAffinity.

.google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2;

Returns
Type Description
int

The enum numeric value on the wire for operator.

getValues(int index)

public String getValues(int index)

Values for NodeAffinity.

repeated string values = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

Values for NodeAffinity.

repeated string values = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

Values for NodeAffinity.

repeated string values = 3;

Returns
Type Description
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Values for NodeAffinity.

repeated string values = 3;

Returns
Type Description
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SoleTenantConfig.NodeAffinity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public SoleTenantConfig.NodeAffinity.Builder setKey(String value)

Key for NodeAffinity.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public SoleTenantConfig.NodeAffinity.Builder setKeyBytes(ByteString value)

Key for NodeAffinity.

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

setOperator(SoleTenantConfig.NodeAffinity.Operator value)

public SoleTenantConfig.NodeAffinity.Builder setOperator(SoleTenantConfig.NodeAffinity.Operator value)

Operator for NodeAffinity.

.google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2;

Parameter
Name Description
value SoleTenantConfig.NodeAffinity.Operator

The operator to set.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

setOperatorValue(int value)

public SoleTenantConfig.NodeAffinity.Builder setOperatorValue(int value)

Operator for NodeAffinity.

.google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2;

Parameter
Name Description
value int

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

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, String value)

public SoleTenantConfig.NodeAffinity.Builder setValues(int index, String value)

Values for NodeAffinity.

repeated string values = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The values to set.

Returns
Type Description
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.