All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yarn_security_token.proto

package org.apache.hadoop.yarn.proto;

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

    // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    boolean hasAppAttemptId();
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId();
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder();

    // optional .hadoop.yarn.NodeIdProto nodeId = 2;
    /**
     * optional .hadoop.yarn.NodeIdProto nodeId = 2;
     */
    boolean hasNodeId();
    /**
     * optional .hadoop.yarn.NodeIdProto nodeId = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
    /**
     * optional .hadoop.yarn.NodeIdProto nodeId = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();

    // optional string appSubmitter = 3;
    /**
     * optional string appSubmitter = 3;
     */
    boolean hasAppSubmitter();
    /**
     * optional string appSubmitter = 3;
     */
    java.lang.String getAppSubmitter();
    /**
     * optional string appSubmitter = 3;
     */
    com.google.protobuf.ByteString
        getAppSubmitterBytes();

    // optional int32 keyId = 4 [default = -1];
    /**
     * optional int32 keyId = 4 [default = -1];
     */
    boolean hasKeyId();
    /**
     * optional int32 keyId = 4 [default = -1];
     */
    int getKeyId();
  }
  /**
   * Protobuf type {@code hadoop.yarn.NMTokenIdentifierProto}
   */
  public static final class NMTokenIdentifierProto extends
      com.google.protobuf.GeneratedMessage
      implements NMTokenIdentifierProtoOrBuilder {
    // Use NMTokenIdentifierProto.newBuilder() to construct.
    private NMTokenIdentifierProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NMTokenIdentifierProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public NMTokenIdentifierProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NMTokenIdentifierProto(
        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: {
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = appAttemptId_.toBuilder();
              }
              appAttemptId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(appAttemptId_);
                appAttemptId_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = nodeId_.toBuilder();
              }
              nodeId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeId_);
                nodeId_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              appSubmitter_ = input.readBytes();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              keyId_ = input.readInt32();
              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 org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
    public static final int APPATTEMPTID_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_;
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public boolean hasAppAttemptId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
      return appAttemptId_;
    }
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
      return appAttemptId_;
    }

    // optional .hadoop.yarn.NodeIdProto nodeId = 2;
    public static final int NODEID_FIELD_NUMBER = 2;
    private org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
    /**
     * optional .hadoop.yarn.NodeIdProto nodeId = 2;
     */
    public boolean hasNodeId() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .hadoop.yarn.NodeIdProto nodeId = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
      return nodeId_;
    }
    /**
     * optional .hadoop.yarn.NodeIdProto nodeId = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
      return nodeId_;
    }

    // optional string appSubmitter = 3;
    public static final int APPSUBMITTER_FIELD_NUMBER = 3;
    private java.lang.Object appSubmitter_;
    /**
     * optional string appSubmitter = 3;
     */
    public boolean hasAppSubmitter() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string appSubmitter = 3;
     */
    public java.lang.String getAppSubmitter() {
      java.lang.Object ref = appSubmitter_;
      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()) {
          appSubmitter_ = s;
        }
        return s;
      }
    }
    /**
     * optional string appSubmitter = 3;
     */
    public com.google.protobuf.ByteString
        getAppSubmitterBytes() {
      java.lang.Object ref = appSubmitter_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appSubmitter_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional int32 keyId = 4 [default = -1];
    public static final int KEYID_FIELD_NUMBER = 4;
    private int keyId_;
    /**
     * optional int32 keyId = 4 [default = -1];
     */
    public boolean hasKeyId() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional int32 keyId = 4 [default = -1];
     */
    public int getKeyId() {
      return keyId_;
    }

    private void initFields() {
      appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
      nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
      appSubmitter_ = "";
      keyId_ = -1;
    }
    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, appAttemptId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, nodeId_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getAppSubmitterBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt32(4, keyId_);
      }
      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, appAttemptId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, nodeId_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getAppSubmitterBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, keyId_);
      }
      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();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto) obj;

      boolean result = true;
      result = result && (hasAppAttemptId() == other.hasAppAttemptId());
      if (hasAppAttemptId()) {
        result = result && getAppAttemptId()
            .equals(other.getAppAttemptId());
      }
      result = result && (hasNodeId() == other.hasNodeId());
      if (hasNodeId()) {
        result = result && getNodeId()
            .equals(other.getNodeId());
      }
      result = result && (hasAppSubmitter() == other.hasAppSubmitter());
      if (hasAppSubmitter()) {
        result = result && getAppSubmitter()
            .equals(other.getAppSubmitter());
      }
      result = result && (hasKeyId() == other.hasKeyId());
      if (hasKeyId()) {
        result = result && (getKeyId()
            == other.getKeyId());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasAppAttemptId()) {
        hash = (37 * hash) + APPATTEMPTID_FIELD_NUMBER;
        hash = (53 * hash) + getAppAttemptId().hashCode();
      }
      if (hasNodeId()) {
        hash = (37 * hash) + NODEID_FIELD_NUMBER;
        hash = (53 * hash) + getNodeId().hashCode();
      }
      if (hasAppSubmitter()) {
        hash = (37 * hash) + APPSUBMITTER_FIELD_NUMBER;
        hash = (53 * hash) + getAppSubmitter().hashCode();
      }
      if (hasKeyId()) {
        hash = (37 * hash) + KEYID_FIELD_NUMBER;
        hash = (53 * hash) + getKeyId();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto 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(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto 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 hadoop.yarn.NMTokenIdentifierProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProtoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierProto_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
        } else {
          appAttemptIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        appSubmitter_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        keyId_ = -1;
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.getDefaultInstance();
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto build() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (appAttemptIdBuilder_ == null) {
          result.appAttemptId_ = appAttemptId_;
        } else {
          result.appAttemptId_ = appAttemptIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (nodeIdBuilder_ == null) {
          result.nodeId_ = nodeId_;
        } else {
          result.nodeId_ = nodeIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.appSubmitter_ = appSubmitter_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.keyId_ = keyId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto) {
          return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.getDefaultInstance()) return this;
        if (other.hasAppAttemptId()) {
          mergeAppAttemptId(other.getAppAttemptId());
        }
        if (other.hasNodeId()) {
          mergeNodeId(other.getNodeId());
        }
        if (other.hasAppSubmitter()) {
          bitField0_ |= 0x00000004;
          appSubmitter_ = other.appSubmitter_;
          onChanged();
        }
        if (other.hasKeyId()) {
          setKeyId(other.getKeyId());
        }
        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 {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
      private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> appAttemptIdBuilder_;
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public boolean hasAppAttemptId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
        if (appAttemptIdBuilder_ == null) {
          return appAttemptId_;
        } else {
          return appAttemptIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder setAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
        if (appAttemptIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          appAttemptId_ = value;
          onChanged();
        } else {
          appAttemptIdBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder setAppAttemptId(
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = builderForValue.build();
          onChanged();
        } else {
          appAttemptIdBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder mergeAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
        if (appAttemptIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              appAttemptId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
            appAttemptId_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(appAttemptId_).mergeFrom(value).buildPartial();
          } else {
            appAttemptId_ = value;
          }
          onChanged();
        } else {
          appAttemptIdBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder clearAppAttemptId() {
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
          onChanged();
        } else {
          appAttemptIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getAppAttemptIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAppAttemptIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
        if (appAttemptIdBuilder_ != null) {
          return appAttemptIdBuilder_.getMessageOrBuilder();
        } else {
          return appAttemptId_;
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> 
          getAppAttemptIdFieldBuilder() {
        if (appAttemptIdBuilder_ == null) {
          appAttemptIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
                  appAttemptId_,
                  getParentForChildren(),
                  isClean());
          appAttemptId_ = null;
        }
        return appAttemptIdBuilder_;
      }

      // optional .hadoop.yarn.NodeIdProto nodeId = 2;
      private org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public boolean hasNodeId() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
        if (nodeIdBuilder_ == null) {
          return nodeId_;
        } else {
          return nodeIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public Builder setNodeId(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
        if (nodeIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeId_ = value;
          onChanged();
        } else {
          nodeIdBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public Builder setNodeId(
          org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder builderForValue) {
        if (nodeIdBuilder_ == null) {
          nodeId_ = builderForValue.build();
          onChanged();
        } else {
          nodeIdBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public Builder mergeNodeId(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
        if (nodeIdBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              nodeId_ != org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
            nodeId_ =
              org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
          } else {
            nodeId_ = value;
          }
          onChanged();
        } else {
          nodeIdBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public Builder clearNodeId() {
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
          onChanged();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getNodeIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
        if (nodeIdBuilder_ != null) {
          return nodeIdBuilder_.getMessageOrBuilder();
        } else {
          return nodeId_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto nodeId = 2;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> 
          getNodeIdFieldBuilder() {
        if (nodeIdBuilder_ == null) {
          nodeIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
                  nodeId_,
                  getParentForChildren(),
                  isClean());
          nodeId_ = null;
        }
        return nodeIdBuilder_;
      }

      // optional string appSubmitter = 3;
      private java.lang.Object appSubmitter_ = "";
      /**
       * optional string appSubmitter = 3;
       */
      public boolean hasAppSubmitter() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string appSubmitter = 3;
       */
      public java.lang.String getAppSubmitter() {
        java.lang.Object ref = appSubmitter_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          appSubmitter_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string appSubmitter = 3;
       */
      public com.google.protobuf.ByteString
          getAppSubmitterBytes() {
        java.lang.Object ref = appSubmitter_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          appSubmitter_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string appSubmitter = 3;
       */
      public Builder setAppSubmitter(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        appSubmitter_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string appSubmitter = 3;
       */
      public Builder clearAppSubmitter() {
        bitField0_ = (bitField0_ & ~0x00000004);
        appSubmitter_ = getDefaultInstance().getAppSubmitter();
        onChanged();
        return this;
      }
      /**
       * optional string appSubmitter = 3;
       */
      public Builder setAppSubmitterBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        appSubmitter_ = value;
        onChanged();
        return this;
      }

      // optional int32 keyId = 4 [default = -1];
      private int keyId_ = -1;
      /**
       * optional int32 keyId = 4 [default = -1];
       */
      public boolean hasKeyId() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional int32 keyId = 4 [default = -1];
       */
      public int getKeyId() {
        return keyId_;
      }
      /**
       * optional int32 keyId = 4 [default = -1];
       */
      public Builder setKeyId(int value) {
        bitField0_ |= 0x00000008;
        keyId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 keyId = 4 [default = -1];
       */
      public Builder clearKeyId() {
        bitField0_ = (bitField0_ & ~0x00000008);
        keyId_ = -1;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.yarn.NMTokenIdentifierProto)
    }

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

    // @@protoc_insertion_point(class_scope:hadoop.yarn.NMTokenIdentifierProto)
  }

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

    // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    boolean hasAppAttemptId();
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId();
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder();

    // optional int32 keyId = 2 [default = -1];
    /**
     * optional int32 keyId = 2 [default = -1];
     */
    boolean hasKeyId();
    /**
     * optional int32 keyId = 2 [default = -1];
     */
    int getKeyId();
  }
  /**
   * Protobuf type {@code hadoop.yarn.AMRMTokenIdentifierProto}
   */
  public static final class AMRMTokenIdentifierProto extends
      com.google.protobuf.GeneratedMessage
      implements AMRMTokenIdentifierProtoOrBuilder {
    // Use AMRMTokenIdentifierProto.newBuilder() to construct.
    private AMRMTokenIdentifierProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private AMRMTokenIdentifierProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public AMRMTokenIdentifierProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private AMRMTokenIdentifierProto(
        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: {
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = appAttemptId_.toBuilder();
              }
              appAttemptId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(appAttemptId_);
                appAttemptId_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              keyId_ = input.readInt32();
              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 org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_AMRMTokenIdentifierProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_AMRMTokenIdentifierProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
    public static final int APPATTEMPTID_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_;
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public boolean hasAppAttemptId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
      return appAttemptId_;
    }
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
      return appAttemptId_;
    }

    // optional int32 keyId = 2 [default = -1];
    public static final int KEYID_FIELD_NUMBER = 2;
    private int keyId_;
    /**
     * optional int32 keyId = 2 [default = -1];
     */
    public boolean hasKeyId() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int32 keyId = 2 [default = -1];
     */
    public int getKeyId() {
      return keyId_;
    }

    private void initFields() {
      appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
      keyId_ = -1;
    }
    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, appAttemptId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(2, keyId_);
      }
      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, appAttemptId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, keyId_);
      }
      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();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto) obj;

      boolean result = true;
      result = result && (hasAppAttemptId() == other.hasAppAttemptId());
      if (hasAppAttemptId()) {
        result = result && getAppAttemptId()
            .equals(other.getAppAttemptId());
      }
      result = result && (hasKeyId() == other.hasKeyId());
      if (hasKeyId()) {
        result = result && (getKeyId()
            == other.getKeyId());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasAppAttemptId()) {
        hash = (37 * hash) + APPATTEMPTID_FIELD_NUMBER;
        hash = (53 * hash) + getAppAttemptId().hashCode();
      }
      if (hasKeyId()) {
        hash = (37 * hash) + KEYID_FIELD_NUMBER;
        hash = (53 * hash) + getKeyId();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto 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(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto 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 hadoop.yarn.AMRMTokenIdentifierProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProtoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_AMRMTokenIdentifierProto_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_AMRMTokenIdentifierProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
        } else {
          appAttemptIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        keyId_ = -1;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_AMRMTokenIdentifierProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.getDefaultInstance();
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto build() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (appAttemptIdBuilder_ == null) {
          result.appAttemptId_ = appAttemptId_;
        } else {
          result.appAttemptId_ = appAttemptIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.keyId_ = keyId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto) {
          return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto.getDefaultInstance()) return this;
        if (other.hasAppAttemptId()) {
          mergeAppAttemptId(other.getAppAttemptId());
        }
        if (other.hasKeyId()) {
          setKeyId(other.getKeyId());
        }
        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 {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
      private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> appAttemptIdBuilder_;
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public boolean hasAppAttemptId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
        if (appAttemptIdBuilder_ == null) {
          return appAttemptId_;
        } else {
          return appAttemptIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder setAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
        if (appAttemptIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          appAttemptId_ = value;
          onChanged();
        } else {
          appAttemptIdBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder setAppAttemptId(
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = builderForValue.build();
          onChanged();
        } else {
          appAttemptIdBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder mergeAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
        if (appAttemptIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              appAttemptId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
            appAttemptId_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(appAttemptId_).mergeFrom(value).buildPartial();
          } else {
            appAttemptId_ = value;
          }
          onChanged();
        } else {
          appAttemptIdBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder clearAppAttemptId() {
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
          onChanged();
        } else {
          appAttemptIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getAppAttemptIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAppAttemptIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
        if (appAttemptIdBuilder_ != null) {
          return appAttemptIdBuilder_.getMessageOrBuilder();
        } else {
          return appAttemptId_;
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> 
          getAppAttemptIdFieldBuilder() {
        if (appAttemptIdBuilder_ == null) {
          appAttemptIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
                  appAttemptId_,
                  getParentForChildren(),
                  isClean());
          appAttemptId_ = null;
        }
        return appAttemptIdBuilder_;
      }

      // optional int32 keyId = 2 [default = -1];
      private int keyId_ = -1;
      /**
       * optional int32 keyId = 2 [default = -1];
       */
      public boolean hasKeyId() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int32 keyId = 2 [default = -1];
       */
      public int getKeyId() {
        return keyId_;
      }
      /**
       * optional int32 keyId = 2 [default = -1];
       */
      public Builder setKeyId(int value) {
        bitField0_ |= 0x00000002;
        keyId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 keyId = 2 [default = -1];
       */
      public Builder clearKeyId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        keyId_ = -1;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.yarn.AMRMTokenIdentifierProto)
    }

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

    // @@protoc_insertion_point(class_scope:hadoop.yarn.AMRMTokenIdentifierProto)
  }

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

    // optional .hadoop.yarn.ContainerIdProto containerId = 1;
    /**
     * optional .hadoop.yarn.ContainerIdProto containerId = 1;
     */
    boolean hasContainerId();
    /**
     * optional .hadoop.yarn.ContainerIdProto containerId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId();
    /**
     * optional .hadoop.yarn.ContainerIdProto containerId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder();

    // optional string nmHostAddr = 2;
    /**
     * optional string nmHostAddr = 2;
     */
    boolean hasNmHostAddr();
    /**
     * optional string nmHostAddr = 2;
     */
    java.lang.String getNmHostAddr();
    /**
     * optional string nmHostAddr = 2;
     */
    com.google.protobuf.ByteString
        getNmHostAddrBytes();

    // optional string appSubmitter = 3;
    /**
     * optional string appSubmitter = 3;
     */
    boolean hasAppSubmitter();
    /**
     * optional string appSubmitter = 3;
     */
    java.lang.String getAppSubmitter();
    /**
     * optional string appSubmitter = 3;
     */
    com.google.protobuf.ByteString
        getAppSubmitterBytes();

    // optional .hadoop.yarn.ResourceProto resource = 4;
    /**
     * optional .hadoop.yarn.ResourceProto resource = 4;
     */
    boolean hasResource();
    /**
     * optional .hadoop.yarn.ResourceProto resource = 4;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource();
    /**
     * optional .hadoop.yarn.ResourceProto resource = 4;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder();

    // optional int64 expiryTimeStamp = 5;
    /**
     * optional int64 expiryTimeStamp = 5;
     */
    boolean hasExpiryTimeStamp();
    /**
     * optional int64 expiryTimeStamp = 5;
     */
    long getExpiryTimeStamp();

    // optional int32 masterKeyId = 6 [default = -1];
    /**
     * optional int32 masterKeyId = 6 [default = -1];
     */
    boolean hasMasterKeyId();
    /**
     * optional int32 masterKeyId = 6 [default = -1];
     */
    int getMasterKeyId();

    // optional int64 rmIdentifier = 7;
    /**
     * optional int64 rmIdentifier = 7;
     */
    boolean hasRmIdentifier();
    /**
     * optional int64 rmIdentifier = 7;
     */
    long getRmIdentifier();

    // optional .hadoop.yarn.PriorityProto priority = 8;
    /**
     * optional .hadoop.yarn.PriorityProto priority = 8;
     */
    boolean hasPriority();
    /**
     * optional .hadoop.yarn.PriorityProto priority = 8;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority();
    /**
     * optional .hadoop.yarn.PriorityProto priority = 8;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder();

    // optional int64 creationTime = 9;
    /**
     * optional int64 creationTime = 9;
     */
    boolean hasCreationTime();
    /**
     * optional int64 creationTime = 9;
     */
    long getCreationTime();

    // optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
    /**
     * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
     */
    boolean hasLogAggregationContext();
    /**
     * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto getLogAggregationContext();
    /**
     * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder getLogAggregationContextOrBuilder();

    // optional string nodeLabelExpression = 11;
    /**
     * optional string nodeLabelExpression = 11;
     */
    boolean hasNodeLabelExpression();
    /**
     * optional string nodeLabelExpression = 11;
     */
    java.lang.String getNodeLabelExpression();
    /**
     * optional string nodeLabelExpression = 11;
     */
    com.google.protobuf.ByteString
        getNodeLabelExpressionBytes();

    // optional .hadoop.yarn.ContainerTypeProto containerType = 12;
    /**
     * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
     */
    boolean hasContainerType();
    /**
     * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto getContainerType();

    // optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
    /**
     * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
     */
    boolean hasExecutionType();
    /**
     * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType();

    // optional int32 version = 14 [default = 0];
    /**
     * optional int32 version = 14 [default = 0];
     */
    boolean hasVersion();
    /**
     * optional int32 version = 14 [default = 0];
     */
    int getVersion();

    // optional int64 allocation_request_id = 15 [default = -1];
    /**
     * optional int64 allocation_request_id = 15 [default = -1];
     */
    boolean hasAllocationRequestId();
    /**
     * optional int64 allocation_request_id = 15 [default = -1];
     */
    long getAllocationRequestId();

    // repeated string allocation_tags = 16;
    /**
     * repeated string allocation_tags = 16;
     */
    java.util.List
    getAllocationTagsList();
    /**
     * repeated string allocation_tags = 16;
     */
    int getAllocationTagsCount();
    /**
     * repeated string allocation_tags = 16;
     */
    java.lang.String getAllocationTags(int index);
    /**
     * repeated string allocation_tags = 16;
     */
    com.google.protobuf.ByteString
        getAllocationTagsBytes(int index);
  }
  /**
   * Protobuf type {@code hadoop.yarn.ContainerTokenIdentifierProto}
   */
  public static final class ContainerTokenIdentifierProto extends
      com.google.protobuf.GeneratedMessage
      implements ContainerTokenIdentifierProtoOrBuilder {
    // Use ContainerTokenIdentifierProto.newBuilder() to construct.
    private ContainerTokenIdentifierProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ContainerTokenIdentifierProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ContainerTokenIdentifierProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ContainerTokenIdentifierProto(
        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: {
              org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = containerId_.toBuilder();
              }
              containerId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(containerId_);
                containerId_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              nmHostAddr_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              appSubmitter_ = input.readBytes();
              break;
            }
            case 34: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000008) == 0x00000008)) {
                subBuilder = resource_.toBuilder();
              }
              resource_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(resource_);
                resource_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000008;
              break;
            }
            case 40: {
              bitField0_ |= 0x00000010;
              expiryTimeStamp_ = input.readInt64();
              break;
            }
            case 48: {
              bitField0_ |= 0x00000020;
              masterKeyId_ = input.readInt32();
              break;
            }
            case 56: {
              bitField0_ |= 0x00000040;
              rmIdentifier_ = input.readInt64();
              break;
            }
            case 66: {
              org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000080) == 0x00000080)) {
                subBuilder = priority_.toBuilder();
              }
              priority_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(priority_);
                priority_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000080;
              break;
            }
            case 72: {
              bitField0_ |= 0x00000100;
              creationTime_ = input.readInt64();
              break;
            }
            case 82: {
              org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000200) == 0x00000200)) {
                subBuilder = logAggregationContext_.toBuilder();
              }
              logAggregationContext_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(logAggregationContext_);
                logAggregationContext_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000200;
              break;
            }
            case 90: {
              bitField0_ |= 0x00000400;
              nodeLabelExpression_ = input.readBytes();
              break;
            }
            case 96: {
              int rawValue = input.readEnum();
              org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto value = org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(12, rawValue);
              } else {
                bitField0_ |= 0x00000800;
                containerType_ = value;
              }
              break;
            }
            case 104: {
              int rawValue = input.readEnum();
              org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(13, rawValue);
              } else {
                bitField0_ |= 0x00001000;
                executionType_ = value;
              }
              break;
            }
            case 112: {
              bitField0_ |= 0x00002000;
              version_ = input.readInt32();
              break;
            }
            case 120: {
              bitField0_ |= 0x00004000;
              allocationRequestId_ = input.readInt64();
              break;
            }
            case 130: {
              if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) {
                allocationTags_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00008000;
              }
              allocationTags_.add(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_ & 0x00008000) == 0x00008000)) {
          allocationTags_ = new com.google.protobuf.UnmodifiableLazyStringList(allocationTags_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.ContainerIdProto containerId = 1;
    public static final int CONTAINERID_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
    /**
     * optional .hadoop.yarn.ContainerIdProto containerId = 1;
     */
    public boolean hasContainerId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.ContainerIdProto containerId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
      return containerId_;
    }
    /**
     * optional .hadoop.yarn.ContainerIdProto containerId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
      return containerId_;
    }

    // optional string nmHostAddr = 2;
    public static final int NMHOSTADDR_FIELD_NUMBER = 2;
    private java.lang.Object nmHostAddr_;
    /**
     * optional string nmHostAddr = 2;
     */
    public boolean hasNmHostAddr() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string nmHostAddr = 2;
     */
    public java.lang.String getNmHostAddr() {
      java.lang.Object ref = nmHostAddr_;
      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()) {
          nmHostAddr_ = s;
        }
        return s;
      }
    }
    /**
     * optional string nmHostAddr = 2;
     */
    public com.google.protobuf.ByteString
        getNmHostAddrBytes() {
      java.lang.Object ref = nmHostAddr_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nmHostAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string appSubmitter = 3;
    public static final int APPSUBMITTER_FIELD_NUMBER = 3;
    private java.lang.Object appSubmitter_;
    /**
     * optional string appSubmitter = 3;
     */
    public boolean hasAppSubmitter() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string appSubmitter = 3;
     */
    public java.lang.String getAppSubmitter() {
      java.lang.Object ref = appSubmitter_;
      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()) {
          appSubmitter_ = s;
        }
        return s;
      }
    }
    /**
     * optional string appSubmitter = 3;
     */
    public com.google.protobuf.ByteString
        getAppSubmitterBytes() {
      java.lang.Object ref = appSubmitter_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appSubmitter_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional .hadoop.yarn.ResourceProto resource = 4;
    public static final int RESOURCE_FIELD_NUMBER = 4;
    private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
    /**
     * optional .hadoop.yarn.ResourceProto resource = 4;
     */
    public boolean hasResource() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional .hadoop.yarn.ResourceProto resource = 4;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
      return resource_;
    }
    /**
     * optional .hadoop.yarn.ResourceProto resource = 4;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
      return resource_;
    }

    // optional int64 expiryTimeStamp = 5;
    public static final int EXPIRYTIMESTAMP_FIELD_NUMBER = 5;
    private long expiryTimeStamp_;
    /**
     * optional int64 expiryTimeStamp = 5;
     */
    public boolean hasExpiryTimeStamp() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * optional int64 expiryTimeStamp = 5;
     */
    public long getExpiryTimeStamp() {
      return expiryTimeStamp_;
    }

    // optional int32 masterKeyId = 6 [default = -1];
    public static final int MASTERKEYID_FIELD_NUMBER = 6;
    private int masterKeyId_;
    /**
     * optional int32 masterKeyId = 6 [default = -1];
     */
    public boolean hasMasterKeyId() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * optional int32 masterKeyId = 6 [default = -1];
     */
    public int getMasterKeyId() {
      return masterKeyId_;
    }

    // optional int64 rmIdentifier = 7;
    public static final int RMIDENTIFIER_FIELD_NUMBER = 7;
    private long rmIdentifier_;
    /**
     * optional int64 rmIdentifier = 7;
     */
    public boolean hasRmIdentifier() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * optional int64 rmIdentifier = 7;
     */
    public long getRmIdentifier() {
      return rmIdentifier_;
    }

    // optional .hadoop.yarn.PriorityProto priority = 8;
    public static final int PRIORITY_FIELD_NUMBER = 8;
    private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
    /**
     * optional .hadoop.yarn.PriorityProto priority = 8;
     */
    public boolean hasPriority() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    /**
     * optional .hadoop.yarn.PriorityProto priority = 8;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
      return priority_;
    }
    /**
     * optional .hadoop.yarn.PriorityProto priority = 8;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
      return priority_;
    }

    // optional int64 creationTime = 9;
    public static final int CREATIONTIME_FIELD_NUMBER = 9;
    private long creationTime_;
    /**
     * optional int64 creationTime = 9;
     */
    public boolean hasCreationTime() {
      return ((bitField0_ & 0x00000100) == 0x00000100);
    }
    /**
     * optional int64 creationTime = 9;
     */
    public long getCreationTime() {
      return creationTime_;
    }

    // optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
    public static final int LOGAGGREGATIONCONTEXT_FIELD_NUMBER = 10;
    private org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto logAggregationContext_;
    /**
     * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
     */
    public boolean hasLogAggregationContext() {
      return ((bitField0_ & 0x00000200) == 0x00000200);
    }
    /**
     * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto getLogAggregationContext() {
      return logAggregationContext_;
    }
    /**
     * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder getLogAggregationContextOrBuilder() {
      return logAggregationContext_;
    }

    // optional string nodeLabelExpression = 11;
    public static final int NODELABELEXPRESSION_FIELD_NUMBER = 11;
    private java.lang.Object nodeLabelExpression_;
    /**
     * optional string nodeLabelExpression = 11;
     */
    public boolean hasNodeLabelExpression() {
      return ((bitField0_ & 0x00000400) == 0x00000400);
    }
    /**
     * optional string nodeLabelExpression = 11;
     */
    public java.lang.String getNodeLabelExpression() {
      java.lang.Object ref = nodeLabelExpression_;
      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()) {
          nodeLabelExpression_ = s;
        }
        return s;
      }
    }
    /**
     * optional string nodeLabelExpression = 11;
     */
    public com.google.protobuf.ByteString
        getNodeLabelExpressionBytes() {
      java.lang.Object ref = nodeLabelExpression_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nodeLabelExpression_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional .hadoop.yarn.ContainerTypeProto containerType = 12;
    public static final int CONTAINERTYPE_FIELD_NUMBER = 12;
    private org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto containerType_;
    /**
     * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
     */
    public boolean hasContainerType() {
      return ((bitField0_ & 0x00000800) == 0x00000800);
    }
    /**
     * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto getContainerType() {
      return containerType_;
    }

    // optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
    public static final int EXECUTIONTYPE_FIELD_NUMBER = 13;
    private org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto executionType_;
    /**
     * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
     */
    public boolean hasExecutionType() {
      return ((bitField0_ & 0x00001000) == 0x00001000);
    }
    /**
     * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
      return executionType_;
    }

    // optional int32 version = 14 [default = 0];
    public static final int VERSION_FIELD_NUMBER = 14;
    private int version_;
    /**
     * optional int32 version = 14 [default = 0];
     */
    public boolean hasVersion() {
      return ((bitField0_ & 0x00002000) == 0x00002000);
    }
    /**
     * optional int32 version = 14 [default = 0];
     */
    public int getVersion() {
      return version_;
    }

    // optional int64 allocation_request_id = 15 [default = -1];
    public static final int ALLOCATION_REQUEST_ID_FIELD_NUMBER = 15;
    private long allocationRequestId_;
    /**
     * optional int64 allocation_request_id = 15 [default = -1];
     */
    public boolean hasAllocationRequestId() {
      return ((bitField0_ & 0x00004000) == 0x00004000);
    }
    /**
     * optional int64 allocation_request_id = 15 [default = -1];
     */
    public long getAllocationRequestId() {
      return allocationRequestId_;
    }

    // repeated string allocation_tags = 16;
    public static final int ALLOCATION_TAGS_FIELD_NUMBER = 16;
    private com.google.protobuf.LazyStringList allocationTags_;
    /**
     * repeated string allocation_tags = 16;
     */
    public java.util.List
        getAllocationTagsList() {
      return allocationTags_;
    }
    /**
     * repeated string allocation_tags = 16;
     */
    public int getAllocationTagsCount() {
      return allocationTags_.size();
    }
    /**
     * repeated string allocation_tags = 16;
     */
    public java.lang.String getAllocationTags(int index) {
      return allocationTags_.get(index);
    }
    /**
     * repeated string allocation_tags = 16;
     */
    public com.google.protobuf.ByteString
        getAllocationTagsBytes(int index) {
      return allocationTags_.getByteString(index);
    }

    private void initFields() {
      containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
      nmHostAddr_ = "";
      appSubmitter_ = "";
      resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      expiryTimeStamp_ = 0L;
      masterKeyId_ = -1;
      rmIdentifier_ = 0L;
      priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
      creationTime_ = 0L;
      logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
      nodeLabelExpression_ = "";
      containerType_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto.APPLICATION_MASTER;
      executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED;
      version_ = 0;
      allocationRequestId_ = -1L;
      allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (hasResource()) {
        if (!getResource().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, containerId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getNmHostAddrBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getAppSubmitterBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(4, resource_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeInt64(5, expiryTimeStamp_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeInt32(6, masterKeyId_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeInt64(7, rmIdentifier_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeMessage(8, priority_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeInt64(9, creationTime_);
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        output.writeMessage(10, logAggregationContext_);
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        output.writeBytes(11, getNodeLabelExpressionBytes());
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        output.writeEnum(12, containerType_.getNumber());
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        output.writeEnum(13, executionType_.getNumber());
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        output.writeInt32(14, version_);
      }
      if (((bitField0_ & 0x00004000) == 0x00004000)) {
        output.writeInt64(15, allocationRequestId_);
      }
      for (int i = 0; i < allocationTags_.size(); i++) {
        output.writeBytes(16, allocationTags_.getByteString(i));
      }
      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, containerId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getNmHostAddrBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getAppSubmitterBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, resource_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, expiryTimeStamp_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(6, masterKeyId_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(7, rmIdentifier_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, priority_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(9, creationTime_);
      }
      if (((bitField0_ & 0x00000200) == 0x00000200)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(10, logAggregationContext_);
      }
      if (((bitField0_ & 0x00000400) == 0x00000400)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(11, getNodeLabelExpressionBytes());
      }
      if (((bitField0_ & 0x00000800) == 0x00000800)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(12, containerType_.getNumber());
      }
      if (((bitField0_ & 0x00001000) == 0x00001000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(13, executionType_.getNumber());
      }
      if (((bitField0_ & 0x00002000) == 0x00002000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(14, version_);
      }
      if (((bitField0_ & 0x00004000) == 0x00004000)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(15, allocationRequestId_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < allocationTags_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(allocationTags_.getByteString(i));
        }
        size += dataSize;
        size += 2 * getAllocationTagsList().size();
      }
      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();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto) obj;

      boolean result = true;
      result = result && (hasContainerId() == other.hasContainerId());
      if (hasContainerId()) {
        result = result && getContainerId()
            .equals(other.getContainerId());
      }
      result = result && (hasNmHostAddr() == other.hasNmHostAddr());
      if (hasNmHostAddr()) {
        result = result && getNmHostAddr()
            .equals(other.getNmHostAddr());
      }
      result = result && (hasAppSubmitter() == other.hasAppSubmitter());
      if (hasAppSubmitter()) {
        result = result && getAppSubmitter()
            .equals(other.getAppSubmitter());
      }
      result = result && (hasResource() == other.hasResource());
      if (hasResource()) {
        result = result && getResource()
            .equals(other.getResource());
      }
      result = result && (hasExpiryTimeStamp() == other.hasExpiryTimeStamp());
      if (hasExpiryTimeStamp()) {
        result = result && (getExpiryTimeStamp()
            == other.getExpiryTimeStamp());
      }
      result = result && (hasMasterKeyId() == other.hasMasterKeyId());
      if (hasMasterKeyId()) {
        result = result && (getMasterKeyId()
            == other.getMasterKeyId());
      }
      result = result && (hasRmIdentifier() == other.hasRmIdentifier());
      if (hasRmIdentifier()) {
        result = result && (getRmIdentifier()
            == other.getRmIdentifier());
      }
      result = result && (hasPriority() == other.hasPriority());
      if (hasPriority()) {
        result = result && getPriority()
            .equals(other.getPriority());
      }
      result = result && (hasCreationTime() == other.hasCreationTime());
      if (hasCreationTime()) {
        result = result && (getCreationTime()
            == other.getCreationTime());
      }
      result = result && (hasLogAggregationContext() == other.hasLogAggregationContext());
      if (hasLogAggregationContext()) {
        result = result && getLogAggregationContext()
            .equals(other.getLogAggregationContext());
      }
      result = result && (hasNodeLabelExpression() == other.hasNodeLabelExpression());
      if (hasNodeLabelExpression()) {
        result = result && getNodeLabelExpression()
            .equals(other.getNodeLabelExpression());
      }
      result = result && (hasContainerType() == other.hasContainerType());
      if (hasContainerType()) {
        result = result &&
            (getContainerType() == other.getContainerType());
      }
      result = result && (hasExecutionType() == other.hasExecutionType());
      if (hasExecutionType()) {
        result = result &&
            (getExecutionType() == other.getExecutionType());
      }
      result = result && (hasVersion() == other.hasVersion());
      if (hasVersion()) {
        result = result && (getVersion()
            == other.getVersion());
      }
      result = result && (hasAllocationRequestId() == other.hasAllocationRequestId());
      if (hasAllocationRequestId()) {
        result = result && (getAllocationRequestId()
            == other.getAllocationRequestId());
      }
      result = result && getAllocationTagsList()
          .equals(other.getAllocationTagsList());
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasContainerId()) {
        hash = (37 * hash) + CONTAINERID_FIELD_NUMBER;
        hash = (53 * hash) + getContainerId().hashCode();
      }
      if (hasNmHostAddr()) {
        hash = (37 * hash) + NMHOSTADDR_FIELD_NUMBER;
        hash = (53 * hash) + getNmHostAddr().hashCode();
      }
      if (hasAppSubmitter()) {
        hash = (37 * hash) + APPSUBMITTER_FIELD_NUMBER;
        hash = (53 * hash) + getAppSubmitter().hashCode();
      }
      if (hasResource()) {
        hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getResource().hashCode();
      }
      if (hasExpiryTimeStamp()) {
        hash = (37 * hash) + EXPIRYTIMESTAMP_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getExpiryTimeStamp());
      }
      if (hasMasterKeyId()) {
        hash = (37 * hash) + MASTERKEYID_FIELD_NUMBER;
        hash = (53 * hash) + getMasterKeyId();
      }
      if (hasRmIdentifier()) {
        hash = (37 * hash) + RMIDENTIFIER_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getRmIdentifier());
      }
      if (hasPriority()) {
        hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
        hash = (53 * hash) + getPriority().hashCode();
      }
      if (hasCreationTime()) {
        hash = (37 * hash) + CREATIONTIME_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getCreationTime());
      }
      if (hasLogAggregationContext()) {
        hash = (37 * hash) + LOGAGGREGATIONCONTEXT_FIELD_NUMBER;
        hash = (53 * hash) + getLogAggregationContext().hashCode();
      }
      if (hasNodeLabelExpression()) {
        hash = (37 * hash) + NODELABELEXPRESSION_FIELD_NUMBER;
        hash = (53 * hash) + getNodeLabelExpression().hashCode();
      }
      if (hasContainerType()) {
        hash = (37 * hash) + CONTAINERTYPE_FIELD_NUMBER;
        hash = (53 * hash) + hashEnum(getContainerType());
      }
      if (hasExecutionType()) {
        hash = (37 * hash) + EXECUTIONTYPE_FIELD_NUMBER;
        hash = (53 * hash) + hashEnum(getExecutionType());
      }
      if (hasVersion()) {
        hash = (37 * hash) + VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getVersion();
      }
      if (hasAllocationRequestId()) {
        hash = (37 * hash) + ALLOCATION_REQUEST_ID_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getAllocationRequestId());
      }
      if (getAllocationTagsCount() > 0) {
        hash = (37 * hash) + ALLOCATION_TAGS_FIELD_NUMBER;
        hash = (53 * hash) + getAllocationTagsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto 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(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto 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 hadoop.yarn.ContainerTokenIdentifierProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProtoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierProto_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (containerIdBuilder_ == null) {
          containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
        } else {
          containerIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        nmHostAddr_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        appSubmitter_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        if (resourceBuilder_ == null) {
          resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          resourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        expiryTimeStamp_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000010);
        masterKeyId_ = -1;
        bitField0_ = (bitField0_ & ~0x00000020);
        rmIdentifier_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000040);
        if (priorityBuilder_ == null) {
          priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
        } else {
          priorityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        creationTime_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000100);
        if (logAggregationContextBuilder_ == null) {
          logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
        } else {
          logAggregationContextBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        nodeLabelExpression_ = "";
        bitField0_ = (bitField0_ & ~0x00000400);
        containerType_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto.APPLICATION_MASTER;
        bitField0_ = (bitField0_ & ~0x00000800);
        executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED;
        bitField0_ = (bitField0_ & ~0x00001000);
        version_ = 0;
        bitField0_ = (bitField0_ & ~0x00002000);
        allocationRequestId_ = -1L;
        bitField0_ = (bitField0_ & ~0x00004000);
        allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00008000);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.getDefaultInstance();
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto build() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (containerIdBuilder_ == null) {
          result.containerId_ = containerId_;
        } else {
          result.containerId_ = containerIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.nmHostAddr_ = nmHostAddr_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.appSubmitter_ = appSubmitter_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (resourceBuilder_ == null) {
          result.resource_ = resource_;
        } else {
          result.resource_ = resourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.expiryTimeStamp_ = expiryTimeStamp_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.masterKeyId_ = masterKeyId_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.rmIdentifier_ = rmIdentifier_;
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000080;
        }
        if (priorityBuilder_ == null) {
          result.priority_ = priority_;
        } else {
          result.priority_ = priorityBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
          to_bitField0_ |= 0x00000100;
        }
        result.creationTime_ = creationTime_;
        if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
          to_bitField0_ |= 0x00000200;
        }
        if (logAggregationContextBuilder_ == null) {
          result.logAggregationContext_ = logAggregationContext_;
        } else {
          result.logAggregationContext_ = logAggregationContextBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
          to_bitField0_ |= 0x00000400;
        }
        result.nodeLabelExpression_ = nodeLabelExpression_;
        if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
          to_bitField0_ |= 0x00000800;
        }
        result.containerType_ = containerType_;
        if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
          to_bitField0_ |= 0x00001000;
        }
        result.executionType_ = executionType_;
        if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
          to_bitField0_ |= 0x00002000;
        }
        result.version_ = version_;
        if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
          to_bitField0_ |= 0x00004000;
        }
        result.allocationRequestId_ = allocationRequestId_;
        if (((bitField0_ & 0x00008000) == 0x00008000)) {
          allocationTags_ = new com.google.protobuf.UnmodifiableLazyStringList(
              allocationTags_);
          bitField0_ = (bitField0_ & ~0x00008000);
        }
        result.allocationTags_ = allocationTags_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto) {
          return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto.getDefaultInstance()) return this;
        if (other.hasContainerId()) {
          mergeContainerId(other.getContainerId());
        }
        if (other.hasNmHostAddr()) {
          bitField0_ |= 0x00000002;
          nmHostAddr_ = other.nmHostAddr_;
          onChanged();
        }
        if (other.hasAppSubmitter()) {
          bitField0_ |= 0x00000004;
          appSubmitter_ = other.appSubmitter_;
          onChanged();
        }
        if (other.hasResource()) {
          mergeResource(other.getResource());
        }
        if (other.hasExpiryTimeStamp()) {
          setExpiryTimeStamp(other.getExpiryTimeStamp());
        }
        if (other.hasMasterKeyId()) {
          setMasterKeyId(other.getMasterKeyId());
        }
        if (other.hasRmIdentifier()) {
          setRmIdentifier(other.getRmIdentifier());
        }
        if (other.hasPriority()) {
          mergePriority(other.getPriority());
        }
        if (other.hasCreationTime()) {
          setCreationTime(other.getCreationTime());
        }
        if (other.hasLogAggregationContext()) {
          mergeLogAggregationContext(other.getLogAggregationContext());
        }
        if (other.hasNodeLabelExpression()) {
          bitField0_ |= 0x00000400;
          nodeLabelExpression_ = other.nodeLabelExpression_;
          onChanged();
        }
        if (other.hasContainerType()) {
          setContainerType(other.getContainerType());
        }
        if (other.hasExecutionType()) {
          setExecutionType(other.getExecutionType());
        }
        if (other.hasVersion()) {
          setVersion(other.getVersion());
        }
        if (other.hasAllocationRequestId()) {
          setAllocationRequestId(other.getAllocationRequestId());
        }
        if (!other.allocationTags_.isEmpty()) {
          if (allocationTags_.isEmpty()) {
            allocationTags_ = other.allocationTags_;
            bitField0_ = (bitField0_ & ~0x00008000);
          } else {
            ensureAllocationTagsIsMutable();
            allocationTags_.addAll(other.allocationTags_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (hasResource()) {
          if (!getResource().isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ContainerTokenIdentifierProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.ContainerIdProto containerId = 1;
      private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> containerIdBuilder_;
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public boolean hasContainerId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
        if (containerIdBuilder_ == null) {
          return containerId_;
        } else {
          return containerIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public Builder setContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
        if (containerIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          containerId_ = value;
          onChanged();
        } else {
          containerIdBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public Builder setContainerId(
          org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
        if (containerIdBuilder_ == null) {
          containerId_ = builderForValue.build();
          onChanged();
        } else {
          containerIdBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public Builder mergeContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
        if (containerIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              containerId_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) {
            containerId_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(containerId_).mergeFrom(value).buildPartial();
          } else {
            containerId_ = value;
          }
          onChanged();
        } else {
          containerIdBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public Builder clearContainerId() {
        if (containerIdBuilder_ == null) {
          containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
          onChanged();
        } else {
          containerIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainerIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getContainerIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
        if (containerIdBuilder_ != null) {
          return containerIdBuilder_.getMessageOrBuilder();
        } else {
          return containerId_;
        }
      }
      /**
       * optional .hadoop.yarn.ContainerIdProto containerId = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> 
          getContainerIdFieldBuilder() {
        if (containerIdBuilder_ == null) {
          containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
                  containerId_,
                  getParentForChildren(),
                  isClean());
          containerId_ = null;
        }
        return containerIdBuilder_;
      }

      // optional string nmHostAddr = 2;
      private java.lang.Object nmHostAddr_ = "";
      /**
       * optional string nmHostAddr = 2;
       */
      public boolean hasNmHostAddr() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string nmHostAddr = 2;
       */
      public java.lang.String getNmHostAddr() {
        java.lang.Object ref = nmHostAddr_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          nmHostAddr_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string nmHostAddr = 2;
       */
      public com.google.protobuf.ByteString
          getNmHostAddrBytes() {
        java.lang.Object ref = nmHostAddr_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          nmHostAddr_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string nmHostAddr = 2;
       */
      public Builder setNmHostAddr(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        nmHostAddr_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string nmHostAddr = 2;
       */
      public Builder clearNmHostAddr() {
        bitField0_ = (bitField0_ & ~0x00000002);
        nmHostAddr_ = getDefaultInstance().getNmHostAddr();
        onChanged();
        return this;
      }
      /**
       * optional string nmHostAddr = 2;
       */
      public Builder setNmHostAddrBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        nmHostAddr_ = value;
        onChanged();
        return this;
      }

      // optional string appSubmitter = 3;
      private java.lang.Object appSubmitter_ = "";
      /**
       * optional string appSubmitter = 3;
       */
      public boolean hasAppSubmitter() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string appSubmitter = 3;
       */
      public java.lang.String getAppSubmitter() {
        java.lang.Object ref = appSubmitter_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          appSubmitter_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string appSubmitter = 3;
       */
      public com.google.protobuf.ByteString
          getAppSubmitterBytes() {
        java.lang.Object ref = appSubmitter_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          appSubmitter_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string appSubmitter = 3;
       */
      public Builder setAppSubmitter(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        appSubmitter_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string appSubmitter = 3;
       */
      public Builder clearAppSubmitter() {
        bitField0_ = (bitField0_ & ~0x00000004);
        appSubmitter_ = getDefaultInstance().getAppSubmitter();
        onChanged();
        return this;
      }
      /**
       * optional string appSubmitter = 3;
       */
      public Builder setAppSubmitterBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        appSubmitter_ = value;
        onChanged();
        return this;
      }

      // optional .hadoop.yarn.ResourceProto resource = 4;
      private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> resourceBuilder_;
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public boolean hasResource() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
        if (resourceBuilder_ == null) {
          return resource_;
        } else {
          return resourceBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public Builder setResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (resourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resource_ = value;
          onChanged();
        } else {
          resourceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public Builder setResource(
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
        if (resourceBuilder_ == null) {
          resource_ = builderForValue.build();
          onChanged();
        } else {
          resourceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public Builder mergeResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (resourceBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              resource_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
            resource_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(resource_).mergeFrom(value).buildPartial();
          } else {
            resource_ = value;
          }
          onChanged();
        } else {
          resourceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public Builder clearResource() {
        if (resourceBuilder_ == null) {
          resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
          onChanged();
        } else {
          resourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getResourceFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
        if (resourceBuilder_ != null) {
          return resourceBuilder_.getMessageOrBuilder();
        } else {
          return resource_;
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> 
          getResourceFieldBuilder() {
        if (resourceBuilder_ == null) {
          resourceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
                  resource_,
                  getParentForChildren(),
                  isClean());
          resource_ = null;
        }
        return resourceBuilder_;
      }

      // optional int64 expiryTimeStamp = 5;
      private long expiryTimeStamp_ ;
      /**
       * optional int64 expiryTimeStamp = 5;
       */
      public boolean hasExpiryTimeStamp() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * optional int64 expiryTimeStamp = 5;
       */
      public long getExpiryTimeStamp() {
        return expiryTimeStamp_;
      }
      /**
       * optional int64 expiryTimeStamp = 5;
       */
      public Builder setExpiryTimeStamp(long value) {
        bitField0_ |= 0x00000010;
        expiryTimeStamp_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 expiryTimeStamp = 5;
       */
      public Builder clearExpiryTimeStamp() {
        bitField0_ = (bitField0_ & ~0x00000010);
        expiryTimeStamp_ = 0L;
        onChanged();
        return this;
      }

      // optional int32 masterKeyId = 6 [default = -1];
      private int masterKeyId_ = -1;
      /**
       * optional int32 masterKeyId = 6 [default = -1];
       */
      public boolean hasMasterKeyId() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * optional int32 masterKeyId = 6 [default = -1];
       */
      public int getMasterKeyId() {
        return masterKeyId_;
      }
      /**
       * optional int32 masterKeyId = 6 [default = -1];
       */
      public Builder setMasterKeyId(int value) {
        bitField0_ |= 0x00000020;
        masterKeyId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 masterKeyId = 6 [default = -1];
       */
      public Builder clearMasterKeyId() {
        bitField0_ = (bitField0_ & ~0x00000020);
        masterKeyId_ = -1;
        onChanged();
        return this;
      }

      // optional int64 rmIdentifier = 7;
      private long rmIdentifier_ ;
      /**
       * optional int64 rmIdentifier = 7;
       */
      public boolean hasRmIdentifier() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * optional int64 rmIdentifier = 7;
       */
      public long getRmIdentifier() {
        return rmIdentifier_;
      }
      /**
       * optional int64 rmIdentifier = 7;
       */
      public Builder setRmIdentifier(long value) {
        bitField0_ |= 0x00000040;
        rmIdentifier_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 rmIdentifier = 7;
       */
      public Builder clearRmIdentifier() {
        bitField0_ = (bitField0_ & ~0x00000040);
        rmIdentifier_ = 0L;
        onChanged();
        return this;
      }

      // optional .hadoop.yarn.PriorityProto priority = 8;
      private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> priorityBuilder_;
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public boolean hasPriority() {
        return ((bitField0_ & 0x00000080) == 0x00000080);
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
        if (priorityBuilder_ == null) {
          return priority_;
        } else {
          return priorityBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public Builder setPriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
        if (priorityBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          priority_ = value;
          onChanged();
        } else {
          priorityBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public Builder setPriority(
          org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder builderForValue) {
        if (priorityBuilder_ == null) {
          priority_ = builderForValue.build();
          onChanged();
        } else {
          priorityBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public Builder mergePriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
        if (priorityBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080) &&
              priority_ != org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) {
            priority_ =
              org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder(priority_).mergeFrom(value).buildPartial();
          } else {
            priority_ = value;
          }
          onChanged();
        } else {
          priorityBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public Builder clearPriority() {
        if (priorityBuilder_ == null) {
          priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
          onChanged();
        } else {
          priorityBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        return this;
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getPriorityBuilder() {
        bitField0_ |= 0x00000080;
        onChanged();
        return getPriorityFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
        if (priorityBuilder_ != null) {
          return priorityBuilder_.getMessageOrBuilder();
        } else {
          return priority_;
        }
      }
      /**
       * optional .hadoop.yarn.PriorityProto priority = 8;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> 
          getPriorityFieldBuilder() {
        if (priorityBuilder_ == null) {
          priorityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>(
                  priority_,
                  getParentForChildren(),
                  isClean());
          priority_ = null;
        }
        return priorityBuilder_;
      }

      // optional int64 creationTime = 9;
      private long creationTime_ ;
      /**
       * optional int64 creationTime = 9;
       */
      public boolean hasCreationTime() {
        return ((bitField0_ & 0x00000100) == 0x00000100);
      }
      /**
       * optional int64 creationTime = 9;
       */
      public long getCreationTime() {
        return creationTime_;
      }
      /**
       * optional int64 creationTime = 9;
       */
      public Builder setCreationTime(long value) {
        bitField0_ |= 0x00000100;
        creationTime_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 creationTime = 9;
       */
      public Builder clearCreationTime() {
        bitField0_ = (bitField0_ & ~0x00000100);
        creationTime_ = 0L;
        onChanged();
        return this;
      }

      // optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
      private org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder> logAggregationContextBuilder_;
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public boolean hasLogAggregationContext() {
        return ((bitField0_ & 0x00000200) == 0x00000200);
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto getLogAggregationContext() {
        if (logAggregationContextBuilder_ == null) {
          return logAggregationContext_;
        } else {
          return logAggregationContextBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public Builder setLogAggregationContext(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto value) {
        if (logAggregationContextBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          logAggregationContext_ = value;
          onChanged();
        } else {
          logAggregationContextBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public Builder setLogAggregationContext(
          org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder builderForValue) {
        if (logAggregationContextBuilder_ == null) {
          logAggregationContext_ = builderForValue.build();
          onChanged();
        } else {
          logAggregationContextBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public Builder mergeLogAggregationContext(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto value) {
        if (logAggregationContextBuilder_ == null) {
          if (((bitField0_ & 0x00000200) == 0x00000200) &&
              logAggregationContext_ != org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance()) {
            logAggregationContext_ =
              org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.newBuilder(logAggregationContext_).mergeFrom(value).buildPartial();
          } else {
            logAggregationContext_ = value;
          }
          onChanged();
        } else {
          logAggregationContextBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public Builder clearLogAggregationContext() {
        if (logAggregationContextBuilder_ == null) {
          logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
          onChanged();
        } else {
          logAggregationContextBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        return this;
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder getLogAggregationContextBuilder() {
        bitField0_ |= 0x00000200;
        onChanged();
        return getLogAggregationContextFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder getLogAggregationContextOrBuilder() {
        if (logAggregationContextBuilder_ != null) {
          return logAggregationContextBuilder_.getMessageOrBuilder();
        } else {
          return logAggregationContext_;
        }
      }
      /**
       * optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder> 
          getLogAggregationContextFieldBuilder() {
        if (logAggregationContextBuilder_ == null) {
          logAggregationContextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder>(
                  logAggregationContext_,
                  getParentForChildren(),
                  isClean());
          logAggregationContext_ = null;
        }
        return logAggregationContextBuilder_;
      }

      // optional string nodeLabelExpression = 11;
      private java.lang.Object nodeLabelExpression_ = "";
      /**
       * optional string nodeLabelExpression = 11;
       */
      public boolean hasNodeLabelExpression() {
        return ((bitField0_ & 0x00000400) == 0x00000400);
      }
      /**
       * optional string nodeLabelExpression = 11;
       */
      public java.lang.String getNodeLabelExpression() {
        java.lang.Object ref = nodeLabelExpression_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          nodeLabelExpression_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string nodeLabelExpression = 11;
       */
      public com.google.protobuf.ByteString
          getNodeLabelExpressionBytes() {
        java.lang.Object ref = nodeLabelExpression_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          nodeLabelExpression_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string nodeLabelExpression = 11;
       */
      public Builder setNodeLabelExpression(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
        nodeLabelExpression_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string nodeLabelExpression = 11;
       */
      public Builder clearNodeLabelExpression() {
        bitField0_ = (bitField0_ & ~0x00000400);
        nodeLabelExpression_ = getDefaultInstance().getNodeLabelExpression();
        onChanged();
        return this;
      }
      /**
       * optional string nodeLabelExpression = 11;
       */
      public Builder setNodeLabelExpressionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000400;
        nodeLabelExpression_ = value;
        onChanged();
        return this;
      }

      // optional .hadoop.yarn.ContainerTypeProto containerType = 12;
      private org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto containerType_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto.APPLICATION_MASTER;
      /**
       * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
       */
      public boolean hasContainerType() {
        return ((bitField0_ & 0x00000800) == 0x00000800);
      }
      /**
       * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto getContainerType() {
        return containerType_;
      }
      /**
       * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
       */
      public Builder setContainerType(org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000800;
        containerType_ = value;
        onChanged();
        return this;
      }
      /**
       * optional .hadoop.yarn.ContainerTypeProto containerType = 12;
       */
      public Builder clearContainerType() {
        bitField0_ = (bitField0_ & ~0x00000800);
        containerType_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerTypeProto.APPLICATION_MASTER;
        onChanged();
        return this;
      }

      // optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
      private org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED;
      /**
       * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
       */
      public boolean hasExecutionType() {
        return ((bitField0_ & 0x00001000) == 0x00001000);
      }
      /**
       * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
        return executionType_;
      }
      /**
       * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
       */
      public Builder setExecutionType(org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00001000;
        executionType_ = value;
        onChanged();
        return this;
      }
      /**
       * optional .hadoop.yarn.ExecutionTypeProto executionType = 13 [default = GUARANTEED];
       */
      public Builder clearExecutionType() {
        bitField0_ = (bitField0_ & ~0x00001000);
        executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED;
        onChanged();
        return this;
      }

      // optional int32 version = 14 [default = 0];
      private int version_ ;
      /**
       * optional int32 version = 14 [default = 0];
       */
      public boolean hasVersion() {
        return ((bitField0_ & 0x00002000) == 0x00002000);
      }
      /**
       * optional int32 version = 14 [default = 0];
       */
      public int getVersion() {
        return version_;
      }
      /**
       * optional int32 version = 14 [default = 0];
       */
      public Builder setVersion(int value) {
        bitField0_ |= 0x00002000;
        version_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 version = 14 [default = 0];
       */
      public Builder clearVersion() {
        bitField0_ = (bitField0_ & ~0x00002000);
        version_ = 0;
        onChanged();
        return this;
      }

      // optional int64 allocation_request_id = 15 [default = -1];
      private long allocationRequestId_ = -1L;
      /**
       * optional int64 allocation_request_id = 15 [default = -1];
       */
      public boolean hasAllocationRequestId() {
        return ((bitField0_ & 0x00004000) == 0x00004000);
      }
      /**
       * optional int64 allocation_request_id = 15 [default = -1];
       */
      public long getAllocationRequestId() {
        return allocationRequestId_;
      }
      /**
       * optional int64 allocation_request_id = 15 [default = -1];
       */
      public Builder setAllocationRequestId(long value) {
        bitField0_ |= 0x00004000;
        allocationRequestId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 allocation_request_id = 15 [default = -1];
       */
      public Builder clearAllocationRequestId() {
        bitField0_ = (bitField0_ & ~0x00004000);
        allocationRequestId_ = -1L;
        onChanged();
        return this;
      }

      // repeated string allocation_tags = 16;
      private com.google.protobuf.LazyStringList allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureAllocationTagsIsMutable() {
        if (!((bitField0_ & 0x00008000) == 0x00008000)) {
          allocationTags_ = new com.google.protobuf.LazyStringArrayList(allocationTags_);
          bitField0_ |= 0x00008000;
         }
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public java.util.List
          getAllocationTagsList() {
        return java.util.Collections.unmodifiableList(allocationTags_);
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public int getAllocationTagsCount() {
        return allocationTags_.size();
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public java.lang.String getAllocationTags(int index) {
        return allocationTags_.get(index);
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public com.google.protobuf.ByteString
          getAllocationTagsBytes(int index) {
        return allocationTags_.getByteString(index);
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public Builder setAllocationTags(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAllocationTagsIsMutable();
        allocationTags_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public Builder addAllocationTags(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAllocationTagsIsMutable();
        allocationTags_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public Builder addAllAllocationTags(
          java.lang.Iterable values) {
        ensureAllocationTagsIsMutable();
        super.addAll(values, allocationTags_);
        onChanged();
        return this;
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public Builder clearAllocationTags() {
        allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00008000);
        onChanged();
        return this;
      }
      /**
       * repeated string allocation_tags = 16;
       */
      public Builder addAllocationTagsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureAllocationTagsIsMutable();
        allocationTags_.add(value);
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.yarn.ContainerTokenIdentifierProto)
    }

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

    // @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerTokenIdentifierProto)
  }

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

    // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    boolean hasAppAttemptId();
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId();
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder();

    // optional string clientName = 2;
    /**
     * optional string clientName = 2;
     */
    boolean hasClientName();
    /**
     * optional string clientName = 2;
     */
    java.lang.String getClientName();
    /**
     * optional string clientName = 2;
     */
    com.google.protobuf.ByteString
        getClientNameBytes();
  }
  /**
   * Protobuf type {@code hadoop.yarn.ClientToAMTokenIdentifierProto}
   */
  public static final class ClientToAMTokenIdentifierProto extends
      com.google.protobuf.GeneratedMessage
      implements ClientToAMTokenIdentifierProtoOrBuilder {
    // Use ClientToAMTokenIdentifierProto.newBuilder() to construct.
    private ClientToAMTokenIdentifierProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ClientToAMTokenIdentifierProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ClientToAMTokenIdentifierProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ClientToAMTokenIdentifierProto(
        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: {
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = appAttemptId_.toBuilder();
              }
              appAttemptId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(appAttemptId_);
                appAttemptId_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              clientName_ = 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 org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
    public static final int APPATTEMPTID_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_;
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public boolean hasAppAttemptId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
      return appAttemptId_;
    }
    /**
     * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
      return appAttemptId_;
    }

    // optional string clientName = 2;
    public static final int CLIENTNAME_FIELD_NUMBER = 2;
    private java.lang.Object clientName_;
    /**
     * optional string clientName = 2;
     */
    public boolean hasClientName() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string clientName = 2;
     */
    public java.lang.String getClientName() {
      java.lang.Object ref = clientName_;
      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()) {
          clientName_ = s;
        }
        return s;
      }
    }
    /**
     * optional string clientName = 2;
     */
    public com.google.protobuf.ByteString
        getClientNameBytes() {
      java.lang.Object ref = clientName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
      clientName_ = "";
    }
    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, appAttemptId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getClientNameBytes());
      }
      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, appAttemptId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getClientNameBytes());
      }
      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();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto) obj;

      boolean result = true;
      result = result && (hasAppAttemptId() == other.hasAppAttemptId());
      if (hasAppAttemptId()) {
        result = result && getAppAttemptId()
            .equals(other.getAppAttemptId());
      }
      result = result && (hasClientName() == other.hasClientName());
      if (hasClientName()) {
        result = result && getClientName()
            .equals(other.getClientName());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasAppAttemptId()) {
        hash = (37 * hash) + APPATTEMPTID_FIELD_NUMBER;
        hash = (53 * hash) + getAppAttemptId().hashCode();
      }
      if (hasClientName()) {
        hash = (37 * hash) + CLIENTNAME_FIELD_NUMBER;
        hash = (53 * hash) + getClientName().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto 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(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto 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 hadoop.yarn.ClientToAMTokenIdentifierProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProtoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
        } else {
          appAttemptIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        clientName_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.getDefaultInstance();
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto build() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (appAttemptIdBuilder_ == null) {
          result.appAttemptId_ = appAttemptId_;
        } else {
          result.appAttemptId_ = appAttemptIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.clientName_ = clientName_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto) {
          return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto.getDefaultInstance()) return this;
        if (other.hasAppAttemptId()) {
          mergeAppAttemptId(other.getAppAttemptId());
        }
        if (other.hasClientName()) {
          bitField0_ |= 0x00000002;
          clientName_ = other.clientName_;
          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 {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
      private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> appAttemptIdBuilder_;
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public boolean hasAppAttemptId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
        if (appAttemptIdBuilder_ == null) {
          return appAttemptId_;
        } else {
          return appAttemptIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder setAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
        if (appAttemptIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          appAttemptId_ = value;
          onChanged();
        } else {
          appAttemptIdBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder setAppAttemptId(
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = builderForValue.build();
          onChanged();
        } else {
          appAttemptIdBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder mergeAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
        if (appAttemptIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              appAttemptId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
            appAttemptId_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(appAttemptId_).mergeFrom(value).buildPartial();
          } else {
            appAttemptId_ = value;
          }
          onChanged();
        } else {
          appAttemptIdBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public Builder clearAppAttemptId() {
        if (appAttemptIdBuilder_ == null) {
          appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
          onChanged();
        } else {
          appAttemptIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getAppAttemptIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAppAttemptIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
        if (appAttemptIdBuilder_ != null) {
          return appAttemptIdBuilder_.getMessageOrBuilder();
        } else {
          return appAttemptId_;
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> 
          getAppAttemptIdFieldBuilder() {
        if (appAttemptIdBuilder_ == null) {
          appAttemptIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
                  appAttemptId_,
                  getParentForChildren(),
                  isClean());
          appAttemptId_ = null;
        }
        return appAttemptIdBuilder_;
      }

      // optional string clientName = 2;
      private java.lang.Object clientName_ = "";
      /**
       * optional string clientName = 2;
       */
      public boolean hasClientName() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string clientName = 2;
       */
      public java.lang.String getClientName() {
        java.lang.Object ref = clientName_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          clientName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string clientName = 2;
       */
      public com.google.protobuf.ByteString
          getClientNameBytes() {
        java.lang.Object ref = clientName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          clientName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string clientName = 2;
       */
      public Builder setClientName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        clientName_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string clientName = 2;
       */
      public Builder clearClientName() {
        bitField0_ = (bitField0_ & ~0x00000002);
        clientName_ = getDefaultInstance().getClientName();
        onChanged();
        return this;
      }
      /**
       * optional string clientName = 2;
       */
      public Builder setClientNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        clientName_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.yarn.ClientToAMTokenIdentifierProto)
    }

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

    // @@protoc_insertion_point(class_scope:hadoop.yarn.ClientToAMTokenIdentifierProto)
  }

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

    // optional string owner = 1;
    /**
     * optional string owner = 1;
     */
    boolean hasOwner();
    /**
     * optional string owner = 1;
     */
    java.lang.String getOwner();
    /**
     * optional string owner = 1;
     */
    com.google.protobuf.ByteString
        getOwnerBytes();

    // optional string renewer = 2;
    /**
     * optional string renewer = 2;
     */
    boolean hasRenewer();
    /**
     * optional string renewer = 2;
     */
    java.lang.String getRenewer();
    /**
     * optional string renewer = 2;
     */
    com.google.protobuf.ByteString
        getRenewerBytes();

    // optional string realUser = 3;
    /**
     * optional string realUser = 3;
     */
    boolean hasRealUser();
    /**
     * optional string realUser = 3;
     */
    java.lang.String getRealUser();
    /**
     * optional string realUser = 3;
     */
    com.google.protobuf.ByteString
        getRealUserBytes();

    // optional int64 issueDate = 4;
    /**
     * optional int64 issueDate = 4;
     */
    boolean hasIssueDate();
    /**
     * optional int64 issueDate = 4;
     */
    long getIssueDate();

    // optional int64 maxDate = 5;
    /**
     * optional int64 maxDate = 5;
     */
    boolean hasMaxDate();
    /**
     * optional int64 maxDate = 5;
     */
    long getMaxDate();

    // optional int32 sequenceNumber = 6;
    /**
     * optional int32 sequenceNumber = 6;
     */
    boolean hasSequenceNumber();
    /**
     * optional int32 sequenceNumber = 6;
     */
    int getSequenceNumber();

    // optional int32 masterKeyId = 7;
    /**
     * optional int32 masterKeyId = 7;
     */
    boolean hasMasterKeyId();
    /**
     * optional int32 masterKeyId = 7;
     */
    int getMasterKeyId();
  }
  /**
   * Protobuf type {@code hadoop.yarn.YARNDelegationTokenIdentifierProto}
   */
  public static final class YARNDelegationTokenIdentifierProto extends
      com.google.protobuf.GeneratedMessage
      implements YARNDelegationTokenIdentifierProtoOrBuilder {
    // Use YARNDelegationTokenIdentifierProto.newBuilder() to construct.
    private YARNDelegationTokenIdentifierProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private YARNDelegationTokenIdentifierProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public YARNDelegationTokenIdentifierProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private YARNDelegationTokenIdentifierProto(
        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;
              owner_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              renewer_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              realUser_ = input.readBytes();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              issueDate_ = input.readInt64();
              break;
            }
            case 40: {
              bitField0_ |= 0x00000010;
              maxDate_ = input.readInt64();
              break;
            }
            case 48: {
              bitField0_ |= 0x00000020;
              sequenceNumber_ = input.readInt32();
              break;
            }
            case 56: {
              bitField0_ |= 0x00000040;
              masterKeyId_ = input.readInt32();
              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 org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string owner = 1;
    public static final int OWNER_FIELD_NUMBER = 1;
    private java.lang.Object owner_;
    /**
     * optional string owner = 1;
     */
    public boolean hasOwner() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string owner = 1;
     */
    public java.lang.String getOwner() {
      java.lang.Object ref = owner_;
      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()) {
          owner_ = s;
        }
        return s;
      }
    }
    /**
     * optional string owner = 1;
     */
    public com.google.protobuf.ByteString
        getOwnerBytes() {
      java.lang.Object ref = owner_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        owner_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string renewer = 2;
    public static final int RENEWER_FIELD_NUMBER = 2;
    private java.lang.Object renewer_;
    /**
     * optional string renewer = 2;
     */
    public boolean hasRenewer() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string renewer = 2;
     */
    public java.lang.String getRenewer() {
      java.lang.Object ref = renewer_;
      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()) {
          renewer_ = s;
        }
        return s;
      }
    }
    /**
     * optional string renewer = 2;
     */
    public com.google.protobuf.ByteString
        getRenewerBytes() {
      java.lang.Object ref = renewer_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        renewer_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string realUser = 3;
    public static final int REALUSER_FIELD_NUMBER = 3;
    private java.lang.Object realUser_;
    /**
     * optional string realUser = 3;
     */
    public boolean hasRealUser() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string realUser = 3;
     */
    public java.lang.String getRealUser() {
      java.lang.Object ref = realUser_;
      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()) {
          realUser_ = s;
        }
        return s;
      }
    }
    /**
     * optional string realUser = 3;
     */
    public com.google.protobuf.ByteString
        getRealUserBytes() {
      java.lang.Object ref = realUser_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        realUser_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional int64 issueDate = 4;
    public static final int ISSUEDATE_FIELD_NUMBER = 4;
    private long issueDate_;
    /**
     * optional int64 issueDate = 4;
     */
    public boolean hasIssueDate() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional int64 issueDate = 4;
     */
    public long getIssueDate() {
      return issueDate_;
    }

    // optional int64 maxDate = 5;
    public static final int MAXDATE_FIELD_NUMBER = 5;
    private long maxDate_;
    /**
     * optional int64 maxDate = 5;
     */
    public boolean hasMaxDate() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * optional int64 maxDate = 5;
     */
    public long getMaxDate() {
      return maxDate_;
    }

    // optional int32 sequenceNumber = 6;
    public static final int SEQUENCENUMBER_FIELD_NUMBER = 6;
    private int sequenceNumber_;
    /**
     * optional int32 sequenceNumber = 6;
     */
    public boolean hasSequenceNumber() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * optional int32 sequenceNumber = 6;
     */
    public int getSequenceNumber() {
      return sequenceNumber_;
    }

    // optional int32 masterKeyId = 7;
    public static final int MASTERKEYID_FIELD_NUMBER = 7;
    private int masterKeyId_;
    /**
     * optional int32 masterKeyId = 7;
     */
    public boolean hasMasterKeyId() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * optional int32 masterKeyId = 7;
     */
    public int getMasterKeyId() {
      return masterKeyId_;
    }

    private void initFields() {
      owner_ = "";
      renewer_ = "";
      realUser_ = "";
      issueDate_ = 0L;
      maxDate_ = 0L;
      sequenceNumber_ = 0;
      masterKeyId_ = 0;
    }
    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, getOwnerBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getRenewerBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getRealUserBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt64(4, issueDate_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeInt64(5, maxDate_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeInt32(6, sequenceNumber_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeInt32(7, masterKeyId_);
      }
      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, getOwnerBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getRenewerBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getRealUserBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, issueDate_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, maxDate_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(6, sequenceNumber_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(7, masterKeyId_);
      }
      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();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto) obj;

      boolean result = true;
      result = result && (hasOwner() == other.hasOwner());
      if (hasOwner()) {
        result = result && getOwner()
            .equals(other.getOwner());
      }
      result = result && (hasRenewer() == other.hasRenewer());
      if (hasRenewer()) {
        result = result && getRenewer()
            .equals(other.getRenewer());
      }
      result = result && (hasRealUser() == other.hasRealUser());
      if (hasRealUser()) {
        result = result && getRealUser()
            .equals(other.getRealUser());
      }
      result = result && (hasIssueDate() == other.hasIssueDate());
      if (hasIssueDate()) {
        result = result && (getIssueDate()
            == other.getIssueDate());
      }
      result = result && (hasMaxDate() == other.hasMaxDate());
      if (hasMaxDate()) {
        result = result && (getMaxDate()
            == other.getMaxDate());
      }
      result = result && (hasSequenceNumber() == other.hasSequenceNumber());
      if (hasSequenceNumber()) {
        result = result && (getSequenceNumber()
            == other.getSequenceNumber());
      }
      result = result && (hasMasterKeyId() == other.hasMasterKeyId());
      if (hasMasterKeyId()) {
        result = result && (getMasterKeyId()
            == other.getMasterKeyId());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasOwner()) {
        hash = (37 * hash) + OWNER_FIELD_NUMBER;
        hash = (53 * hash) + getOwner().hashCode();
      }
      if (hasRenewer()) {
        hash = (37 * hash) + RENEWER_FIELD_NUMBER;
        hash = (53 * hash) + getRenewer().hashCode();
      }
      if (hasRealUser()) {
        hash = (37 * hash) + REALUSER_FIELD_NUMBER;
        hash = (53 * hash) + getRealUser().hashCode();
      }
      if (hasIssueDate()) {
        hash = (37 * hash) + ISSUEDATE_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getIssueDate());
      }
      if (hasMaxDate()) {
        hash = (37 * hash) + MAXDATE_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getMaxDate());
      }
      if (hasSequenceNumber()) {
        hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER;
        hash = (53 * hash) + getSequenceNumber();
      }
      if (hasMasterKeyId()) {
        hash = (37 * hash) + MASTERKEYID_FIELD_NUMBER;
        hash = (53 * hash) + getMasterKeyId();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto 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(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto 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 hadoop.yarn.YARNDelegationTokenIdentifierProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.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();
        owner_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        renewer_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        realUser_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        issueDate_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000008);
        maxDate_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000010);
        sequenceNumber_ = 0;
        bitField0_ = (bitField0_ & ~0x00000020);
        masterKeyId_ = 0;
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance();
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto build() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.owner_ = owner_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.renewer_ = renewer_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.realUser_ = realUser_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.issueDate_ = issueDate_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.maxDate_ = maxDate_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.sequenceNumber_ = sequenceNumber_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.masterKeyId_ = masterKeyId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto) {
          return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance()) return this;
        if (other.hasOwner()) {
          bitField0_ |= 0x00000001;
          owner_ = other.owner_;
          onChanged();
        }
        if (other.hasRenewer()) {
          bitField0_ |= 0x00000002;
          renewer_ = other.renewer_;
          onChanged();
        }
        if (other.hasRealUser()) {
          bitField0_ |= 0x00000004;
          realUser_ = other.realUser_;
          onChanged();
        }
        if (other.hasIssueDate()) {
          setIssueDate(other.getIssueDate());
        }
        if (other.hasMaxDate()) {
          setMaxDate(other.getMaxDate());
        }
        if (other.hasSequenceNumber()) {
          setSequenceNumber(other.getSequenceNumber());
        }
        if (other.hasMasterKeyId()) {
          setMasterKeyId(other.getMasterKeyId());
        }
        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 {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string owner = 1;
      private java.lang.Object owner_ = "";
      /**
       * optional string owner = 1;
       */
      public boolean hasOwner() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string owner = 1;
       */
      public java.lang.String getOwner() {
        java.lang.Object ref = owner_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          owner_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string owner = 1;
       */
      public com.google.protobuf.ByteString
          getOwnerBytes() {
        java.lang.Object ref = owner_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          owner_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string owner = 1;
       */
      public Builder setOwner(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        owner_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string owner = 1;
       */
      public Builder clearOwner() {
        bitField0_ = (bitField0_ & ~0x00000001);
        owner_ = getDefaultInstance().getOwner();
        onChanged();
        return this;
      }
      /**
       * optional string owner = 1;
       */
      public Builder setOwnerBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        owner_ = value;
        onChanged();
        return this;
      }

      // optional string renewer = 2;
      private java.lang.Object renewer_ = "";
      /**
       * optional string renewer = 2;
       */
      public boolean hasRenewer() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string renewer = 2;
       */
      public java.lang.String getRenewer() {
        java.lang.Object ref = renewer_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          renewer_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string renewer = 2;
       */
      public com.google.protobuf.ByteString
          getRenewerBytes() {
        java.lang.Object ref = renewer_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          renewer_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string renewer = 2;
       */
      public Builder setRenewer(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        renewer_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string renewer = 2;
       */
      public Builder clearRenewer() {
        bitField0_ = (bitField0_ & ~0x00000002);
        renewer_ = getDefaultInstance().getRenewer();
        onChanged();
        return this;
      }
      /**
       * optional string renewer = 2;
       */
      public Builder setRenewerBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        renewer_ = value;
        onChanged();
        return this;
      }

      // optional string realUser = 3;
      private java.lang.Object realUser_ = "";
      /**
       * optional string realUser = 3;
       */
      public boolean hasRealUser() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string realUser = 3;
       */
      public java.lang.String getRealUser() {
        java.lang.Object ref = realUser_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          realUser_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string realUser = 3;
       */
      public com.google.protobuf.ByteString
          getRealUserBytes() {
        java.lang.Object ref = realUser_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          realUser_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string realUser = 3;
       */
      public Builder setRealUser(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        realUser_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string realUser = 3;
       */
      public Builder clearRealUser() {
        bitField0_ = (bitField0_ & ~0x00000004);
        realUser_ = getDefaultInstance().getRealUser();
        onChanged();
        return this;
      }
      /**
       * optional string realUser = 3;
       */
      public Builder setRealUserBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        realUser_ = value;
        onChanged();
        return this;
      }

      // optional int64 issueDate = 4;
      private long issueDate_ ;
      /**
       * optional int64 issueDate = 4;
       */
      public boolean hasIssueDate() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional int64 issueDate = 4;
       */
      public long getIssueDate() {
        return issueDate_;
      }
      /**
       * optional int64 issueDate = 4;
       */
      public Builder setIssueDate(long value) {
        bitField0_ |= 0x00000008;
        issueDate_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 issueDate = 4;
       */
      public Builder clearIssueDate() {
        bitField0_ = (bitField0_ & ~0x00000008);
        issueDate_ = 0L;
        onChanged();
        return this;
      }

      // optional int64 maxDate = 5;
      private long maxDate_ ;
      /**
       * optional int64 maxDate = 5;
       */
      public boolean hasMaxDate() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * optional int64 maxDate = 5;
       */
      public long getMaxDate() {
        return maxDate_;
      }
      /**
       * optional int64 maxDate = 5;
       */
      public Builder setMaxDate(long value) {
        bitField0_ |= 0x00000010;
        maxDate_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 maxDate = 5;
       */
      public Builder clearMaxDate() {
        bitField0_ = (bitField0_ & ~0x00000010);
        maxDate_ = 0L;
        onChanged();
        return this;
      }

      // optional int32 sequenceNumber = 6;
      private int sequenceNumber_ ;
      /**
       * optional int32 sequenceNumber = 6;
       */
      public boolean hasSequenceNumber() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * optional int32 sequenceNumber = 6;
       */
      public int getSequenceNumber() {
        return sequenceNumber_;
      }
      /**
       * optional int32 sequenceNumber = 6;
       */
      public Builder setSequenceNumber(int value) {
        bitField0_ |= 0x00000020;
        sequenceNumber_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 sequenceNumber = 6;
       */
      public Builder clearSequenceNumber() {
        bitField0_ = (bitField0_ & ~0x00000020);
        sequenceNumber_ = 0;
        onChanged();
        return this;
      }

      // optional int32 masterKeyId = 7;
      private int masterKeyId_ ;
      /**
       * optional int32 masterKeyId = 7;
       */
      public boolean hasMasterKeyId() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * optional int32 masterKeyId = 7;
       */
      public int getMasterKeyId() {
        return masterKeyId_;
      }
      /**
       * optional int32 masterKeyId = 7;
       */
      public Builder setMasterKeyId(int value) {
        bitField0_ |= 0x00000040;
        masterKeyId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 masterKeyId = 7;
       */
      public Builder clearMasterKeyId() {
        bitField0_ = (bitField0_ & ~0x00000040);
        masterKeyId_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.yarn.YARNDelegationTokenIdentifierProto)
    }

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

    // @@protoc_insertion_point(class_scope:hadoop.yarn.YARNDelegationTokenIdentifierProto)
  }

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

    // optional string registryUrl = 1;
    /**
     * optional string registryUrl = 1;
     */
    boolean hasRegistryUrl();
    /**
     * optional string registryUrl = 1;
     */
    java.lang.String getRegistryUrl();
    /**
     * optional string registryUrl = 1;
     */
    com.google.protobuf.ByteString
        getRegistryUrlBytes();

    // optional string applicationId = 2;
    /**
     * optional string applicationId = 2;
     */
    boolean hasApplicationId();
    /**
     * optional string applicationId = 2;
     */
    java.lang.String getApplicationId();
    /**
     * optional string applicationId = 2;
     */
    com.google.protobuf.ByteString
        getApplicationIdBytes();
  }
  /**
   * Protobuf type {@code hadoop.yarn.DockerCredentialTokenIdentifierProto}
   */
  public static final class DockerCredentialTokenIdentifierProto extends
      com.google.protobuf.GeneratedMessage
      implements DockerCredentialTokenIdentifierProtoOrBuilder {
    // Use DockerCredentialTokenIdentifierProto.newBuilder() to construct.
    private DockerCredentialTokenIdentifierProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private DockerCredentialTokenIdentifierProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public DockerCredentialTokenIdentifierProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private DockerCredentialTokenIdentifierProto(
        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;
              registryUrl_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              applicationId_ = 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 org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string registryUrl = 1;
    public static final int REGISTRYURL_FIELD_NUMBER = 1;
    private java.lang.Object registryUrl_;
    /**
     * optional string registryUrl = 1;
     */
    public boolean hasRegistryUrl() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string registryUrl = 1;
     */
    public java.lang.String getRegistryUrl() {
      java.lang.Object ref = registryUrl_;
      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()) {
          registryUrl_ = s;
        }
        return s;
      }
    }
    /**
     * optional string registryUrl = 1;
     */
    public com.google.protobuf.ByteString
        getRegistryUrlBytes() {
      java.lang.Object ref = registryUrl_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        registryUrl_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string applicationId = 2;
    public static final int APPLICATIONID_FIELD_NUMBER = 2;
    private java.lang.Object applicationId_;
    /**
     * optional string applicationId = 2;
     */
    public boolean hasApplicationId() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string applicationId = 2;
     */
    public java.lang.String getApplicationId() {
      java.lang.Object ref = applicationId_;
      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()) {
          applicationId_ = s;
        }
        return s;
      }
    }
    /**
     * optional string applicationId = 2;
     */
    public com.google.protobuf.ByteString
        getApplicationIdBytes() {
      java.lang.Object ref = applicationId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        applicationId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      registryUrl_ = "";
      applicationId_ = "";
    }
    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, getRegistryUrlBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getApplicationIdBytes());
      }
      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, getRegistryUrlBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getApplicationIdBytes());
      }
      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();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto) obj;

      boolean result = true;
      result = result && (hasRegistryUrl() == other.hasRegistryUrl());
      if (hasRegistryUrl()) {
        result = result && getRegistryUrl()
            .equals(other.getRegistryUrl());
      }
      result = result && (hasApplicationId() == other.hasApplicationId());
      if (hasApplicationId()) {
        result = result && getApplicationId()
            .equals(other.getApplicationId());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasRegistryUrl()) {
        hash = (37 * hash) + REGISTRYURL_FIELD_NUMBER;
        hash = (53 * hash) + getRegistryUrl().hashCode();
      }
      if (hasApplicationId()) {
        hash = (37 * hash) + APPLICATIONID_FIELD_NUMBER;
        hash = (53 * hash) + getApplicationId().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto 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(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto 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 hadoop.yarn.DockerCredentialTokenIdentifierProto}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProtoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.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();
        registryUrl_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        applicationId_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.getDefaultInstance();
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto build() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.registryUrl_ = registryUrl_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.applicationId_ = applicationId_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto) {
          return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto.getDefaultInstance()) return this;
        if (other.hasRegistryUrl()) {
          bitField0_ |= 0x00000001;
          registryUrl_ = other.registryUrl_;
          onChanged();
        }
        if (other.hasApplicationId()) {
          bitField0_ |= 0x00000002;
          applicationId_ = other.applicationId_;
          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 {
        org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.DockerCredentialTokenIdentifierProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string registryUrl = 1;
      private java.lang.Object registryUrl_ = "";
      /**
       * optional string registryUrl = 1;
       */
      public boolean hasRegistryUrl() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string registryUrl = 1;
       */
      public java.lang.String getRegistryUrl() {
        java.lang.Object ref = registryUrl_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          registryUrl_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string registryUrl = 1;
       */
      public com.google.protobuf.ByteString
          getRegistryUrlBytes() {
        java.lang.Object ref = registryUrl_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          registryUrl_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string registryUrl = 1;
       */
      public Builder setRegistryUrl(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        registryUrl_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string registryUrl = 1;
       */
      public Builder clearRegistryUrl() {
        bitField0_ = (bitField0_ & ~0x00000001);
        registryUrl_ = getDefaultInstance().getRegistryUrl();
        onChanged();
        return this;
      }
      /**
       * optional string registryUrl = 1;
       */
      public Builder setRegistryUrlBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        registryUrl_ = value;
        onChanged();
        return this;
      }

      // optional string applicationId = 2;
      private java.lang.Object applicationId_ = "";
      /**
       * optional string applicationId = 2;
       */
      public boolean hasApplicationId() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string applicationId = 2;
       */
      public java.lang.String getApplicationId() {
        java.lang.Object ref = applicationId_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          applicationId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string applicationId = 2;
       */
      public com.google.protobuf.ByteString
          getApplicationIdBytes() {
        java.lang.Object ref = applicationId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          applicationId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string applicationId = 2;
       */
      public Builder setApplicationId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        applicationId_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string applicationId = 2;
       */
      public Builder clearApplicationId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        applicationId_ = getDefaultInstance().getApplicationId();
        onChanged();
        return this;
      }
      /**
       * optional string applicationId = 2;
       */
      public Builder setApplicationIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        applicationId_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.yarn.DockerCredentialTokenIdentifierProto)
    }

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

    // @@protoc_insertion_point(class_scope:hadoop.yarn.DockerCredentialTokenIdentifierProto)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_hadoop_yarn_NMTokenIdentifierProto_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_hadoop_yarn_NMTokenIdentifierProto_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_hadoop_yarn_AMRMTokenIdentifierProto_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_hadoop_yarn_AMRMTokenIdentifierProto_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_hadoop_yarn_ContainerTokenIdentifierProto_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_hadoop_yarn_ContainerTokenIdentifierProto_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_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\031yarn_security_token.proto\022\013hadoop.yarn" +
      "\032\021yarn_protos.proto\"\251\001\n\026NMTokenIdentifie" +
      "rProto\022<\n\014appAttemptId\030\001 \001(\0132&.hadoop.ya" +
      "rn.ApplicationAttemptIdProto\022(\n\006nodeId\030\002" +
      " \001(\0132\030.hadoop.yarn.NodeIdProto\022\024\n\014appSub" +
      "mitter\030\003 \001(\t\022\021\n\005keyId\030\004 \001(\005:\002-1\"k\n\030AMRMT" +
      "okenIdentifierProto\022<\n\014appAttemptId\030\001 \001(" +
      "\0132&.hadoop.yarn.ApplicationAttemptIdProt" +
      "o\022\021\n\005keyId\030\002 \001(\005:\002-1\"\350\004\n\035ContainerTokenI" +
      "dentifierProto\0222\n\013containerId\030\001 \001(\0132\035.ha",
      "doop.yarn.ContainerIdProto\022\022\n\nnmHostAddr" +
      "\030\002 \001(\t\022\024\n\014appSubmitter\030\003 \001(\t\022,\n\010resource" +
      "\030\004 \001(\0132\032.hadoop.yarn.ResourceProto\022\027\n\017ex" +
      "piryTimeStamp\030\005 \001(\003\022\027\n\013masterKeyId\030\006 \001(\005" +
      ":\002-1\022\024\n\014rmIdentifier\030\007 \001(\003\022,\n\010priority\030\010" +
      " \001(\0132\032.hadoop.yarn.PriorityProto\022\024\n\014crea" +
      "tionTime\030\t \001(\003\022F\n\025logAggregationContext\030" +
      "\n \001(\0132\'.hadoop.yarn.LogAggregationContex" +
      "tProto\022\033\n\023nodeLabelExpression\030\013 \001(\t\0226\n\rc" +
      "ontainerType\030\014 \001(\0162\037.hadoop.yarn.Contain",
      "erTypeProto\022B\n\rexecutionType\030\r \001(\0162\037.had" +
      "oop.yarn.ExecutionTypeProto:\nGUARANTEED\022" +
      "\022\n\007version\030\016 \001(\005:\0010\022!\n\025allocation_reques" +
      "t_id\030\017 \001(\003:\002-1\022\027\n\017allocation_tags\030\020 \003(\t\"" +
      "r\n\036ClientToAMTokenIdentifierProto\022<\n\014app" +
      "AttemptId\030\001 \001(\0132&.hadoop.yarn.Applicatio" +
      "nAttemptIdProto\022\022\n\nclientName\030\002 \001(\t\"\247\001\n\"" +
      "YARNDelegationTokenIdentifierProto\022\r\n\005ow" +
      "ner\030\001 \001(\t\022\017\n\007renewer\030\002 \001(\t\022\020\n\010realUser\030\003" +
      " \001(\t\022\021\n\tissueDate\030\004 \001(\003\022\017\n\007maxDate\030\005 \001(\003",
      "\022\026\n\016sequenceNumber\030\006 \001(\005\022\023\n\013masterKeyId\030" +
      "\007 \001(\005\"R\n$DockerCredentialTokenIdentifier" +
      "Proto\022\023\n\013registryUrl\030\001 \001(\t\022\025\n\rapplicatio" +
      "nId\030\002 \001(\tB=\n\034org.apache.hadoop.yarn.prot" +
      "oB\027YarnSecurityTokenProtos\210\001\001\240\001\001"
    };
    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_hadoop_yarn_NMTokenIdentifierProto_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_hadoop_yarn_NMTokenIdentifierProto_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_hadoop_yarn_NMTokenIdentifierProto_descriptor,
              new java.lang.String[] { "AppAttemptId", "NodeId", "AppSubmitter", "KeyId", });
          internal_static_hadoop_yarn_AMRMTokenIdentifierProto_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_hadoop_yarn_AMRMTokenIdentifierProto_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_hadoop_yarn_AMRMTokenIdentifierProto_descriptor,
              new java.lang.String[] { "AppAttemptId", "KeyId", });
          internal_static_hadoop_yarn_ContainerTokenIdentifierProto_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_hadoop_yarn_ContainerTokenIdentifierProto_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_hadoop_yarn_ContainerTokenIdentifierProto_descriptor,
              new java.lang.String[] { "ContainerId", "NmHostAddr", "AppSubmitter", "Resource", "ExpiryTimeStamp", "MasterKeyId", "RmIdentifier", "Priority", "CreationTime", "LogAggregationContext", "NodeLabelExpression", "ContainerType", "ExecutionType", "Version", "AllocationRequestId", "AllocationTags", });
          internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_descriptor =
            getDescriptor().getMessageTypes().get(3);
          internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_hadoop_yarn_ClientToAMTokenIdentifierProto_descriptor,
              new java.lang.String[] { "AppAttemptId", "ClientName", });
          internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_descriptor =
            getDescriptor().getMessageTypes().get(4);
          internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_hadoop_yarn_YARNDelegationTokenIdentifierProto_descriptor,
              new java.lang.String[] { "Owner", "Renewer", "RealUser", "IssueDate", "MaxDate", "SequenceNumber", "MasterKeyId", });
          internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_descriptor =
            getDescriptor().getMessageTypes().get(5);
          internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_hadoop_yarn_DockerCredentialTokenIdentifierProto_descriptor,
              new java.lang.String[] { "RegistryUrl", "ApplicationId", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor(),
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy