Interface Scheduling.NodeAffinityOrBuilder (0.16.0)

publicstaticinterface Scheduling.NodeAffinityOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

publicabstractStringgetKey()

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

publicabstractByteStringgetKeyBytes()

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

publicabstractScheduling.NodeAffinity.OperatorgetOperator()

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

publicabstractintgetOperatorValue()

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)

publicabstractStringgetValues(intindex)

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)

publicabstractByteStringgetValuesBytes(intindex)

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

publicabstractintgetValuesCount()

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

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

publicabstractbooleanhasKey()

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

publicabstractbooleanhasOperator()

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.