Interface SchedulingNodeAffinityOrBuilder (1.51.0)

public interface SchedulingNodeAffinityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract String getKey()

Corresponds to the label key of Node resource.

optional string key = 106079;

Returns
TypeDescription
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

Corresponds to the label key of Node resource.

optional string key = 106079;

Returns
TypeDescription
ByteString

The bytes for key.

getOperator()

public abstract String getOperator()

Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.

optional string operator = 36317348;

Returns
TypeDescription
String

The operator.

getOperatorBytes()

public abstract ByteString getOperatorBytes()

Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.

optional string operator = 36317348;

Returns
TypeDescription
ByteString

The bytes for operator.

getValues(int index)

public abstract String getValues(int index)

Corresponds to the label values of Node resource.

repeated string values = 249928994;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public abstract ByteString getValuesBytes(int index)

Corresponds to the label values of Node resource.

repeated string values = 249928994;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public abstract int getValuesCount()

Corresponds to the label values of Node resource.

repeated string values = 249928994;

Returns
TypeDescription
int

The count of values.

getValuesList()

public abstract List<String> getValuesList()

Corresponds to the label values of Node resource.

repeated string values = 249928994;

Returns
TypeDescription
List<String>

A list containing the values.

hasKey()

public abstract boolean hasKey()

Corresponds to the label key of Node resource.

optional string key = 106079;

Returns
TypeDescription
boolean

Whether the key field is set.

hasOperator()

public abstract boolean hasOperator()

Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.

optional string operator = 36317348;

Returns
TypeDescription
boolean

Whether the operator field is set.