Interface Scheduling.NodeAffinityOrBuilder (0.31.0)
public static interface Scheduling.NodeAffinityOrBuilder extends 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];
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.
|
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-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Interface Scheduling.NodeAffinityOrBuilder (0.31.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.31.0 (latest)](/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.29.0](/java/docs/reference/google-cloud-backupdr/0.29.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.27.0](/java/docs/reference/google-cloud-backupdr/0.27.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-backupdr/0.26.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-backupdr/0.23.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.22.0](/java/docs/reference/google-cloud-backupdr/0.22.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.21.0](/java/docs/reference/google-cloud-backupdr/0.21.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-backupdr/0.19.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-backupdr/0.18.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.17.0](/java/docs/reference/google-cloud-backupdr/0.17.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-backupdr/0.16.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-backupdr/0.15.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-backupdr/0.14.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-backupdr/0.13.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-backupdr/0.12.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-backupdr/0.11.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-backupdr/0.10.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-backupdr/0.8.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-backupdr/0.7.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.6.0](/java/docs/reference/google-cloud-backupdr/0.6.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-backupdr/0.5.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-backupdr/0.4.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-backupdr/0.3.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-backupdr/0.2.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-backupdr/0.1.0/com.google.cloud.backupdr.v1.Scheduling.NodeAffinityOrBuilder) \n\n public static interface Scheduling.NodeAffinityOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getKey()\n\n public abstract String getKey()\n\nOptional. Corresponds to the label key of Node resource.\n\n`optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getKeyBytes()\n\n public abstract ByteString getKeyBytes()\n\nOptional. Corresponds to the label key of Node resource.\n\n`optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getOperator()\n\n public abstract Scheduling.NodeAffinity.Operator getOperator()\n\nOptional. Defines the operation of node selection.\n\n`\noptional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getOperatorValue()\n\n public abstract int getOperatorValue()\n\nOptional. Defines the operation of node selection.\n\n`\noptional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getValues(int index)\n\n public abstract String getValues(int index)\n\nOptional. Corresponds to the label values of Node resource.\n\n`repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getValuesBytes(int index)\n\n public abstract ByteString getValuesBytes(int index)\n\nOptional. Corresponds to the label values of Node resource.\n\n`repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getValuesCount()\n\n public abstract int getValuesCount()\n\nOptional. Corresponds to the label values of Node resource.\n\n`repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getValuesList()\n\n public abstract List\u003cString\u003e getValuesList()\n\nOptional. Corresponds to the label values of Node resource.\n\n`repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasKey()\n\n public abstract boolean hasKey()\n\nOptional. Corresponds to the label key of Node resource.\n\n`optional string key = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasOperator()\n\n public abstract boolean hasOperator()\n\nOptional. Defines the operation of node selection.\n\n`\noptional .google.cloud.backupdr.v1.Scheduling.NodeAffinity.Operator operator = 2 [(.google.api.field_behavior) = OPTIONAL];\n`"]]