Class Build.EnvironmentGroup.Builder

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

public static final class Build.EnvironmentGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<Build.EnvironmentGroup.Builder> implements Build.EnvironmentGroupOrBuilder
 An environment group.
 
Protobuf type blaze_query.EnvironmentGroup
  • 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.EnvironmentGroup.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.EnvironmentGroup.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.EnvironmentGroup.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public boolean hasName()
       The name of the environment group.
       
      required string name = 1;
      Specified by:
      hasName in interface Build.EnvironmentGroupOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the environment group.
       
      required string name = 1;
      Specified by:
      getName in interface Build.EnvironmentGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the environment group.
       
      required string name = 1;
      Specified by:
      getNameBytes in interface Build.EnvironmentGroupOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Build.EnvironmentGroup.Builder setName(String value)
       The name of the environment group.
       
      required string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Build.EnvironmentGroup.Builder clearName()
       The name of the environment group.
       
      required string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Build.EnvironmentGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the environment group.
       
      required string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEnvironmentList

      public com.google.protobuf.ProtocolStringList getEnvironmentList()
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Specified by:
      getEnvironmentList in interface Build.EnvironmentGroupOrBuilder
      Returns:
      A list containing the environment.
    • getEnvironmentCount

      public int getEnvironmentCount()
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Specified by:
      getEnvironmentCount in interface Build.EnvironmentGroupOrBuilder
      Returns:
      The count of environment.
    • getEnvironment

      public String getEnvironment(int index)
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Specified by:
      getEnvironment in interface Build.EnvironmentGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The environment at the given index.
    • getEnvironmentBytes

      public com.google.protobuf.ByteString getEnvironmentBytes(int index)
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Specified by:
      getEnvironmentBytes in interface Build.EnvironmentGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the environment at the given index.
    • setEnvironment

      public Build.EnvironmentGroup.Builder setEnvironment(int index, String value)
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Parameters:
      index - The index to set the value at.
      value - The environment to set.
      Returns:
      This builder for chaining.
    • addEnvironment

      public Build.EnvironmentGroup.Builder addEnvironment(String value)
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Parameters:
      value - The environment to add.
      Returns:
      This builder for chaining.
    • addAllEnvironment

      public Build.EnvironmentGroup.Builder addAllEnvironment(Iterable<String> values)
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Parameters:
      values - The environment to add.
      Returns:
      This builder for chaining.
    • clearEnvironment

      public Build.EnvironmentGroup.Builder clearEnvironment()
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Returns:
      This builder for chaining.
    • addEnvironmentBytes

      public Build.EnvironmentGroup.Builder addEnvironmentBytes(com.google.protobuf.ByteString value)
       The environments that belong to this group (as labels).
       
      repeated string environment = 2;
      Parameters:
      value - The bytes of the environment to add.
      Returns:
      This builder for chaining.
    • getDefaultList

      public com.google.protobuf.ProtocolStringList getDefaultList()
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Specified by:
      getDefaultList in interface Build.EnvironmentGroupOrBuilder
      Returns:
      A list containing the default.
    • getDefaultCount

      public int getDefaultCount()
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Specified by:
      getDefaultCount in interface Build.EnvironmentGroupOrBuilder
      Returns:
      The count of default.
    • getDefault

      public String getDefault(int index)
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Specified by:
      getDefault in interface Build.EnvironmentGroupOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The default at the given index.
    • getDefaultBytes

      public com.google.protobuf.ByteString getDefaultBytes(int index)
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Specified by:
      getDefaultBytes in interface Build.EnvironmentGroupOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the default at the given index.
    • setDefault

      public Build.EnvironmentGroup.Builder setDefault(int index, String value)
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Parameters:
      index - The index to set the value at.
      value - The default to set.
      Returns:
      This builder for chaining.
    • addDefault

      public Build.EnvironmentGroup.Builder addDefault(String value)
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Parameters:
      value - The default to add.
      Returns:
      This builder for chaining.
    • addAllDefault

      public Build.EnvironmentGroup.Builder addAllDefault(Iterable<String> values)
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Parameters:
      values - The default to add.
      Returns:
      This builder for chaining.
    • clearDefault

      public Build.EnvironmentGroup.Builder clearDefault()
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Returns:
      This builder for chaining.
    • addDefaultBytes

      public Build.EnvironmentGroup.Builder addDefaultBytes(com.google.protobuf.ByteString value)
       The member environments that rules implicitly support if not otherwise
       specified.
       
      repeated string default = 3;
      Parameters:
      value - The bytes of the default to add.
      Returns:
      This builder for chaining.