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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SchedulingNodeAffinity.Builder>
    • getDefaultInstanceForType

      public SchedulingNodeAffinity getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SchedulingNodeAffinity build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SchedulingNodeAffinity buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SchedulingNodeAffinity.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SchedulingNodeAffinity.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasKey in interface SchedulingNodeAffinityOrBuilder
      Returns:
      Whether the key field is set.
    • getKey

      public String getKey()
       Corresponds to the label key of Node resource.
       
      optional string key = 106079;
      Specified by:
      getKey in interface SchedulingNodeAffinityOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       Corresponds to the label key of Node resource.
       
      optional string key = 106079;
      Specified by:
      getKeyBytes in interface SchedulingNodeAffinityOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public SchedulingNodeAffinity.Builder setKey(String value)
       Corresponds to the label key of Node resource.
       
      optional string key = 106079;
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public SchedulingNodeAffinity.Builder clearKey()
       Corresponds to the label key of Node resource.
       
      optional string key = 106079;
      Returns:
      This builder for chaining.
    • setKeyBytes

      public SchedulingNodeAffinity.Builder setKeyBytes(com.google.protobuf.ByteString value)
       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:
      hasOperator in interface SchedulingNodeAffinityOrBuilder
      Returns:
      Whether the operator field is set.
    • getOperator

      public String 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:
      getOperator in interface SchedulingNodeAffinityOrBuilder
      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:
      getOperatorBytes in interface SchedulingNodeAffinityOrBuilder
      Returns:
      The bytes for operator.
    • setOperator

      public SchedulingNodeAffinity.Builder setOperator(String value)
       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

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

      public SchedulingNodeAffinity.Builder setOperatorBytes(com.google.protobuf.ByteString value)
       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:
      getValuesList in interface SchedulingNodeAffinityOrBuilder
      Returns:
      A list containing the values.
    • getValuesCount

      public int getValuesCount()
       Corresponds to the label values of Node resource.
       
      repeated string values = 249928994;
      Specified by:
      getValuesCount in interface SchedulingNodeAffinityOrBuilder
      Returns:
      The count of values.
    • getValues

      public String getValues(int index)
       Corresponds to the label values of Node resource.
       
      repeated string values = 249928994;
      Specified by:
      getValues in interface SchedulingNodeAffinityOrBuilder
      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:
      getValuesBytes in interface SchedulingNodeAffinityOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.
    • setValues

      public SchedulingNodeAffinity.Builder setValues(int index, String value)
       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

      public SchedulingNodeAffinity.Builder addValues(String value)
       Corresponds to the label values of Node resource.
       
      repeated string values = 249928994;
      Parameters:
      value - The values to add.
      Returns:
      This builder for chaining.
    • addAllValues

      public SchedulingNodeAffinity.Builder addAllValues(Iterable<String> values)
       Corresponds to the label values of Node resource.
       
      repeated string values = 249928994;
      Parameters:
      values - The values to add.
      Returns:
      This builder for chaining.
    • clearValues

      public SchedulingNodeAffinity.Builder clearValues()
       Corresponds to the label values of Node resource.
       
      repeated string values = 249928994;
      Returns:
      This builder for chaining.
    • addValuesBytes

      public SchedulingNodeAffinity.Builder addValuesBytes(com.google.protobuf.ByteString value)
       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.