Interface Scheduling.NodeAffinityOrBuilder (0.13.0)

public static interface Scheduling.NodeAffinityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract String getKey()

Optional. Corresponds to the label key of Node resource.

optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

Optional. Corresponds to the label key of Node resource.

optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for key.

getOperator()

public abstract Scheduling.NodeAffinity.Operator getOperator()

Optional. Defines the operation of node selection.

optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Scheduling.NodeAffinity.Operator

The operator.

getOperatorValue()

public abstract int getOperatorValue()

Optional. Defines the operation of node selection.

optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for operator.

getValues(int index)

public abstract String getValues(int index)

Optional. Corresponds to the label values of Node resource.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Corresponds to the label values of Node resource.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. Corresponds to the label values of Node resource.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of values.

getValuesList()

public abstract List<String> getValuesList()

Optional. Corresponds to the label values of Node resource.

repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the values.

hasKey()

public abstract boolean hasKey()

Optional. Corresponds to the label key of Node resource.

optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the key field is set.

hasOperator()

public abstract boolean hasOperator()

Optional. Defines the operation of node selection.

optional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the operator field is set.