Class Scheduling.NodeAffinity.Builder (0.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass Scheduling.NodeAffinity.BuilderextendsGeneratedMessageV3.Builder<Scheduling.NodeAffinity.Builder>implementsScheduling.NodeAffinityOrBuilderNode Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
Protobuf type google.cloud.backupdr.v1.Scheduling.NodeAffinity
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Scheduling.NodeAffinity.BuilderImplements
Scheduling.NodeAffinityOrBuilderInherited Members
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 |
|
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 |
|
clearField(Descriptors.FieldDescriptor field)
publicScheduling.NodeAffinity.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
Scheduling.NodeAffinity.Builder |
|
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 |
|
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 |
|
getDefaultInstanceForType()
publicScheduling.NodeAffinitygetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Scheduling.NodeAffinity |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicScheduling.NodeAffinity.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Scheduling.NodeAffinity.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalScheduling.NodeAffinity.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Scheduling.NodeAffinity.Builder |
|
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 |
|
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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalScheduling.NodeAffinity.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
Scheduling.NodeAffinity.Builder |
|
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. |