Class Fleet.LabelSelector.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Fleet.LabelSelector.Builder>
com.google.cloud.configdelivery.v1beta.Fleet.LabelSelector.Builder
All Implemented Interfaces:
Fleet.LabelSelectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Fleet.LabelSelector

public static final class Fleet.LabelSelector.Builder extends com.google.protobuf.GeneratedMessage.Builder<Fleet.LabelSelector.Builder> implements Fleet.LabelSelectorOrBuilder
 A label selector is a label query over a set of resources. An empty label
 selector matches all objects.
 
Protobuf type google.cloud.configdelivery.v1beta.Fleet.LabelSelector
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Fleet.LabelSelector.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Fleet.LabelSelector.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Fleet.LabelSelector.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<Fleet.LabelSelector.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<Fleet.LabelSelector.Builder>
    • getDefaultInstanceForType

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

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

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

      public Fleet.LabelSelector.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<Fleet.LabelSelector.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<Fleet.LabelSelector.Builder>
    • mergeFrom

      public Fleet.LabelSelector.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<Fleet.LabelSelector.Builder>
      Throws:
      IOException
    • getMatchLabelsCount

      public int getMatchLabelsCount()
      Description copied from interface: Fleet.LabelSelectorOrBuilder
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchLabelsCount in interface Fleet.LabelSelectorOrBuilder
    • containsMatchLabels

      public boolean containsMatchLabels(String key)
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsMatchLabels in interface Fleet.LabelSelectorOrBuilder
    • getMatchLabels

      @Deprecated public Map<String,String> getMatchLabels()
      Deprecated.
      Use getMatchLabelsMap() instead.
      Specified by:
      getMatchLabels in interface Fleet.LabelSelectorOrBuilder
    • getMatchLabelsMap

      public Map<String,String> getMatchLabelsMap()
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchLabelsMap in interface Fleet.LabelSelectorOrBuilder
    • getMatchLabelsOrDefault

      public String getMatchLabelsOrDefault(String key, String defaultValue)
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchLabelsOrDefault in interface Fleet.LabelSelectorOrBuilder
    • getMatchLabelsOrThrow

      public String getMatchLabelsOrThrow(String key)
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMatchLabelsOrThrow in interface Fleet.LabelSelectorOrBuilder
    • clearMatchLabels

      public Fleet.LabelSelector.Builder clearMatchLabels()
    • removeMatchLabels

      public Fleet.LabelSelector.Builder removeMatchLabels(String key)
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableMatchLabels

      @Deprecated public Map<String,String> getMutableMatchLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putMatchLabels

      public Fleet.LabelSelector.Builder putMatchLabels(String key, String value)
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];
    • putAllMatchLabels

      public Fleet.LabelSelector.Builder putAllMatchLabels(Map<String,String> values)
       Optional. match_labels is a map of {key,value} pairs. Each {key,value}
       pair must match an existing label key and value exactly in order to
       satisfy the match.
       
      map<string, string> match_labels = 1 [(.google.api.field_behavior) = OPTIONAL];