Package com.google.cloud.compute.v1
Class SchedulingNodeAffinity.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
com.google.cloud.compute.v1.SchedulingNodeAffinity.Builder
- All Implemented Interfaces:
SchedulingNodeAffinityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SchedulingNodeAffinity
public static final class SchedulingNodeAffinity.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
implements SchedulingNodeAffinityOrBuilder
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.Protobuf type
google.cloud.compute.v1.SchedulingNodeAffinity-
Method Summary
Modifier and TypeMethodDescriptionaddAllValues(Iterable<String> values) Corresponds to the label values of Node resource.Corresponds to the label values of Node resource.addValuesBytes(com.google.protobuf.ByteString value) Corresponds to the label values of Node resource.build()clear()clearKey()Corresponds to the label key of Node resource.Defines the operation of node selection.Corresponds to the label values of Node resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()Corresponds to the label key of Node resource.com.google.protobuf.ByteStringCorresponds to the label key of Node resource.Defines the operation of node selection.com.google.protobuf.ByteStringDefines the operation of node selection.getValues(int index) Corresponds to the label values of Node resource.com.google.protobuf.ByteStringgetValuesBytes(int index) Corresponds to the label values of Node resource.intCorresponds to the label values of Node resource.com.google.protobuf.ProtocolStringListCorresponds to the label values of Node resource.booleanhasKey()Corresponds to the label key of Node resource.booleanDefines the operation of node selection.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SchedulingNodeAffinity other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Corresponds to the label key of Node resource.setKeyBytes(com.google.protobuf.ByteString value) Corresponds to the label key of Node resource.setOperator(String value) Defines the operation of node selection.setOperatorBytes(com.google.protobuf.ByteString value) Defines the operation of node selection.Corresponds to the label values of Node resource.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SchedulingNodeAffinity.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
-
mergeFrom
public SchedulingNodeAffinity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SchedulingNodeAffinity.Builder>- Throws:
IOException
-
hasKey
public boolean hasKey()Corresponds to the label key of Node resource.
optional string key = 106079;- Specified by:
hasKeyin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- Whether the key field is set.
-
getKey
Corresponds to the label key of Node resource.
optional string key = 106079;- Specified by:
getKeyin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Corresponds to the label key of Node resource.
optional string key = 106079;- Specified by:
getKeyBytesin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- The bytes for key.
-
setKey
Corresponds to the label key of Node resource.
optional string key = 106079;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Corresponds to the label key of Node resource.
optional string key = 106079;- Returns:
- This builder for chaining.
-
setKeyBytes
Corresponds to the label key of Node resource.
optional string key = 106079;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasOperator
public boolean hasOperator()Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
optional string operator = 36317348;- Specified by:
hasOperatorin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- Whether the operator field is set.
-
getOperator
Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
optional string operator = 36317348;- Specified by:
getOperatorin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- The operator.
-
getOperatorBytes
public com.google.protobuf.ByteString getOperatorBytes()Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
optional string operator = 36317348;- Specified by:
getOperatorBytesin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- The bytes for operator.
-
setOperator
Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
optional string operator = 36317348;- Parameters:
value- The operator to set.- Returns:
- This builder for chaining.
-
clearOperator
Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
optional string operator = 36317348;- Returns:
- This builder for chaining.
-
setOperatorBytes
Defines the operation of node selection. Valid operators areIN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
optional string operator = 36317348;- Parameters:
value- The bytes for operator to set.- Returns:
- This builder for chaining.
-
getValuesList
public com.google.protobuf.ProtocolStringList getValuesList()Corresponds to the label values of Node resource.
repeated string values = 249928994;- Specified by:
getValuesListin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()Corresponds to the label values of Node resource.
repeated string values = 249928994;- Specified by:
getValuesCountin interfaceSchedulingNodeAffinityOrBuilder- Returns:
- The count of values.
-
getValues
Corresponds to the label values of Node resource.
repeated string values = 249928994;- Specified by:
getValuesin interfaceSchedulingNodeAffinityOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
public com.google.protobuf.ByteString getValuesBytes(int index) Corresponds to the label values of Node resource.
repeated string values = 249928994;- Specified by:
getValuesBytesin interfaceSchedulingNodeAffinityOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
Corresponds to the label values of Node resource.
repeated string values = 249928994;- Parameters:
index- The index to set the value at.value- The values to set.- Returns:
- This builder for chaining.
-
addValues
Corresponds to the label values of Node resource.
repeated string values = 249928994;- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
Corresponds to the label values of Node resource.
repeated string values = 249928994;- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
clearValues
Corresponds to the label values of Node resource.
repeated string values = 249928994;- Returns:
- This builder for chaining.
-
addValuesBytes
Corresponds to the label values of Node resource.
repeated string values = 249928994;- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-