Class Build.Attribute.Selector.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Build.Attribute.Selector.Builder>
com.google.devtools.build.lib.query2.proto.proto2api.Build.Attribute.Selector.Builder
All Implemented Interfaces:
Build.Attribute.SelectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Build.Attribute.Selector

public static final class Build.Attribute.Selector.Builder extends com.google.protobuf.GeneratedMessage.Builder<Build.Attribute.Selector.Builder> implements Build.Attribute.SelectorOrBuilder
Protobuf type blaze_query.Attribute.Selector
  • 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<Build.Attribute.Selector.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<Build.Attribute.Selector.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<Build.Attribute.Selector.Builder>
    • getDefaultInstanceForType

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

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

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

      public Build.Attribute.Selector.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<Build.Attribute.Selector.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<Build.Attribute.Selector.Builder>
    • mergeFrom

      public Build.Attribute.Selector.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<Build.Attribute.Selector.Builder>
      Throws:
      IOException
    • getEntriesList

      public List<Build.Attribute.SelectorEntry> getEntriesList()
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
      Specified by:
      getEntriesList in interface Build.Attribute.SelectorOrBuilder
    • getEntriesCount

      public int getEntriesCount()
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
      Specified by:
      getEntriesCount in interface Build.Attribute.SelectorOrBuilder
    • getEntries

      public Build.Attribute.SelectorEntry getEntries(int index)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
      Specified by:
      getEntries in interface Build.Attribute.SelectorOrBuilder
    • setEntries

      public Build.Attribute.Selector.Builder setEntries(int index, Build.Attribute.SelectorEntry value)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • setEntries

      public Build.Attribute.Selector.Builder setEntries(int index, Build.Attribute.SelectorEntry.Builder builderForValue)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • addEntries

       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • addEntries

      public Build.Attribute.Selector.Builder addEntries(int index, Build.Attribute.SelectorEntry value)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • addEntries

       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • addEntries

      public Build.Attribute.Selector.Builder addEntries(int index, Build.Attribute.SelectorEntry.Builder builderForValue)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • addAllEntries

       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • clearEntries

      public Build.Attribute.Selector.Builder clearEntries()
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • removeEntries

      public Build.Attribute.Selector.Builder removeEntries(int index)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • getEntriesBuilder

      public Build.Attribute.SelectorEntry.Builder getEntriesBuilder(int index)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • getEntriesOrBuilder

      public Build.Attribute.SelectorEntryOrBuilder getEntriesOrBuilder(int index)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
      Specified by:
      getEntriesOrBuilder in interface Build.Attribute.SelectorOrBuilder
    • getEntriesOrBuilderList

      public List<? extends Build.Attribute.SelectorEntryOrBuilder> getEntriesOrBuilderList()
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
      Specified by:
      getEntriesOrBuilderList in interface Build.Attribute.SelectorOrBuilder
    • addEntriesBuilder

      public Build.Attribute.SelectorEntry.Builder addEntriesBuilder()
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • addEntriesBuilder

      public Build.Attribute.SelectorEntry.Builder addEntriesBuilder(int index)
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • getEntriesBuilderList

      public List<Build.Attribute.SelectorEntry.Builder> getEntriesBuilderList()
       The list of (label, value) pairs in the map that defines the selector.
       At this time, this cannot be empty, i.e. a selector has at least one
       entry.
       
      repeated .blaze_query.Attribute.SelectorEntry entries = 1;
    • hasHasDefaultValue

      public boolean hasHasDefaultValue()
       Whether or not this has any default values.
       
      optional bool has_default_value = 2;
      Specified by:
      hasHasDefaultValue in interface Build.Attribute.SelectorOrBuilder
      Returns:
      Whether the hasDefaultValue field is set.
    • getHasDefaultValue

      public boolean getHasDefaultValue()
       Whether or not this has any default values.
       
      optional bool has_default_value = 2;
      Specified by:
      getHasDefaultValue in interface Build.Attribute.SelectorOrBuilder
      Returns:
      The hasDefaultValue.
    • setHasDefaultValue

      public Build.Attribute.Selector.Builder setHasDefaultValue(boolean value)
       Whether or not this has any default values.
       
      optional bool has_default_value = 2;
      Parameters:
      value - The hasDefaultValue to set.
      Returns:
      This builder for chaining.
    • clearHasDefaultValue

      public Build.Attribute.Selector.Builder clearHasDefaultValue()
       Whether or not this has any default values.
       
      optional bool has_default_value = 2;
      Returns:
      This builder for chaining.
    • hasNoMatchError

      public boolean hasNoMatchError()
       The error message when no condition matches.
       
      optional string no_match_error = 3;
      Specified by:
      hasNoMatchError in interface Build.Attribute.SelectorOrBuilder
      Returns:
      Whether the noMatchError field is set.
    • getNoMatchError

      public String getNoMatchError()
       The error message when no condition matches.
       
      optional string no_match_error = 3;
      Specified by:
      getNoMatchError in interface Build.Attribute.SelectorOrBuilder
      Returns:
      The noMatchError.
    • getNoMatchErrorBytes

      public com.google.protobuf.ByteString getNoMatchErrorBytes()
       The error message when no condition matches.
       
      optional string no_match_error = 3;
      Specified by:
      getNoMatchErrorBytes in interface Build.Attribute.SelectorOrBuilder
      Returns:
      The bytes for noMatchError.
    • setNoMatchError

      public Build.Attribute.Selector.Builder setNoMatchError(String value)
       The error message when no condition matches.
       
      optional string no_match_error = 3;
      Parameters:
      value - The noMatchError to set.
      Returns:
      This builder for chaining.
    • clearNoMatchError

      public Build.Attribute.Selector.Builder clearNoMatchError()
       The error message when no condition matches.
       
      optional string no_match_error = 3;
      Returns:
      This builder for chaining.
    • setNoMatchErrorBytes

      public Build.Attribute.Selector.Builder setNoMatchErrorBytes(com.google.protobuf.ByteString value)
       The error message when no condition matches.
       
      optional string no_match_error = 3;
      Parameters:
      value - The bytes for noMatchError to set.
      Returns:
      This builder for chaining.