public interface SchedulingNodeAffinityOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getKey()
public abstract String getKey()
Corresponds to the label key of Node resource.
optional string key = 106079;
Returns | |
---|---|
Type | Description |
String |
The key. |
getKeyBytes()
public abstract ByteString getKeyBytes()
Corresponds to the label key of Node resource.
optional string key = 106079;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
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 abstract ByteString getValuesBytes(int index)
Corresponds to the label values of Node resource.
repeated string values = 249928994;
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 abstract int getValuesCount()
Corresponds to the label values of Node resource.
repeated string values = 249928994;
Returns | |
---|---|
Type | Description |
int |
The count of values. |
getValuesList()
public abstract List<String> getValuesList()
Corresponds to the label values of Node resource.
repeated string values = 249928994;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the operator field is set. |