Package com.google.cloud.compute.v1
Interface SchedulingNodeAffinityOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SchedulingNodeAffinity
,SchedulingNodeAffinity.Builder
public interface SchedulingNodeAffinityOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getKey()
Corresponds to the label key of Node resource.com.google.protobuf.ByteString
getKeyBytes()
Corresponds to the label key of Node resource.String
getOperator()
Defines the operation of node selection.com.google.protobuf.ByteString
getOperatorBytes()
Defines the operation of node selection.String
getValues(int index)
Corresponds to the label values of Node resource.com.google.protobuf.ByteString
getValuesBytes(int index)
Corresponds to the label values of Node resource.int
getValuesCount()
Corresponds to the label values of Node resource.List<String>
getValuesList()
Corresponds to the label values of Node resource.boolean
hasKey()
Corresponds to the label key of Node resource.boolean
hasOperator()
Defines the operation of node selection.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasKey
boolean hasKey()
Corresponds to the label key of Node resource.
optional string key = 106079;
- Returns:
- Whether the key field is set.
-
getKey
String getKey()
Corresponds to the label key of Node resource.
optional string key = 106079;
- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()
Corresponds to the label key of Node resource.
optional string key = 106079;
- Returns:
- The bytes for key.
-
hasOperator
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:
- Whether the operator field is set.
-
getOperator
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:
- The operator.
-
getOperatorBytes
com.google.protobuf.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:
- The bytes for operator.
-
getValuesList
List<String> getValuesList()
Corresponds to the label values of Node resource.
repeated string values = 249928994;
- Returns:
- A list containing the values.
-
getValuesCount
int getValuesCount()
Corresponds to the label values of Node resource.
repeated string values = 249928994;
- Returns:
- The count of values.
-
getValues
String getValues(int index)
Corresponds to the label values of Node resource.
repeated string values = 249928994;
- Parameters:
index
- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
com.google.protobuf.ByteString getValuesBytes(int index)
Corresponds to the label values of Node resource.
repeated string values = 249928994;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
-