Class Scheduling.NodeAffinity.Builder (0.10.0)

publicstaticfinalclass Scheduling.NodeAffinity.BuilderextendsGeneratedMessageV3.Builder<Scheduling.NodeAffinity.Builder>implementsScheduling.NodeAffinityOrBuilder

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Protobuf type google.cloud.backupdr.v1.Scheduling.NodeAffinity

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllValues(Iterable<String> values)

publicScheduling.NodeAffinity.BuilderaddAllValues(Iterable<String>values)

Optional. Corresponds to the label values of Node resource.

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

Parameter
Name Description
values Iterable<String>

The values to add.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicScheduling.NodeAffinity.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

addValues(String value)

publicScheduling.NodeAffinity.BuilderaddValues(Stringvalue)

Optional. Corresponds to the label values of Node resource.

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

Parameter
Name Description
value String

The values to add.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

addValuesBytes(ByteString value)

publicScheduling.NodeAffinity.BuilderaddValuesBytes(ByteStringvalue)

Optional. Corresponds to the label values of Node resource.

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

Parameter
Name Description
value ByteString

The bytes of the values to add.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

build()

publicScheduling.NodeAffinitybuild()
Returns
Type Description
Scheduling.NodeAffinity

buildPartial()

publicScheduling.NodeAffinitybuildPartial()
Returns
Type Description
Scheduling.NodeAffinity

clear()

publicScheduling.NodeAffinity.Builderclear()
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicScheduling.NodeAffinity.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

clearKey()

publicScheduling.NodeAffinity.BuilderclearKey()

Optional. Corresponds to the label key of Node resource.

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

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicScheduling.NodeAffinity.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

clearOperator()

publicScheduling.NodeAffinity.BuilderclearOperator()

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.Builder

This builder for chaining.

clearValues()

publicScheduling.NodeAffinity.BuilderclearValues()

Optional. Corresponds to the label values of Node resource.

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

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

clone()

publicScheduling.NodeAffinity.Builderclone()
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

getDefaultInstanceForType()

publicScheduling.NodeAffinitygetDefaultInstanceForType()
Returns
Type Description
Scheduling.NodeAffinity

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

publicStringgetKey()

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

publicByteStringgetKeyBytes()

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

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

publicintgetOperatorValue()

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)

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

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

publicintgetValuesCount()

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

publicProtocolStringListgetValuesList()

Optional. Corresponds to the label values of Node resource.

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

Returns
Type Description
ProtocolStringList

A list containing the values.

hasKey()

publicbooleanhasKey()

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

publicbooleanhasOperator()

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Scheduling.NodeAffinity other)

publicScheduling.NodeAffinity.BuildermergeFrom(Scheduling.NodeAffinityother)
Parameter
Name Description
other Scheduling.NodeAffinity
Returns
Type Description
Scheduling.NodeAffinity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicScheduling.NodeAffinity.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicScheduling.NodeAffinity.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalScheduling.NodeAffinity.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicScheduling.NodeAffinity.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setKey(String value)

publicScheduling.NodeAffinity.BuildersetKey(Stringvalue)

Optional. Corresponds to the label key of Node resource.

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

Parameter
Name Description
value String

The key to set.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

setKeyBytes(ByteString value)

publicScheduling.NodeAffinity.BuildersetKeyBytes(ByteStringvalue)

Optional. Corresponds to the label key of Node resource.

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

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

setOperator(Scheduling.NodeAffinity.Operator value)

publicScheduling.NodeAffinity.BuildersetOperator(Scheduling.NodeAffinity.Operatorvalue)

Optional. Defines the operation of node selection.

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

Parameter
Name Description
value Scheduling.NodeAffinity.Operator

The operator to set.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

setOperatorValue(int value)

publicScheduling.NodeAffinity.BuildersetOperatorValue(intvalue)

Optional. Defines the operation of node selection.

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

Parameter
Name Description
value int

The enum numeric value on the wire for operator to set.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicScheduling.NodeAffinity.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalScheduling.NodeAffinity.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setValues(int index, String value)

publicScheduling.NodeAffinity.BuildersetValues(intindex,Stringvalue)

Optional. Corresponds to the label values of Node resource.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The values to set.

Returns
Type Description
Scheduling.NodeAffinity.Builder

This builder for chaining.

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.