Class SoleTenantConfig.NodeAffinity.Builder (2.26.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
TypeDescription
Descriptor

Methods

addAllValues(Iterable<String> values)

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

Values for NodeAffinity.

repeated string values = 3;

Parameter
NameDescription
valuesIterable<String>

The values to add.

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public SoleTenantConfig.NodeAffinity.Builder addValues(String value)

Values for NodeAffinity.

repeated string values = 3;

Parameter
NameDescription
valueString

The values to add.

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

The bytes of the values to add.

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

build()

public SoleTenantConfig.NodeAffinity build()
Returns
TypeDescription
SoleTenantConfig.NodeAffinity

buildPartial()

public SoleTenantConfig.NodeAffinity buildPartial()
Returns
TypeDescription
SoleTenantConfig.NodeAffinity

clear()

public SoleTenantConfig.NodeAffinity.Builder clear()
Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public SoleTenantConfig.NodeAffinity.Builder clearKey()

Key for NodeAffinity.

string key = 1;

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperator()

public SoleTenantConfig.NodeAffinity.Builder clearOperator()

Operator for NodeAffinity.

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

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

clearValues()

public SoleTenantConfig.NodeAffinity.Builder clearValues()

Values for NodeAffinity.

repeated string values = 3;

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

clone()

public SoleTenantConfig.NodeAffinity.Builder clone()
Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder
Overrides

getDefaultInstanceForType()

public SoleTenantConfig.NodeAffinity getDefaultInstanceForType()
Returns
TypeDescription
SoleTenantConfig.NodeAffinity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

Key for NodeAffinity.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key for NodeAffinity.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getOperator()

public SoleTenantConfig.NodeAffinity.Operator getOperator()

Operator for NodeAffinity.

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

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Operator

The operator.

getOperatorValue()

public int getOperatorValue()

Operator for NodeAffinity.

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

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

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

Values for NodeAffinity.

repeated string values = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

Values for NodeAffinity.

repeated string values = 3;

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

Values for NodeAffinity.

repeated string values = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SoleTenantConfig.NodeAffinity other)

public SoleTenantConfig.NodeAffinity.Builder mergeFrom(SoleTenantConfig.NodeAffinity other)
Parameter
NameDescription
otherSoleTenantConfig.NodeAffinity
Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public SoleTenantConfig.NodeAffinity.Builder setKey(String value)

Key for NodeAffinity.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public SoleTenantConfig.NodeAffinity.Builder setKeyBytes(ByteString value)

Key for NodeAffinity.

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
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
NameDescription
valueSoleTenantConfig.NodeAffinity.Operator

The operator to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SoleTenantConfig.NodeAffinity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The values to set.

Returns
TypeDescription
SoleTenantConfig.NodeAffinity.Builder

This builder for chaining.