// 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 C++ link  actions.
 * Usually provided by actions using the "CppLink" Mnemonic.
 * </pre>
 *
 * Protobuf type {@code blaze.CppLinkInfo}
 */
public  final class CppLinkInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:blaze.CppLinkInfo)
    CppLinkInfoOrBuilder {
  // Use CppLinkInfo.newBuilder() to construct.
  private CppLinkInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CppLinkInfo() {
    inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    outputFile_ = "";
    interfaceOutputFile_ = "";
    linkTargetType_ = "";
    linkStaticness_ = "";
    linkStamp_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    buildInfoHeaderArtifact_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    linkOpt_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CppLinkInfo(
      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)) {
              inputFile_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            inputFile_.add(bs);
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            outputFile_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            interfaceOutputFile_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            linkTargetType_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            linkStaticness_ = bs;
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              linkStamp_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000020;
            }
            linkStamp_.add(bs);
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
              buildInfoHeaderArtifact_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000040;
            }
            buildInfoHeaderArtifact_.add(bs);
            break;
          }
          case 66: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
              linkOpt_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000080;
            }
            linkOpt_.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)) {
        inputFile_ = inputFile_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        linkStamp_ = linkStamp_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
        buildInfoHeaderArtifact_ = buildInfoHeaderArtifact_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
        linkOpt_ = linkOpt_.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_CppLinkInfo_descriptor;
  }

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

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

  public static final int OUTPUT_FILE_FIELD_NUMBER = 2;
  private volatile java.lang.Object outputFile_;
  /**
   * <code>optional string output_file = 2;</code>
   */
  public boolean hasOutputFile() {
    return ((bitField0_ & 0x00000001) == 0x00000001);
  }
  /**
   * <code>optional string output_file = 2;</code>
   */
  public java.lang.String getOutputFile() {
    java.lang.Object ref = outputFile_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        outputFile_ = s;
      }
      return s;
    }
  }
  /**
   * <code>optional string output_file = 2;</code>
   */
  public com.google.protobuf.ByteString
      getOutputFileBytes() {
    java.lang.Object ref = outputFile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      outputFile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INTERFACE_OUTPUT_FILE_FIELD_NUMBER = 3;
  private volatile java.lang.Object interfaceOutputFile_;
  /**
   * <code>optional string interface_output_file = 3;</code>
   */
  public boolean hasInterfaceOutputFile() {
    return ((bitField0_ & 0x00000002) == 0x00000002);
  }
  /**
   * <code>optional string interface_output_file = 3;</code>
   */
  public java.lang.String getInterfaceOutputFile() {
    java.lang.Object ref = interfaceOutputFile_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        interfaceOutputFile_ = s;
      }
      return s;
    }
  }
  /**
   * <code>optional string interface_output_file = 3;</code>
   */
  public com.google.protobuf.ByteString
      getInterfaceOutputFileBytes() {
    java.lang.Object ref = interfaceOutputFile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      interfaceOutputFile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LINK_TARGET_TYPE_FIELD_NUMBER = 4;
  private volatile java.lang.Object linkTargetType_;
  /**
   * <code>optional string link_target_type = 4;</code>
   */
  public boolean hasLinkTargetType() {
    return ((bitField0_ & 0x00000004) == 0x00000004);
  }
  /**
   * <code>optional string link_target_type = 4;</code>
   */
  public java.lang.String getLinkTargetType() {
    java.lang.Object ref = linkTargetType_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        linkTargetType_ = s;
      }
      return s;
    }
  }
  /**
   * <code>optional string link_target_type = 4;</code>
   */
  public com.google.protobuf.ByteString
      getLinkTargetTypeBytes() {
    java.lang.Object ref = linkTargetType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      linkTargetType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LINK_STATICNESS_FIELD_NUMBER = 5;
  private volatile java.lang.Object linkStaticness_;
  /**
   * <code>optional string link_staticness = 5;</code>
   */
  public boolean hasLinkStaticness() {
    return ((bitField0_ & 0x00000008) == 0x00000008);
  }
  /**
   * <code>optional string link_staticness = 5;</code>
   */
  public java.lang.String getLinkStaticness() {
    java.lang.Object ref = linkStaticness_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        linkStaticness_ = s;
      }
      return s;
    }
  }
  /**
   * <code>optional string link_staticness = 5;</code>
   */
  public com.google.protobuf.ByteString
      getLinkStaticnessBytes() {
    java.lang.Object ref = linkStaticness_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      linkStaticness_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LINK_STAMP_FIELD_NUMBER = 6;
  private com.google.protobuf.LazyStringList linkStamp_;
  /**
   * <code>repeated string link_stamp = 6;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getLinkStampList() {
    return linkStamp_;
  }
  /**
   * <code>repeated string link_stamp = 6;</code>
   */
  public int getLinkStampCount() {
    return linkStamp_.size();
  }
  /**
   * <code>repeated string link_stamp = 6;</code>
   */
  public java.lang.String getLinkStamp(int index) {
    return linkStamp_.get(index);
  }
  /**
   * <code>repeated string link_stamp = 6;</code>
   */
  public com.google.protobuf.ByteString
      getLinkStampBytes(int index) {
    return linkStamp_.getByteString(index);
  }

  public static final int BUILD_INFO_HEADER_ARTIFACT_FIELD_NUMBER = 7;
  private com.google.protobuf.LazyStringList buildInfoHeaderArtifact_;
  /**
   * <code>repeated string build_info_header_artifact = 7;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getBuildInfoHeaderArtifactList() {
    return buildInfoHeaderArtifact_;
  }
  /**
   * <code>repeated string build_info_header_artifact = 7;</code>
   */
  public int getBuildInfoHeaderArtifactCount() {
    return buildInfoHeaderArtifact_.size();
  }
  /**
   * <code>repeated string build_info_header_artifact = 7;</code>
   */
  public java.lang.String getBuildInfoHeaderArtifact(int index) {
    return buildInfoHeaderArtifact_.get(index);
  }
  /**
   * <code>repeated string build_info_header_artifact = 7;</code>
   */
  public com.google.protobuf.ByteString
      getBuildInfoHeaderArtifactBytes(int index) {
    return buildInfoHeaderArtifact_.getByteString(index);
  }

  public static final int LINK_OPT_FIELD_NUMBER = 8;
  private com.google.protobuf.LazyStringList linkOpt_;
  /**
   * <pre>
   * The list of command line options used for running the linking tool.
   * </pre>
   *
   * <code>repeated string link_opt = 8;</code>
   */
  public com.google.protobuf.ProtocolStringList
      getLinkOptList() {
    return linkOpt_;
  }
  /**
   * <pre>
   * The list of command line options used for running the linking tool.
   * </pre>
   *
   * <code>repeated string link_opt = 8;</code>
   */
  public int getLinkOptCount() {
    return linkOpt_.size();
  }
  /**
   * <pre>
   * The list of command line options used for running the linking tool.
   * </pre>
   *
   * <code>repeated string link_opt = 8;</code>
   */
  public java.lang.String getLinkOpt(int index) {
    return linkOpt_.get(index);
  }
  /**
   * <pre>
   * The list of command line options used for running the linking tool.
   * </pre>
   *
   * <code>repeated string link_opt = 8;</code>
   */
  public com.google.protobuf.ByteString
      getLinkOptBytes(int index) {
    return linkOpt_.getByteString(index);
  }

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

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < inputFile_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputFile_.getRaw(i));
    }
    if (((bitField0_ & 0x00000001) == 0x00000001)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputFile_);
    }
    if (((bitField0_ & 0x00000002) == 0x00000002)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, interfaceOutputFile_);
    }
    if (((bitField0_ & 0x00000004) == 0x00000004)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, linkTargetType_);
    }
    if (((bitField0_ & 0x00000008) == 0x00000008)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, linkStaticness_);
    }
    for (int i = 0; i < linkStamp_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, linkStamp_.getRaw(i));
    }
    for (int i = 0; i < buildInfoHeaderArtifact_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, buildInfoHeaderArtifact_.getRaw(i));
    }
    for (int i = 0; i < linkOpt_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, linkOpt_.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 < inputFile_.size(); i++) {
        dataSize += computeStringSizeNoTag(inputFile_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getInputFileList().size();
    }
    if (((bitField0_ & 0x00000001) == 0x00000001)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputFile_);
    }
    if (((bitField0_ & 0x00000002) == 0x00000002)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, interfaceOutputFile_);
    }
    if (((bitField0_ & 0x00000004) == 0x00000004)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, linkTargetType_);
    }
    if (((bitField0_ & 0x00000008) == 0x00000008)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, linkStaticness_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < linkStamp_.size(); i++) {
        dataSize += computeStringSizeNoTag(linkStamp_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getLinkStampList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < buildInfoHeaderArtifact_.size(); i++) {
        dataSize += computeStringSizeNoTag(buildInfoHeaderArtifact_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getBuildInfoHeaderArtifactList().size();
    }
    {
      int dataSize = 0;
      for (int i = 0; i < linkOpt_.size(); i++) {
        dataSize += computeStringSizeNoTag(linkOpt_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getLinkOptList().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.CppLinkInfo)) {
      return super.equals(obj);
    }
    com.google.devtools.build.lib.actions.extra.CppLinkInfo other = (com.google.devtools.build.lib.actions.extra.CppLinkInfo) obj;

    boolean result = true;
    result = result && getInputFileList()
        .equals(other.getInputFileList());
    result = result && (hasOutputFile() == other.hasOutputFile());
    if (hasOutputFile()) {
      result = result && getOutputFile()
          .equals(other.getOutputFile());
    }
    result = result && (hasInterfaceOutputFile() == other.hasInterfaceOutputFile());
    if (hasInterfaceOutputFile()) {
      result = result && getInterfaceOutputFile()
          .equals(other.getInterfaceOutputFile());
    }
    result = result && (hasLinkTargetType() == other.hasLinkTargetType());
    if (hasLinkTargetType()) {
      result = result && getLinkTargetType()
          .equals(other.getLinkTargetType());
    }
    result = result && (hasLinkStaticness() == other.hasLinkStaticness());
    if (hasLinkStaticness()) {
      result = result && getLinkStaticness()
          .equals(other.getLinkStaticness());
    }
    result = result && getLinkStampList()
        .equals(other.getLinkStampList());
    result = result && getBuildInfoHeaderArtifactList()
        .equals(other.getBuildInfoHeaderArtifactList());
    result = result && getLinkOptList()
        .equals(other.getLinkOptList());
    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 (getInputFileCount() > 0) {
      hash = (37 * hash) + INPUT_FILE_FIELD_NUMBER;
      hash = (53 * hash) + getInputFileList().hashCode();
    }
    if (hasOutputFile()) {
      hash = (37 * hash) + OUTPUT_FILE_FIELD_NUMBER;
      hash = (53 * hash) + getOutputFile().hashCode();
    }
    if (hasInterfaceOutputFile()) {
      hash = (37 * hash) + INTERFACE_OUTPUT_FILE_FIELD_NUMBER;
      hash = (53 * hash) + getInterfaceOutputFile().hashCode();
    }
    if (hasLinkTargetType()) {
      hash = (37 * hash) + LINK_TARGET_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getLinkTargetType().hashCode();
    }
    if (hasLinkStaticness()) {
      hash = (37 * hash) + LINK_STATICNESS_FIELD_NUMBER;
      hash = (53 * hash) + getLinkStaticness().hashCode();
    }
    if (getLinkStampCount() > 0) {
      hash = (37 * hash) + LINK_STAMP_FIELD_NUMBER;
      hash = (53 * hash) + getLinkStampList().hashCode();
    }
    if (getBuildInfoHeaderArtifactCount() > 0) {
      hash = (37 * hash) + BUILD_INFO_HEADER_ARTIFACT_FIELD_NUMBER;
      hash = (53 * hash) + getBuildInfoHeaderArtifactList().hashCode();
    }
    if (getLinkOptCount() > 0) {
      hash = (37 * hash) + LINK_OPT_FIELD_NUMBER;
      hash = (53 * hash) + getLinkOptList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.devtools.build.lib.actions.extra.CppLinkInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.build.lib.actions.extra.CppLinkInfo 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.CppLinkInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.build.lib.actions.extra.CppLinkInfo 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.CppLinkInfo 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.CppLinkInfo 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.CppLinkInfo 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.CppLinkInfo 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.CppLinkInfo 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.CppLinkInfo 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.CppLinkInfo 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 C++ link  actions.
   * Usually provided by actions using the "CppLink" Mnemonic.
   * </pre>
   *
   * Protobuf type {@code blaze.CppLinkInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:blaze.CppLinkInfo)
      com.google.devtools.build.lib.actions.extra.CppLinkInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.actions.extra.ExtraActionsBase.internal_static_blaze_CppLinkInfo_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      outputFile_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      interfaceOutputFile_ = "";
      bitField0_ = (bitField0_ & ~0x00000004);
      linkTargetType_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      linkStaticness_ = "";
      bitField0_ = (bitField0_ & ~0x00000010);
      linkStamp_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      buildInfoHeaderArtifact_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000040);
      linkOpt_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000080);
      return this;
    }

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

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

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

    public com.google.devtools.build.lib.actions.extra.CppLinkInfo buildPartial() {
      com.google.devtools.build.lib.actions.extra.CppLinkInfo result = new com.google.devtools.build.lib.actions.extra.CppLinkInfo(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        inputFile_ = inputFile_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.inputFile_ = inputFile_;
      if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
        to_bitField0_ |= 0x00000001;
      }
      result.outputFile_ = outputFile_;
      if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
        to_bitField0_ |= 0x00000002;
      }
      result.interfaceOutputFile_ = interfaceOutputFile_;
      if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
        to_bitField0_ |= 0x00000004;
      }
      result.linkTargetType_ = linkTargetType_;
      if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
        to_bitField0_ |= 0x00000008;
      }
      result.linkStaticness_ = linkStaticness_;
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        linkStamp_ = linkStamp_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000020);
      }
      result.linkStamp_ = linkStamp_;
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        buildInfoHeaderArtifact_ = buildInfoHeaderArtifact_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000040);
      }
      result.buildInfoHeaderArtifact_ = buildInfoHeaderArtifact_;
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        linkOpt_ = linkOpt_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000080);
      }
      result.linkOpt_ = linkOpt_;
      result.bitField0_ = to_bitField0_;
      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.CppLinkInfo) {
        return mergeFrom((com.google.devtools.build.lib.actions.extra.CppLinkInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.devtools.build.lib.actions.extra.CppLinkInfo other) {
      if (other == com.google.devtools.build.lib.actions.extra.CppLinkInfo.getDefaultInstance()) return this;
      if (!other.inputFile_.isEmpty()) {
        if (inputFile_.isEmpty()) {
          inputFile_ = other.inputFile_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureInputFileIsMutable();
          inputFile_.addAll(other.inputFile_);
        }
        onChanged();
      }
      if (other.hasOutputFile()) {
        bitField0_ |= 0x00000002;
        outputFile_ = other.outputFile_;
        onChanged();
      }
      if (other.hasInterfaceOutputFile()) {
        bitField0_ |= 0x00000004;
        interfaceOutputFile_ = other.interfaceOutputFile_;
        onChanged();
      }
      if (other.hasLinkTargetType()) {
        bitField0_ |= 0x00000008;
        linkTargetType_ = other.linkTargetType_;
        onChanged();
      }
      if (other.hasLinkStaticness()) {
        bitField0_ |= 0x00000010;
        linkStaticness_ = other.linkStaticness_;
        onChanged();
      }
      if (!other.linkStamp_.isEmpty()) {
        if (linkStamp_.isEmpty()) {
          linkStamp_ = other.linkStamp_;
          bitField0_ = (bitField0_ & ~0x00000020);
        } else {
          ensureLinkStampIsMutable();
          linkStamp_.addAll(other.linkStamp_);
        }
        onChanged();
      }
      if (!other.buildInfoHeaderArtifact_.isEmpty()) {
        if (buildInfoHeaderArtifact_.isEmpty()) {
          buildInfoHeaderArtifact_ = other.buildInfoHeaderArtifact_;
          bitField0_ = (bitField0_ & ~0x00000040);
        } else {
          ensureBuildInfoHeaderArtifactIsMutable();
          buildInfoHeaderArtifact_.addAll(other.buildInfoHeaderArtifact_);
        }
        onChanged();
      }
      if (!other.linkOpt_.isEmpty()) {
        if (linkOpt_.isEmpty()) {
          linkOpt_ = other.linkOpt_;
          bitField0_ = (bitField0_ & ~0x00000080);
        } else {
          ensureLinkOptIsMutable();
          linkOpt_.addAll(other.linkOpt_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      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.CppLinkInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.devtools.build.lib.actions.extra.CppLinkInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.LazyStringList inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureInputFileIsMutable() {
      if (!((bitField0_ & 0x00000001) == 0x00000001)) {
        inputFile_ = new com.google.protobuf.LazyStringArrayList(inputFile_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated string input_file = 1;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getInputFileList() {
      return inputFile_.getUnmodifiableView();
    }
    /**
     * <code>repeated string input_file = 1;</code>
     */
    public int getInputFileCount() {
      return inputFile_.size();
    }
    /**
     * <code>repeated string input_file = 1;</code>
     */
    public java.lang.String getInputFile(int index) {
      return inputFile_.get(index);
    }
    /**
     * <code>repeated string input_file = 1;</code>
     */
    public com.google.protobuf.ByteString
        getInputFileBytes(int index) {
      return inputFile_.getByteString(index);
    }
    /**
     * <code>repeated string input_file = 1;</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 = 1;</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 = 1;</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 = 1;</code>
     */
    public Builder clearInputFile() {
      inputFile_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string input_file = 1;</code>
     */
    public Builder addInputFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureInputFileIsMutable();
      inputFile_.add(value);
      onChanged();
      return this;
    }

    private java.lang.Object outputFile_ = "";
    /**
     * <code>optional string output_file = 2;</code>
     */
    public boolean hasOutputFile() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional string output_file = 2;</code>
     */
    public java.lang.String getOutputFile() {
      java.lang.Object ref = outputFile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          outputFile_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string output_file = 2;</code>
     */
    public com.google.protobuf.ByteString
        getOutputFileBytes() {
      java.lang.Object ref = outputFile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        outputFile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string output_file = 2;</code>
     */
    public Builder setOutputFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      outputFile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string output_file = 2;</code>
     */
    public Builder clearOutputFile() {
      bitField0_ = (bitField0_ & ~0x00000002);
      outputFile_ = getDefaultInstance().getOutputFile();
      onChanged();
      return this;
    }
    /**
     * <code>optional string output_file = 2;</code>
     */
    public Builder setOutputFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      outputFile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object interfaceOutputFile_ = "";
    /**
     * <code>optional string interface_output_file = 3;</code>
     */
    public boolean hasInterfaceOutputFile() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional string interface_output_file = 3;</code>
     */
    public java.lang.String getInterfaceOutputFile() {
      java.lang.Object ref = interfaceOutputFile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          interfaceOutputFile_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string interface_output_file = 3;</code>
     */
    public com.google.protobuf.ByteString
        getInterfaceOutputFileBytes() {
      java.lang.Object ref = interfaceOutputFile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        interfaceOutputFile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string interface_output_file = 3;</code>
     */
    public Builder setInterfaceOutputFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      interfaceOutputFile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string interface_output_file = 3;</code>
     */
    public Builder clearInterfaceOutputFile() {
      bitField0_ = (bitField0_ & ~0x00000004);
      interfaceOutputFile_ = getDefaultInstance().getInterfaceOutputFile();
      onChanged();
      return this;
    }
    /**
     * <code>optional string interface_output_file = 3;</code>
     */
    public Builder setInterfaceOutputFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
      interfaceOutputFile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object linkTargetType_ = "";
    /**
     * <code>optional string link_target_type = 4;</code>
     */
    public boolean hasLinkTargetType() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>optional string link_target_type = 4;</code>
     */
    public java.lang.String getLinkTargetType() {
      java.lang.Object ref = linkTargetType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          linkTargetType_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string link_target_type = 4;</code>
     */
    public com.google.protobuf.ByteString
        getLinkTargetTypeBytes() {
      java.lang.Object ref = linkTargetType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        linkTargetType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string link_target_type = 4;</code>
     */
    public Builder setLinkTargetType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      linkTargetType_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string link_target_type = 4;</code>
     */
    public Builder clearLinkTargetType() {
      bitField0_ = (bitField0_ & ~0x00000008);
      linkTargetType_ = getDefaultInstance().getLinkTargetType();
      onChanged();
      return this;
    }
    /**
     * <code>optional string link_target_type = 4;</code>
     */
    public Builder setLinkTargetTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      linkTargetType_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object linkStaticness_ = "";
    /**
     * <code>optional string link_staticness = 5;</code>
     */
    public boolean hasLinkStaticness() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * <code>optional string link_staticness = 5;</code>
     */
    public java.lang.String getLinkStaticness() {
      java.lang.Object ref = linkStaticness_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          linkStaticness_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>optional string link_staticness = 5;</code>
     */
    public com.google.protobuf.ByteString
        getLinkStaticnessBytes() {
      java.lang.Object ref = linkStaticness_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        linkStaticness_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>optional string link_staticness = 5;</code>
     */
    public Builder setLinkStaticness(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      linkStaticness_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>optional string link_staticness = 5;</code>
     */
    public Builder clearLinkStaticness() {
      bitField0_ = (bitField0_ & ~0x00000010);
      linkStaticness_ = getDefaultInstance().getLinkStaticness();
      onChanged();
      return this;
    }
    /**
     * <code>optional string link_staticness = 5;</code>
     */
    public Builder setLinkStaticnessBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      linkStaticness_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList linkStamp_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureLinkStampIsMutable() {
      if (!((bitField0_ & 0x00000020) == 0x00000020)) {
        linkStamp_ = new com.google.protobuf.LazyStringArrayList(linkStamp_);
        bitField0_ |= 0x00000020;
       }
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getLinkStampList() {
      return linkStamp_.getUnmodifiableView();
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public int getLinkStampCount() {
      return linkStamp_.size();
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public java.lang.String getLinkStamp(int index) {
      return linkStamp_.get(index);
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public com.google.protobuf.ByteString
        getLinkStampBytes(int index) {
      return linkStamp_.getByteString(index);
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public Builder setLinkStamp(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureLinkStampIsMutable();
      linkStamp_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public Builder addLinkStamp(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureLinkStampIsMutable();
      linkStamp_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public Builder addAllLinkStamp(
        java.lang.Iterable<java.lang.String> values) {
      ensureLinkStampIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, linkStamp_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public Builder clearLinkStamp() {
      linkStamp_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string link_stamp = 6;</code>
     */
    public Builder addLinkStampBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureLinkStampIsMutable();
      linkStamp_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList buildInfoHeaderArtifact_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureBuildInfoHeaderArtifactIsMutable() {
      if (!((bitField0_ & 0x00000040) == 0x00000040)) {
        buildInfoHeaderArtifact_ = new com.google.protobuf.LazyStringArrayList(buildInfoHeaderArtifact_);
        bitField0_ |= 0x00000040;
       }
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getBuildInfoHeaderArtifactList() {
      return buildInfoHeaderArtifact_.getUnmodifiableView();
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public int getBuildInfoHeaderArtifactCount() {
      return buildInfoHeaderArtifact_.size();
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public java.lang.String getBuildInfoHeaderArtifact(int index) {
      return buildInfoHeaderArtifact_.get(index);
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public com.google.protobuf.ByteString
        getBuildInfoHeaderArtifactBytes(int index) {
      return buildInfoHeaderArtifact_.getByteString(index);
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public Builder setBuildInfoHeaderArtifact(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureBuildInfoHeaderArtifactIsMutable();
      buildInfoHeaderArtifact_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public Builder addBuildInfoHeaderArtifact(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureBuildInfoHeaderArtifactIsMutable();
      buildInfoHeaderArtifact_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public Builder addAllBuildInfoHeaderArtifact(
        java.lang.Iterable<java.lang.String> values) {
      ensureBuildInfoHeaderArtifactIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, buildInfoHeaderArtifact_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public Builder clearBuildInfoHeaderArtifact() {
      buildInfoHeaderArtifact_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string build_info_header_artifact = 7;</code>
     */
    public Builder addBuildInfoHeaderArtifactBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureBuildInfoHeaderArtifactIsMutable();
      buildInfoHeaderArtifact_.add(value);
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList linkOpt_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureLinkOptIsMutable() {
      if (!((bitField0_ & 0x00000080) == 0x00000080)) {
        linkOpt_ = new com.google.protobuf.LazyStringArrayList(linkOpt_);
        bitField0_ |= 0x00000080;
       }
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getLinkOptList() {
      return linkOpt_.getUnmodifiableView();
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public int getLinkOptCount() {
      return linkOpt_.size();
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public java.lang.String getLinkOpt(int index) {
      return linkOpt_.get(index);
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public com.google.protobuf.ByteString
        getLinkOptBytes(int index) {
      return linkOpt_.getByteString(index);
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public Builder setLinkOpt(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureLinkOptIsMutable();
      linkOpt_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public Builder addLinkOpt(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureLinkOptIsMutable();
      linkOpt_.add(value);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public Builder addAllLinkOpt(
        java.lang.Iterable<java.lang.String> values) {
      ensureLinkOptIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, linkOpt_);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public Builder clearLinkOpt() {
      linkOpt_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000080);
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The list of command line options used for running the linking tool.
     * </pre>
     *
     * <code>repeated string link_opt = 8;</code>
     */
    public Builder addLinkOptBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureLinkOptIsMutable();
      linkOpt_.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.CppLinkInfo)
  }

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

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

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

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

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

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

  public static final int CPP_LINK_INFO_FIELD_NUMBER = 1002;
  /**
   * <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.CppLinkInfo> cppLinkInfo = com.google.protobuf.GeneratedMessage
          .newMessageScopedGeneratedExtension(
        com.google.devtools.build.lib.actions.extra.CppLinkInfo.getDefaultInstance(),
        0,
        com.google.devtools.build.lib.actions.extra.CppLinkInfo.class,
        com.google.devtools.build.lib.actions.extra.CppLinkInfo.getDefaultInstance());
}

