Class Build.AllowedRuleClassInfo.Builder

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

public static final class Build.AllowedRuleClassInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Build.AllowedRuleClassInfo.Builder> implements Build.AllowedRuleClassInfoOrBuilder
 Information about allowed rule classes for a specific attribute of a rule.
 
Protobuf type blaze_query.AllowedRuleClassInfo
  • 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.AllowedRuleClassInfo.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.AllowedRuleClassInfo.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.AllowedRuleClassInfo.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Build.AllowedRuleClassInfo.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.AllowedRuleClassInfo.Builder>
      Throws:
      IOException
    • hasPolicy

      public boolean hasPolicy()
      required .blaze_query.AllowedRuleClassInfo.AllowedRuleClasses policy = 1;
      Specified by:
      hasPolicy in interface Build.AllowedRuleClassInfoOrBuilder
      Returns:
      Whether the policy field is set.
    • getPolicy

      required .blaze_query.AllowedRuleClassInfo.AllowedRuleClasses policy = 1;
      Specified by:
      getPolicy in interface Build.AllowedRuleClassInfoOrBuilder
      Returns:
      The policy.
    • setPolicy

      required .blaze_query.AllowedRuleClassInfo.AllowedRuleClasses policy = 1;
      Parameters:
      value - The policy to set.
      Returns:
      This builder for chaining.
    • clearPolicy

      public Build.AllowedRuleClassInfo.Builder clearPolicy()
      required .blaze_query.AllowedRuleClassInfo.AllowedRuleClasses policy = 1;
      Returns:
      This builder for chaining.
    • getAllowedRuleClassList

      public com.google.protobuf.ProtocolStringList getAllowedRuleClassList()
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Specified by:
      getAllowedRuleClassList in interface Build.AllowedRuleClassInfoOrBuilder
      Returns:
      A list containing the allowedRuleClass.
    • getAllowedRuleClassCount

      public int getAllowedRuleClassCount()
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Specified by:
      getAllowedRuleClassCount in interface Build.AllowedRuleClassInfoOrBuilder
      Returns:
      The count of allowedRuleClass.
    • getAllowedRuleClass

      public String getAllowedRuleClass(int index)
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Specified by:
      getAllowedRuleClass in interface Build.AllowedRuleClassInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowedRuleClass at the given index.
    • getAllowedRuleClassBytes

      public com.google.protobuf.ByteString getAllowedRuleClassBytes(int index)
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Specified by:
      getAllowedRuleClassBytes in interface Build.AllowedRuleClassInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowedRuleClass at the given index.
    • setAllowedRuleClass

      public Build.AllowedRuleClassInfo.Builder setAllowedRuleClass(int index, String value)
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Parameters:
      index - The index to set the value at.
      value - The allowedRuleClass to set.
      Returns:
      This builder for chaining.
    • addAllowedRuleClass

      public Build.AllowedRuleClassInfo.Builder addAllowedRuleClass(String value)
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Parameters:
      value - The allowedRuleClass to add.
      Returns:
      This builder for chaining.
    • addAllAllowedRuleClass

      public Build.AllowedRuleClassInfo.Builder addAllAllowedRuleClass(Iterable<String> values)
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Parameters:
      values - The allowedRuleClass to add.
      Returns:
      This builder for chaining.
    • clearAllowedRuleClass

      public Build.AllowedRuleClassInfo.Builder clearAllowedRuleClass()
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Returns:
      This builder for chaining.
    • addAllowedRuleClassBytes

      public Build.AllowedRuleClassInfo.Builder addAllowedRuleClassBytes(com.google.protobuf.ByteString value)
       Rule class names of rules allowed in this attribute, e.g "cc_library",
       "py_binary". Only present if the allowed_rule_classes field is set to
       SPECIFIED.
       
      repeated string allowed_rule_class = 2;
      Parameters:
      value - The bytes of the allowedRuleClass to add.
      Returns:
      This builder for chaining.