Class CommandLineOuterClass.ChunkList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CommandLineOuterClass.ChunkList.Builder>
com.google.devtools.build.lib.runtime.proto.CommandLineOuterClass.ChunkList.Builder
All Implemented Interfaces:
CommandLineOuterClass.ChunkListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CommandLineOuterClass.ChunkList

public static final class CommandLineOuterClass.ChunkList.Builder extends com.google.protobuf.GeneratedMessage.Builder<CommandLineOuterClass.ChunkList.Builder> implements CommandLineOuterClass.ChunkListOrBuilder
 Wrapper to allow a list of strings in the "oneof" section_type.
 
Protobuf type command_line.ChunkList
  • 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<CommandLineOuterClass.ChunkList.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<CommandLineOuterClass.ChunkList.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<CommandLineOuterClass.ChunkList.Builder>
    • getDefaultInstanceForType

      public CommandLineOuterClass.ChunkList 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 CommandLineOuterClass.ChunkList buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CommandLineOuterClass.ChunkList.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<CommandLineOuterClass.ChunkList.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<CommandLineOuterClass.ChunkList.Builder>
    • mergeFrom

      public CommandLineOuterClass.ChunkList.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<CommandLineOuterClass.ChunkList.Builder>
      Throws:
      IOException
    • getChunkList

      public com.google.protobuf.ProtocolStringList getChunkList()
      repeated string chunk = 1;
      Specified by:
      getChunkList in interface CommandLineOuterClass.ChunkListOrBuilder
      Returns:
      A list containing the chunk.
    • getChunkCount

      public int getChunkCount()
      repeated string chunk = 1;
      Specified by:
      getChunkCount in interface CommandLineOuterClass.ChunkListOrBuilder
      Returns:
      The count of chunk.
    • getChunk

      public String getChunk(int index)
      repeated string chunk = 1;
      Specified by:
      getChunk in interface CommandLineOuterClass.ChunkListOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The chunk at the given index.
    • getChunkBytes

      public com.google.protobuf.ByteString getChunkBytes(int index)
      repeated string chunk = 1;
      Specified by:
      getChunkBytes in interface CommandLineOuterClass.ChunkListOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the chunk at the given index.
    • setChunk

      public CommandLineOuterClass.ChunkList.Builder setChunk(int index, String value)
      repeated string chunk = 1;
      Parameters:
      index - The index to set the value at.
      value - The chunk to set.
      Returns:
      This builder for chaining.
    • addChunk

      repeated string chunk = 1;
      Parameters:
      value - The chunk to add.
      Returns:
      This builder for chaining.
    • addAllChunk

      repeated string chunk = 1;
      Parameters:
      values - The chunk to add.
      Returns:
      This builder for chaining.
    • clearChunk

      repeated string chunk = 1;
      Returns:
      This builder for chaining.
    • addChunkBytes

      public CommandLineOuterClass.ChunkList.Builder addChunkBytes(com.google.protobuf.ByteString value)
      repeated string chunk = 1;
      Parameters:
      value - The bytes of the chunk to add.
      Returns:
      This builder for chaining.