// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/main/proto/apk_manifest.proto

package com.google.devtools.build.lib.rules.android.apkmanifest;

public final class ExternalBuildApkManifest {
  private ExternalBuildApkManifest() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface ArtifactOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string exec_root_path = 1;
    /**
     * <code>optional string exec_root_path = 1;</code>
     *
     * <pre>
     * This path is relative to "bazel info execution_root"
     * </pre>
     */
    boolean hasExecRootPath();
    /**
     * <code>optional string exec_root_path = 1;</code>
     *
     * <pre>
     * This path is relative to "bazel info execution_root"
     * </pre>
     */
    java.lang.String getExecRootPath();
    /**
     * <code>optional string exec_root_path = 1;</code>
     *
     * <pre>
     * This path is relative to "bazel info execution_root"
     * </pre>
     */
    com.google.protobuf.ByteString
        getExecRootPathBytes();

    // optional bytes hash = 2;
    /**
     * <code>optional bytes hash = 2;</code>
     */
    boolean hasHash();
    /**
     * <code>optional bytes hash = 2;</code>
     */
    com.google.protobuf.ByteString getHash();
  }
  /**
   * Protobuf type {@code blaze.apk_manifest.Artifact}
   */
  public static final class Artifact extends
      com.google.protobuf.GeneratedMessage
      implements ArtifactOrBuilder {
    // Use Artifact.newBuilder() to construct.
    private Artifact(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Artifact(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Artifact defaultInstance;
    public static Artifact getDefaultInstance() {
      return defaultInstance;
    }

    public Artifact getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Artifact(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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: {
              bitField0_ |= 0x00000001;
              execRootPath_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              hash_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_Artifact_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_Artifact_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder.class);
    }

    public static com.google.protobuf.Parser<Artifact> PARSER =
        new com.google.protobuf.AbstractParser<Artifact>() {
      public Artifact parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Artifact(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional string exec_root_path = 1;
    public static final int EXEC_ROOT_PATH_FIELD_NUMBER = 1;
    private java.lang.Object execRootPath_;
    /**
     * <code>optional string exec_root_path = 1;</code>
     *
     * <pre>
     * This path is relative to "bazel info execution_root"
     * </pre>
     */
    public boolean hasExecRootPath() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional string exec_root_path = 1;</code>
     *
     * <pre>
     * This path is relative to "bazel info execution_root"
     * </pre>
     */
    public java.lang.String getExecRootPath() {
      java.lang.Object ref = execRootPath_;
      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()) {
          execRootPath_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string exec_root_path = 1;</code>
     *
     * <pre>
     * This path is relative to "bazel info execution_root"
     * </pre>
     */
    public com.google.protobuf.ByteString
        getExecRootPathBytes() {
      java.lang.Object ref = execRootPath_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        execRootPath_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional bytes hash = 2;
    public static final int HASH_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString hash_;
    /**
     * <code>optional bytes hash = 2;</code>
     */
    public boolean hasHash() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional bytes hash = 2;</code>
     */
    public com.google.protobuf.ByteString getHash() {
      return hash_;
    }

    private void initFields() {
      execRootPath_ = "";
      hash_ = com.google.protobuf.ByteString.EMPTY;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getExecRootPathBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, hash_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getExecRootPathBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, hash_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact 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.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact 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.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code blaze.apk_manifest.Artifact}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_Artifact_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_Artifact_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        execRootPath_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        hash_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_Artifact_descriptor;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getDefaultInstanceForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact build() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact buildPartial() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact result = new com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.execRootPath_ = execRootPath_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.hash_ = hash_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact) {
          return mergeFrom((com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact other) {
        if (other == com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance()) return this;
        if (other.hasExecRootPath()) {
          bitField0_ |= 0x00000001;
          execRootPath_ = other.execRootPath_;
          onChanged();
        }
        if (other.hasHash()) {
          setHash(other.getHash());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string exec_root_path = 1;
      private java.lang.Object execRootPath_ = "";
      /**
       * <code>optional string exec_root_path = 1;</code>
       *
       * <pre>
       * This path is relative to "bazel info execution_root"
       * </pre>
       */
      public boolean hasExecRootPath() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>optional string exec_root_path = 1;</code>
       *
       * <pre>
       * This path is relative to "bazel info execution_root"
       * </pre>
       */
      public java.lang.String getExecRootPath() {
        java.lang.Object ref = execRootPath_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          execRootPath_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string exec_root_path = 1;</code>
       *
       * <pre>
       * This path is relative to "bazel info execution_root"
       * </pre>
       */
      public com.google.protobuf.ByteString
          getExecRootPathBytes() {
        java.lang.Object ref = execRootPath_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          execRootPath_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string exec_root_path = 1;</code>
       *
       * <pre>
       * This path is relative to "bazel info execution_root"
       * </pre>
       */
      public Builder setExecRootPath(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        execRootPath_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string exec_root_path = 1;</code>
       *
       * <pre>
       * This path is relative to "bazel info execution_root"
       * </pre>
       */
      public Builder clearExecRootPath() {
        bitField0_ = (bitField0_ & ~0x00000001);
        execRootPath_ = getDefaultInstance().getExecRootPath();
        onChanged();
        return this;
      }
      /**
       * <code>optional string exec_root_path = 1;</code>
       *
       * <pre>
       * This path is relative to "bazel info execution_root"
       * </pre>
       */
      public Builder setExecRootPathBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        execRootPath_ = value;
        onChanged();
        return this;
      }

      // optional bytes hash = 2;
      private com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>optional bytes hash = 2;</code>
       */
      public boolean hasHash() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>optional bytes hash = 2;</code>
       */
      public com.google.protobuf.ByteString getHash() {
        return hash_;
      }
      /**
       * <code>optional bytes hash = 2;</code>
       */
      public Builder setHash(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        hash_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes hash = 2;</code>
       */
      public Builder clearHash() {
        bitField0_ = (bitField0_ & ~0x00000002);
        hash_ = getDefaultInstance().getHash();
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:blaze.apk_manifest.Artifact)
    }

    static {
      defaultInstance = new Artifact(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:blaze.apk_manifest.Artifact)
  }

  public interface NativeLibOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // repeated .blaze.apk_manifest.Artifact native_libs = 1;
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> 
        getNativeLibsList();
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getNativeLibs(int index);
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    int getNativeLibsCount();
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
        getNativeLibsOrBuilderList();
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getNativeLibsOrBuilder(
        int index);

    // optional string arch = 2;
    /**
     * <code>optional string arch = 2;</code>
     */
    boolean hasArch();
    /**
     * <code>optional string arch = 2;</code>
     */
    java.lang.String getArch();
    /**
     * <code>optional string arch = 2;</code>
     */
    com.google.protobuf.ByteString
        getArchBytes();
  }
  /**
   * Protobuf type {@code blaze.apk_manifest.NativeLib}
   */
  public static final class NativeLib extends
      com.google.protobuf.GeneratedMessage
      implements NativeLibOrBuilder {
    // Use NativeLib.newBuilder() to construct.
    private NativeLib(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NativeLib(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final NativeLib defaultInstance;
    public static NativeLib getDefaultInstance() {
      return defaultInstance;
    }

    public NativeLib getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NativeLib(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                nativeLibs_ = new java.util.ArrayList<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact>();
                mutable_bitField0_ |= 0x00000001;
              }
              nativeLibs_.add(input.readMessage(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.PARSER, extensionRegistry));
              break;
            }
            case 18: {
              bitField0_ |= 0x00000001;
              arch_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          nativeLibs_ = java.util.Collections.unmodifiableList(nativeLibs_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_NativeLib_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_NativeLib_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder.class);
    }

    public static com.google.protobuf.Parser<NativeLib> PARSER =
        new com.google.protobuf.AbstractParser<NativeLib>() {
      public NativeLib parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new NativeLib(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // repeated .blaze.apk_manifest.Artifact native_libs = 1;
    public static final int NATIVE_LIBS_FIELD_NUMBER = 1;
    private java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> nativeLibs_;
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> getNativeLibsList() {
      return nativeLibs_;
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    public java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
        getNativeLibsOrBuilderList() {
      return nativeLibs_;
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    public int getNativeLibsCount() {
      return nativeLibs_.size();
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getNativeLibs(int index) {
      return nativeLibs_.get(index);
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getNativeLibsOrBuilder(
        int index) {
      return nativeLibs_.get(index);
    }

    // optional string arch = 2;
    public static final int ARCH_FIELD_NUMBER = 2;
    private java.lang.Object arch_;
    /**
     * <code>optional string arch = 2;</code>
     */
    public boolean hasArch() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional string arch = 2;</code>
     */
    public java.lang.String getArch() {
      java.lang.Object ref = arch_;
      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()) {
          arch_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string arch = 2;</code>
     */
    public com.google.protobuf.ByteString
        getArchBytes() {
      java.lang.Object ref = arch_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        arch_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      nativeLibs_ = java.util.Collections.emptyList();
      arch_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < nativeLibs_.size(); i++) {
        output.writeMessage(1, nativeLibs_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(2, getArchBytes());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < nativeLibs_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, nativeLibs_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getArchBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib 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.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib 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.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code blaze.apk_manifest.NativeLib}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_NativeLib_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_NativeLib_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getNativeLibsFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (nativeLibsBuilder_ == null) {
          nativeLibs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          nativeLibsBuilder_.clear();
        }
        arch_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_NativeLib_descriptor;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib getDefaultInstanceForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.getDefaultInstance();
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib build() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib buildPartial() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib result = new com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (nativeLibsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            nativeLibs_ = java.util.Collections.unmodifiableList(nativeLibs_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.nativeLibs_ = nativeLibs_;
        } else {
          result.nativeLibs_ = nativeLibsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000001;
        }
        result.arch_ = arch_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib) {
          return mergeFrom((com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib other) {
        if (other == com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.getDefaultInstance()) return this;
        if (nativeLibsBuilder_ == null) {
          if (!other.nativeLibs_.isEmpty()) {
            if (nativeLibs_.isEmpty()) {
              nativeLibs_ = other.nativeLibs_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureNativeLibsIsMutable();
              nativeLibs_.addAll(other.nativeLibs_);
            }
            onChanged();
          }
        } else {
          if (!other.nativeLibs_.isEmpty()) {
            if (nativeLibsBuilder_.isEmpty()) {
              nativeLibsBuilder_.dispose();
              nativeLibsBuilder_ = null;
              nativeLibs_ = other.nativeLibs_;
              bitField0_ = (bitField0_ & ~0x00000001);
              nativeLibsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getNativeLibsFieldBuilder() : null;
            } else {
              nativeLibsBuilder_.addAllMessages(other.nativeLibs_);
            }
          }
        }
        if (other.hasArch()) {
          bitField0_ |= 0x00000002;
          arch_ = other.arch_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .blaze.apk_manifest.Artifact native_libs = 1;
      private java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> nativeLibs_ =
        java.util.Collections.emptyList();
      private void ensureNativeLibsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          nativeLibs_ = new java.util.ArrayList<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact>(nativeLibs_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> nativeLibsBuilder_;

      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> getNativeLibsList() {
        if (nativeLibsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nativeLibs_);
        } else {
          return nativeLibsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public int getNativeLibsCount() {
        if (nativeLibsBuilder_ == null) {
          return nativeLibs_.size();
        } else {
          return nativeLibsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getNativeLibs(int index) {
        if (nativeLibsBuilder_ == null) {
          return nativeLibs_.get(index);
        } else {
          return nativeLibsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder setNativeLibs(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (nativeLibsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNativeLibsIsMutable();
          nativeLibs_.set(index, value);
          onChanged();
        } else {
          nativeLibsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder setNativeLibs(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (nativeLibsBuilder_ == null) {
          ensureNativeLibsIsMutable();
          nativeLibs_.set(index, builderForValue.build());
          onChanged();
        } else {
          nativeLibsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder addNativeLibs(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (nativeLibsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNativeLibsIsMutable();
          nativeLibs_.add(value);
          onChanged();
        } else {
          nativeLibsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder addNativeLibs(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (nativeLibsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNativeLibsIsMutable();
          nativeLibs_.add(index, value);
          onChanged();
        } else {
          nativeLibsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder addNativeLibs(
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (nativeLibsBuilder_ == null) {
          ensureNativeLibsIsMutable();
          nativeLibs_.add(builderForValue.build());
          onChanged();
        } else {
          nativeLibsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder addNativeLibs(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (nativeLibsBuilder_ == null) {
          ensureNativeLibsIsMutable();
          nativeLibs_.add(index, builderForValue.build());
          onChanged();
        } else {
          nativeLibsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder addAllNativeLibs(
          java.lang.Iterable<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> values) {
        if (nativeLibsBuilder_ == null) {
          ensureNativeLibsIsMutable();
          super.addAll(values, nativeLibs_);
          onChanged();
        } else {
          nativeLibsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder clearNativeLibs() {
        if (nativeLibsBuilder_ == null) {
          nativeLibs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          nativeLibsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public Builder removeNativeLibs(int index) {
        if (nativeLibsBuilder_ == null) {
          ensureNativeLibsIsMutable();
          nativeLibs_.remove(index);
          onChanged();
        } else {
          nativeLibsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder getNativeLibsBuilder(
          int index) {
        return getNativeLibsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getNativeLibsOrBuilder(
          int index) {
        if (nativeLibsBuilder_ == null) {
          return nativeLibs_.get(index);  } else {
          return nativeLibsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
           getNativeLibsOrBuilderList() {
        if (nativeLibsBuilder_ != null) {
          return nativeLibsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nativeLibs_);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder addNativeLibsBuilder() {
        return getNativeLibsFieldBuilder().addBuilder(
            com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance());
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder addNativeLibsBuilder(
          int index) {
        return getNativeLibsFieldBuilder().addBuilder(
            index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance());
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact native_libs = 1;</code>
       */
      public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder> 
           getNativeLibsBuilderList() {
        return getNativeLibsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
          getNativeLibsFieldBuilder() {
        if (nativeLibsBuilder_ == null) {
          nativeLibsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder>(
                  nativeLibs_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          nativeLibs_ = null;
        }
        return nativeLibsBuilder_;
      }

      // optional string arch = 2;
      private java.lang.Object arch_ = "";
      /**
       * <code>optional string arch = 2;</code>
       */
      public boolean hasArch() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>optional string arch = 2;</code>
       */
      public java.lang.String getArch() {
        java.lang.Object ref = arch_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          arch_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string arch = 2;</code>
       */
      public com.google.protobuf.ByteString
          getArchBytes() {
        java.lang.Object ref = arch_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          arch_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string arch = 2;</code>
       */
      public Builder setArch(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        arch_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string arch = 2;</code>
       */
      public Builder clearArch() {
        bitField0_ = (bitField0_ & ~0x00000002);
        arch_ = getDefaultInstance().getArch();
        onChanged();
        return this;
      }
      /**
       * <code>optional string arch = 2;</code>
       */
      public Builder setArchBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        arch_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:blaze.apk_manifest.NativeLib)
    }

    static {
      defaultInstance = new NativeLib(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:blaze.apk_manifest.NativeLib)
  }

  public interface AndroidSdkOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string aapt = 1;
    /**
     * <code>optional string aapt = 1;</code>
     */
    boolean hasAapt();
    /**
     * <code>optional string aapt = 1;</code>
     */
    java.lang.String getAapt();
    /**
     * <code>optional string aapt = 1;</code>
     */
    com.google.protobuf.ByteString
        getAaptBytes();

    // optional string adb = 2;
    /**
     * <code>optional string adb = 2;</code>
     */
    boolean hasAdb();
    /**
     * <code>optional string adb = 2;</code>
     */
    java.lang.String getAdb();
    /**
     * <code>optional string adb = 2;</code>
     */
    com.google.protobuf.ByteString
        getAdbBytes();

    // optional string aidl = 3;
    /**
     * <code>optional string aidl = 3;</code>
     */
    boolean hasAidl();
    /**
     * <code>optional string aidl = 3;</code>
     */
    java.lang.String getAidl();
    /**
     * <code>optional string aidl = 3;</code>
     */
    com.google.protobuf.ByteString
        getAidlBytes();

    // optional string android_jar = 4;
    /**
     * <code>optional string android_jar = 4;</code>
     */
    boolean hasAndroidJar();
    /**
     * <code>optional string android_jar = 4;</code>
     */
    java.lang.String getAndroidJar();
    /**
     * <code>optional string android_jar = 4;</code>
     */
    com.google.protobuf.ByteString
        getAndroidJarBytes();

    // optional string annotations_jar = 5;
    /**
     * <code>optional string annotations_jar = 5;</code>
     */
    boolean hasAnnotationsJar();
    /**
     * <code>optional string annotations_jar = 5;</code>
     */
    java.lang.String getAnnotationsJar();
    /**
     * <code>optional string annotations_jar = 5;</code>
     */
    com.google.protobuf.ByteString
        getAnnotationsJarBytes();

    // optional string apkbuilder = 6;
    /**
     * <code>optional string apkbuilder = 6;</code>
     */
    boolean hasApkbuilder();
    /**
     * <code>optional string apkbuilder = 6;</code>
     */
    java.lang.String getApkbuilder();
    /**
     * <code>optional string apkbuilder = 6;</code>
     */
    com.google.protobuf.ByteString
        getApkbuilderBytes();

    // optional string dx = 7;
    /**
     * <code>optional string dx = 7;</code>
     */
    boolean hasDx();
    /**
     * <code>optional string dx = 7;</code>
     */
    java.lang.String getDx();
    /**
     * <code>optional string dx = 7;</code>
     */
    com.google.protobuf.ByteString
        getDxBytes();

    // optional string framework_aidl = 8;
    /**
     * <code>optional string framework_aidl = 8;</code>
     */
    boolean hasFrameworkAidl();
    /**
     * <code>optional string framework_aidl = 8;</code>
     */
    java.lang.String getFrameworkAidl();
    /**
     * <code>optional string framework_aidl = 8;</code>
     */
    com.google.protobuf.ByteString
        getFrameworkAidlBytes();

    // optional string jack = 9;
    /**
     * <code>optional string jack = 9;</code>
     */
    boolean hasJack();
    /**
     * <code>optional string jack = 9;</code>
     */
    java.lang.String getJack();
    /**
     * <code>optional string jack = 9;</code>
     */
    com.google.protobuf.ByteString
        getJackBytes();

    // optional string jill = 10;
    /**
     * <code>optional string jill = 10;</code>
     */
    boolean hasJill();
    /**
     * <code>optional string jill = 10;</code>
     */
    java.lang.String getJill();
    /**
     * <code>optional string jill = 10;</code>
     */
    com.google.protobuf.ByteString
        getJillBytes();

    // optional string main_dex_classes = 11;
    /**
     * <code>optional string main_dex_classes = 11;</code>
     */
    boolean hasMainDexClasses();
    /**
     * <code>optional string main_dex_classes = 11;</code>
     */
    java.lang.String getMainDexClasses();
    /**
     * <code>optional string main_dex_classes = 11;</code>
     */
    com.google.protobuf.ByteString
        getMainDexClassesBytes();

    // optional string main_dex_list_creator = 12;
    /**
     * <code>optional string main_dex_list_creator = 12;</code>
     */
    boolean hasMainDexListCreator();
    /**
     * <code>optional string main_dex_list_creator = 12;</code>
     */
    java.lang.String getMainDexListCreator();
    /**
     * <code>optional string main_dex_list_creator = 12;</code>
     */
    com.google.protobuf.ByteString
        getMainDexListCreatorBytes();

    // optional string proguard = 13;
    /**
     * <code>optional string proguard = 13;</code>
     */
    boolean hasProguard();
    /**
     * <code>optional string proguard = 13;</code>
     */
    java.lang.String getProguard();
    /**
     * <code>optional string proguard = 13;</code>
     */
    com.google.protobuf.ByteString
        getProguardBytes();

    // optional string resource_extractor = 14;
    /**
     * <code>optional string resource_extractor = 14;</code>
     */
    boolean hasResourceExtractor();
    /**
     * <code>optional string resource_extractor = 14;</code>
     */
    java.lang.String getResourceExtractor();
    /**
     * <code>optional string resource_extractor = 14;</code>
     */
    com.google.protobuf.ByteString
        getResourceExtractorBytes();

    // optional string shrinked_android_jar = 15;
    /**
     * <code>optional string shrinked_android_jar = 15;</code>
     */
    boolean hasShrinkedAndroidJar();
    /**
     * <code>optional string shrinked_android_jar = 15;</code>
     */
    java.lang.String getShrinkedAndroidJar();
    /**
     * <code>optional string shrinked_android_jar = 15;</code>
     */
    com.google.protobuf.ByteString
        getShrinkedAndroidJarBytes();

    // optional string zipalign = 16;
    /**
     * <code>optional string zipalign = 16;</code>
     */
    boolean hasZipalign();
    /**
     * <code>optional string zipalign = 16;</code>
     */
    java.lang.String getZipalign();
    /**
     * <code>optional string zipalign = 16;</code>
     */
    com.google.protobuf.ByteString
        getZipalignBytes();

    // optional string build_tools_version = 17;
    /**
     * <code>optional string build_tools_version = 17;</code>
     *
     * <pre>
     * assume latest if not set
     * </pre>
     */
    boolean hasBuildToolsVersion();
    /**
     * <code>optional string build_tools_version = 17;</code>
     *
     * <pre>
     * assume latest if not set
     * </pre>
     */
    java.lang.String getBuildToolsVersion();
    /**
     * <code>optional string build_tools_version = 17;</code>
     *
     * <pre>
     * assume latest if not set
     * </pre>
     */
    com.google.protobuf.ByteString
        getBuildToolsVersionBytes();
  }
  /**
   * Protobuf type {@code blaze.apk_manifest.AndroidSdk}
   */
  public static final class AndroidSdk extends
      com.google.protobuf.GeneratedMessage
      implements AndroidSdkOrBuilder {
    // Use AndroidSdk.newBuilder() to construct.
    private AndroidSdk(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private AndroidSdk(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final AndroidSdk defaultInstance;
    public static AndroidSdk getDefaultInstance() {
      return defaultInstance;
    }

    public AndroidSdk getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private AndroidSdk(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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: {
              bitField0_ |= 0x00000001;
              aapt_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              adb_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              aidl_ = input.readBytes();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              androidJar_ = input.readBytes();
              break;
            }
            case 42: {
              bitField0_ |= 0x00000010;
              annotationsJar_ = input.readBytes();
              break;
            }
            case 50: {
              bitField0_ |= 0x00000020;
              apkbuilder_ = input.readBytes();
              break;
            }
            case 58: {
              bitField0_ |= 0x00000040;
              dx_ = input.readBytes();
              break;
            }
            case 66: {
              bitField0_ |= 0x00000080;
              frameworkAidl_ = input.readBytes();
              break;
            }
            case 74: {
              bitField0_ |= 0x00000100;
              jack_ = input.readBytes();
              break;
            }
            case 82: {
              bitField0_ |= 0x00000200;
              jill_ = input.readBytes();
              break;
            }
            case 90: {
              bitField0_ |= 0x00000400;
              mainDexClasses_ = input.readBytes();
              break;
            }
            case 98: {
              bitField0_ |= 0x00000800;
              mainDexListCreator_ = input.readBytes();
              break;
            }
            case 106: {
              bitField0_ |= 0x00001000;
              proguard_ = input.readBytes();
              break;
            }
            case 114: {
              bitField0_ |= 0x00002000;
              resourceExtractor_ = input.readBytes();
              break;
            }
            case 122: {
              bitField0_ |= 0x00004000;
              shrinkedAndroidJar_ = input.readBytes();
              break;
            }
            case 130: {
              bitField0_ |= 0x00008000;
              zipalign_ = input.readBytes();
              break;
            }
            case 138: {
              bitField0_ |= 0x00010000;
              buildToolsVersion_ = input.readBytes();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_AndroidSdk_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_AndroidSdk_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder.class);
    }

    public static com.google.protobuf.Parser<AndroidSdk> PARSER =
        new com.google.protobuf.AbstractParser<AndroidSdk>() {
      public AndroidSdk parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new AndroidSdk(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional string aapt = 1;
    public static final int AAPT_FIELD_NUMBER = 1;
    private java.lang.Object aapt_;
    /**
     * <code>optional string aapt = 1;</code>
     */
    public boolean hasAapt() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional string aapt = 1;</code>
     */
    public java.lang.String getAapt() {
      java.lang.Object ref = aapt_;
      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()) {
          aapt_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string aapt = 1;</code>
     */
    public com.google.protobuf.ByteString
        getAaptBytes() {
      java.lang.Object ref = aapt_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        aapt_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string adb = 2;
    public static final int ADB_FIELD_NUMBER = 2;
    private java.lang.Object adb_;
    /**
     * <code>optional string adb = 2;</code>
     */
    public boolean hasAdb() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional string adb = 2;</code>
     */
    public java.lang.String getAdb() {
      java.lang.Object ref = adb_;
      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()) {
          adb_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string adb = 2;</code>
     */
    public com.google.protobuf.ByteString
        getAdbBytes() {
      java.lang.Object ref = adb_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        adb_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string aidl = 3;
    public static final int AIDL_FIELD_NUMBER = 3;
    private java.lang.Object aidl_;
    /**
     * <code>optional string aidl = 3;</code>
     */
    public boolean hasAidl() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional string aidl = 3;</code>
     */
    public java.lang.String getAidl() {
      java.lang.Object ref = aidl_;
      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()) {
          aidl_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string aidl = 3;</code>
     */
    public com.google.protobuf.ByteString
        getAidlBytes() {
      java.lang.Object ref = aidl_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        aidl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string android_jar = 4;
    public static final int ANDROID_JAR_FIELD_NUMBER = 4;
    private java.lang.Object androidJar_;
    /**
     * <code>optional string android_jar = 4;</code>
     */
    public boolean hasAndroidJar() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>optional string android_jar = 4;</code>
     */
    public java.lang.String getAndroidJar() {
      java.lang.Object ref = androidJar_;
      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()) {
          androidJar_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string android_jar = 4;</code>
     */
    public com.google.protobuf.ByteString
        getAndroidJarBytes() {
      java.lang.Object ref = androidJar_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        androidJar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string annotations_jar = 5;
    public static final int ANNOTATIONS_JAR_FIELD_NUMBER = 5;
    private java.lang.Object annotationsJar_;
    /**
     * <code>optional string annotations_jar = 5;</code>
     */
    public boolean hasAnnotationsJar() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * <code>optional string annotations_jar = 5;</code>
     */
    public java.lang.String getAnnotationsJar() {
      java.lang.Object ref = annotationsJar_;
      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()) {
          annotationsJar_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string annotations_jar = 5;</code>
     */
    public com.google.protobuf.ByteString
        getAnnotationsJarBytes() {
      java.lang.Object ref = annotationsJar_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        annotationsJar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string apkbuilder = 6;
    public static final int APKBUILDER_FIELD_NUMBER = 6;
    private java.lang.Object apkbuilder_;
    /**
     * <code>optional string apkbuilder = 6;</code>
     */
    public boolean hasApkbuilder() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * <code>optional string apkbuilder = 6;</code>
     */
    public java.lang.String getApkbuilder() {
      java.lang.Object ref = apkbuilder_;
      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()) {
          apkbuilder_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string apkbuilder = 6;</code>
     */
    public com.google.protobuf.ByteString
        getApkbuilderBytes() {
      java.lang.Object ref = apkbuilder_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        apkbuilder_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string dx = 7;
    public static final int DX_FIELD_NUMBER = 7;
    private java.lang.Object dx_;
    /**
     * <code>optional string dx = 7;</code>
     */
    public boolean hasDx() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * <code>optional string dx = 7;</code>
     */
    public java.lang.String getDx() {
      java.lang.Object ref = dx_;
      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()) {
          dx_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string dx = 7;</code>
     */
    public com.google.protobuf.ByteString
        getDxBytes() {
      java.lang.Object ref = dx_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dx_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string framework_aidl = 8;
    public static final int FRAMEWORK_AIDL_FIELD_NUMBER = 8;
    private java.lang.Object frameworkAidl_;
    /**
     * <code>optional string framework_aidl = 8;</code>
     */
    public boolean hasFrameworkAidl() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    /**
     * <code>optional string framework_aidl = 8;</code>
     */
    public java.lang.String getFrameworkAidl() {
      java.lang.Object ref = frameworkAidl_;
      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()) {
          frameworkAidl_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string framework_aidl = 8;</code>
     */
    public com.google.protobuf.ByteString
        getFrameworkAidlBytes() {
      java.lang.Object ref = frameworkAidl_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        frameworkAidl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string jack = 9;
    public static final int JACK_FIELD_NUMBER = 9;
    private java.lang.Object jack_;
    /**
     * <code>optional string jack = 9;</code>
     */
    public boolean hasJack() {
      return ((bitField0_ & 0x00000100) == 0x00000100);
    }
    /**
     * <code>optional string jack = 9;</code>
     */
    public java.lang.String getJack() {
      java.lang.Object ref = jack_;
      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()) {
          jack_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string jack = 9;</code>
     */
    public com.google.protobuf.ByteString
        getJackBytes() {
      java.lang.Object ref = jack_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        jack_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string jill = 10;
    public static final int JILL_FIELD_NUMBER = 10;
    private java.lang.Object jill_;
    /**
     * <code>optional string jill = 10;</code>
     */
    public boolean hasJill() {
      return ((bitField0_ & 0x00000200) == 0x00000200);
    }
    /**
     * <code>optional string jill = 10;</code>
     */
    public java.lang.String getJill() {
      java.lang.Object ref = jill_;
      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()) {
          jill_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string jill = 10;</code>
     */
    public com.google.protobuf.ByteString
        getJillBytes() {
      java.lang.Object ref = jill_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        jill_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string main_dex_classes = 11;
    public static final int MAIN_DEX_CLASSES_FIELD_NUMBER = 11;
    private java.lang.Object mainDexClasses_;
    /**
     * <code>optional string main_dex_classes = 11;</code>
     */
    public boolean hasMainDexClasses() {
      return ((bitField0_ & 0x00000400) == 0x00000400);
    }
    /**
     * <code>optional string main_dex_classes = 11;</code>
     */
    public java.lang.String getMainDexClasses() {
      java.lang.Object ref = mainDexClasses_;
      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()) {
          mainDexClasses_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string main_dex_classes = 11;</code>
     */
    public com.google.protobuf.ByteString
        getMainDexClassesBytes() {
      java.lang.Object ref = mainDexClasses_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mainDexClasses_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string main_dex_list_creator = 12;
    public static final int MAIN_DEX_LIST_CREATOR_FIELD_NUMBER = 12;
    private java.lang.Object mainDexListCreator_;
    /**
     * <code>optional string main_dex_list_creator = 12;</code>
     */
    public boolean hasMainDexListCreator() {
      return ((bitField0_ & 0x00000800) == 0x00000800);
    }
    /**
     * <code>optional string main_dex_list_creator = 12;</code>
     */
    public java.lang.String getMainDexListCreator() {
      java.lang.Object ref = mainDexListCreator_;
      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()) {
          mainDexListCreator_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string main_dex_list_creator = 12;</code>
     */
    public com.google.protobuf.ByteString
        getMainDexListCreatorBytes() {
      java.lang.Object ref = mainDexListCreator_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mainDexListCreator_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string proguard = 13;
    public static final int PROGUARD_FIELD_NUMBER = 13;
    private java.lang.Object proguard_;
    /**
     * <code>optional string proguard = 13;</code>
     */
    public boolean hasProguard() {
      return ((bitField0_ & 0x00001000) == 0x00001000);
    }
    /**
     * <code>optional string proguard = 13;</code>
     */
    public java.lang.String getProguard() {
      java.lang.Object ref = proguard_;
      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()) {
          proguard_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string proguard = 13;</code>
     */
    public com.google.protobuf.ByteString
        getProguardBytes() {
      java.lang.Object ref = proguard_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        proguard_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string resource_extractor = 14;
    public static final int RESOURCE_EXTRACTOR_FIELD_NUMBER = 14;
    private java.lang.Object resourceExtractor_;
    /**
     * <code>optional string resource_extractor = 14;</code>
     */
    public boolean hasResourceExtractor() {
      return ((bitField0_ & 0x00002000) == 0x00002000);
    }
    /**
     * <code>optional string resource_extractor = 14;</code>
     */
    public java.lang.String getResourceExtractor() {
      java.lang.Object ref = resourceExtractor_;
      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()) {
          resourceExtractor_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string resource_extractor = 14;</code>
     */
    public com.google.protobuf.ByteString
        getResourceExtractorBytes() {
      java.lang.Object ref = resourceExtractor_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        resourceExtractor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string shrinked_android_jar = 15;
    public static final int SHRINKED_ANDROID_JAR_FIELD_NUMBER = 15;
    private java.lang.Object shrinkedAndroidJar_;
    /**
     * <code>optional string shrinked_android_jar = 15;</code>
     */
    public boolean hasShrinkedAndroidJar() {
      return ((bitField0_ & 0x00004000) == 0x00004000);
    }
    /**
     * <code>optional string shrinked_android_jar = 15;</code>
     */
    public java.lang.String getShrinkedAndroidJar() {
      java.lang.Object ref = shrinkedAndroidJar_;
      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()) {
          shrinkedAndroidJar_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string shrinked_android_jar = 15;</code>
     */
    public com.google.protobuf.ByteString
        getShrinkedAndroidJarBytes() {
      java.lang.Object ref = shrinkedAndroidJar_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        shrinkedAndroidJar_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string zipalign = 16;
    public static final int ZIPALIGN_FIELD_NUMBER = 16;
    private java.lang.Object zipalign_;
    /**
     * <code>optional string zipalign = 16;</code>
     */
    public boolean hasZipalign() {
      return ((bitField0_ & 0x00008000) == 0x00008000);
    }
    /**
     * <code>optional string zipalign = 16;</code>
     */
    public java.lang.String getZipalign() {
      java.lang.Object ref = zipalign_;
      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()) {
          zipalign_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string zipalign = 16;</code>
     */
    public com.google.protobuf.ByteString
        getZipalignBytes() {
      java.lang.Object ref = zipalign_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        zipalign_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string build_tools_version = 17;
    public static final int BUILD_TOOLS_VERSION_FIELD_NUMBER = 17;
    private java.lang.Object buildToolsVersion_;
    /**
     * <code>optional string build_tools_version = 17;</code>
     *
     * <pre>
     * assume latest if not set
     * </pre>
     */
    public boolean hasBuildToolsVersion() {
      return ((bitField0_ & 0x00010000) == 0x00010000);
    }
    /**
     * <code>optional string build_tools_version = 17;</code>
     *
     * <pre>
     * assume latest if not set
     * </pre>
     */
    public java.lang.String getBuildToolsVersion() {
      java.lang.Object ref = buildToolsVersion_;
      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()) {
          buildToolsVersion_ = s;
        }
        return s;
      }
    }
    /**
     * <code>optional string build_tools_version = 17;</code>
     *
     * <pre>
     * assume latest if not set
     * </pre>
     */
    public com.google.protobuf.ByteString
        getBuildToolsVersionBytes() {
      java.lang.Object ref = buildToolsVersion_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        buildToolsVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      aapt_ = "";
      adb_ = "";
      aidl_ = "";
      androidJar_ = "";
      annotationsJar_ = "";
      apkbuilder_ = "";
      dx_ = "";
      frameworkAidl_ = "";
      jack_ = "";
      jill_ = "";
      mainDexClasses_ = "";
      mainDexListCreator_ = "";
      proguard_ = "";
      resourceExtractor_ = "";
      shrinkedAndroidJar_ = "";
      zipalign_ = "";
      buildToolsVersion_ = "";
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getAaptBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getAdbBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getAidlBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, getAndroidJarBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBytes(5, getAnnotationsJarBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeBytes(6, getApkbuilderBytes());
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeBytes(7, getDxBytes());
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeBytes(8, getFrameworkAidlBytes());
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeBytes(9, getJackBytes());
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        output.writeBytes(10, getJillBytes());
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        output.writeBytes(11, getMainDexClassesBytes());
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        output.writeBytes(12, getMainDexListCreatorBytes());
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        output.writeBytes(13, getProguardBytes());
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        output.writeBytes(14, getResourceExtractorBytes());
      }
      if (((bitField0_ & 0x00004000) == 0x00004000)) {
        output.writeBytes(15, getShrinkedAndroidJarBytes());
      }
      if (((bitField0_ & 0x00008000) == 0x00008000)) {
        output.writeBytes(16, getZipalignBytes());
      }
      if (((bitField0_ & 0x00010000) == 0x00010000)) {
        output.writeBytes(17, getBuildToolsVersionBytes());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getAaptBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getAdbBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getAidlBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getAndroidJarBytes());
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, getAnnotationsJarBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(6, getApkbuilderBytes());
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(7, getDxBytes());
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(8, getFrameworkAidlBytes());
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(9, getJackBytes());
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(10, getJillBytes());
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(11, getMainDexClassesBytes());
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(12, getMainDexListCreatorBytes());
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(13, getProguardBytes());
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(14, getResourceExtractorBytes());
      }
      if (((bitField0_ & 0x00004000) == 0x00004000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(15, getShrinkedAndroidJarBytes());
      }
      if (((bitField0_ & 0x00008000) == 0x00008000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(16, getZipalignBytes());
      }
      if (((bitField0_ & 0x00010000) == 0x00010000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(17, getBuildToolsVersionBytes());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk 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.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk 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.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code blaze.apk_manifest.AndroidSdk}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_AndroidSdk_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_AndroidSdk_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        aapt_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        adb_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        aidl_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        androidJar_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        annotationsJar_ = "";
        bitField0_ = (bitField0_ & ~0x00000010);
        apkbuilder_ = "";
        bitField0_ = (bitField0_ & ~0x00000020);
        dx_ = "";
        bitField0_ = (bitField0_ & ~0x00000040);
        frameworkAidl_ = "";
        bitField0_ = (bitField0_ & ~0x00000080);
        jack_ = "";
        bitField0_ = (bitField0_ & ~0x00000100);
        jill_ = "";
        bitField0_ = (bitField0_ & ~0x00000200);
        mainDexClasses_ = "";
        bitField0_ = (bitField0_ & ~0x00000400);
        mainDexListCreator_ = "";
        bitField0_ = (bitField0_ & ~0x00000800);
        proguard_ = "";
        bitField0_ = (bitField0_ & ~0x00001000);
        resourceExtractor_ = "";
        bitField0_ = (bitField0_ & ~0x00002000);
        shrinkedAndroidJar_ = "";
        bitField0_ = (bitField0_ & ~0x00004000);
        zipalign_ = "";
        bitField0_ = (bitField0_ & ~0x00008000);
        buildToolsVersion_ = "";
        bitField0_ = (bitField0_ & ~0x00010000);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_AndroidSdk_descriptor;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk getDefaultInstanceForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance();
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk build() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk buildPartial() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk result = new com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.aapt_ = aapt_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.adb_ = adb_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.aidl_ = aidl_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.androidJar_ = androidJar_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.annotationsJar_ = annotationsJar_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.apkbuilder_ = apkbuilder_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.dx_ = dx_;
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000080;
        }
        result.frameworkAidl_ = frameworkAidl_;
        if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
          to_bitField0_ |= 0x00000100;
        }
        result.jack_ = jack_;
        if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
          to_bitField0_ |= 0x00000200;
        }
        result.jill_ = jill_;
        if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
          to_bitField0_ |= 0x00000400;
        }
        result.mainDexClasses_ = mainDexClasses_;
        if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
          to_bitField0_ |= 0x00000800;
        }
        result.mainDexListCreator_ = mainDexListCreator_;
        if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
          to_bitField0_ |= 0x00001000;
        }
        result.proguard_ = proguard_;
        if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
          to_bitField0_ |= 0x00002000;
        }
        result.resourceExtractor_ = resourceExtractor_;
        if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
          to_bitField0_ |= 0x00004000;
        }
        result.shrinkedAndroidJar_ = shrinkedAndroidJar_;
        if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
          to_bitField0_ |= 0x00008000;
        }
        result.zipalign_ = zipalign_;
        if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
          to_bitField0_ |= 0x00010000;
        }
        result.buildToolsVersion_ = buildToolsVersion_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk) {
          return mergeFrom((com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk other) {
        if (other == com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance()) return this;
        if (other.hasAapt()) {
          bitField0_ |= 0x00000001;
          aapt_ = other.aapt_;
          onChanged();
        }
        if (other.hasAdb()) {
          bitField0_ |= 0x00000002;
          adb_ = other.adb_;
          onChanged();
        }
        if (other.hasAidl()) {
          bitField0_ |= 0x00000004;
          aidl_ = other.aidl_;
          onChanged();
        }
        if (other.hasAndroidJar()) {
          bitField0_ |= 0x00000008;
          androidJar_ = other.androidJar_;
          onChanged();
        }
        if (other.hasAnnotationsJar()) {
          bitField0_ |= 0x00000010;
          annotationsJar_ = other.annotationsJar_;
          onChanged();
        }
        if (other.hasApkbuilder()) {
          bitField0_ |= 0x00000020;
          apkbuilder_ = other.apkbuilder_;
          onChanged();
        }
        if (other.hasDx()) {
          bitField0_ |= 0x00000040;
          dx_ = other.dx_;
          onChanged();
        }
        if (other.hasFrameworkAidl()) {
          bitField0_ |= 0x00000080;
          frameworkAidl_ = other.frameworkAidl_;
          onChanged();
        }
        if (other.hasJack()) {
          bitField0_ |= 0x00000100;
          jack_ = other.jack_;
          onChanged();
        }
        if (other.hasJill()) {
          bitField0_ |= 0x00000200;
          jill_ = other.jill_;
          onChanged();
        }
        if (other.hasMainDexClasses()) {
          bitField0_ |= 0x00000400;
          mainDexClasses_ = other.mainDexClasses_;
          onChanged();
        }
        if (other.hasMainDexListCreator()) {
          bitField0_ |= 0x00000800;
          mainDexListCreator_ = other.mainDexListCreator_;
          onChanged();
        }
        if (other.hasProguard()) {
          bitField0_ |= 0x00001000;
          proguard_ = other.proguard_;
          onChanged();
        }
        if (other.hasResourceExtractor()) {
          bitField0_ |= 0x00002000;
          resourceExtractor_ = other.resourceExtractor_;
          onChanged();
        }
        if (other.hasShrinkedAndroidJar()) {
          bitField0_ |= 0x00004000;
          shrinkedAndroidJar_ = other.shrinkedAndroidJar_;
          onChanged();
        }
        if (other.hasZipalign()) {
          bitField0_ |= 0x00008000;
          zipalign_ = other.zipalign_;
          onChanged();
        }
        if (other.hasBuildToolsVersion()) {
          bitField0_ |= 0x00010000;
          buildToolsVersion_ = other.buildToolsVersion_;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string aapt = 1;
      private java.lang.Object aapt_ = "";
      /**
       * <code>optional string aapt = 1;</code>
       */
      public boolean hasAapt() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>optional string aapt = 1;</code>
       */
      public java.lang.String getAapt() {
        java.lang.Object ref = aapt_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          aapt_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string aapt = 1;</code>
       */
      public com.google.protobuf.ByteString
          getAaptBytes() {
        java.lang.Object ref = aapt_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          aapt_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string aapt = 1;</code>
       */
      public Builder setAapt(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        aapt_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string aapt = 1;</code>
       */
      public Builder clearAapt() {
        bitField0_ = (bitField0_ & ~0x00000001);
        aapt_ = getDefaultInstance().getAapt();
        onChanged();
        return this;
      }
      /**
       * <code>optional string aapt = 1;</code>
       */
      public Builder setAaptBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        aapt_ = value;
        onChanged();
        return this;
      }

      // optional string adb = 2;
      private java.lang.Object adb_ = "";
      /**
       * <code>optional string adb = 2;</code>
       */
      public boolean hasAdb() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>optional string adb = 2;</code>
       */
      public java.lang.String getAdb() {
        java.lang.Object ref = adb_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          adb_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string adb = 2;</code>
       */
      public com.google.protobuf.ByteString
          getAdbBytes() {
        java.lang.Object ref = adb_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          adb_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string adb = 2;</code>
       */
      public Builder setAdb(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        adb_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string adb = 2;</code>
       */
      public Builder clearAdb() {
        bitField0_ = (bitField0_ & ~0x00000002);
        adb_ = getDefaultInstance().getAdb();
        onChanged();
        return this;
      }
      /**
       * <code>optional string adb = 2;</code>
       */
      public Builder setAdbBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        adb_ = value;
        onChanged();
        return this;
      }

      // optional string aidl = 3;
      private java.lang.Object aidl_ = "";
      /**
       * <code>optional string aidl = 3;</code>
       */
      public boolean hasAidl() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>optional string aidl = 3;</code>
       */
      public java.lang.String getAidl() {
        java.lang.Object ref = aidl_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          aidl_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string aidl = 3;</code>
       */
      public com.google.protobuf.ByteString
          getAidlBytes() {
        java.lang.Object ref = aidl_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          aidl_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string aidl = 3;</code>
       */
      public Builder setAidl(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        aidl_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string aidl = 3;</code>
       */
      public Builder clearAidl() {
        bitField0_ = (bitField0_ & ~0x00000004);
        aidl_ = getDefaultInstance().getAidl();
        onChanged();
        return this;
      }
      /**
       * <code>optional string aidl = 3;</code>
       */
      public Builder setAidlBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        aidl_ = value;
        onChanged();
        return this;
      }

      // optional string android_jar = 4;
      private java.lang.Object androidJar_ = "";
      /**
       * <code>optional string android_jar = 4;</code>
       */
      public boolean hasAndroidJar() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>optional string android_jar = 4;</code>
       */
      public java.lang.String getAndroidJar() {
        java.lang.Object ref = androidJar_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          androidJar_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string android_jar = 4;</code>
       */
      public com.google.protobuf.ByteString
          getAndroidJarBytes() {
        java.lang.Object ref = androidJar_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          androidJar_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string android_jar = 4;</code>
       */
      public Builder setAndroidJar(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        androidJar_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string android_jar = 4;</code>
       */
      public Builder clearAndroidJar() {
        bitField0_ = (bitField0_ & ~0x00000008);
        androidJar_ = getDefaultInstance().getAndroidJar();
        onChanged();
        return this;
      }
      /**
       * <code>optional string android_jar = 4;</code>
       */
      public Builder setAndroidJarBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        androidJar_ = value;
        onChanged();
        return this;
      }

      // optional string annotations_jar = 5;
      private java.lang.Object annotationsJar_ = "";
      /**
       * <code>optional string annotations_jar = 5;</code>
       */
      public boolean hasAnnotationsJar() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>optional string annotations_jar = 5;</code>
       */
      public java.lang.String getAnnotationsJar() {
        java.lang.Object ref = annotationsJar_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          annotationsJar_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string annotations_jar = 5;</code>
       */
      public com.google.protobuf.ByteString
          getAnnotationsJarBytes() {
        java.lang.Object ref = annotationsJar_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          annotationsJar_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string annotations_jar = 5;</code>
       */
      public Builder setAnnotationsJar(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        annotationsJar_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string annotations_jar = 5;</code>
       */
      public Builder clearAnnotationsJar() {
        bitField0_ = (bitField0_ & ~0x00000010);
        annotationsJar_ = getDefaultInstance().getAnnotationsJar();
        onChanged();
        return this;
      }
      /**
       * <code>optional string annotations_jar = 5;</code>
       */
      public Builder setAnnotationsJarBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        annotationsJar_ = value;
        onChanged();
        return this;
      }

      // optional string apkbuilder = 6;
      private java.lang.Object apkbuilder_ = "";
      /**
       * <code>optional string apkbuilder = 6;</code>
       */
      public boolean hasApkbuilder() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * <code>optional string apkbuilder = 6;</code>
       */
      public java.lang.String getApkbuilder() {
        java.lang.Object ref = apkbuilder_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          apkbuilder_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string apkbuilder = 6;</code>
       */
      public com.google.protobuf.ByteString
          getApkbuilderBytes() {
        java.lang.Object ref = apkbuilder_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          apkbuilder_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string apkbuilder = 6;</code>
       */
      public Builder setApkbuilder(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        apkbuilder_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string apkbuilder = 6;</code>
       */
      public Builder clearApkbuilder() {
        bitField0_ = (bitField0_ & ~0x00000020);
        apkbuilder_ = getDefaultInstance().getApkbuilder();
        onChanged();
        return this;
      }
      /**
       * <code>optional string apkbuilder = 6;</code>
       */
      public Builder setApkbuilderBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        apkbuilder_ = value;
        onChanged();
        return this;
      }

      // optional string dx = 7;
      private java.lang.Object dx_ = "";
      /**
       * <code>optional string dx = 7;</code>
       */
      public boolean hasDx() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * <code>optional string dx = 7;</code>
       */
      public java.lang.String getDx() {
        java.lang.Object ref = dx_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          dx_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string dx = 7;</code>
       */
      public com.google.protobuf.ByteString
          getDxBytes() {
        java.lang.Object ref = dx_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          dx_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string dx = 7;</code>
       */
      public Builder setDx(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
        dx_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string dx = 7;</code>
       */
      public Builder clearDx() {
        bitField0_ = (bitField0_ & ~0x00000040);
        dx_ = getDefaultInstance().getDx();
        onChanged();
        return this;
      }
      /**
       * <code>optional string dx = 7;</code>
       */
      public Builder setDxBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
        dx_ = value;
        onChanged();
        return this;
      }

      // optional string framework_aidl = 8;
      private java.lang.Object frameworkAidl_ = "";
      /**
       * <code>optional string framework_aidl = 8;</code>
       */
      public boolean hasFrameworkAidl() {
        return ((bitField0_ & 0x00000080) == 0x00000080);
      }
      /**
       * <code>optional string framework_aidl = 8;</code>
       */
      public java.lang.String getFrameworkAidl() {
        java.lang.Object ref = frameworkAidl_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          frameworkAidl_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string framework_aidl = 8;</code>
       */
      public com.google.protobuf.ByteString
          getFrameworkAidlBytes() {
        java.lang.Object ref = frameworkAidl_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          frameworkAidl_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string framework_aidl = 8;</code>
       */
      public Builder setFrameworkAidl(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
        frameworkAidl_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string framework_aidl = 8;</code>
       */
      public Builder clearFrameworkAidl() {
        bitField0_ = (bitField0_ & ~0x00000080);
        frameworkAidl_ = getDefaultInstance().getFrameworkAidl();
        onChanged();
        return this;
      }
      /**
       * <code>optional string framework_aidl = 8;</code>
       */
      public Builder setFrameworkAidlBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000080;
        frameworkAidl_ = value;
        onChanged();
        return this;
      }

      // optional string jack = 9;
      private java.lang.Object jack_ = "";
      /**
       * <code>optional string jack = 9;</code>
       */
      public boolean hasJack() {
        return ((bitField0_ & 0x00000100) == 0x00000100);
      }
      /**
       * <code>optional string jack = 9;</code>
       */
      public java.lang.String getJack() {
        java.lang.Object ref = jack_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          jack_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string jack = 9;</code>
       */
      public com.google.protobuf.ByteString
          getJackBytes() {
        java.lang.Object ref = jack_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          jack_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string jack = 9;</code>
       */
      public Builder setJack(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000100;
        jack_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string jack = 9;</code>
       */
      public Builder clearJack() {
        bitField0_ = (bitField0_ & ~0x00000100);
        jack_ = getDefaultInstance().getJack();
        onChanged();
        return this;
      }
      /**
       * <code>optional string jack = 9;</code>
       */
      public Builder setJackBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000100;
        jack_ = value;
        onChanged();
        return this;
      }

      // optional string jill = 10;
      private java.lang.Object jill_ = "";
      /**
       * <code>optional string jill = 10;</code>
       */
      public boolean hasJill() {
        return ((bitField0_ & 0x00000200) == 0x00000200);
      }
      /**
       * <code>optional string jill = 10;</code>
       */
      public java.lang.String getJill() {
        java.lang.Object ref = jill_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          jill_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string jill = 10;</code>
       */
      public com.google.protobuf.ByteString
          getJillBytes() {
        java.lang.Object ref = jill_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          jill_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string jill = 10;</code>
       */
      public Builder setJill(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
        jill_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string jill = 10;</code>
       */
      public Builder clearJill() {
        bitField0_ = (bitField0_ & ~0x00000200);
        jill_ = getDefaultInstance().getJill();
        onChanged();
        return this;
      }
      /**
       * <code>optional string jill = 10;</code>
       */
      public Builder setJillBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000200;
        jill_ = value;
        onChanged();
        return this;
      }

      // optional string main_dex_classes = 11;
      private java.lang.Object mainDexClasses_ = "";
      /**
       * <code>optional string main_dex_classes = 11;</code>
       */
      public boolean hasMainDexClasses() {
        return ((bitField0_ & 0x00000400) == 0x00000400);
      }
      /**
       * <code>optional string main_dex_classes = 11;</code>
       */
      public java.lang.String getMainDexClasses() {
        java.lang.Object ref = mainDexClasses_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          mainDexClasses_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string main_dex_classes = 11;</code>
       */
      public com.google.protobuf.ByteString
          getMainDexClassesBytes() {
        java.lang.Object ref = mainDexClasses_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          mainDexClasses_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string main_dex_classes = 11;</code>
       */
      public Builder setMainDexClasses(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
        mainDexClasses_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string main_dex_classes = 11;</code>
       */
      public Builder clearMainDexClasses() {
        bitField0_ = (bitField0_ & ~0x00000400);
        mainDexClasses_ = getDefaultInstance().getMainDexClasses();
        onChanged();
        return this;
      }
      /**
       * <code>optional string main_dex_classes = 11;</code>
       */
      public Builder setMainDexClassesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
        mainDexClasses_ = value;
        onChanged();
        return this;
      }

      // optional string main_dex_list_creator = 12;
      private java.lang.Object mainDexListCreator_ = "";
      /**
       * <code>optional string main_dex_list_creator = 12;</code>
       */
      public boolean hasMainDexListCreator() {
        return ((bitField0_ & 0x00000800) == 0x00000800);
      }
      /**
       * <code>optional string main_dex_list_creator = 12;</code>
       */
      public java.lang.String getMainDexListCreator() {
        java.lang.Object ref = mainDexListCreator_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          mainDexListCreator_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string main_dex_list_creator = 12;</code>
       */
      public com.google.protobuf.ByteString
          getMainDexListCreatorBytes() {
        java.lang.Object ref = mainDexListCreator_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          mainDexListCreator_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string main_dex_list_creator = 12;</code>
       */
      public Builder setMainDexListCreator(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000800;
        mainDexListCreator_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string main_dex_list_creator = 12;</code>
       */
      public Builder clearMainDexListCreator() {
        bitField0_ = (bitField0_ & ~0x00000800);
        mainDexListCreator_ = getDefaultInstance().getMainDexListCreator();
        onChanged();
        return this;
      }
      /**
       * <code>optional string main_dex_list_creator = 12;</code>
       */
      public Builder setMainDexListCreatorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000800;
        mainDexListCreator_ = value;
        onChanged();
        return this;
      }

      // optional string proguard = 13;
      private java.lang.Object proguard_ = "";
      /**
       * <code>optional string proguard = 13;</code>
       */
      public boolean hasProguard() {
        return ((bitField0_ & 0x00001000) == 0x00001000);
      }
      /**
       * <code>optional string proguard = 13;</code>
       */
      public java.lang.String getProguard() {
        java.lang.Object ref = proguard_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          proguard_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string proguard = 13;</code>
       */
      public com.google.protobuf.ByteString
          getProguardBytes() {
        java.lang.Object ref = proguard_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          proguard_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string proguard = 13;</code>
       */
      public Builder setProguard(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00001000;
        proguard_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string proguard = 13;</code>
       */
      public Builder clearProguard() {
        bitField0_ = (bitField0_ & ~0x00001000);
        proguard_ = getDefaultInstance().getProguard();
        onChanged();
        return this;
      }
      /**
       * <code>optional string proguard = 13;</code>
       */
      public Builder setProguardBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00001000;
        proguard_ = value;
        onChanged();
        return this;
      }

      // optional string resource_extractor = 14;
      private java.lang.Object resourceExtractor_ = "";
      /**
       * <code>optional string resource_extractor = 14;</code>
       */
      public boolean hasResourceExtractor() {
        return ((bitField0_ & 0x00002000) == 0x00002000);
      }
      /**
       * <code>optional string resource_extractor = 14;</code>
       */
      public java.lang.String getResourceExtractor() {
        java.lang.Object ref = resourceExtractor_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          resourceExtractor_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string resource_extractor = 14;</code>
       */
      public com.google.protobuf.ByteString
          getResourceExtractorBytes() {
        java.lang.Object ref = resourceExtractor_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          resourceExtractor_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string resource_extractor = 14;</code>
       */
      public Builder setResourceExtractor(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00002000;
        resourceExtractor_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string resource_extractor = 14;</code>
       */
      public Builder clearResourceExtractor() {
        bitField0_ = (bitField0_ & ~0x00002000);
        resourceExtractor_ = getDefaultInstance().getResourceExtractor();
        onChanged();
        return this;
      }
      /**
       * <code>optional string resource_extractor = 14;</code>
       */
      public Builder setResourceExtractorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00002000;
        resourceExtractor_ = value;
        onChanged();
        return this;
      }

      // optional string shrinked_android_jar = 15;
      private java.lang.Object shrinkedAndroidJar_ = "";
      /**
       * <code>optional string shrinked_android_jar = 15;</code>
       */
      public boolean hasShrinkedAndroidJar() {
        return ((bitField0_ & 0x00004000) == 0x00004000);
      }
      /**
       * <code>optional string shrinked_android_jar = 15;</code>
       */
      public java.lang.String getShrinkedAndroidJar() {
        java.lang.Object ref = shrinkedAndroidJar_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          shrinkedAndroidJar_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string shrinked_android_jar = 15;</code>
       */
      public com.google.protobuf.ByteString
          getShrinkedAndroidJarBytes() {
        java.lang.Object ref = shrinkedAndroidJar_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          shrinkedAndroidJar_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string shrinked_android_jar = 15;</code>
       */
      public Builder setShrinkedAndroidJar(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00004000;
        shrinkedAndroidJar_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string shrinked_android_jar = 15;</code>
       */
      public Builder clearShrinkedAndroidJar() {
        bitField0_ = (bitField0_ & ~0x00004000);
        shrinkedAndroidJar_ = getDefaultInstance().getShrinkedAndroidJar();
        onChanged();
        return this;
      }
      /**
       * <code>optional string shrinked_android_jar = 15;</code>
       */
      public Builder setShrinkedAndroidJarBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00004000;
        shrinkedAndroidJar_ = value;
        onChanged();
        return this;
      }

      // optional string zipalign = 16;
      private java.lang.Object zipalign_ = "";
      /**
       * <code>optional string zipalign = 16;</code>
       */
      public boolean hasZipalign() {
        return ((bitField0_ & 0x00008000) == 0x00008000);
      }
      /**
       * <code>optional string zipalign = 16;</code>
       */
      public java.lang.String getZipalign() {
        java.lang.Object ref = zipalign_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          zipalign_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string zipalign = 16;</code>
       */
      public com.google.protobuf.ByteString
          getZipalignBytes() {
        java.lang.Object ref = zipalign_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          zipalign_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string zipalign = 16;</code>
       */
      public Builder setZipalign(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00008000;
        zipalign_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string zipalign = 16;</code>
       */
      public Builder clearZipalign() {
        bitField0_ = (bitField0_ & ~0x00008000);
        zipalign_ = getDefaultInstance().getZipalign();
        onChanged();
        return this;
      }
      /**
       * <code>optional string zipalign = 16;</code>
       */
      public Builder setZipalignBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00008000;
        zipalign_ = value;
        onChanged();
        return this;
      }

      // optional string build_tools_version = 17;
      private java.lang.Object buildToolsVersion_ = "";
      /**
       * <code>optional string build_tools_version = 17;</code>
       *
       * <pre>
       * assume latest if not set
       * </pre>
       */
      public boolean hasBuildToolsVersion() {
        return ((bitField0_ & 0x00010000) == 0x00010000);
      }
      /**
       * <code>optional string build_tools_version = 17;</code>
       *
       * <pre>
       * assume latest if not set
       * </pre>
       */
      public java.lang.String getBuildToolsVersion() {
        java.lang.Object ref = buildToolsVersion_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          buildToolsVersion_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string build_tools_version = 17;</code>
       *
       * <pre>
       * assume latest if not set
       * </pre>
       */
      public com.google.protobuf.ByteString
          getBuildToolsVersionBytes() {
        java.lang.Object ref = buildToolsVersion_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          buildToolsVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string build_tools_version = 17;</code>
       *
       * <pre>
       * assume latest if not set
       * </pre>
       */
      public Builder setBuildToolsVersion(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00010000;
        buildToolsVersion_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string build_tools_version = 17;</code>
       *
       * <pre>
       * assume latest if not set
       * </pre>
       */
      public Builder clearBuildToolsVersion() {
        bitField0_ = (bitField0_ & ~0x00010000);
        buildToolsVersion_ = getDefaultInstance().getBuildToolsVersion();
        onChanged();
        return this;
      }
      /**
       * <code>optional string build_tools_version = 17;</code>
       *
       * <pre>
       * assume latest if not set
       * </pre>
       */
      public Builder setBuildToolsVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00010000;
        buildToolsVersion_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:blaze.apk_manifest.AndroidSdk)
    }

    static {
      defaultInstance = new AndroidSdk(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:blaze.apk_manifest.AndroidSdk)
  }

  public interface ApkManifestOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;
    /**
     * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
     *
     * <pre>
     * Information about the AndroidSdk
     * </pre>
     */
    boolean hasAndroidSdk();
    /**
     * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
     *
     * <pre>
     * Information about the AndroidSdk
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk getAndroidSdk();
    /**
     * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
     *
     * <pre>
     * Information about the AndroidSdk
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder getAndroidSdkOrBuilder();

    // repeated .blaze.apk_manifest.Artifact jars = 2;
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> 
        getJarsList();
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getJars(int index);
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    int getJarsCount();
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
        getJarsOrBuilderList();
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getJarsOrBuilder(
        int index);

    // optional .blaze.apk_manifest.Artifact resource_apk = 3;
    /**
     * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
     *
     * <pre>
     * The .ap_ that contains the resources that go into the APK
     * </pre>
     */
    boolean hasResourceApk();
    /**
     * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
     *
     * <pre>
     * The .ap_ that contains the resources that go into the APK
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getResourceApk();
    /**
     * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
     *
     * <pre>
     * The .ap_ that contains the resources that go into the APK
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getResourceApkOrBuilder();

    // repeated .blaze.apk_manifest.NativeLib native_lib = 4;
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib> 
        getNativeLibList();
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib getNativeLib(int index);
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    int getNativeLibCount();
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder> 
        getNativeLibOrBuilderList();
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder getNativeLibOrBuilder(
        int index);

    // optional .blaze.apk_manifest.Artifact android_manifest = 5;
    /**
     * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
     *
     * <pre>
     * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
     * </pre>
     */
    boolean hasAndroidManifest();
    /**
     * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
     *
     * <pre>
     * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getAndroidManifest();
    /**
     * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
     *
     * <pre>
     * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
     * </pre>
     */
    com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getAndroidManifestOrBuilder();
  }
  /**
   * Protobuf type {@code blaze.apk_manifest.ApkManifest}
   */
  public static final class ApkManifest extends
      com.google.protobuf.GeneratedMessage
      implements ApkManifestOrBuilder {
    // Use ApkManifest.newBuilder() to construct.
    private ApkManifest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ApkManifest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final ApkManifest defaultInstance;
    public static ApkManifest getDefaultInstance() {
      return defaultInstance;
    }

    public ApkManifest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ApkManifest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = androidSdk_.toBuilder();
              }
              androidSdk_ = input.readMessage(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(androidSdk_);
                androidSdk_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                jars_ = new java.util.ArrayList<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact>();
                mutable_bitField0_ |= 0x00000002;
              }
              jars_.add(input.readMessage(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.PARSER, extensionRegistry));
              break;
            }
            case 26: {
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = resourceApk_.toBuilder();
              }
              resourceApk_ = input.readMessage(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(resourceApk_);
                resourceApk_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 34: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                nativeLib_ = new java.util.ArrayList<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib>();
                mutable_bitField0_ |= 0x00000008;
              }
              nativeLib_.add(input.readMessage(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.PARSER, extensionRegistry));
              break;
            }
            case 42: {
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = androidManifest_.toBuilder();
              }
              androidManifest_ = input.readMessage(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(androidManifest_);
                androidManifest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          jars_ = java.util.Collections.unmodifiableList(jars_);
        }
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          nativeLib_ = java.util.Collections.unmodifiableList(nativeLib_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_ApkManifest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_ApkManifest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.Builder.class);
    }

    public static com.google.protobuf.Parser<ApkManifest> PARSER =
        new com.google.protobuf.AbstractParser<ApkManifest>() {
      public ApkManifest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ApkManifest(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;
    public static final int ANDROID_SDK_FIELD_NUMBER = 1;
    private com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk androidSdk_;
    /**
     * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
     *
     * <pre>
     * Information about the AndroidSdk
     * </pre>
     */
    public boolean hasAndroidSdk() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
     *
     * <pre>
     * Information about the AndroidSdk
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk getAndroidSdk() {
      return androidSdk_;
    }
    /**
     * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
     *
     * <pre>
     * Information about the AndroidSdk
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder getAndroidSdkOrBuilder() {
      return androidSdk_;
    }

    // repeated .blaze.apk_manifest.Artifact jars = 2;
    public static final int JARS_FIELD_NUMBER = 2;
    private java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> jars_;
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> getJarsList() {
      return jars_;
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    public java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
        getJarsOrBuilderList() {
      return jars_;
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    public int getJarsCount() {
      return jars_.size();
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getJars(int index) {
      return jars_.get(index);
    }
    /**
     * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
     *
     * <pre>
     * All the jars containing the classes that would be dex and go into the APK
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getJarsOrBuilder(
        int index) {
      return jars_.get(index);
    }

    // optional .blaze.apk_manifest.Artifact resource_apk = 3;
    public static final int RESOURCE_APK_FIELD_NUMBER = 3;
    private com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact resourceApk_;
    /**
     * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
     *
     * <pre>
     * The .ap_ that contains the resources that go into the APK
     * </pre>
     */
    public boolean hasResourceApk() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
     *
     * <pre>
     * The .ap_ that contains the resources that go into the APK
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getResourceApk() {
      return resourceApk_;
    }
    /**
     * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
     *
     * <pre>
     * The .ap_ that contains the resources that go into the APK
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getResourceApkOrBuilder() {
      return resourceApk_;
    }

    // repeated .blaze.apk_manifest.NativeLib native_lib = 4;
    public static final int NATIVE_LIB_FIELD_NUMBER = 4;
    private java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib> nativeLib_;
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib> getNativeLibList() {
      return nativeLib_;
    }
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    public java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder> 
        getNativeLibOrBuilderList() {
      return nativeLib_;
    }
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    public int getNativeLibCount() {
      return nativeLib_.size();
    }
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib getNativeLib(int index) {
      return nativeLib_.get(index);
    }
    /**
     * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
     *
     * <pre>
     * The native library files that go into the APK
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder getNativeLibOrBuilder(
        int index) {
      return nativeLib_.get(index);
    }

    // optional .blaze.apk_manifest.Artifact android_manifest = 5;
    public static final int ANDROID_MANIFEST_FIELD_NUMBER = 5;
    private com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact androidManifest_;
    /**
     * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
     *
     * <pre>
     * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
     * </pre>
     */
    public boolean hasAndroidManifest() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
     *
     * <pre>
     * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getAndroidManifest() {
      return androidManifest_;
    }
    /**
     * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
     *
     * <pre>
     * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
     * </pre>
     */
    public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getAndroidManifestOrBuilder() {
      return androidManifest_;
    }

    private void initFields() {
      androidSdk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance();
      jars_ = java.util.Collections.emptyList();
      resourceApk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
      nativeLib_ = java.util.Collections.emptyList();
      androidManifest_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, androidSdk_);
      }
      for (int i = 0; i < jars_.size(); i++) {
        output.writeMessage(2, jars_.get(i));
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(3, resourceApk_);
      }
      for (int i = 0; i < nativeLib_.size(); i++) {
        output.writeMessage(4, nativeLib_.get(i));
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(5, androidManifest_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, androidSdk_);
      }
      for (int i = 0; i < jars_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, jars_.get(i));
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, resourceApk_);
      }
      for (int i = 0; i < nativeLib_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, nativeLib_.get(i));
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, androidManifest_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest 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.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest 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.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code blaze.apk_manifest.ApkManifest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_ApkManifest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_ApkManifest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.class, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getAndroidSdkFieldBuilder();
          getJarsFieldBuilder();
          getResourceApkFieldBuilder();
          getNativeLibFieldBuilder();
          getAndroidManifestFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (androidSdkBuilder_ == null) {
          androidSdk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance();
        } else {
          androidSdkBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (jarsBuilder_ == null) {
          jars_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          jarsBuilder_.clear();
        }
        if (resourceApkBuilder_ == null) {
          resourceApk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
        } else {
          resourceApkBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (nativeLibBuilder_ == null) {
          nativeLib_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          nativeLibBuilder_.clear();
        }
        if (androidManifestBuilder_ == null) {
          androidManifest_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
        } else {
          androidManifestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.internal_static_blaze_apk_manifest_ApkManifest_descriptor;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest getDefaultInstanceForType() {
        return com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.getDefaultInstance();
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest build() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest buildPartial() {
        com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest result = new com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (androidSdkBuilder_ == null) {
          result.androidSdk_ = androidSdk_;
        } else {
          result.androidSdk_ = androidSdkBuilder_.build();
        }
        if (jarsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            jars_ = java.util.Collections.unmodifiableList(jars_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.jars_ = jars_;
        } else {
          result.jars_ = jarsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000002;
        }
        if (resourceApkBuilder_ == null) {
          result.resourceApk_ = resourceApk_;
        } else {
          result.resourceApk_ = resourceApkBuilder_.build();
        }
        if (nativeLibBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008)) {
            nativeLib_ = java.util.Collections.unmodifiableList(nativeLib_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.nativeLib_ = nativeLib_;
        } else {
          result.nativeLib_ = nativeLibBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000004;
        }
        if (androidManifestBuilder_ == null) {
          result.androidManifest_ = androidManifest_;
        } else {
          result.androidManifest_ = androidManifestBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest) {
          return mergeFrom((com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest other) {
        if (other == com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest.getDefaultInstance()) return this;
        if (other.hasAndroidSdk()) {
          mergeAndroidSdk(other.getAndroidSdk());
        }
        if (jarsBuilder_ == null) {
          if (!other.jars_.isEmpty()) {
            if (jars_.isEmpty()) {
              jars_ = other.jars_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureJarsIsMutable();
              jars_.addAll(other.jars_);
            }
            onChanged();
          }
        } else {
          if (!other.jars_.isEmpty()) {
            if (jarsBuilder_.isEmpty()) {
              jarsBuilder_.dispose();
              jarsBuilder_ = null;
              jars_ = other.jars_;
              bitField0_ = (bitField0_ & ~0x00000002);
              jarsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getJarsFieldBuilder() : null;
            } else {
              jarsBuilder_.addAllMessages(other.jars_);
            }
          }
        }
        if (other.hasResourceApk()) {
          mergeResourceApk(other.getResourceApk());
        }
        if (nativeLibBuilder_ == null) {
          if (!other.nativeLib_.isEmpty()) {
            if (nativeLib_.isEmpty()) {
              nativeLib_ = other.nativeLib_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureNativeLibIsMutable();
              nativeLib_.addAll(other.nativeLib_);
            }
            onChanged();
          }
        } else {
          if (!other.nativeLib_.isEmpty()) {
            if (nativeLibBuilder_.isEmpty()) {
              nativeLibBuilder_.dispose();
              nativeLibBuilder_ = null;
              nativeLib_ = other.nativeLib_;
              bitField0_ = (bitField0_ & ~0x00000008);
              nativeLibBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getNativeLibFieldBuilder() : null;
            } else {
              nativeLibBuilder_.addAllMessages(other.nativeLib_);
            }
          }
        }
        if (other.hasAndroidManifest()) {
          mergeAndroidManifest(other.getAndroidManifest());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ApkManifest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;
      private com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk androidSdk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder> androidSdkBuilder_;
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public boolean hasAndroidSdk() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk getAndroidSdk() {
        if (androidSdkBuilder_ == null) {
          return androidSdk_;
        } else {
          return androidSdkBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public Builder setAndroidSdk(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk value) {
        if (androidSdkBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          androidSdk_ = value;
          onChanged();
        } else {
          androidSdkBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public Builder setAndroidSdk(
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder builderForValue) {
        if (androidSdkBuilder_ == null) {
          androidSdk_ = builderForValue.build();
          onChanged();
        } else {
          androidSdkBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public Builder mergeAndroidSdk(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk value) {
        if (androidSdkBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              androidSdk_ != com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance()) {
            androidSdk_ =
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.newBuilder(androidSdk_).mergeFrom(value).buildPartial();
          } else {
            androidSdk_ = value;
          }
          onChanged();
        } else {
          androidSdkBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public Builder clearAndroidSdk() {
        if (androidSdkBuilder_ == null) {
          androidSdk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.getDefaultInstance();
          onChanged();
        } else {
          androidSdkBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder getAndroidSdkBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAndroidSdkFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder getAndroidSdkOrBuilder() {
        if (androidSdkBuilder_ != null) {
          return androidSdkBuilder_.getMessageOrBuilder();
        } else {
          return androidSdk_;
        }
      }
      /**
       * <code>optional .blaze.apk_manifest.AndroidSdk android_sdk = 1;</code>
       *
       * <pre>
       * Information about the AndroidSdk
       * </pre>
       */
      private com.google.protobuf.SingleFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder> 
          getAndroidSdkFieldBuilder() {
        if (androidSdkBuilder_ == null) {
          androidSdkBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdk.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.AndroidSdkOrBuilder>(
                  androidSdk_,
                  getParentForChildren(),
                  isClean());
          androidSdk_ = null;
        }
        return androidSdkBuilder_;
      }

      // repeated .blaze.apk_manifest.Artifact jars = 2;
      private java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> jars_ =
        java.util.Collections.emptyList();
      private void ensureJarsIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          jars_ = new java.util.ArrayList<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact>(jars_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> jarsBuilder_;

      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> getJarsList() {
        if (jarsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(jars_);
        } else {
          return jarsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public int getJarsCount() {
        if (jarsBuilder_ == null) {
          return jars_.size();
        } else {
          return jarsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getJars(int index) {
        if (jarsBuilder_ == null) {
          return jars_.get(index);
        } else {
          return jarsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder setJars(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (jarsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureJarsIsMutable();
          jars_.set(index, value);
          onChanged();
        } else {
          jarsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder setJars(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (jarsBuilder_ == null) {
          ensureJarsIsMutable();
          jars_.set(index, builderForValue.build());
          onChanged();
        } else {
          jarsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder addJars(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (jarsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureJarsIsMutable();
          jars_.add(value);
          onChanged();
        } else {
          jarsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder addJars(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (jarsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureJarsIsMutable();
          jars_.add(index, value);
          onChanged();
        } else {
          jarsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder addJars(
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (jarsBuilder_ == null) {
          ensureJarsIsMutable();
          jars_.add(builderForValue.build());
          onChanged();
        } else {
          jarsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder addJars(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (jarsBuilder_ == null) {
          ensureJarsIsMutable();
          jars_.add(index, builderForValue.build());
          onChanged();
        } else {
          jarsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder addAllJars(
          java.lang.Iterable<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact> values) {
        if (jarsBuilder_ == null) {
          ensureJarsIsMutable();
          super.addAll(values, jars_);
          onChanged();
        } else {
          jarsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder clearJars() {
        if (jarsBuilder_ == null) {
          jars_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          jarsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public Builder removeJars(int index) {
        if (jarsBuilder_ == null) {
          ensureJarsIsMutable();
          jars_.remove(index);
          onChanged();
        } else {
          jarsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder getJarsBuilder(
          int index) {
        return getJarsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getJarsOrBuilder(
          int index) {
        if (jarsBuilder_ == null) {
          return jars_.get(index);  } else {
          return jarsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
           getJarsOrBuilderList() {
        if (jarsBuilder_ != null) {
          return jarsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(jars_);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder addJarsBuilder() {
        return getJarsFieldBuilder().addBuilder(
            com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance());
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder addJarsBuilder(
          int index) {
        return getJarsFieldBuilder().addBuilder(
            index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance());
      }
      /**
       * <code>repeated .blaze.apk_manifest.Artifact jars = 2;</code>
       *
       * <pre>
       * All the jars containing the classes that would be dex and go into the APK
       * </pre>
       */
      public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder> 
           getJarsBuilderList() {
        return getJarsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
          getJarsFieldBuilder() {
        if (jarsBuilder_ == null) {
          jarsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder>(
                  jars_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          jars_ = null;
        }
        return jarsBuilder_;
      }

      // optional .blaze.apk_manifest.Artifact resource_apk = 3;
      private com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact resourceApk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> resourceApkBuilder_;
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public boolean hasResourceApk() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getResourceApk() {
        if (resourceApkBuilder_ == null) {
          return resourceApk_;
        } else {
          return resourceApkBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public Builder setResourceApk(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (resourceApkBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resourceApk_ = value;
          onChanged();
        } else {
          resourceApkBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public Builder setResourceApk(
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (resourceApkBuilder_ == null) {
          resourceApk_ = builderForValue.build();
          onChanged();
        } else {
          resourceApkBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public Builder mergeResourceApk(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (resourceApkBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              resourceApk_ != com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance()) {
            resourceApk_ =
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.newBuilder(resourceApk_).mergeFrom(value).buildPartial();
          } else {
            resourceApk_ = value;
          }
          onChanged();
        } else {
          resourceApkBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public Builder clearResourceApk() {
        if (resourceApkBuilder_ == null) {
          resourceApk_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
          onChanged();
        } else {
          resourceApkBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder getResourceApkBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getResourceApkFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getResourceApkOrBuilder() {
        if (resourceApkBuilder_ != null) {
          return resourceApkBuilder_.getMessageOrBuilder();
        } else {
          return resourceApk_;
        }
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact resource_apk = 3;</code>
       *
       * <pre>
       * The .ap_ that contains the resources that go into the APK
       * </pre>
       */
      private com.google.protobuf.SingleFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
          getResourceApkFieldBuilder() {
        if (resourceApkBuilder_ == null) {
          resourceApkBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder>(
                  resourceApk_,
                  getParentForChildren(),
                  isClean());
          resourceApk_ = null;
        }
        return resourceApkBuilder_;
      }

      // repeated .blaze.apk_manifest.NativeLib native_lib = 4;
      private java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib> nativeLib_ =
        java.util.Collections.emptyList();
      private void ensureNativeLibIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          nativeLib_ = new java.util.ArrayList<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib>(nativeLib_);
          bitField0_ |= 0x00000008;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder> nativeLibBuilder_;

      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib> getNativeLibList() {
        if (nativeLibBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nativeLib_);
        } else {
          return nativeLibBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public int getNativeLibCount() {
        if (nativeLibBuilder_ == null) {
          return nativeLib_.size();
        } else {
          return nativeLibBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib getNativeLib(int index) {
        if (nativeLibBuilder_ == null) {
          return nativeLib_.get(index);
        } else {
          return nativeLibBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder setNativeLib(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib value) {
        if (nativeLibBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNativeLibIsMutable();
          nativeLib_.set(index, value);
          onChanged();
        } else {
          nativeLibBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder setNativeLib(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder builderForValue) {
        if (nativeLibBuilder_ == null) {
          ensureNativeLibIsMutable();
          nativeLib_.set(index, builderForValue.build());
          onChanged();
        } else {
          nativeLibBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder addNativeLib(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib value) {
        if (nativeLibBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNativeLibIsMutable();
          nativeLib_.add(value);
          onChanged();
        } else {
          nativeLibBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder addNativeLib(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib value) {
        if (nativeLibBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNativeLibIsMutable();
          nativeLib_.add(index, value);
          onChanged();
        } else {
          nativeLibBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder addNativeLib(
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder builderForValue) {
        if (nativeLibBuilder_ == null) {
          ensureNativeLibIsMutable();
          nativeLib_.add(builderForValue.build());
          onChanged();
        } else {
          nativeLibBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder addNativeLib(
          int index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder builderForValue) {
        if (nativeLibBuilder_ == null) {
          ensureNativeLibIsMutable();
          nativeLib_.add(index, builderForValue.build());
          onChanged();
        } else {
          nativeLibBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder addAllNativeLib(
          java.lang.Iterable<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib> values) {
        if (nativeLibBuilder_ == null) {
          ensureNativeLibIsMutable();
          super.addAll(values, nativeLib_);
          onChanged();
        } else {
          nativeLibBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder clearNativeLib() {
        if (nativeLibBuilder_ == null) {
          nativeLib_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          nativeLibBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public Builder removeNativeLib(int index) {
        if (nativeLibBuilder_ == null) {
          ensureNativeLibIsMutable();
          nativeLib_.remove(index);
          onChanged();
        } else {
          nativeLibBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder getNativeLibBuilder(
          int index) {
        return getNativeLibFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder getNativeLibOrBuilder(
          int index) {
        if (nativeLibBuilder_ == null) {
          return nativeLib_.get(index);  } else {
          return nativeLibBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public java.util.List<? extends com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder> 
           getNativeLibOrBuilderList() {
        if (nativeLibBuilder_ != null) {
          return nativeLibBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nativeLib_);
        }
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder addNativeLibBuilder() {
        return getNativeLibFieldBuilder().addBuilder(
            com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.getDefaultInstance());
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder addNativeLibBuilder(
          int index) {
        return getNativeLibFieldBuilder().addBuilder(
            index, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.getDefaultInstance());
      }
      /**
       * <code>repeated .blaze.apk_manifest.NativeLib native_lib = 4;</code>
       *
       * <pre>
       * The native library files that go into the APK
       * </pre>
       */
      public java.util.List<com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder> 
           getNativeLibBuilderList() {
        return getNativeLibFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder> 
          getNativeLibFieldBuilder() {
        if (nativeLibBuilder_ == null) {
          nativeLibBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLib.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.NativeLibOrBuilder>(
                  nativeLib_,
                  ((bitField0_ & 0x00000008) == 0x00000008),
                  getParentForChildren(),
                  isClean());
          nativeLib_ = null;
        }
        return nativeLibBuilder_;
      }

      // optional .blaze.apk_manifest.Artifact android_manifest = 5;
      private com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact androidManifest_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> androidManifestBuilder_;
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public boolean hasAndroidManifest() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact getAndroidManifest() {
        if (androidManifestBuilder_ == null) {
          return androidManifest_;
        } else {
          return androidManifestBuilder_.getMessage();
        }
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public Builder setAndroidManifest(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (androidManifestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          androidManifest_ = value;
          onChanged();
        } else {
          androidManifestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public Builder setAndroidManifest(
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder builderForValue) {
        if (androidManifestBuilder_ == null) {
          androidManifest_ = builderForValue.build();
          onChanged();
        } else {
          androidManifestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public Builder mergeAndroidManifest(com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact value) {
        if (androidManifestBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010) &&
              androidManifest_ != com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance()) {
            androidManifest_ =
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.newBuilder(androidManifest_).mergeFrom(value).buildPartial();
          } else {
            androidManifest_ = value;
          }
          onChanged();
        } else {
          androidManifestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public Builder clearAndroidManifest() {
        if (androidManifestBuilder_ == null) {
          androidManifest_ = com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.getDefaultInstance();
          onChanged();
        } else {
          androidManifestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder getAndroidManifestBuilder() {
        bitField0_ |= 0x00000010;
        onChanged();
        return getAndroidManifestFieldBuilder().getBuilder();
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      public com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder getAndroidManifestOrBuilder() {
        if (androidManifestBuilder_ != null) {
          return androidManifestBuilder_.getMessageOrBuilder();
        } else {
          return androidManifest_;
        }
      }
      /**
       * <code>optional .blaze.apk_manifest.Artifact android_manifest = 5;</code>
       *
       * <pre>
       * The final merged AndroidManifest.xml file (in text, i.e. non-binary, XML)
       * </pre>
       */
      private com.google.protobuf.SingleFieldBuilder<
          com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder> 
          getAndroidManifestFieldBuilder() {
        if (androidManifestBuilder_ == null) {
          androidManifestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.Artifact.Builder, com.google.devtools.build.lib.rules.android.apkmanifest.ExternalBuildApkManifest.ArtifactOrBuilder>(
                  androidManifest_,
                  getParentForChildren(),
                  isClean());
          androidManifest_ = null;
        }
        return androidManifestBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:blaze.apk_manifest.ApkManifest)
    }

    static {
      defaultInstance = new ApkManifest(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:blaze.apk_manifest.ApkManifest)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_apk_manifest_Artifact_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_blaze_apk_manifest_Artifact_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_apk_manifest_NativeLib_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_blaze_apk_manifest_NativeLib_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_apk_manifest_AndroidSdk_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_blaze_apk_manifest_AndroidSdk_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_apk_manifest_ApkManifest_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_blaze_apk_manifest_ApkManifest_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n!src/main/proto/apk_manifest.proto\022\022bla" +
      "ze.apk_manifest\"0\n\010Artifact\022\026\n\016exec_root" +
      "_path\030\001 \001(\t\022\014\n\004hash\030\002 \001(\014\"L\n\tNativeLib\0221" +
      "\n\013native_libs\030\001 \003(\0132\034.blaze.apk_manifest" +
      ".Artifact\022\014\n\004arch\030\002 \001(\t\"\353\002\n\nAndroidSdk\022\014" +
      "\n\004aapt\030\001 \001(\t\022\013\n\003adb\030\002 \001(\t\022\014\n\004aidl\030\003 \001(\t\022" +
      "\023\n\013android_jar\030\004 \001(\t\022\027\n\017annotations_jar\030" +
      "\005 \001(\t\022\022\n\napkbuilder\030\006 \001(\t\022\n\n\002dx\030\007 \001(\t\022\026\n" +
      "\016framework_aidl\030\010 \001(\t\022\014\n\004jack\030\t \001(\t\022\014\n\004j" +
      "ill\030\n \001(\t\022\030\n\020main_dex_classes\030\013 \001(\t\022\035\n\025m",
      "ain_dex_list_creator\030\014 \001(\t\022\020\n\010proguard\030\r" +
      " \001(\t\022\032\n\022resource_extractor\030\016 \001(\t\022\034\n\024shri" +
      "nked_android_jar\030\017 \001(\t\022\020\n\010zipalign\030\020 \001(\t" +
      "\022\033\n\023build_tools_version\030\021 \001(\t\"\215\002\n\013ApkMan" +
      "ifest\0223\n\013android_sdk\030\001 \001(\0132\036.blaze.apk_m" +
      "anifest.AndroidSdk\022*\n\004jars\030\002 \003(\0132\034.blaze" +
      ".apk_manifest.Artifact\0222\n\014resource_apk\030\003" +
      " \001(\0132\034.blaze.apk_manifest.Artifact\0221\n\nna" +
      "tive_lib\030\004 \003(\0132\035.blaze.apk_manifest.Nati" +
      "veLib\0226\n\020android_manifest\030\005 \001(\0132\034.blaze.",
      "apk_manifest.ArtifactBS\n7com.google.devt" +
      "ools.build.lib.rules.android.apkmanifest" +
      "B\030ExternalBuildApkManifest"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
        public com.google.protobuf.ExtensionRegistry assignDescriptors(
            com.google.protobuf.Descriptors.FileDescriptor root) {
          descriptor = root;
          internal_static_blaze_apk_manifest_Artifact_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_blaze_apk_manifest_Artifact_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_blaze_apk_manifest_Artifact_descriptor,
              new java.lang.String[] { "ExecRootPath", "Hash", });
          internal_static_blaze_apk_manifest_NativeLib_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_blaze_apk_manifest_NativeLib_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_blaze_apk_manifest_NativeLib_descriptor,
              new java.lang.String[] { "NativeLibs", "Arch", });
          internal_static_blaze_apk_manifest_AndroidSdk_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_blaze_apk_manifest_AndroidSdk_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_blaze_apk_manifest_AndroidSdk_descriptor,
              new java.lang.String[] { "Aapt", "Adb", "Aidl", "AndroidJar", "AnnotationsJar", "Apkbuilder", "Dx", "FrameworkAidl", "Jack", "Jill", "MainDexClasses", "MainDexListCreator", "Proguard", "ResourceExtractor", "ShrinkedAndroidJar", "Zipalign", "BuildToolsVersion", });
          internal_static_blaze_apk_manifest_ApkManifest_descriptor =
            getDescriptor().getMessageTypes().get(3);
          internal_static_blaze_apk_manifest_ApkManifest_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_blaze_apk_manifest_ApkManifest_descriptor,
              new java.lang.String[] { "AndroidSdk", "Jars", "ResourceApk", "NativeLib", "AndroidManifest", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}
