// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: bazel-out/local-fastbuild/bin/src/main/protobuf/libextra_actions_base_java_proto_srcjar.srcjar.preprocessed/extra_actions_base.proto

package com.google.devtools.build.lib.actions.extra;

/**
 * <pre>
 * Provides access to data that is specific to spawn actions.
 * Usually provided by actions using the "Spawn" &amp; "Genrule" Mnemonics.
 * </pre>
 *
 * Protobuf type {@code blaze.SpawnInfo}
 */
public  final class SpawnInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:blaze.SpawnInfo)
    SpawnInfoOrBuilder {
  // Use SpawnInfo.newBuilder() to construct.
  private SpawnInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private SpawnInfo() {
    argument_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    variable_ = java.util.Collections.emptyList();
    inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    outputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SpawnInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownField(input, unknownFields,
                                   extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              argument_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            argument_.add(bs);
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              variable_ = new java.util.ArrayList<com.google.devtools.build.lib.actions.extra.EnvironmentVariable>();
              mutable_bitField0_ |= 0x00000002;
            }
            variable_.add(
                input.readMessage(com.google.devtools.build.lib.actions.extra.EnvironmentVariable.PARSER, extensionRegistry));
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              inputFile_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            inputFile_.add(bs);
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              outputFile_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            outputFile_.add(bs);
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
        argument_ = argument_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        variable_ = java.util.Collections.unmodifiableList(variable_);
      }
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        inputFile_ = inputFile_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        outputFile_ = outputFile_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.google.devtools.build.lib.actions.extra.ExtraActionsBase.internal_static_blaze_SpawnInfo_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.devtools.build.lib.actions.extra.ExtraActionsBase.internal_static_blaze_SpawnInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.devtools.build.lib.actions.extra.SpawnInfo.class, com.google.devtools.build.lib.actions.extra.SpawnInfo.Builder.class);
  }

  public static final int ARGUMENT_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList argument_;
  /**
   * <code>repeated string argument = 1;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getArgumentList() {
    return argument_;
  }
  /**
   * <code>repeated string argument = 1;</code>
   */
  public int getArgumentCount() {
    return argument_.size();
  }
  /**
   * <code>repeated string argument = 1;</code>
   */
  public java.lang.String getArgument(int index) {
    return argument_.get(index);
  }
  /**
   * <code>repeated string argument = 1;</code>
   */
  public com.google.protobuf.ByteString
      getArgumentBytes(int index) {
    return argument_.getByteString(index);
  }

  public static final int VARIABLE_FIELD_NUMBER = 2;
  private java.util.List<com.google.devtools.build.lib.actions.extra.EnvironmentVariable> variable_;
  /**
   * <pre>
   * An *unordered* list of environment variables and their values.
   * </pre>
   *
   * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
   */
  public java.util.List<com.google.devtools.build.lib.actions.extra.EnvironmentVariable> getVariableList() {
    return variable_;
  }
  /**
   * <pre>
   * An *unordered* list of environment variables and their values.
   * </pre>
   *
   * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
   */
  public java.util.List<? extends com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder> 
      getVariableOrBuilderList() {
    return variable_;
  }
  /**
   * <pre>
   * An *unordered* list of environment variables and their values.
   * </pre>
   *
   * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
   */
  public int getVariableCount() {
    return variable_.size();
  }
  /**
   * <pre>
   * An *unordered* list of environment variables and their values.
   * </pre>
   *
   * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
   */
  public com.google.devtools.build.lib.actions.extra.EnvironmentVariable getVariable(int index) {
    return variable_.get(index);
  }
  /**
   * <pre>
   * An *unordered* list of environment variables and their values.
   * </pre>
   *
   * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
   */
  public com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder getVariableOrBuilder(
      int index) {
    return variable_.get(index);
  }

  public static final int INPUT_FILE_FIELD_NUMBER = 4;
  private com.google.protobuf.LazyStringList inputFile_;
  /**
   * <code>repeated string input_file = 4;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getInputFileList() {
    return inputFile_;
  }
  /**
   * <code>repeated string input_file = 4;</code>
   */
  public int getInputFileCount() {
    return inputFile_.size();
  }
  /**
   * <code>repeated string input_file = 4;</code>
   */
  public java.lang.String getInputFile(int index) {
    return inputFile_.get(index);
  }
  /**
   * <code>repeated string input_file = 4;</code>
   */
  public com.google.protobuf.ByteString
      getInputFileBytes(int index) {
    return inputFile_.getByteString(index);
  }

  public static final int OUTPUT_FILE_FIELD_NUMBER = 5;
  private com.google.protobuf.LazyStringList outputFile_;
  /**
   * <code>repeated string output_file = 5;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getOutputFileList() {
    return outputFile_;
  }
  /**
   * <code>repeated string output_file = 5;</code>
   */
  public int getOutputFileCount() {
    return outputFile_.size();
  }
  /**
   * <code>repeated string output_file = 5;</code>
   */
  public java.lang.String getOutputFile(int index) {
    return outputFile_.get(index);
  }
  /**
   * <code>repeated string output_file = 5;</code>
   */
  public com.google.protobuf.ByteString
      getOutputFileBytes(int index) {
    return outputFile_.getByteString(index);
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    for (int i = 0; i < getVariableCount(); i++) {
      if (!getVariable(i).isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
    }
    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < argument_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, argument_.getRaw(i));
    }
    for (int i = 0; i < variable_.size(); i++) {
      output.writeMessage(2, variable_.get(i));
    }
    for (int i = 0; i < inputFile_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, inputFile_.getRaw(i));
    }
    for (int i = 0; i < outputFile_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputFile_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < argument_.size(); i++) {
        dataSize += computeStringSizeNoTag(argument_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getArgumentList().size();
    }
    for (int i = 0; i < variable_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, variable_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < inputFile_.size(); i++) {
        dataSize += computeStringSizeNoTag(inputFile_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getInputFileList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < outputFile_.size(); i++) {
        dataSize += computeStringSizeNoTag(outputFile_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getOutputFileList().size();
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.google.devtools.build.lib.actions.extra.SpawnInfo)) {
      return super.equals(obj);
    }
    com.google.devtools.build.lib.actions.extra.SpawnInfo other = (com.google.devtools.build.lib.actions.extra.SpawnInfo) obj;

    boolean result = true;
    result = result && getArgumentList()
        .equals(other.getArgumentList());
    result = result && getVariableList()
        .equals(other.getVariableList());
    result = result && getInputFileList()
        .equals(other.getInputFileList());
    result = result && getOutputFileList()
        .equals(other.getOutputFileList());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptorForType().hashCode();
    if (getArgumentCount() > 0) {
      hash = (37 * hash) + ARGUMENT_FIELD_NUMBER;
      hash = (53 * hash) + getArgumentList().hashCode();
    }
    if (getVariableCount() > 0) {
      hash = (37 * hash) + VARIABLE_FIELD_NUMBER;
      hash = (53 * hash) + getVariableList().hashCode();
    }
    if (getInputFileCount() > 0) {
      hash = (37 * hash) + INPUT_FILE_FIELD_NUMBER;
      hash = (53 * hash) + getInputFileList().hashCode();
    }
    if (getOutputFileCount() > 0) {
      hash = (37 * hash) + OUTPUT_FILE_FIELD_NUMBER;
      hash = (53 * hash) + getOutputFileList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.devtools.build.lib.actions.extra.SpawnInfo parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.devtools.build.lib.actions.extra.SpawnInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * <pre>
   * Provides access to data that is specific to spawn actions.
   * Usually provided by actions using the "Spawn" &amp; "Genrule" Mnemonics.
   * </pre>
   *
   * Protobuf type {@code blaze.SpawnInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:blaze.SpawnInfo)
      com.google.devtools.build.lib.actions.extra.SpawnInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.actions.extra.ExtraActionsBase.internal_static_blaze_SpawnInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.actions.extra.ExtraActionsBase.internal_static_blaze_SpawnInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.actions.extra.SpawnInfo.class, com.google.devtools.build.lib.actions.extra.SpawnInfo.Builder.class);
    }

    // Construct using com.google.devtools.build.lib.actions.extra.SpawnInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getVariableFieldBuilder();
      }
    }
    public Builder clear() {
      super.clear();
      argument_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      if (variableBuilder_ == null) {
        variable_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        variableBuilder_.clear();
      }
      inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      outputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.devtools.build.lib.actions.extra.ExtraActionsBase.internal_static_blaze_SpawnInfo_descriptor;
    }

    public com.google.devtools.build.lib.actions.extra.SpawnInfo getDefaultInstanceForType() {
      return com.google.devtools.build.lib.actions.extra.SpawnInfo.getDefaultInstance();
    }

    public com.google.devtools.build.lib.actions.extra.SpawnInfo build() {
      com.google.devtools.build.lib.actions.extra.SpawnInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.devtools.build.lib.actions.extra.SpawnInfo buildPartial() {
      com.google.devtools.build.lib.actions.extra.SpawnInfo result = new com.google.devtools.build.lib.actions.extra.SpawnInfo(this);
      int from_bitField0_ = bitField0_;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        argument_ = argument_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.argument_ = argument_;
      if (variableBuilder_ == null) {
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          variable_ = java.util.Collections.unmodifiableList(variable_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.variable_ = variable_;
      } else {
        result.variable_ = variableBuilder_.build();
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        inputFile_ = inputFile_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.inputFile_ = inputFile_;
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        outputFile_ = outputFile_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.outputFile_ = outputFile_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.devtools.build.lib.actions.extra.SpawnInfo) {
        return mergeFrom((com.google.devtools.build.lib.actions.extra.SpawnInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.devtools.build.lib.actions.extra.SpawnInfo other) {
      if (other == com.google.devtools.build.lib.actions.extra.SpawnInfo.getDefaultInstance()) return this;
      if (!other.argument_.isEmpty()) {
        if (argument_.isEmpty()) {
          argument_ = other.argument_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureArgumentIsMutable();
          argument_.addAll(other.argument_);
        }
        onChanged();
      }
      if (variableBuilder_ == null) {
        if (!other.variable_.isEmpty()) {
          if (variable_.isEmpty()) {
            variable_ = other.variable_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureVariableIsMutable();
            variable_.addAll(other.variable_);
          }
          onChanged();
        }
      } else {
        if (!other.variable_.isEmpty()) {
          if (variableBuilder_.isEmpty()) {
            variableBuilder_.dispose();
            variableBuilder_ = null;
            variable_ = other.variable_;
            bitField0_ = (bitField0_ & ~0x00000002);
            variableBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getVariableFieldBuilder() : null;
          } else {
            variableBuilder_.addAllMessages(other.variable_);
          }
        }
      }
      if (!other.inputFile_.isEmpty()) {
        if (inputFile_.isEmpty()) {
          inputFile_ = other.inputFile_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureInputFileIsMutable();
          inputFile_.addAll(other.inputFile_);
        }
        onChanged();
      }
      if (!other.outputFile_.isEmpty()) {
        if (outputFile_.isEmpty()) {
          outputFile_ = other.outputFile_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureOutputFileIsMutable();
          outputFile_.addAll(other.outputFile_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      for (int i = 0; i < getVariableCount(); i++) {
        if (!getVariable(i).isInitialized()) {
          return false;
        }
      }
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.devtools.build.lib.actions.extra.SpawnInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.devtools.build.lib.actions.extra.SpawnInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.LazyStringList argument_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureArgumentIsMutable() {
      if (!((bitField0_ & 0x00000001) == 0x00000001)) {
        argument_ = new com.google.protobuf.LazyStringArrayList(argument_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getArgumentList() {
      return argument_.getUnmodifiableView();
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public int getArgumentCount() {
      return argument_.size();
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public java.lang.String getArgument(int index) {
      return argument_.get(index);
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public com.google.protobuf.ByteString
        getArgumentBytes(int index) {
      return argument_.getByteString(index);
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public Builder setArgument(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureArgumentIsMutable();
      argument_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public Builder addArgument(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureArgumentIsMutable();
      argument_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public Builder addAllArgument(
        java.lang.Iterable<java.lang.String> values) {
      ensureArgumentIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, argument_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public Builder clearArgument() {
      argument_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string argument = 1;</code>
     */
    public Builder addArgumentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureArgumentIsMutable();
      argument_.add(value);
      onChanged();
      return this;
    }

    private java.util.List<com.google.devtools.build.lib.actions.extra.EnvironmentVariable> variable_ =
      java.util.Collections.emptyList();
    private void ensureVariableIsMutable() {
      if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        variable_ = new java.util.ArrayList<com.google.devtools.build.lib.actions.extra.EnvironmentVariable>(variable_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.devtools.build.lib.actions.extra.EnvironmentVariable, com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder, com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder> variableBuilder_;

    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public java.util.List<com.google.devtools.build.lib.actions.extra.EnvironmentVariable> getVariableList() {
      if (variableBuilder_ == null) {
        return java.util.Collections.unmodifiableList(variable_);
      } else {
        return variableBuilder_.getMessageList();
      }
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public int getVariableCount() {
      if (variableBuilder_ == null) {
        return variable_.size();
      } else {
        return variableBuilder_.getCount();
      }
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public com.google.devtools.build.lib.actions.extra.EnvironmentVariable getVariable(int index) {
      if (variableBuilder_ == null) {
        return variable_.get(index);
      } else {
        return variableBuilder_.getMessage(index);
      }
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder setVariable(
        int index, com.google.devtools.build.lib.actions.extra.EnvironmentVariable value) {
      if (variableBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureVariableIsMutable();
        variable_.set(index, value);
        onChanged();
      } else {
        variableBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder setVariable(
        int index, com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder builderForValue) {
      if (variableBuilder_ == null) {
        ensureVariableIsMutable();
        variable_.set(index, builderForValue.build());
        onChanged();
      } else {
        variableBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder addVariable(com.google.devtools.build.lib.actions.extra.EnvironmentVariable value) {
      if (variableBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureVariableIsMutable();
        variable_.add(value);
        onChanged();
      } else {
        variableBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder addVariable(
        int index, com.google.devtools.build.lib.actions.extra.EnvironmentVariable value) {
      if (variableBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureVariableIsMutable();
        variable_.add(index, value);
        onChanged();
      } else {
        variableBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder addVariable(
        com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder builderForValue) {
      if (variableBuilder_ == null) {
        ensureVariableIsMutable();
        variable_.add(builderForValue.build());
        onChanged();
      } else {
        variableBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder addVariable(
        int index, com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder builderForValue) {
      if (variableBuilder_ == null) {
        ensureVariableIsMutable();
        variable_.add(index, builderForValue.build());
        onChanged();
      } else {
        variableBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder addAllVariable(
        java.lang.Iterable<? extends com.google.devtools.build.lib.actions.extra.EnvironmentVariable> values) {
      if (variableBuilder_ == null) {
        ensureVariableIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, variable_);
        onChanged();
      } else {
        variableBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder clearVariable() {
      if (variableBuilder_ == null) {
        variable_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        variableBuilder_.clear();
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public Builder removeVariable(int index) {
      if (variableBuilder_ == null) {
        ensureVariableIsMutable();
        variable_.remove(index);
        onChanged();
      } else {
        variableBuilder_.remove(index);
      }
      return this;
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder getVariableBuilder(
        int index) {
      return getVariableFieldBuilder().getBuilder(index);
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder getVariableOrBuilder(
        int index) {
      if (variableBuilder_ == null) {
        return variable_.get(index);  } else {
        return variableBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public java.util.List<? extends com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder> 
         getVariableOrBuilderList() {
      if (variableBuilder_ != null) {
        return variableBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(variable_);
      }
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder addVariableBuilder() {
      return getVariableFieldBuilder().addBuilder(
          com.google.devtools.build.lib.actions.extra.EnvironmentVariable.getDefaultInstance());
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder addVariableBuilder(
        int index) {
      return getVariableFieldBuilder().addBuilder(
          index, com.google.devtools.build.lib.actions.extra.EnvironmentVariable.getDefaultInstance());
    }
    /**
     * <pre>
     * An *unordered* list of environment variables and their values.
     * </pre>
     *
     * <code>repeated .blaze.EnvironmentVariable variable = 2;</code>
     */
    public java.util.List<com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder> 
         getVariableBuilderList() {
      return getVariableFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.google.devtools.build.lib.actions.extra.EnvironmentVariable, com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder, com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder> 
        getVariableFieldBuilder() {
      if (variableBuilder_ == null) {
        variableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.devtools.build.lib.actions.extra.EnvironmentVariable, com.google.devtools.build.lib.actions.extra.EnvironmentVariable.Builder, com.google.devtools.build.lib.actions.extra.EnvironmentVariableOrBuilder>(
                variable_,
                ((bitField0_ & 0x00000002) == 0x00000002),
                getParentForChildren(),
                isClean());
        variable_ = null;
      }
      return variableBuilder_;
    }

    private com.google.protobuf.LazyStringList inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureInputFileIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        inputFile_ = new com.google.protobuf.LazyStringArrayList(inputFile_);
        bitField0_ |= 0x00000004;
       }
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getInputFileList() {
      return inputFile_.getUnmodifiableView();
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public int getInputFileCount() {
      return inputFile_.size();
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public java.lang.String getInputFile(int index) {
      return inputFile_.get(index);
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public com.google.protobuf.ByteString
        getInputFileBytes(int index) {
      return inputFile_.getByteString(index);
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public Builder setInputFile(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputFileIsMutable();
      inputFile_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public Builder addInputFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputFileIsMutable();
      inputFile_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public Builder addAllInputFile(
        java.lang.Iterable<java.lang.String> values) {
      ensureInputFileIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, inputFile_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public Builder clearInputFile() {
      inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string input_file = 4;</code>
     */
    public Builder addInputFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputFileIsMutable();
      inputFile_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList outputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureOutputFileIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        outputFile_ = new com.google.protobuf.LazyStringArrayList(outputFile_);
        bitField0_ |= 0x00000008;
       }
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getOutputFileList() {
      return outputFile_.getUnmodifiableView();
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public int getOutputFileCount() {
      return outputFile_.size();
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public java.lang.String getOutputFile(int index) {
      return outputFile_.get(index);
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public com.google.protobuf.ByteString
        getOutputFileBytes(int index) {
      return outputFile_.getByteString(index);
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public Builder setOutputFile(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureOutputFileIsMutable();
      outputFile_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public Builder addOutputFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureOutputFileIsMutable();
      outputFile_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public Builder addAllOutputFile(
        java.lang.Iterable<java.lang.String> values) {
      ensureOutputFileIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, outputFile_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public Builder clearOutputFile() {
      outputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string output_file = 5;</code>
     */
    public Builder addOutputFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureOutputFileIsMutable();
      outputFile_.add(value);
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:blaze.SpawnInfo)
  }

  // @@protoc_insertion_point(class_scope:blaze.SpawnInfo)
  private static final com.google.devtools.build.lib.actions.extra.SpawnInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.devtools.build.lib.actions.extra.SpawnInfo();
  }

  public static com.google.devtools.build.lib.actions.extra.SpawnInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser<SpawnInfo>
      PARSER = new com.google.protobuf.AbstractParser<SpawnInfo>() {
    public SpawnInfo parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return new SpawnInfo(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<SpawnInfo> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<SpawnInfo> getParserForType() {
    return PARSER;
  }

  public com.google.devtools.build.lib.actions.extra.SpawnInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

  public static final int SPAWN_INFO_FIELD_NUMBER = 1003;
  /**
   * <code>extend .blaze.ExtraActionInfo { ... }</code>
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.devtools.build.lib.actions.extra.ExtraActionInfo,
      com.google.devtools.build.lib.actions.extra.SpawnInfo> spawnInfo = com.google.protobuf.GeneratedMessage
          .newMessageScopedGeneratedExtension(
        com.google.devtools.build.lib.actions.extra.SpawnInfo.getDefaultInstance(),
        0,
        com.google.devtools.build.lib.actions.extra.SpawnInfo.class,
        com.google.devtools.build.lib.actions.extra.SpawnInfo.getDefaultInstance());
}

