Class Scheduling.NodeAffinity.Builder (0.10.0)

public static final class Scheduling.NodeAffinity.Builder extends GeneratedMessageV3.Builder<Scheduling.NodeAffinity.Builder> implements Scheduling.NodeAffinityOrBuilder

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

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllValues(Iterable<String> values)

public Scheduling.NodeAffinity.Builder addAllValues(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)

public Scheduling.NodeAffinity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

addValues(String value)

public Scheduling.NodeAffinity.Builder addValues(String value)

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)

public Scheduling.NodeAffinity.Builder addValuesBytes(ByteString value)

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

public Scheduling.NodeAffinity build()
Returns
Type Description
Scheduling.NodeAffinity

buildPartial()

public Scheduling.NodeAffinity buildPartial()
Returns
Type Description
Scheduling.NodeAffinity

clear()

public Scheduling.NodeAffinity.Builder clear()
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Scheduling.NodeAffinity.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

clearKey()

public Scheduling.NodeAffinity.Builder clearKey()

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)

public Scheduling.NodeAffinity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

clearOperator()

public Scheduling.NodeAffinity.Builder clearOperator()

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

public Scheduling.NodeAffinity.Builder clearValues()

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

public Scheduling.NodeAffinity.Builder clone()
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

getDefaultInstanceForType()

public Scheduling.NodeAffinity getDefaultInstanceForType()
Returns
Type Description
Scheduling.NodeAffinity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKey()

public 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 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 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 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 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 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 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 ProtocolStringList getValuesList()

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Scheduling.NodeAffinity other)

public Scheduling.NodeAffinity.Builder mergeFrom(Scheduling.NodeAffinity other)
Parameter
Name Description
other Scheduling.NodeAffinity
Returns
Type Description
Scheduling.NodeAffinity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Scheduling.NodeAffinity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Scheduling.NodeAffinity.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Scheduling.NodeAffinity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Scheduling.NodeAffinity.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setKey(String value)

public Scheduling.NodeAffinity.Builder setKey(String value)

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)

public Scheduling.NodeAffinity.Builder setKeyBytes(ByteString value)

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)

public Scheduling.NodeAffinity.Builder setOperator(Scheduling.NodeAffinity.Operator value)

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)

public Scheduling.NodeAffinity.Builder setOperatorValue(int value)

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)

public Scheduling.NodeAffinity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Scheduling.NodeAffinity.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Scheduling.NodeAffinity.Builder
Overrides

setValues(int index, String value)

public Scheduling.NodeAffinity.Builder setValues(int index, String value)

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.