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

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

There is a newer version: 3.4.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yarn_server_common_service_protos.proto

package org.apache.hadoop.yarn.proto;

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

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

    // optional string http_address = 2;
    /**
     * optional string http_address = 2;
     */
    boolean hasHttpAddress();
    /**
     * optional string http_address = 2;
     */
    java.lang.String getHttpAddress();
    /**
     * optional string http_address = 2;
     */
    com.google.protobuf.ByteString
        getHttpAddressBytes();

    // optional string rack_name = 3;
    /**
     * optional string rack_name = 3;
     */
    boolean hasRackName();
    /**
     * optional string rack_name = 3;
     */
    java.lang.String getRackName();
    /**
     * optional string rack_name = 3;
     */
    com.google.protobuf.ByteString
        getRackNameBytes();

    // optional string node_partition = 4;
    /**
     * optional string node_partition = 4;
     */
    boolean hasNodePartition();
    /**
     * optional string node_partition = 4;
     */
    java.lang.String getNodePartition();
    /**
     * optional string node_partition = 4;
     */
    com.google.protobuf.ByteString
        getNodePartitionBytes();
  }
  /**
   * Protobuf type {@code hadoop.yarn.RemoteNodeProto}
   */
  public static final class RemoteNodeProto extends
      com.google.protobuf.GeneratedMessage
      implements RemoteNodeProtoOrBuilder {
    // Use RemoteNodeProto.newBuilder() to construct.
    private RemoteNodeProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private RemoteNodeProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public RemoteNodeProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private RemoteNodeProto(
        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.NodeIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                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_ |= 0x00000001;
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              httpAddress_ = input.readBytes();
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              rackName_ = input.readBytes();
              break;
            }
            case 34: {
              bitField0_ |= 0x00000008;
              nodePartition_ = 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RemoteNodeProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RemoteNodeProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder.class);
    }

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

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

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

    // optional string http_address = 2;
    public static final int HTTP_ADDRESS_FIELD_NUMBER = 2;
    private java.lang.Object httpAddress_;
    /**
     * optional string http_address = 2;
     */
    public boolean hasHttpAddress() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string http_address = 2;
     */
    public java.lang.String getHttpAddress() {
      java.lang.Object ref = httpAddress_;
      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()) {
          httpAddress_ = s;
        }
        return s;
      }
    }
    /**
     * optional string http_address = 2;
     */
    public com.google.protobuf.ByteString
        getHttpAddressBytes() {
      java.lang.Object ref = httpAddress_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        httpAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string rack_name = 3;
    public static final int RACK_NAME_FIELD_NUMBER = 3;
    private java.lang.Object rackName_;
    /**
     * optional string rack_name = 3;
     */
    public boolean hasRackName() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string rack_name = 3;
     */
    public java.lang.String getRackName() {
      java.lang.Object ref = rackName_;
      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()) {
          rackName_ = s;
        }
        return s;
      }
    }
    /**
     * optional string rack_name = 3;
     */
    public com.google.protobuf.ByteString
        getRackNameBytes() {
      java.lang.Object ref = rackName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        rackName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string node_partition = 4;
    public static final int NODE_PARTITION_FIELD_NUMBER = 4;
    private java.lang.Object nodePartition_;
    /**
     * optional string node_partition = 4;
     */
    public boolean hasNodePartition() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional string node_partition = 4;
     */
    public java.lang.String getNodePartition() {
      java.lang.Object ref = nodePartition_;
      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()) {
          nodePartition_ = s;
        }
        return s;
      }
    }
    /**
     * optional string node_partition = 4;
     */
    public com.google.protobuf.ByteString
        getNodePartitionBytes() {
      java.lang.Object ref = nodePartition_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nodePartition_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
      httpAddress_ = "";
      rackName_ = "";
      nodePartition_ = "";
    }
    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, nodeId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getHttpAddressBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getRackNameBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(4, getNodePartitionBytes());
      }
      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, nodeId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getHttpAddressBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getRackNameBytes());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(4, getNodePartitionBytes());
      }
      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.YarnServerCommonServiceProtos.RemoteNodeProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto) obj;

      boolean result = true;
      result = result && (hasNodeId() == other.hasNodeId());
      if (hasNodeId()) {
        result = result && getNodeId()
            .equals(other.getNodeId());
      }
      result = result && (hasHttpAddress() == other.hasHttpAddress());
      if (hasHttpAddress()) {
        result = result && getHttpAddress()
            .equals(other.getHttpAddress());
      }
      result = result && (hasRackName() == other.hasRackName());
      if (hasRackName()) {
        result = result && getRackName()
            .equals(other.getRackName());
      }
      result = result && (hasNodePartition() == other.hasNodePartition());
      if (hasNodePartition()) {
        result = result && getNodePartition()
            .equals(other.getNodePartition());
      }
      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 (hasNodeId()) {
        hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
        hash = (53 * hash) + getNodeId().hashCode();
      }
      if (hasHttpAddress()) {
        hash = (37 * hash) + HTTP_ADDRESS_FIELD_NUMBER;
        hash = (53 * hash) + getHttpAddress().hashCode();
      }
      if (hasRackName()) {
        hash = (37 * hash) + RACK_NAME_FIELD_NUMBER;
        hash = (53 * hash) + getRackName().hashCode();
      }
      if (hasNodePartition()) {
        hash = (37 * hash) + NODE_PARTITION_FIELD_NUMBER;
        hash = (53 * hash) + getNodePartition().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RemoteNodeProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        httpAddress_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        rackName_ = "";
        bitField0_ = (bitField0_ & ~0x00000004);
        nodePartition_ = "";
        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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RemoteNodeProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (nodeIdBuilder_ == null) {
          result.nodeId_ = nodeId_;
        } else {
          result.nodeId_ = nodeIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.httpAddress_ = httpAddress_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.rackName_ = rackName_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.nodePartition_ = nodePartition_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.getDefaultInstance()) return this;
        if (other.hasNodeId()) {
          mergeNodeId(other.getNodeId());
        }
        if (other.hasHttpAddress()) {
          bitField0_ |= 0x00000002;
          httpAddress_ = other.httpAddress_;
          onChanged();
        }
        if (other.hasRackName()) {
          bitField0_ |= 0x00000004;
          rackName_ = other.rackName_;
          onChanged();
        }
        if (other.hasNodePartition()) {
          bitField0_ |= 0x00000008;
          nodePartition_ = other.nodePartition_;
          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.YarnServerCommonServiceProtos.RemoteNodeProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.NodeIdProto node_id = 1;
      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 node_id = 1;
       */
      public boolean hasNodeId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
        if (nodeIdBuilder_ == null) {
          return nodeId_;
        } else {
          return nodeIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public Builder mergeNodeId(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
        if (nodeIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public Builder clearNodeId() {
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
          onChanged();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getNodeIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
        if (nodeIdBuilder_ != null) {
          return nodeIdBuilder_.getMessageOrBuilder();
        } else {
          return nodeId_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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 http_address = 2;
      private java.lang.Object httpAddress_ = "";
      /**
       * optional string http_address = 2;
       */
      public boolean hasHttpAddress() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string http_address = 2;
       */
      public java.lang.String getHttpAddress() {
        java.lang.Object ref = httpAddress_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          httpAddress_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string http_address = 2;
       */
      public com.google.protobuf.ByteString
          getHttpAddressBytes() {
        java.lang.Object ref = httpAddress_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          httpAddress_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string http_address = 2;
       */
      public Builder setHttpAddress(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        httpAddress_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string http_address = 2;
       */
      public Builder clearHttpAddress() {
        bitField0_ = (bitField0_ & ~0x00000002);
        httpAddress_ = getDefaultInstance().getHttpAddress();
        onChanged();
        return this;
      }
      /**
       * optional string http_address = 2;
       */
      public Builder setHttpAddressBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        httpAddress_ = value;
        onChanged();
        return this;
      }

      // optional string rack_name = 3;
      private java.lang.Object rackName_ = "";
      /**
       * optional string rack_name = 3;
       */
      public boolean hasRackName() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string rack_name = 3;
       */
      public java.lang.String getRackName() {
        java.lang.Object ref = rackName_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          rackName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string rack_name = 3;
       */
      public com.google.protobuf.ByteString
          getRackNameBytes() {
        java.lang.Object ref = rackName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          rackName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string rack_name = 3;
       */
      public Builder setRackName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        rackName_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string rack_name = 3;
       */
      public Builder clearRackName() {
        bitField0_ = (bitField0_ & ~0x00000004);
        rackName_ = getDefaultInstance().getRackName();
        onChanged();
        return this;
      }
      /**
       * optional string rack_name = 3;
       */
      public Builder setRackNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        rackName_ = value;
        onChanged();
        return this;
      }

      // optional string node_partition = 4;
      private java.lang.Object nodePartition_ = "";
      /**
       * optional string node_partition = 4;
       */
      public boolean hasNodePartition() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional string node_partition = 4;
       */
      public java.lang.String getNodePartition() {
        java.lang.Object ref = nodePartition_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          nodePartition_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string node_partition = 4;
       */
      public com.google.protobuf.ByteString
          getNodePartitionBytes() {
        java.lang.Object ref = nodePartition_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          nodePartition_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string node_partition = 4;
       */
      public Builder setNodePartition(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        nodePartition_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string node_partition = 4;
       */
      public Builder clearNodePartition() {
        bitField0_ = (bitField0_ & ~0x00000008);
        nodePartition_ = getDefaultInstance().getNodePartition();
        onChanged();
        return this;
      }
      /**
       * optional string node_partition = 4;
       */
      public Builder setNodePartitionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        nodePartition_ = value;
        onChanged();
        return this;
      }

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

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

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

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

    // optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
    /**
     * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
     */
    boolean hasRegisterResponse();
    /**
     * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getRegisterResponse();
    /**
     * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder getRegisterResponseOrBuilder();

    // optional .hadoop.yarn.ResourceProto max_container_resource = 2;
    /**
     * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
     */
    boolean hasMaxContainerResource();
    /**
     * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaxContainerResource();
    /**
     * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaxContainerResourceOrBuilder();

    // optional .hadoop.yarn.ResourceProto min_container_resource = 3;
    /**
     * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
     */
    boolean hasMinContainerResource();
    /**
     * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMinContainerResource();
    /**
     * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMinContainerResourceOrBuilder();

    // optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
    /**
     * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
     */
    boolean hasIncrContainerResource();
    /**
     * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getIncrContainerResource();
    /**
     * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getIncrContainerResourceOrBuilder();

    // optional int32 container_token_expiry_interval = 5;
    /**
     * optional int32 container_token_expiry_interval = 5;
     */
    boolean hasContainerTokenExpiryInterval();
    /**
     * optional int32 container_token_expiry_interval = 5;
     */
    int getContainerTokenExpiryInterval();

    // optional int64 container_id_start = 6;
    /**
     * optional int64 container_id_start = 6;
     */
    boolean hasContainerIdStart();
    /**
     * optional int64 container_id_start = 6;
     */
    long getContainerIdStart();

    // repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    java.util.List 
        getNodesForSchedulingList();
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getNodesForScheduling(int index);
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    int getNodesForSchedulingCount();
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    java.util.List 
        getNodesForSchedulingOrBuilderList();
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder getNodesForSchedulingOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code hadoop.yarn.RegisterDistributedSchedulingAMResponseProto}
   */
  public static final class RegisterDistributedSchedulingAMResponseProto extends
      com.google.protobuf.GeneratedMessage
      implements RegisterDistributedSchedulingAMResponseProtoOrBuilder {
    // Use RegisterDistributedSchedulingAMResponseProto.newBuilder() to construct.
    private RegisterDistributedSchedulingAMResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private RegisterDistributedSchedulingAMResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public RegisterDistributedSchedulingAMResponseProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private RegisterDistributedSchedulingAMResponseProto(
        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.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = registerResponse_.toBuilder();
              }
              registerResponse_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(registerResponse_);
                registerResponse_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = maxContainerResource_.toBuilder();
              }
              maxContainerResource_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(maxContainerResource_);
                maxContainerResource_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 26: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = minContainerResource_.toBuilder();
              }
              minContainerResource_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(minContainerResource_);
                minContainerResource_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
            case 34: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000008) == 0x00000008)) {
                subBuilder = incrContainerResource_.toBuilder();
              }
              incrContainerResource_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(incrContainerResource_);
                incrContainerResource_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000008;
              break;
            }
            case 40: {
              bitField0_ |= 0x00000010;
              containerTokenExpiryInterval_ = input.readInt32();
              break;
            }
            case 48: {
              bitField0_ |= 0x00000020;
              containerIdStart_ = input.readInt64();
              break;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
                nodesForScheduling_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000040;
              }
              nodesForScheduling_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.PARSER, extensionRegistry));
              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_ & 0x00000040) == 0x00000040)) {
          nodesForScheduling_ = java.util.Collections.unmodifiableList(nodesForScheduling_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
    public static final int REGISTER_RESPONSE_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto registerResponse_;
    /**
     * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
     */
    public boolean hasRegisterResponse() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getRegisterResponse() {
      return registerResponse_;
    }
    /**
     * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder getRegisterResponseOrBuilder() {
      return registerResponse_;
    }

    // optional .hadoop.yarn.ResourceProto max_container_resource = 2;
    public static final int MAX_CONTAINER_RESOURCE_FIELD_NUMBER = 2;
    private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maxContainerResource_;
    /**
     * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
     */
    public boolean hasMaxContainerResource() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaxContainerResource() {
      return maxContainerResource_;
    }
    /**
     * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaxContainerResourceOrBuilder() {
      return maxContainerResource_;
    }

    // optional .hadoop.yarn.ResourceProto min_container_resource = 3;
    public static final int MIN_CONTAINER_RESOURCE_FIELD_NUMBER = 3;
    private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto minContainerResource_;
    /**
     * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
     */
    public boolean hasMinContainerResource() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMinContainerResource() {
      return minContainerResource_;
    }
    /**
     * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMinContainerResourceOrBuilder() {
      return minContainerResource_;
    }

    // optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
    public static final int INCR_CONTAINER_RESOURCE_FIELD_NUMBER = 4;
    private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto incrContainerResource_;
    /**
     * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
     */
    public boolean hasIncrContainerResource() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getIncrContainerResource() {
      return incrContainerResource_;
    }
    /**
     * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getIncrContainerResourceOrBuilder() {
      return incrContainerResource_;
    }

    // optional int32 container_token_expiry_interval = 5;
    public static final int CONTAINER_TOKEN_EXPIRY_INTERVAL_FIELD_NUMBER = 5;
    private int containerTokenExpiryInterval_;
    /**
     * optional int32 container_token_expiry_interval = 5;
     */
    public boolean hasContainerTokenExpiryInterval() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * optional int32 container_token_expiry_interval = 5;
     */
    public int getContainerTokenExpiryInterval() {
      return containerTokenExpiryInterval_;
    }

    // optional int64 container_id_start = 6;
    public static final int CONTAINER_ID_START_FIELD_NUMBER = 6;
    private long containerIdStart_;
    /**
     * optional int64 container_id_start = 6;
     */
    public boolean hasContainerIdStart() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * optional int64 container_id_start = 6;
     */
    public long getContainerIdStart() {
      return containerIdStart_;
    }

    // repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
    public static final int NODES_FOR_SCHEDULING_FIELD_NUMBER = 7;
    private java.util.List nodesForScheduling_;
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    public java.util.List getNodesForSchedulingList() {
      return nodesForScheduling_;
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    public java.util.List 
        getNodesForSchedulingOrBuilderList() {
      return nodesForScheduling_;
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    public int getNodesForSchedulingCount() {
      return nodesForScheduling_.size();
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getNodesForScheduling(int index) {
      return nodesForScheduling_.get(index);
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder getNodesForSchedulingOrBuilder(
        int index) {
      return nodesForScheduling_.get(index);
    }

    private void initFields() {
      registerResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance();
      maxContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      minContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      incrContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      containerTokenExpiryInterval_ = 0;
      containerIdStart_ = 0L;
      nodesForScheduling_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (hasRegisterResponse()) {
        if (!getRegisterResponse().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasMaxContainerResource()) {
        if (!getMaxContainerResource().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasMinContainerResource()) {
        if (!getMinContainerResource().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasIncrContainerResource()) {
        if (!getIncrContainerResource().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, registerResponse_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, maxContainerResource_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(3, minContainerResource_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(4, incrContainerResource_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeInt32(5, containerTokenExpiryInterval_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeInt64(6, containerIdStart_);
      }
      for (int i = 0; i < nodesForScheduling_.size(); i++) {
        output.writeMessage(7, nodesForScheduling_.get(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, registerResponse_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, maxContainerResource_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, minContainerResource_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, incrContainerResource_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(5, containerTokenExpiryInterval_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, containerIdStart_);
      }
      for (int i = 0; i < nodesForScheduling_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, nodesForScheduling_.get(i));
      }
      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.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto) obj;

      boolean result = true;
      result = result && (hasRegisterResponse() == other.hasRegisterResponse());
      if (hasRegisterResponse()) {
        result = result && getRegisterResponse()
            .equals(other.getRegisterResponse());
      }
      result = result && (hasMaxContainerResource() == other.hasMaxContainerResource());
      if (hasMaxContainerResource()) {
        result = result && getMaxContainerResource()
            .equals(other.getMaxContainerResource());
      }
      result = result && (hasMinContainerResource() == other.hasMinContainerResource());
      if (hasMinContainerResource()) {
        result = result && getMinContainerResource()
            .equals(other.getMinContainerResource());
      }
      result = result && (hasIncrContainerResource() == other.hasIncrContainerResource());
      if (hasIncrContainerResource()) {
        result = result && getIncrContainerResource()
            .equals(other.getIncrContainerResource());
      }
      result = result && (hasContainerTokenExpiryInterval() == other.hasContainerTokenExpiryInterval());
      if (hasContainerTokenExpiryInterval()) {
        result = result && (getContainerTokenExpiryInterval()
            == other.getContainerTokenExpiryInterval());
      }
      result = result && (hasContainerIdStart() == other.hasContainerIdStart());
      if (hasContainerIdStart()) {
        result = result && (getContainerIdStart()
            == other.getContainerIdStart());
      }
      result = result && getNodesForSchedulingList()
          .equals(other.getNodesForSchedulingList());
      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 (hasRegisterResponse()) {
        hash = (37 * hash) + REGISTER_RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getRegisterResponse().hashCode();
      }
      if (hasMaxContainerResource()) {
        hash = (37 * hash) + MAX_CONTAINER_RESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getMaxContainerResource().hashCode();
      }
      if (hasMinContainerResource()) {
        hash = (37 * hash) + MIN_CONTAINER_RESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getMinContainerResource().hashCode();
      }
      if (hasIncrContainerResource()) {
        hash = (37 * hash) + INCR_CONTAINER_RESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getIncrContainerResource().hashCode();
      }
      if (hasContainerTokenExpiryInterval()) {
        hash = (37 * hash) + CONTAINER_TOKEN_EXPIRY_INTERVAL_FIELD_NUMBER;
        hash = (53 * hash) + getContainerTokenExpiryInterval();
      }
      if (hasContainerIdStart()) {
        hash = (37 * hash) + CONTAINER_ID_START_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getContainerIdStart());
      }
      if (getNodesForSchedulingCount() > 0) {
        hash = (37 * hash) + NODES_FOR_SCHEDULING_FIELD_NUMBER;
        hash = (53 * hash) + getNodesForSchedulingList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (registerResponseBuilder_ == null) {
          registerResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance();
        } else {
          registerResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (maxContainerResourceBuilder_ == null) {
          maxContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          maxContainerResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (minContainerResourceBuilder_ == null) {
          minContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          minContainerResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (incrContainerResourceBuilder_ == null) {
          incrContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          incrContainerResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        containerTokenExpiryInterval_ = 0;
        bitField0_ = (bitField0_ & ~0x00000010);
        containerIdStart_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000020);
        if (nodesForSchedulingBuilder_ == null) {
          nodesForScheduling_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000040);
        } else {
          nodesForSchedulingBuilder_.clear();
        }
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (registerResponseBuilder_ == null) {
          result.registerResponse_ = registerResponse_;
        } else {
          result.registerResponse_ = registerResponseBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (maxContainerResourceBuilder_ == null) {
          result.maxContainerResource_ = maxContainerResource_;
        } else {
          result.maxContainerResource_ = maxContainerResourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (minContainerResourceBuilder_ == null) {
          result.minContainerResource_ = minContainerResource_;
        } else {
          result.minContainerResource_ = minContainerResourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (incrContainerResourceBuilder_ == null) {
          result.incrContainerResource_ = incrContainerResource_;
        } else {
          result.incrContainerResource_ = incrContainerResourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.containerTokenExpiryInterval_ = containerTokenExpiryInterval_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.containerIdStart_ = containerIdStart_;
        if (nodesForSchedulingBuilder_ == null) {
          if (((bitField0_ & 0x00000040) == 0x00000040)) {
            nodesForScheduling_ = java.util.Collections.unmodifiableList(nodesForScheduling_);
            bitField0_ = (bitField0_ & ~0x00000040);
          }
          result.nodesForScheduling_ = nodesForScheduling_;
        } else {
          result.nodesForScheduling_ = nodesForSchedulingBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto.getDefaultInstance()) return this;
        if (other.hasRegisterResponse()) {
          mergeRegisterResponse(other.getRegisterResponse());
        }
        if (other.hasMaxContainerResource()) {
          mergeMaxContainerResource(other.getMaxContainerResource());
        }
        if (other.hasMinContainerResource()) {
          mergeMinContainerResource(other.getMinContainerResource());
        }
        if (other.hasIncrContainerResource()) {
          mergeIncrContainerResource(other.getIncrContainerResource());
        }
        if (other.hasContainerTokenExpiryInterval()) {
          setContainerTokenExpiryInterval(other.getContainerTokenExpiryInterval());
        }
        if (other.hasContainerIdStart()) {
          setContainerIdStart(other.getContainerIdStart());
        }
        if (nodesForSchedulingBuilder_ == null) {
          if (!other.nodesForScheduling_.isEmpty()) {
            if (nodesForScheduling_.isEmpty()) {
              nodesForScheduling_ = other.nodesForScheduling_;
              bitField0_ = (bitField0_ & ~0x00000040);
            } else {
              ensureNodesForSchedulingIsMutable();
              nodesForScheduling_.addAll(other.nodesForScheduling_);
            }
            onChanged();
          }
        } else {
          if (!other.nodesForScheduling_.isEmpty()) {
            if (nodesForSchedulingBuilder_.isEmpty()) {
              nodesForSchedulingBuilder_.dispose();
              nodesForSchedulingBuilder_ = null;
              nodesForScheduling_ = other.nodesForScheduling_;
              bitField0_ = (bitField0_ & ~0x00000040);
              nodesForSchedulingBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getNodesForSchedulingFieldBuilder() : null;
            } else {
              nodesForSchedulingBuilder_.addAllMessages(other.nodesForScheduling_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (hasRegisterResponse()) {
          if (!getRegisterResponse().isInitialized()) {
            
            return false;
          }
        }
        if (hasMaxContainerResource()) {
          if (!getMaxContainerResource().isInitialized()) {
            
            return false;
          }
        }
        if (hasMinContainerResource()) {
          if (!getMinContainerResource().isInitialized()) {
            
            return false;
          }
        }
        if (hasIncrContainerResource()) {
          if (!getIncrContainerResource().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.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterDistributedSchedulingAMResponseProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
      private org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto registerResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder> registerResponseBuilder_;
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public boolean hasRegisterResponse() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getRegisterResponse() {
        if (registerResponseBuilder_ == null) {
          return registerResponse_;
        } else {
          return registerResponseBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public Builder setRegisterResponse(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto value) {
        if (registerResponseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          registerResponse_ = value;
          onChanged();
        } else {
          registerResponseBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public Builder setRegisterResponse(
          org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder builderForValue) {
        if (registerResponseBuilder_ == null) {
          registerResponse_ = builderForValue.build();
          onChanged();
        } else {
          registerResponseBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public Builder mergeRegisterResponse(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto value) {
        if (registerResponseBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              registerResponse_ != org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance()) {
            registerResponse_ =
              org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.newBuilder(registerResponse_).mergeFrom(value).buildPartial();
          } else {
            registerResponse_ = value;
          }
          onChanged();
        } else {
          registerResponseBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public Builder clearRegisterResponse() {
        if (registerResponseBuilder_ == null) {
          registerResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance();
          onChanged();
        } else {
          registerResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder getRegisterResponseBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getRegisterResponseFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder getRegisterResponseOrBuilder() {
        if (registerResponseBuilder_ != null) {
          return registerResponseBuilder_.getMessageOrBuilder();
        } else {
          return registerResponse_;
        }
      }
      /**
       * optional .hadoop.yarn.RegisterApplicationMasterResponseProto register_response = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder> 
          getRegisterResponseFieldBuilder() {
        if (registerResponseBuilder_ == null) {
          registerResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder>(
                  registerResponse_,
                  getParentForChildren(),
                  isClean());
          registerResponse_ = null;
        }
        return registerResponseBuilder_;
      }

      // optional .hadoop.yarn.ResourceProto max_container_resource = 2;
      private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maxContainerResource_ = 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> maxContainerResourceBuilder_;
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public boolean hasMaxContainerResource() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaxContainerResource() {
        if (maxContainerResourceBuilder_ == null) {
          return maxContainerResource_;
        } else {
          return maxContainerResourceBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public Builder setMaxContainerResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (maxContainerResourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          maxContainerResource_ = value;
          onChanged();
        } else {
          maxContainerResourceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public Builder setMaxContainerResource(
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
        if (maxContainerResourceBuilder_ == null) {
          maxContainerResource_ = builderForValue.build();
          onChanged();
        } else {
          maxContainerResourceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public Builder mergeMaxContainerResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (maxContainerResourceBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              maxContainerResource_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
            maxContainerResource_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(maxContainerResource_).mergeFrom(value).buildPartial();
          } else {
            maxContainerResource_ = value;
          }
          onChanged();
        } else {
          maxContainerResourceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public Builder clearMaxContainerResource() {
        if (maxContainerResourceBuilder_ == null) {
          maxContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
          onChanged();
        } else {
          maxContainerResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getMaxContainerResourceBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getMaxContainerResourceFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaxContainerResourceOrBuilder() {
        if (maxContainerResourceBuilder_ != null) {
          return maxContainerResourceBuilder_.getMessageOrBuilder();
        } else {
          return maxContainerResource_;
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto max_container_resource = 2;
       */
      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> 
          getMaxContainerResourceFieldBuilder() {
        if (maxContainerResourceBuilder_ == null) {
          maxContainerResourceBuilder_ = 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>(
                  maxContainerResource_,
                  getParentForChildren(),
                  isClean());
          maxContainerResource_ = null;
        }
        return maxContainerResourceBuilder_;
      }

      // optional .hadoop.yarn.ResourceProto min_container_resource = 3;
      private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto minContainerResource_ = 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> minContainerResourceBuilder_;
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public boolean hasMinContainerResource() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMinContainerResource() {
        if (minContainerResourceBuilder_ == null) {
          return minContainerResource_;
        } else {
          return minContainerResourceBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public Builder setMinContainerResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (minContainerResourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          minContainerResource_ = value;
          onChanged();
        } else {
          minContainerResourceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public Builder setMinContainerResource(
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
        if (minContainerResourceBuilder_ == null) {
          minContainerResource_ = builderForValue.build();
          onChanged();
        } else {
          minContainerResourceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public Builder mergeMinContainerResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (minContainerResourceBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              minContainerResource_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
            minContainerResource_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(minContainerResource_).mergeFrom(value).buildPartial();
          } else {
            minContainerResource_ = value;
          }
          onChanged();
        } else {
          minContainerResourceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public Builder clearMinContainerResource() {
        if (minContainerResourceBuilder_ == null) {
          minContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
          onChanged();
        } else {
          minContainerResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getMinContainerResourceBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getMinContainerResourceFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMinContainerResourceOrBuilder() {
        if (minContainerResourceBuilder_ != null) {
          return minContainerResourceBuilder_.getMessageOrBuilder();
        } else {
          return minContainerResource_;
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto min_container_resource = 3;
       */
      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> 
          getMinContainerResourceFieldBuilder() {
        if (minContainerResourceBuilder_ == null) {
          minContainerResourceBuilder_ = 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>(
                  minContainerResource_,
                  getParentForChildren(),
                  isClean());
          minContainerResource_ = null;
        }
        return minContainerResourceBuilder_;
      }

      // optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
      private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto incrContainerResource_ = 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> incrContainerResourceBuilder_;
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public boolean hasIncrContainerResource() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getIncrContainerResource() {
        if (incrContainerResourceBuilder_ == null) {
          return incrContainerResource_;
        } else {
          return incrContainerResourceBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public Builder setIncrContainerResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (incrContainerResourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          incrContainerResource_ = value;
          onChanged();
        } else {
          incrContainerResourceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public Builder setIncrContainerResource(
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
        if (incrContainerResourceBuilder_ == null) {
          incrContainerResource_ = builderForValue.build();
          onChanged();
        } else {
          incrContainerResourceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public Builder mergeIncrContainerResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (incrContainerResourceBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              incrContainerResource_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
            incrContainerResource_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(incrContainerResource_).mergeFrom(value).buildPartial();
          } else {
            incrContainerResource_ = value;
          }
          onChanged();
        } else {
          incrContainerResourceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public Builder clearIncrContainerResource() {
        if (incrContainerResourceBuilder_ == null) {
          incrContainerResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
          onChanged();
        } else {
          incrContainerResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getIncrContainerResourceBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getIncrContainerResourceFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getIncrContainerResourceOrBuilder() {
        if (incrContainerResourceBuilder_ != null) {
          return incrContainerResourceBuilder_.getMessageOrBuilder();
        } else {
          return incrContainerResource_;
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto incr_container_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> 
          getIncrContainerResourceFieldBuilder() {
        if (incrContainerResourceBuilder_ == null) {
          incrContainerResourceBuilder_ = 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>(
                  incrContainerResource_,
                  getParentForChildren(),
                  isClean());
          incrContainerResource_ = null;
        }
        return incrContainerResourceBuilder_;
      }

      // optional int32 container_token_expiry_interval = 5;
      private int containerTokenExpiryInterval_ ;
      /**
       * optional int32 container_token_expiry_interval = 5;
       */
      public boolean hasContainerTokenExpiryInterval() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * optional int32 container_token_expiry_interval = 5;
       */
      public int getContainerTokenExpiryInterval() {
        return containerTokenExpiryInterval_;
      }
      /**
       * optional int32 container_token_expiry_interval = 5;
       */
      public Builder setContainerTokenExpiryInterval(int value) {
        bitField0_ |= 0x00000010;
        containerTokenExpiryInterval_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 container_token_expiry_interval = 5;
       */
      public Builder clearContainerTokenExpiryInterval() {
        bitField0_ = (bitField0_ & ~0x00000010);
        containerTokenExpiryInterval_ = 0;
        onChanged();
        return this;
      }

      // optional int64 container_id_start = 6;
      private long containerIdStart_ ;
      /**
       * optional int64 container_id_start = 6;
       */
      public boolean hasContainerIdStart() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * optional int64 container_id_start = 6;
       */
      public long getContainerIdStart() {
        return containerIdStart_;
      }
      /**
       * optional int64 container_id_start = 6;
       */
      public Builder setContainerIdStart(long value) {
        bitField0_ |= 0x00000020;
        containerIdStart_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 container_id_start = 6;
       */
      public Builder clearContainerIdStart() {
        bitField0_ = (bitField0_ & ~0x00000020);
        containerIdStart_ = 0L;
        onChanged();
        return this;
      }

      // repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
      private java.util.List nodesForScheduling_ =
        java.util.Collections.emptyList();
      private void ensureNodesForSchedulingIsMutable() {
        if (!((bitField0_ & 0x00000040) == 0x00000040)) {
          nodesForScheduling_ = new java.util.ArrayList(nodesForScheduling_);
          bitField0_ |= 0x00000040;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder> nodesForSchedulingBuilder_;

      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public java.util.List getNodesForSchedulingList() {
        if (nodesForSchedulingBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nodesForScheduling_);
        } else {
          return nodesForSchedulingBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public int getNodesForSchedulingCount() {
        if (nodesForSchedulingBuilder_ == null) {
          return nodesForScheduling_.size();
        } else {
          return nodesForSchedulingBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getNodesForScheduling(int index) {
        if (nodesForSchedulingBuilder_ == null) {
          return nodesForScheduling_.get(index);
        } else {
          return nodesForSchedulingBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder setNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto value) {
        if (nodesForSchedulingBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.set(index, value);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder setNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder builderForValue) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.set(index, builderForValue.build());
          onChanged();
        } else {
          nodesForSchedulingBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder addNodesForScheduling(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto value) {
        if (nodesForSchedulingBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(value);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder addNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto value) {
        if (nodesForSchedulingBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(index, value);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder addNodesForScheduling(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder builderForValue) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(builderForValue.build());
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder addNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder builderForValue) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(index, builderForValue.build());
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder addAllNodesForScheduling(
          java.lang.Iterable values) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          super.addAll(values, nodesForScheduling_);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder clearNodesForScheduling() {
        if (nodesForSchedulingBuilder_ == null) {
          nodesForScheduling_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000040);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public Builder removeNodesForScheduling(int index) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.remove(index);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder getNodesForSchedulingBuilder(
          int index) {
        return getNodesForSchedulingFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder getNodesForSchedulingOrBuilder(
          int index) {
        if (nodesForSchedulingBuilder_ == null) {
          return nodesForScheduling_.get(index);  } else {
          return nodesForSchedulingBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public java.util.List 
           getNodesForSchedulingOrBuilderList() {
        if (nodesForSchedulingBuilder_ != null) {
          return nodesForSchedulingBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nodesForScheduling_);
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder addNodesForSchedulingBuilder() {
        return getNodesForSchedulingFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder addNodesForSchedulingBuilder(
          int index) {
        return getNodesForSchedulingFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 7;
       */
      public java.util.List 
           getNodesForSchedulingBuilderList() {
        return getNodesForSchedulingFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder> 
          getNodesForSchedulingFieldBuilder() {
        if (nodesForSchedulingBuilder_ == null) {
          nodesForSchedulingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder>(
                  nodesForScheduling_,
                  ((bitField0_ & 0x00000040) == 0x00000040),
                  getParentForChildren(),
                  isClean());
          nodesForScheduling_ = null;
        }
        return nodesForSchedulingBuilder_;
      }

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

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

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

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

    // optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
    /**
     * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
     */
    boolean hasAllocateResponse();
    /**
     * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getAllocateResponse();
    /**
     * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder getAllocateResponseOrBuilder();

    // repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    java.util.List 
        getNodesForSchedulingList();
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getNodesForScheduling(int index);
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    int getNodesForSchedulingCount();
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    java.util.List 
        getNodesForSchedulingOrBuilderList();
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder getNodesForSchedulingOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code hadoop.yarn.DistributedSchedulingAllocateResponseProto}
   */
  public static final class DistributedSchedulingAllocateResponseProto extends
      com.google.protobuf.GeneratedMessage
      implements DistributedSchedulingAllocateResponseProtoOrBuilder {
    // Use DistributedSchedulingAllocateResponseProto.newBuilder() to construct.
    private DistributedSchedulingAllocateResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private DistributedSchedulingAllocateResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public DistributedSchedulingAllocateResponseProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private DistributedSchedulingAllocateResponseProto(
        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.YarnServiceProtos.AllocateResponseProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = allocateResponse_.toBuilder();
              }
              allocateResponse_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(allocateResponse_);
                allocateResponse_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                nodesForScheduling_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              nodesForScheduling_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          nodesForScheduling_ = java.util.Collections.unmodifiableList(nodesForScheduling_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
    public static final int ALLOCATE_RESPONSE_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto allocateResponse_;
    /**
     * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
     */
    public boolean hasAllocateResponse() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getAllocateResponse() {
      return allocateResponse_;
    }
    /**
     * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder getAllocateResponseOrBuilder() {
      return allocateResponse_;
    }

    // repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
    public static final int NODES_FOR_SCHEDULING_FIELD_NUMBER = 2;
    private java.util.List nodesForScheduling_;
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    public java.util.List getNodesForSchedulingList() {
      return nodesForScheduling_;
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    public java.util.List 
        getNodesForSchedulingOrBuilderList() {
      return nodesForScheduling_;
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    public int getNodesForSchedulingCount() {
      return nodesForScheduling_.size();
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getNodesForScheduling(int index) {
      return nodesForScheduling_.get(index);
    }
    /**
     * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder getNodesForSchedulingOrBuilder(
        int index) {
      return nodesForScheduling_.get(index);
    }

    private void initFields() {
      allocateResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance();
      nodesForScheduling_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (hasAllocateResponse()) {
        if (!getAllocateResponse().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, allocateResponse_);
      }
      for (int i = 0; i < nodesForScheduling_.size(); i++) {
        output.writeMessage(2, nodesForScheduling_.get(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, allocateResponse_);
      }
      for (int i = 0; i < nodesForScheduling_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, nodesForScheduling_.get(i));
      }
      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.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto) obj;

      boolean result = true;
      result = result && (hasAllocateResponse() == other.hasAllocateResponse());
      if (hasAllocateResponse()) {
        result = result && getAllocateResponse()
            .equals(other.getAllocateResponse());
      }
      result = result && getNodesForSchedulingList()
          .equals(other.getNodesForSchedulingList());
      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 (hasAllocateResponse()) {
        hash = (37 * hash) + ALLOCATE_RESPONSE_FIELD_NUMBER;
        hash = (53 * hash) + getAllocateResponse().hashCode();
      }
      if (getNodesForSchedulingCount() > 0) {
        hash = (37 * hash) + NODES_FOR_SCHEDULING_FIELD_NUMBER;
        hash = (53 * hash) + getNodesForSchedulingList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (allocateResponseBuilder_ == null) {
          allocateResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance();
        } else {
          allocateResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (nodesForSchedulingBuilder_ == null) {
          nodesForScheduling_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          nodesForSchedulingBuilder_.clear();
        }
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (allocateResponseBuilder_ == null) {
          result.allocateResponse_ = allocateResponse_;
        } else {
          result.allocateResponse_ = allocateResponseBuilder_.build();
        }
        if (nodesForSchedulingBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            nodesForScheduling_ = java.util.Collections.unmodifiableList(nodesForScheduling_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.nodesForScheduling_ = nodesForScheduling_;
        } else {
          result.nodesForScheduling_ = nodesForSchedulingBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto.getDefaultInstance()) return this;
        if (other.hasAllocateResponse()) {
          mergeAllocateResponse(other.getAllocateResponse());
        }
        if (nodesForSchedulingBuilder_ == null) {
          if (!other.nodesForScheduling_.isEmpty()) {
            if (nodesForScheduling_.isEmpty()) {
              nodesForScheduling_ = other.nodesForScheduling_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureNodesForSchedulingIsMutable();
              nodesForScheduling_.addAll(other.nodesForScheduling_);
            }
            onChanged();
          }
        } else {
          if (!other.nodesForScheduling_.isEmpty()) {
            if (nodesForSchedulingBuilder_.isEmpty()) {
              nodesForSchedulingBuilder_.dispose();
              nodesForSchedulingBuilder_ = null;
              nodesForScheduling_ = other.nodesForScheduling_;
              bitField0_ = (bitField0_ & ~0x00000002);
              nodesForSchedulingBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getNodesForSchedulingFieldBuilder() : null;
            } else {
              nodesForSchedulingBuilder_.addAllMessages(other.nodesForScheduling_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (hasAllocateResponse()) {
          if (!getAllocateResponse().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.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateResponseProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
      private org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto allocateResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder> allocateResponseBuilder_;
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public boolean hasAllocateResponse() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getAllocateResponse() {
        if (allocateResponseBuilder_ == null) {
          return allocateResponse_;
        } else {
          return allocateResponseBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public Builder setAllocateResponse(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto value) {
        if (allocateResponseBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          allocateResponse_ = value;
          onChanged();
        } else {
          allocateResponseBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public Builder setAllocateResponse(
          org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder builderForValue) {
        if (allocateResponseBuilder_ == null) {
          allocateResponse_ = builderForValue.build();
          onChanged();
        } else {
          allocateResponseBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public Builder mergeAllocateResponse(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto value) {
        if (allocateResponseBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              allocateResponse_ != org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance()) {
            allocateResponse_ =
              org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.newBuilder(allocateResponse_).mergeFrom(value).buildPartial();
          } else {
            allocateResponse_ = value;
          }
          onChanged();
        } else {
          allocateResponseBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public Builder clearAllocateResponse() {
        if (allocateResponseBuilder_ == null) {
          allocateResponse_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance();
          onChanged();
        } else {
          allocateResponseBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder getAllocateResponseBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAllocateResponseFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder getAllocateResponseOrBuilder() {
        if (allocateResponseBuilder_ != null) {
          return allocateResponseBuilder_.getMessageOrBuilder();
        } else {
          return allocateResponse_;
        }
      }
      /**
       * optional .hadoop.yarn.AllocateResponseProto allocate_response = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder> 
          getAllocateResponseFieldBuilder() {
        if (allocateResponseBuilder_ == null) {
          allocateResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder>(
                  allocateResponse_,
                  getParentForChildren(),
                  isClean());
          allocateResponse_ = null;
        }
        return allocateResponseBuilder_;
      }

      // repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
      private java.util.List nodesForScheduling_ =
        java.util.Collections.emptyList();
      private void ensureNodesForSchedulingIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          nodesForScheduling_ = new java.util.ArrayList(nodesForScheduling_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder> nodesForSchedulingBuilder_;

      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public java.util.List getNodesForSchedulingList() {
        if (nodesForSchedulingBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nodesForScheduling_);
        } else {
          return nodesForSchedulingBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public int getNodesForSchedulingCount() {
        if (nodesForSchedulingBuilder_ == null) {
          return nodesForScheduling_.size();
        } else {
          return nodesForSchedulingBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto getNodesForScheduling(int index) {
        if (nodesForSchedulingBuilder_ == null) {
          return nodesForScheduling_.get(index);
        } else {
          return nodesForSchedulingBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder setNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto value) {
        if (nodesForSchedulingBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.set(index, value);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder setNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder builderForValue) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.set(index, builderForValue.build());
          onChanged();
        } else {
          nodesForSchedulingBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder addNodesForScheduling(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto value) {
        if (nodesForSchedulingBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(value);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder addNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto value) {
        if (nodesForSchedulingBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(index, value);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder addNodesForScheduling(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder builderForValue) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(builderForValue.build());
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder addNodesForScheduling(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder builderForValue) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.add(index, builderForValue.build());
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder addAllNodesForScheduling(
          java.lang.Iterable values) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          super.addAll(values, nodesForScheduling_);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder clearNodesForScheduling() {
        if (nodesForSchedulingBuilder_ == null) {
          nodesForScheduling_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public Builder removeNodesForScheduling(int index) {
        if (nodesForSchedulingBuilder_ == null) {
          ensureNodesForSchedulingIsMutable();
          nodesForScheduling_.remove(index);
          onChanged();
        } else {
          nodesForSchedulingBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder getNodesForSchedulingBuilder(
          int index) {
        return getNodesForSchedulingFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder getNodesForSchedulingOrBuilder(
          int index) {
        if (nodesForSchedulingBuilder_ == null) {
          return nodesForScheduling_.get(index);  } else {
          return nodesForSchedulingBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public java.util.List 
           getNodesForSchedulingOrBuilderList() {
        if (nodesForSchedulingBuilder_ != null) {
          return nodesForSchedulingBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nodesForScheduling_);
        }
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder addNodesForSchedulingBuilder() {
        return getNodesForSchedulingFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder addNodesForSchedulingBuilder(
          int index) {
        return getNodesForSchedulingFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.RemoteNodeProto nodes_for_scheduling = 2;
       */
      public java.util.List 
           getNodesForSchedulingBuilderList() {
        return getNodesForSchedulingFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder> 
          getNodesForSchedulingFieldBuilder() {
        if (nodesForSchedulingBuilder_ == null) {
          nodesForSchedulingBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RemoteNodeProtoOrBuilder>(
                  nodesForScheduling_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          nodesForScheduling_ = null;
        }
        return nodesForSchedulingBuilder_;
      }

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

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

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

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

    // optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
    /**
     * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
     */
    boolean hasAllocateRequest();
    /**
     * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getAllocateRequest();
    /**
     * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder getAllocateRequestOrBuilder();

    // repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    java.util.List 
        getAllocatedContainersList();
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getAllocatedContainers(int index);
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    int getAllocatedContainersCount();
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    java.util.List 
        getAllocatedContainersOrBuilderList();
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getAllocatedContainersOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code hadoop.yarn.DistributedSchedulingAllocateRequestProto}
   */
  public static final class DistributedSchedulingAllocateRequestProto extends
      com.google.protobuf.GeneratedMessage
      implements DistributedSchedulingAllocateRequestProtoOrBuilder {
    // Use DistributedSchedulingAllocateRequestProto.newBuilder() to construct.
    private DistributedSchedulingAllocateRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private DistributedSchedulingAllocateRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public DistributedSchedulingAllocateRequestProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private DistributedSchedulingAllocateRequestProto(
        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.YarnServiceProtos.AllocateRequestProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = allocateRequest_.toBuilder();
              }
              allocateRequest_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(allocateRequest_);
                allocateRequest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                allocatedContainers_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              allocatedContainers_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          allocatedContainers_ = java.util.Collections.unmodifiableList(allocatedContainers_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
    public static final int ALLOCATE_REQUEST_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto allocateRequest_;
    /**
     * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
     */
    public boolean hasAllocateRequest() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getAllocateRequest() {
      return allocateRequest_;
    }
    /**
     * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder getAllocateRequestOrBuilder() {
      return allocateRequest_;
    }

    // repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
    public static final int ALLOCATED_CONTAINERS_FIELD_NUMBER = 2;
    private java.util.List allocatedContainers_;
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    public java.util.List getAllocatedContainersList() {
      return allocatedContainers_;
    }
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    public java.util.List 
        getAllocatedContainersOrBuilderList() {
      return allocatedContainers_;
    }
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    public int getAllocatedContainersCount() {
      return allocatedContainers_.size();
    }
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getAllocatedContainers(int index) {
      return allocatedContainers_.get(index);
    }
    /**
     * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getAllocatedContainersOrBuilder(
        int index) {
      return allocatedContainers_.get(index);
    }

    private void initFields() {
      allocateRequest_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance();
      allocatedContainers_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (hasAllocateRequest()) {
        if (!getAllocateRequest().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getAllocatedContainersCount(); i++) {
        if (!getAllocatedContainers(i).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, allocateRequest_);
      }
      for (int i = 0; i < allocatedContainers_.size(); i++) {
        output.writeMessage(2, allocatedContainers_.get(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, allocateRequest_);
      }
      for (int i = 0; i < allocatedContainers_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, allocatedContainers_.get(i));
      }
      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.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto) obj;

      boolean result = true;
      result = result && (hasAllocateRequest() == other.hasAllocateRequest());
      if (hasAllocateRequest()) {
        result = result && getAllocateRequest()
            .equals(other.getAllocateRequest());
      }
      result = result && getAllocatedContainersList()
          .equals(other.getAllocatedContainersList());
      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 (hasAllocateRequest()) {
        hash = (37 * hash) + ALLOCATE_REQUEST_FIELD_NUMBER;
        hash = (53 * hash) + getAllocateRequest().hashCode();
      }
      if (getAllocatedContainersCount() > 0) {
        hash = (37 * hash) + ALLOCATED_CONTAINERS_FIELD_NUMBER;
        hash = (53 * hash) + getAllocatedContainersList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (allocateRequestBuilder_ == null) {
          allocateRequest_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance();
        } else {
          allocateRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (allocatedContainersBuilder_ == null) {
          allocatedContainers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          allocatedContainersBuilder_.clear();
        }
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (allocateRequestBuilder_ == null) {
          result.allocateRequest_ = allocateRequest_;
        } else {
          result.allocateRequest_ = allocateRequestBuilder_.build();
        }
        if (allocatedContainersBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            allocatedContainers_ = java.util.Collections.unmodifiableList(allocatedContainers_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.allocatedContainers_ = allocatedContainers_;
        } else {
          result.allocatedContainers_ = allocatedContainersBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto.getDefaultInstance()) return this;
        if (other.hasAllocateRequest()) {
          mergeAllocateRequest(other.getAllocateRequest());
        }
        if (allocatedContainersBuilder_ == null) {
          if (!other.allocatedContainers_.isEmpty()) {
            if (allocatedContainers_.isEmpty()) {
              allocatedContainers_ = other.allocatedContainers_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureAllocatedContainersIsMutable();
              allocatedContainers_.addAll(other.allocatedContainers_);
            }
            onChanged();
          }
        } else {
          if (!other.allocatedContainers_.isEmpty()) {
            if (allocatedContainersBuilder_.isEmpty()) {
              allocatedContainersBuilder_.dispose();
              allocatedContainersBuilder_ = null;
              allocatedContainers_ = other.allocatedContainers_;
              bitField0_ = (bitField0_ & ~0x00000002);
              allocatedContainersBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getAllocatedContainersFieldBuilder() : null;
            } else {
              allocatedContainersBuilder_.addAllMessages(other.allocatedContainers_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (hasAllocateRequest()) {
          if (!getAllocateRequest().isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getAllocatedContainersCount(); i++) {
          if (!getAllocatedContainers(i).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.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
      private org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto allocateRequest_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder> allocateRequestBuilder_;
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public boolean hasAllocateRequest() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getAllocateRequest() {
        if (allocateRequestBuilder_ == null) {
          return allocateRequest_;
        } else {
          return allocateRequestBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public Builder setAllocateRequest(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto value) {
        if (allocateRequestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          allocateRequest_ = value;
          onChanged();
        } else {
          allocateRequestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public Builder setAllocateRequest(
          org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder builderForValue) {
        if (allocateRequestBuilder_ == null) {
          allocateRequest_ = builderForValue.build();
          onChanged();
        } else {
          allocateRequestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public Builder mergeAllocateRequest(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto value) {
        if (allocateRequestBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              allocateRequest_ != org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance()) {
            allocateRequest_ =
              org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.newBuilder(allocateRequest_).mergeFrom(value).buildPartial();
          } else {
            allocateRequest_ = value;
          }
          onChanged();
        } else {
          allocateRequestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public Builder clearAllocateRequest() {
        if (allocateRequestBuilder_ == null) {
          allocateRequest_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance();
          onChanged();
        } else {
          allocateRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder getAllocateRequestBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getAllocateRequestFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder getAllocateRequestOrBuilder() {
        if (allocateRequestBuilder_ != null) {
          return allocateRequestBuilder_.getMessageOrBuilder();
        } else {
          return allocateRequest_;
        }
      }
      /**
       * optional .hadoop.yarn.AllocateRequestProto allocate_request = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder> 
          getAllocateRequestFieldBuilder() {
        if (allocateRequestBuilder_ == null) {
          allocateRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder>(
                  allocateRequest_,
                  getParentForChildren(),
                  isClean());
          allocateRequest_ = null;
        }
        return allocateRequestBuilder_;
      }

      // repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
      private java.util.List allocatedContainers_ =
        java.util.Collections.emptyList();
      private void ensureAllocatedContainersIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          allocatedContainers_ = new java.util.ArrayList(allocatedContainers_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> allocatedContainersBuilder_;

      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public java.util.List getAllocatedContainersList() {
        if (allocatedContainersBuilder_ == null) {
          return java.util.Collections.unmodifiableList(allocatedContainers_);
        } else {
          return allocatedContainersBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public int getAllocatedContainersCount() {
        if (allocatedContainersBuilder_ == null) {
          return allocatedContainers_.size();
        } else {
          return allocatedContainersBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getAllocatedContainers(int index) {
        if (allocatedContainersBuilder_ == null) {
          return allocatedContainers_.get(index);
        } else {
          return allocatedContainersBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder setAllocatedContainers(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
        if (allocatedContainersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.set(index, value);
          onChanged();
        } else {
          allocatedContainersBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder setAllocatedContainers(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
        if (allocatedContainersBuilder_ == null) {
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.set(index, builderForValue.build());
          onChanged();
        } else {
          allocatedContainersBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder addAllocatedContainers(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
        if (allocatedContainersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.add(value);
          onChanged();
        } else {
          allocatedContainersBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder addAllocatedContainers(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
        if (allocatedContainersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.add(index, value);
          onChanged();
        } else {
          allocatedContainersBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder addAllocatedContainers(
          org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
        if (allocatedContainersBuilder_ == null) {
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.add(builderForValue.build());
          onChanged();
        } else {
          allocatedContainersBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder addAllocatedContainers(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
        if (allocatedContainersBuilder_ == null) {
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.add(index, builderForValue.build());
          onChanged();
        } else {
          allocatedContainersBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder addAllAllocatedContainers(
          java.lang.Iterable values) {
        if (allocatedContainersBuilder_ == null) {
          ensureAllocatedContainersIsMutable();
          super.addAll(values, allocatedContainers_);
          onChanged();
        } else {
          allocatedContainersBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder clearAllocatedContainers() {
        if (allocatedContainersBuilder_ == null) {
          allocatedContainers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          allocatedContainersBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public Builder removeAllocatedContainers(int index) {
        if (allocatedContainersBuilder_ == null) {
          ensureAllocatedContainersIsMutable();
          allocatedContainers_.remove(index);
          onChanged();
        } else {
          allocatedContainersBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getAllocatedContainersBuilder(
          int index) {
        return getAllocatedContainersFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getAllocatedContainersOrBuilder(
          int index) {
        if (allocatedContainersBuilder_ == null) {
          return allocatedContainers_.get(index);  } else {
          return allocatedContainersBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public java.util.List 
           getAllocatedContainersOrBuilderList() {
        if (allocatedContainersBuilder_ != null) {
          return allocatedContainersBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(allocatedContainers_);
        }
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addAllocatedContainersBuilder() {
        return getAllocatedContainersFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addAllocatedContainersBuilder(
          int index) {
        return getAllocatedContainersFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.ContainerProto allocated_containers = 2;
       */
      public java.util.List 
           getAllocatedContainersBuilderList() {
        return getAllocatedContainersFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> 
          getAllocatedContainersFieldBuilder() {
        if (allocatedContainersBuilder_ == null) {
          allocatedContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
                  allocatedContainers_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          allocatedContainers_ = null;
        }
        return allocatedContainersBuilder_;
      }

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

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

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

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

    // repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    java.util.List 
        getNodeLabelsList();
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto getNodeLabels(int index);
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    int getNodeLabelsCount();
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    java.util.List 
        getNodeLabelsOrBuilderList();
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProtoOrBuilder getNodeLabelsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code hadoop.yarn.NodeLabelsProto}
   */
  public static final class NodeLabelsProto extends
      com.google.protobuf.GeneratedMessage
      implements NodeLabelsProtoOrBuilder {
    // Use NodeLabelsProto.newBuilder() to construct.
    private NodeLabelsProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NodeLabelsProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public NodeLabelsProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NodeLabelsProto(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                nodeLabels_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              nodeLabels_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          nodeLabels_ = java.util.Collections.unmodifiableList(nodeLabels_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeLabelsProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeLabelsProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder.class);
    }

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

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

    // repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
    public static final int NODELABELS_FIELD_NUMBER = 1;
    private java.util.List nodeLabels_;
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    public java.util.List getNodeLabelsList() {
      return nodeLabels_;
    }
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    public java.util.List 
        getNodeLabelsOrBuilderList() {
      return nodeLabels_;
    }
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    public int getNodeLabelsCount() {
      return nodeLabels_.size();
    }
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto getNodeLabels(int index) {
      return nodeLabels_.get(index);
    }
    /**
     * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProtoOrBuilder getNodeLabelsOrBuilder(
        int index) {
      return nodeLabels_.get(index);
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < nodeLabels_.size(); i++) {
        output.writeMessage(1, nodeLabels_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < nodeLabels_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, nodeLabels_.get(i));
      }
      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.YarnServerCommonServiceProtos.NodeLabelsProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto) obj;

      boolean result = true;
      result = result && getNodeLabelsList()
          .equals(other.getNodeLabelsList());
      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 (getNodeLabelsCount() > 0) {
        hash = (37 * hash) + NODELABELS_FIELD_NUMBER;
        hash = (53 * hash) + getNodeLabelsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeLabelsProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          nodeLabelsBuilder_.clear();
        }
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto(this);
        int from_bitField0_ = bitField0_;
        if (nodeLabelsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            nodeLabels_ = java.util.Collections.unmodifiableList(nodeLabels_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.nodeLabels_ = nodeLabels_;
        } else {
          result.nodeLabels_ = nodeLabelsBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance()) return this;
        if (nodeLabelsBuilder_ == null) {
          if (!other.nodeLabels_.isEmpty()) {
            if (nodeLabels_.isEmpty()) {
              nodeLabels_ = other.nodeLabels_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureNodeLabelsIsMutable();
              nodeLabels_.addAll(other.nodeLabels_);
            }
            onChanged();
          }
        } else {
          if (!other.nodeLabels_.isEmpty()) {
            if (nodeLabelsBuilder_.isEmpty()) {
              nodeLabelsBuilder_.dispose();
              nodeLabelsBuilder_ = null;
              nodeLabels_ = other.nodeLabels_;
              bitField0_ = (bitField0_ & ~0x00000001);
              nodeLabelsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getNodeLabelsFieldBuilder() : null;
            } else {
              nodeLabelsBuilder_.addAllMessages(other.nodeLabels_);
            }
          }
        }
        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.YarnServerCommonServiceProtos.NodeLabelsProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
      private java.util.List nodeLabels_ =
        java.util.Collections.emptyList();
      private void ensureNodeLabelsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          nodeLabels_ = new java.util.ArrayList(nodeLabels_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProtoOrBuilder> nodeLabelsBuilder_;

      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public java.util.List getNodeLabelsList() {
        if (nodeLabelsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nodeLabels_);
        } else {
          return nodeLabelsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public int getNodeLabelsCount() {
        if (nodeLabelsBuilder_ == null) {
          return nodeLabels_.size();
        } else {
          return nodeLabelsBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto getNodeLabels(int index) {
        if (nodeLabelsBuilder_ == null) {
          return nodeLabels_.get(index);
        } else {
          return nodeLabelsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder setNodeLabels(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodeLabelsIsMutable();
          nodeLabels_.set(index, value);
          onChanged();
        } else {
          nodeLabelsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder setNodeLabels(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder builderForValue) {
        if (nodeLabelsBuilder_ == null) {
          ensureNodeLabelsIsMutable();
          nodeLabels_.set(index, builderForValue.build());
          onChanged();
        } else {
          nodeLabelsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder addNodeLabels(org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodeLabelsIsMutable();
          nodeLabels_.add(value);
          onChanged();
        } else {
          nodeLabelsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder addNodeLabels(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodeLabelsIsMutable();
          nodeLabels_.add(index, value);
          onChanged();
        } else {
          nodeLabelsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder addNodeLabels(
          org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder builderForValue) {
        if (nodeLabelsBuilder_ == null) {
          ensureNodeLabelsIsMutable();
          nodeLabels_.add(builderForValue.build());
          onChanged();
        } else {
          nodeLabelsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder addNodeLabels(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder builderForValue) {
        if (nodeLabelsBuilder_ == null) {
          ensureNodeLabelsIsMutable();
          nodeLabels_.add(index, builderForValue.build());
          onChanged();
        } else {
          nodeLabelsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder addAllNodeLabels(
          java.lang.Iterable values) {
        if (nodeLabelsBuilder_ == null) {
          ensureNodeLabelsIsMutable();
          super.addAll(values, nodeLabels_);
          onChanged();
        } else {
          nodeLabelsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder clearNodeLabels() {
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          nodeLabelsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public Builder removeNodeLabels(int index) {
        if (nodeLabelsBuilder_ == null) {
          ensureNodeLabelsIsMutable();
          nodeLabels_.remove(index);
          onChanged();
        } else {
          nodeLabelsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder getNodeLabelsBuilder(
          int index) {
        return getNodeLabelsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProtoOrBuilder getNodeLabelsOrBuilder(
          int index) {
        if (nodeLabelsBuilder_ == null) {
          return nodeLabels_.get(index);  } else {
          return nodeLabelsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public java.util.List 
           getNodeLabelsOrBuilderList() {
        if (nodeLabelsBuilder_ != null) {
          return nodeLabelsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nodeLabels_);
        }
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder addNodeLabelsBuilder() {
        return getNodeLabelsFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder addNodeLabelsBuilder(
          int index) {
        return getNodeLabelsFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.NodeLabelProto nodeLabels = 1;
       */
      public java.util.List 
           getNodeLabelsBuilderList() {
        return getNodeLabelsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProtoOrBuilder> 
          getNodeLabelsFieldBuilder() {
        if (nodeLabelsBuilder_ == null) {
          nodeLabelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProtoOrBuilder>(
                  nodeLabels_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          nodeLabels_ = null;
        }
        return nodeLabelsBuilder_;
      }

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

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

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

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

    // repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    java.util.List 
        getNodeAttributesList();
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto getNodeAttributes(int index);
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    int getNodeAttributesCount();
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    java.util.List 
        getNodeAttributesOrBuilderList();
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder getNodeAttributesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code hadoop.yarn.NodeAttributesProto}
   */
  public static final class NodeAttributesProto extends
      com.google.protobuf.GeneratedMessage
      implements NodeAttributesProtoOrBuilder {
    // Use NodeAttributesProto.newBuilder() to construct.
    private NodeAttributesProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NodeAttributesProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public NodeAttributesProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NodeAttributesProto(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                nodeAttributes_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              nodeAttributes_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          nodeAttributes_ = java.util.Collections.unmodifiableList(nodeAttributes_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeAttributesProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeAttributesProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder.class);
    }

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

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

    // repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
    public static final int NODEATTRIBUTES_FIELD_NUMBER = 1;
    private java.util.List nodeAttributes_;
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    public java.util.List getNodeAttributesList() {
      return nodeAttributes_;
    }
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    public java.util.List 
        getNodeAttributesOrBuilderList() {
      return nodeAttributes_;
    }
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    public int getNodeAttributesCount() {
      return nodeAttributes_.size();
    }
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto getNodeAttributes(int index) {
      return nodeAttributes_.get(index);
    }
    /**
     * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder getNodeAttributesOrBuilder(
        int index) {
      return nodeAttributes_.get(index);
    }

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

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

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < nodeAttributes_.size(); i++) {
        output.writeMessage(1, nodeAttributes_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < nodeAttributes_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, nodeAttributes_.get(i));
      }
      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.YarnServerCommonServiceProtos.NodeAttributesProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto) obj;

      boolean result = true;
      result = result && getNodeAttributesList()
          .equals(other.getNodeAttributesList());
      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 (getNodeAttributesCount() > 0) {
        hash = (37 * hash) + NODEATTRIBUTES_FIELD_NUMBER;
        hash = (53 * hash) + getNodeAttributesList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeAttributesProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          nodeAttributesBuilder_.clear();
        }
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto(this);
        int from_bitField0_ = bitField0_;
        if (nodeAttributesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            nodeAttributes_ = java.util.Collections.unmodifiableList(nodeAttributes_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.nodeAttributes_ = nodeAttributes_;
        } else {
          result.nodeAttributes_ = nodeAttributesBuilder_.build();
        }
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance()) return this;
        if (nodeAttributesBuilder_ == null) {
          if (!other.nodeAttributes_.isEmpty()) {
            if (nodeAttributes_.isEmpty()) {
              nodeAttributes_ = other.nodeAttributes_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureNodeAttributesIsMutable();
              nodeAttributes_.addAll(other.nodeAttributes_);
            }
            onChanged();
          }
        } else {
          if (!other.nodeAttributes_.isEmpty()) {
            if (nodeAttributesBuilder_.isEmpty()) {
              nodeAttributesBuilder_.dispose();
              nodeAttributesBuilder_ = null;
              nodeAttributes_ = other.nodeAttributes_;
              bitField0_ = (bitField0_ & ~0x00000001);
              nodeAttributesBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getNodeAttributesFieldBuilder() : null;
            } else {
              nodeAttributesBuilder_.addAllMessages(other.nodeAttributes_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        for (int i = 0; i < getNodeAttributesCount(); i++) {
          if (!getNodeAttributes(i).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.YarnServerCommonServiceProtos.NodeAttributesProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
      private java.util.List nodeAttributes_ =
        java.util.Collections.emptyList();
      private void ensureNodeAttributesIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          nodeAttributes_ = new java.util.ArrayList(nodeAttributes_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder> nodeAttributesBuilder_;

      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public java.util.List getNodeAttributesList() {
        if (nodeAttributesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(nodeAttributes_);
        } else {
          return nodeAttributesBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public int getNodeAttributesCount() {
        if (nodeAttributesBuilder_ == null) {
          return nodeAttributes_.size();
        } else {
          return nodeAttributesBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto getNodeAttributes(int index) {
        if (nodeAttributesBuilder_ == null) {
          return nodeAttributes_.get(index);
        } else {
          return nodeAttributesBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder setNodeAttributes(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodeAttributesIsMutable();
          nodeAttributes_.set(index, value);
          onChanged();
        } else {
          nodeAttributesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder setNodeAttributes(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder builderForValue) {
        if (nodeAttributesBuilder_ == null) {
          ensureNodeAttributesIsMutable();
          nodeAttributes_.set(index, builderForValue.build());
          onChanged();
        } else {
          nodeAttributesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder addNodeAttributes(org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodeAttributesIsMutable();
          nodeAttributes_.add(value);
          onChanged();
        } else {
          nodeAttributesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder addNodeAttributes(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureNodeAttributesIsMutable();
          nodeAttributes_.add(index, value);
          onChanged();
        } else {
          nodeAttributesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder addNodeAttributes(
          org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder builderForValue) {
        if (nodeAttributesBuilder_ == null) {
          ensureNodeAttributesIsMutable();
          nodeAttributes_.add(builderForValue.build());
          onChanged();
        } else {
          nodeAttributesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder addNodeAttributes(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder builderForValue) {
        if (nodeAttributesBuilder_ == null) {
          ensureNodeAttributesIsMutable();
          nodeAttributes_.add(index, builderForValue.build());
          onChanged();
        } else {
          nodeAttributesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder addAllNodeAttributes(
          java.lang.Iterable values) {
        if (nodeAttributesBuilder_ == null) {
          ensureNodeAttributesIsMutable();
          super.addAll(values, nodeAttributes_);
          onChanged();
        } else {
          nodeAttributesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder clearNodeAttributes() {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          nodeAttributesBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public Builder removeNodeAttributes(int index) {
        if (nodeAttributesBuilder_ == null) {
          ensureNodeAttributesIsMutable();
          nodeAttributes_.remove(index);
          onChanged();
        } else {
          nodeAttributesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder getNodeAttributesBuilder(
          int index) {
        return getNodeAttributesFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder getNodeAttributesOrBuilder(
          int index) {
        if (nodeAttributesBuilder_ == null) {
          return nodeAttributes_.get(index);  } else {
          return nodeAttributesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public java.util.List 
           getNodeAttributesOrBuilderList() {
        if (nodeAttributesBuilder_ != null) {
          return nodeAttributesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(nodeAttributes_);
        }
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder addNodeAttributesBuilder() {
        return getNodeAttributesFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder addNodeAttributesBuilder(
          int index) {
        return getNodeAttributesFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.NodeAttributeProto nodeAttributes = 1;
       */
      public java.util.List 
           getNodeAttributesBuilderList() {
        return getNodeAttributesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder> 
          getNodeAttributesFieldBuilder() {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder>(
                  nodeAttributes_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          nodeAttributes_ = null;
        }
        return nodeAttributesBuilder_;
      }

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

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

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

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

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

    // optional int32 http_port = 3;
    /**
     * optional int32 http_port = 3;
     */
    boolean hasHttpPort();
    /**
     * optional int32 http_port = 3;
     */
    int getHttpPort();

    // 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 string nm_version = 5;
    /**
     * optional string nm_version = 5;
     */
    boolean hasNmVersion();
    /**
     * optional string nm_version = 5;
     */
    java.lang.String getNmVersion();
    /**
     * optional string nm_version = 5;
     */
    com.google.protobuf.ByteString
        getNmVersionBytes();

    // repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    java.util.List 
        getContainerStatusesList();
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto getContainerStatuses(int index);
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    int getContainerStatusesCount();
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    java.util.List 
        getContainerStatusesOrBuilderList();
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder getContainerStatusesOrBuilder(
        int index);

    // repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    java.util.List 
        getRunningApplicationsList();
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getRunningApplications(int index);
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    int getRunningApplicationsCount();
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    java.util.List 
        getRunningApplicationsOrBuilderList();
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getRunningApplicationsOrBuilder(
        int index);

    // optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
     */
    boolean hasNodeLabels();
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getNodeLabels();
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder getNodeLabelsOrBuilder();

    // optional .hadoop.yarn.ResourceProto physicalResource = 9;
    /**
     * optional .hadoop.yarn.ResourceProto physicalResource = 9;
     */
    boolean hasPhysicalResource();
    /**
     * optional .hadoop.yarn.ResourceProto physicalResource = 9;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getPhysicalResource();
    /**
     * optional .hadoop.yarn.ResourceProto physicalResource = 9;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getPhysicalResourceOrBuilder();

    // repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    java.util.List 
        getLogAggregationReportsForAppsList();
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getLogAggregationReportsForApps(int index);
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    int getLogAggregationReportsForAppsCount();
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    java.util.List 
        getLogAggregationReportsForAppsOrBuilderList();
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder getLogAggregationReportsForAppsOrBuilder(
        int index);

    // optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
     */
    boolean hasNodeAttributes();
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getNodeAttributes();
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder getNodeAttributesOrBuilder();

    // optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
    /**
     * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
     */
    boolean hasNodeStatus();
    /**
     * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto getNodeStatus();
    /**
     * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder getNodeStatusOrBuilder();
  }
  /**
   * Protobuf type {@code hadoop.yarn.RegisterNodeManagerRequestProto}
   */
  public static final class RegisterNodeManagerRequestProto extends
      com.google.protobuf.GeneratedMessage
      implements RegisterNodeManagerRequestProtoOrBuilder {
    // Use RegisterNodeManagerRequestProto.newBuilder() to construct.
    private RegisterNodeManagerRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private RegisterNodeManagerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public RegisterNodeManagerRequestProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private RegisterNodeManagerRequestProto(
        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.NodeIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                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_ |= 0x00000001;
              break;
            }
            case 24: {
              bitField0_ |= 0x00000002;
              httpPort_ = input.readInt32();
              break;
            }
            case 34: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                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_ |= 0x00000004;
              break;
            }
            case 42: {
              bitField0_ |= 0x00000008;
              nmVersion_ = input.readBytes();
              break;
            }
            case 50: {
              if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
                containerStatuses_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000010;
              }
              containerStatuses_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.PARSER, extensionRegistry));
              break;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
                runningApplications_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000020;
              }
              runningApplications_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry));
              break;
            }
            case 66: {
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000010) == 0x00000010)) {
                subBuilder = nodeLabels_.toBuilder();
              }
              nodeLabels_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeLabels_);
                nodeLabels_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000010;
              break;
            }
            case 74: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000020) == 0x00000020)) {
                subBuilder = physicalResource_.toBuilder();
              }
              physicalResource_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(physicalResource_);
                physicalResource_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000020;
              break;
            }
            case 82: {
              if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
                logAggregationReportsForApps_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000100;
              }
              logAggregationReportsForApps_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.PARSER, extensionRegistry));
              break;
            }
            case 90: {
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000040) == 0x00000040)) {
                subBuilder = nodeAttributes_.toBuilder();
              }
              nodeAttributes_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeAttributes_);
                nodeAttributes_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000040;
              break;
            }
            case 98: {
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000080) == 0x00000080)) {
                subBuilder = nodeStatus_.toBuilder();
              }
              nodeStatus_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeStatus_);
                nodeStatus_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000080;
              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_ & 0x00000010) == 0x00000010)) {
          containerStatuses_ = java.util.Collections.unmodifiableList(containerStatuses_);
        }
        if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
          runningApplications_ = java.util.Collections.unmodifiableList(runningApplications_);
        }
        if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
          logAggregationReportsForApps_ = java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto.Builder.class);
    }

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

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

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

    // optional int32 http_port = 3;
    public static final int HTTP_PORT_FIELD_NUMBER = 3;
    private int httpPort_;
    /**
     * optional int32 http_port = 3;
     */
    public boolean hasHttpPort() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int32 http_port = 3;
     */
    public int getHttpPort() {
      return httpPort_;
    }

    // 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_ & 0x00000004) == 0x00000004);
    }
    /**
     * 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 string nm_version = 5;
    public static final int NM_VERSION_FIELD_NUMBER = 5;
    private java.lang.Object nmVersion_;
    /**
     * optional string nm_version = 5;
     */
    public boolean hasNmVersion() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional string nm_version = 5;
     */
    public java.lang.String getNmVersion() {
      java.lang.Object ref = nmVersion_;
      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()) {
          nmVersion_ = s;
        }
        return s;
      }
    }
    /**
     * optional string nm_version = 5;
     */
    public com.google.protobuf.ByteString
        getNmVersionBytes() {
      java.lang.Object ref = nmVersion_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        nmVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
    public static final int CONTAINER_STATUSES_FIELD_NUMBER = 6;
    private java.util.List containerStatuses_;
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    public java.util.List getContainerStatusesList() {
      return containerStatuses_;
    }
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    public java.util.List 
        getContainerStatusesOrBuilderList() {
      return containerStatuses_;
    }
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    public int getContainerStatusesCount() {
      return containerStatuses_.size();
    }
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto getContainerStatuses(int index) {
      return containerStatuses_.get(index);
    }
    /**
     * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder getContainerStatusesOrBuilder(
        int index) {
      return containerStatuses_.get(index);
    }

    // repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
    public static final int RUNNINGAPPLICATIONS_FIELD_NUMBER = 7;
    private java.util.List runningApplications_;
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    public java.util.List getRunningApplicationsList() {
      return runningApplications_;
    }
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    public java.util.List 
        getRunningApplicationsOrBuilderList() {
      return runningApplications_;
    }
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    public int getRunningApplicationsCount() {
      return runningApplications_.size();
    }
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getRunningApplications(int index) {
      return runningApplications_.get(index);
    }
    /**
     * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getRunningApplicationsOrBuilder(
        int index) {
      return runningApplications_.get(index);
    }

    // optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
    public static final int NODELABELS_FIELD_NUMBER = 8;
    private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto nodeLabels_;
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
     */
    public boolean hasNodeLabels() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getNodeLabels() {
      return nodeLabels_;
    }
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder getNodeLabelsOrBuilder() {
      return nodeLabels_;
    }

    // optional .hadoop.yarn.ResourceProto physicalResource = 9;
    public static final int PHYSICALRESOURCE_FIELD_NUMBER = 9;
    private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto physicalResource_;
    /**
     * optional .hadoop.yarn.ResourceProto physicalResource = 9;
     */
    public boolean hasPhysicalResource() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * optional .hadoop.yarn.ResourceProto physicalResource = 9;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getPhysicalResource() {
      return physicalResource_;
    }
    /**
     * optional .hadoop.yarn.ResourceProto physicalResource = 9;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getPhysicalResourceOrBuilder() {
      return physicalResource_;
    }

    // repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
    public static final int LOG_AGGREGATION_REPORTS_FOR_APPS_FIELD_NUMBER = 10;
    private java.util.List logAggregationReportsForApps_;
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    public java.util.List getLogAggregationReportsForAppsList() {
      return logAggregationReportsForApps_;
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    public java.util.List 
        getLogAggregationReportsForAppsOrBuilderList() {
      return logAggregationReportsForApps_;
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    public int getLogAggregationReportsForAppsCount() {
      return logAggregationReportsForApps_.size();
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getLogAggregationReportsForApps(int index) {
      return logAggregationReportsForApps_.get(index);
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder getLogAggregationReportsForAppsOrBuilder(
        int index) {
      return logAggregationReportsForApps_.get(index);
    }

    // optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
    public static final int NODEATTRIBUTES_FIELD_NUMBER = 11;
    private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto nodeAttributes_;
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
     */
    public boolean hasNodeAttributes() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getNodeAttributes() {
      return nodeAttributes_;
    }
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder getNodeAttributesOrBuilder() {
      return nodeAttributes_;
    }

    // optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
    public static final int NODESTATUS_FIELD_NUMBER = 12;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto nodeStatus_;
    /**
     * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
     */
    public boolean hasNodeStatus() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    /**
     * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto getNodeStatus() {
      return nodeStatus_;
    }
    /**
     * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder getNodeStatusOrBuilder() {
      return nodeStatus_;
    }

    private void initFields() {
      nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
      httpPort_ = 0;
      resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      nmVersion_ = "";
      containerStatuses_ = java.util.Collections.emptyList();
      runningApplications_ = java.util.Collections.emptyList();
      nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
      physicalResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      logAggregationReportsForApps_ = java.util.Collections.emptyList();
      nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
      nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
    }
    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;
        }
      }
      for (int i = 0; i < getContainerStatusesCount(); i++) {
        if (!getContainerStatuses(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasPhysicalResource()) {
        if (!getPhysicalResource().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasNodeAttributes()) {
        if (!getNodeAttributes().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasNodeStatus()) {
        if (!getNodeStatus().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, nodeId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(3, httpPort_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(4, resource_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeBytes(5, getNmVersionBytes());
      }
      for (int i = 0; i < containerStatuses_.size(); i++) {
        output.writeMessage(6, containerStatuses_.get(i));
      }
      for (int i = 0; i < runningApplications_.size(); i++) {
        output.writeMessage(7, runningApplications_.get(i));
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeMessage(8, nodeLabels_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeMessage(9, physicalResource_);
      }
      for (int i = 0; i < logAggregationReportsForApps_.size(); i++) {
        output.writeMessage(10, logAggregationReportsForApps_.get(i));
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeMessage(11, nodeAttributes_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeMessage(12, nodeStatus_);
      }
      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, nodeId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, httpPort_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, resource_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, getNmVersionBytes());
      }
      for (int i = 0; i < containerStatuses_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, containerStatuses_.get(i));
      }
      for (int i = 0; i < runningApplications_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, runningApplications_.get(i));
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, nodeLabels_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, physicalResource_);
      }
      for (int i = 0; i < logAggregationReportsForApps_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(10, logAggregationReportsForApps_.get(i));
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(11, nodeAttributes_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(12, nodeStatus_);
      }
      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.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto) obj;

      boolean result = true;
      result = result && (hasNodeId() == other.hasNodeId());
      if (hasNodeId()) {
        result = result && getNodeId()
            .equals(other.getNodeId());
      }
      result = result && (hasHttpPort() == other.hasHttpPort());
      if (hasHttpPort()) {
        result = result && (getHttpPort()
            == other.getHttpPort());
      }
      result = result && (hasResource() == other.hasResource());
      if (hasResource()) {
        result = result && getResource()
            .equals(other.getResource());
      }
      result = result && (hasNmVersion() == other.hasNmVersion());
      if (hasNmVersion()) {
        result = result && getNmVersion()
            .equals(other.getNmVersion());
      }
      result = result && getContainerStatusesList()
          .equals(other.getContainerStatusesList());
      result = result && getRunningApplicationsList()
          .equals(other.getRunningApplicationsList());
      result = result && (hasNodeLabels() == other.hasNodeLabels());
      if (hasNodeLabels()) {
        result = result && getNodeLabels()
            .equals(other.getNodeLabels());
      }
      result = result && (hasPhysicalResource() == other.hasPhysicalResource());
      if (hasPhysicalResource()) {
        result = result && getPhysicalResource()
            .equals(other.getPhysicalResource());
      }
      result = result && getLogAggregationReportsForAppsList()
          .equals(other.getLogAggregationReportsForAppsList());
      result = result && (hasNodeAttributes() == other.hasNodeAttributes());
      if (hasNodeAttributes()) {
        result = result && getNodeAttributes()
            .equals(other.getNodeAttributes());
      }
      result = result && (hasNodeStatus() == other.hasNodeStatus());
      if (hasNodeStatus()) {
        result = result && getNodeStatus()
            .equals(other.getNodeStatus());
      }
      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 (hasNodeId()) {
        hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
        hash = (53 * hash) + getNodeId().hashCode();
      }
      if (hasHttpPort()) {
        hash = (37 * hash) + HTTP_PORT_FIELD_NUMBER;
        hash = (53 * hash) + getHttpPort();
      }
      if (hasResource()) {
        hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getResource().hashCode();
      }
      if (hasNmVersion()) {
        hash = (37 * hash) + NM_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getNmVersion().hashCode();
      }
      if (getContainerStatusesCount() > 0) {
        hash = (37 * hash) + CONTAINER_STATUSES_FIELD_NUMBER;
        hash = (53 * hash) + getContainerStatusesList().hashCode();
      }
      if (getRunningApplicationsCount() > 0) {
        hash = (37 * hash) + RUNNINGAPPLICATIONS_FIELD_NUMBER;
        hash = (53 * hash) + getRunningApplicationsList().hashCode();
      }
      if (hasNodeLabels()) {
        hash = (37 * hash) + NODELABELS_FIELD_NUMBER;
        hash = (53 * hash) + getNodeLabels().hashCode();
      }
      if (hasPhysicalResource()) {
        hash = (37 * hash) + PHYSICALRESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getPhysicalResource().hashCode();
      }
      if (getLogAggregationReportsForAppsCount() > 0) {
        hash = (37 * hash) + LOG_AGGREGATION_REPORTS_FOR_APPS_FIELD_NUMBER;
        hash = (53 * hash) + getLogAggregationReportsForAppsList().hashCode();
      }
      if (hasNodeAttributes()) {
        hash = (37 * hash) + NODEATTRIBUTES_FIELD_NUMBER;
        hash = (53 * hash) + getNodeAttributes().hashCode();
      }
      if (hasNodeStatus()) {
        hash = (37 * hash) + NODESTATUS_FIELD_NUMBER;
        hash = (53 * hash) + getNodeStatus().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto.Builder.class);
      }

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

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getNodeIdFieldBuilder();
          getResourceFieldBuilder();
          getContainerStatusesFieldBuilder();
          getRunningApplicationsFieldBuilder();
          getNodeLabelsFieldBuilder();
          getPhysicalResourceFieldBuilder();
          getLogAggregationReportsForAppsFieldBuilder();
          getNodeAttributesFieldBuilder();
          getNodeStatusFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        httpPort_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        if (resourceBuilder_ == null) {
          resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          resourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        nmVersion_ = "";
        bitField0_ = (bitField0_ & ~0x00000008);
        if (containerStatusesBuilder_ == null) {
          containerStatuses_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          containerStatusesBuilder_.clear();
        }
        if (runningApplicationsBuilder_ == null) {
          runningApplications_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000020);
        } else {
          runningApplicationsBuilder_.clear();
        }
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
        } else {
          nodeLabelsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        if (physicalResourceBuilder_ == null) {
          physicalResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          physicalResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        if (logAggregationReportsForAppsBuilder_ == null) {
          logAggregationReportsForApps_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000100);
        } else {
          logAggregationReportsForAppsBuilder_.clear();
        }
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
        } else {
          nodeAttributesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        if (nodeStatusBuilder_ == null) {
          nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
        } else {
          nodeStatusBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000400);
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (nodeIdBuilder_ == null) {
          result.nodeId_ = nodeId_;
        } else {
          result.nodeId_ = nodeIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.httpPort_ = httpPort_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (resourceBuilder_ == null) {
          result.resource_ = resource_;
        } else {
          result.resource_ = resourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.nmVersion_ = nmVersion_;
        if (containerStatusesBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010)) {
            containerStatuses_ = java.util.Collections.unmodifiableList(containerStatuses_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.containerStatuses_ = containerStatuses_;
        } else {
          result.containerStatuses_ = containerStatusesBuilder_.build();
        }
        if (runningApplicationsBuilder_ == null) {
          if (((bitField0_ & 0x00000020) == 0x00000020)) {
            runningApplications_ = java.util.Collections.unmodifiableList(runningApplications_);
            bitField0_ = (bitField0_ & ~0x00000020);
          }
          result.runningApplications_ = runningApplications_;
        } else {
          result.runningApplications_ = runningApplicationsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000010;
        }
        if (nodeLabelsBuilder_ == null) {
          result.nodeLabels_ = nodeLabels_;
        } else {
          result.nodeLabels_ = nodeLabelsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000020;
        }
        if (physicalResourceBuilder_ == null) {
          result.physicalResource_ = physicalResource_;
        } else {
          result.physicalResource_ = physicalResourceBuilder_.build();
        }
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (((bitField0_ & 0x00000100) == 0x00000100)) {
            logAggregationReportsForApps_ = java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
            bitField0_ = (bitField0_ & ~0x00000100);
          }
          result.logAggregationReportsForApps_ = logAggregationReportsForApps_;
        } else {
          result.logAggregationReportsForApps_ = logAggregationReportsForAppsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
          to_bitField0_ |= 0x00000040;
        }
        if (nodeAttributesBuilder_ == null) {
          result.nodeAttributes_ = nodeAttributes_;
        } else {
          result.nodeAttributes_ = nodeAttributesBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
          to_bitField0_ |= 0x00000080;
        }
        if (nodeStatusBuilder_ == null) {
          result.nodeStatus_ = nodeStatus_;
        } else {
          result.nodeStatus_ = nodeStatusBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto.getDefaultInstance()) return this;
        if (other.hasNodeId()) {
          mergeNodeId(other.getNodeId());
        }
        if (other.hasHttpPort()) {
          setHttpPort(other.getHttpPort());
        }
        if (other.hasResource()) {
          mergeResource(other.getResource());
        }
        if (other.hasNmVersion()) {
          bitField0_ |= 0x00000008;
          nmVersion_ = other.nmVersion_;
          onChanged();
        }
        if (containerStatusesBuilder_ == null) {
          if (!other.containerStatuses_.isEmpty()) {
            if (containerStatuses_.isEmpty()) {
              containerStatuses_ = other.containerStatuses_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensureContainerStatusesIsMutable();
              containerStatuses_.addAll(other.containerStatuses_);
            }
            onChanged();
          }
        } else {
          if (!other.containerStatuses_.isEmpty()) {
            if (containerStatusesBuilder_.isEmpty()) {
              containerStatusesBuilder_.dispose();
              containerStatusesBuilder_ = null;
              containerStatuses_ = other.containerStatuses_;
              bitField0_ = (bitField0_ & ~0x00000010);
              containerStatusesBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getContainerStatusesFieldBuilder() : null;
            } else {
              containerStatusesBuilder_.addAllMessages(other.containerStatuses_);
            }
          }
        }
        if (runningApplicationsBuilder_ == null) {
          if (!other.runningApplications_.isEmpty()) {
            if (runningApplications_.isEmpty()) {
              runningApplications_ = other.runningApplications_;
              bitField0_ = (bitField0_ & ~0x00000020);
            } else {
              ensureRunningApplicationsIsMutable();
              runningApplications_.addAll(other.runningApplications_);
            }
            onChanged();
          }
        } else {
          if (!other.runningApplications_.isEmpty()) {
            if (runningApplicationsBuilder_.isEmpty()) {
              runningApplicationsBuilder_.dispose();
              runningApplicationsBuilder_ = null;
              runningApplications_ = other.runningApplications_;
              bitField0_ = (bitField0_ & ~0x00000020);
              runningApplicationsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getRunningApplicationsFieldBuilder() : null;
            } else {
              runningApplicationsBuilder_.addAllMessages(other.runningApplications_);
            }
          }
        }
        if (other.hasNodeLabels()) {
          mergeNodeLabels(other.getNodeLabels());
        }
        if (other.hasPhysicalResource()) {
          mergePhysicalResource(other.getPhysicalResource());
        }
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (!other.logAggregationReportsForApps_.isEmpty()) {
            if (logAggregationReportsForApps_.isEmpty()) {
              logAggregationReportsForApps_ = other.logAggregationReportsForApps_;
              bitField0_ = (bitField0_ & ~0x00000100);
            } else {
              ensureLogAggregationReportsForAppsIsMutable();
              logAggregationReportsForApps_.addAll(other.logAggregationReportsForApps_);
            }
            onChanged();
          }
        } else {
          if (!other.logAggregationReportsForApps_.isEmpty()) {
            if (logAggregationReportsForAppsBuilder_.isEmpty()) {
              logAggregationReportsForAppsBuilder_.dispose();
              logAggregationReportsForAppsBuilder_ = null;
              logAggregationReportsForApps_ = other.logAggregationReportsForApps_;
              bitField0_ = (bitField0_ & ~0x00000100);
              logAggregationReportsForAppsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getLogAggregationReportsForAppsFieldBuilder() : null;
            } else {
              logAggregationReportsForAppsBuilder_.addAllMessages(other.logAggregationReportsForApps_);
            }
          }
        }
        if (other.hasNodeAttributes()) {
          mergeNodeAttributes(other.getNodeAttributes());
        }
        if (other.hasNodeStatus()) {
          mergeNodeStatus(other.getNodeStatus());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (hasResource()) {
          if (!getResource().isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getContainerStatusesCount(); i++) {
          if (!getContainerStatuses(i).isInitialized()) {
            
            return false;
          }
        }
        if (hasPhysicalResource()) {
          if (!getPhysicalResource().isInitialized()) {
            
            return false;
          }
        }
        if (hasNodeAttributes()) {
          if (!getNodeAttributes().isInitialized()) {
            
            return false;
          }
        }
        if (hasNodeStatus()) {
          if (!getNodeStatus().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.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerRequestProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.NodeIdProto node_id = 1;
      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 node_id = 1;
       */
      public boolean hasNodeId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
        if (nodeIdBuilder_ == null) {
          return nodeId_;
        } else {
          return nodeIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public Builder mergeNodeId(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
        if (nodeIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public Builder clearNodeId() {
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
          onChanged();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getNodeIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
        if (nodeIdBuilder_ != null) {
          return nodeIdBuilder_.getMessageOrBuilder();
        } else {
          return nodeId_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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 int32 http_port = 3;
      private int httpPort_ ;
      /**
       * optional int32 http_port = 3;
       */
      public boolean hasHttpPort() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int32 http_port = 3;
       */
      public int getHttpPort() {
        return httpPort_;
      }
      /**
       * optional int32 http_port = 3;
       */
      public Builder setHttpPort(int value) {
        bitField0_ |= 0x00000002;
        httpPort_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 http_port = 3;
       */
      public Builder clearHttpPort() {
        bitField0_ = (bitField0_ & ~0x00000002);
        httpPort_ = 0;
        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_ & 0x00000004) == 0x00000004);
      }
      /**
       * 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_ |= 0x00000004;
        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_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public Builder mergeResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (resourceBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              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_ |= 0x00000004;
        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_ & ~0x00000004);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
        bitField0_ |= 0x00000004;
        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 string nm_version = 5;
      private java.lang.Object nmVersion_ = "";
      /**
       * optional string nm_version = 5;
       */
      public boolean hasNmVersion() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional string nm_version = 5;
       */
      public java.lang.String getNmVersion() {
        java.lang.Object ref = nmVersion_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          nmVersion_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string nm_version = 5;
       */
      public com.google.protobuf.ByteString
          getNmVersionBytes() {
        java.lang.Object ref = nmVersion_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          nmVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string nm_version = 5;
       */
      public Builder setNmVersion(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        nmVersion_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string nm_version = 5;
       */
      public Builder clearNmVersion() {
        bitField0_ = (bitField0_ & ~0x00000008);
        nmVersion_ = getDefaultInstance().getNmVersion();
        onChanged();
        return this;
      }
      /**
       * optional string nm_version = 5;
       */
      public Builder setNmVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
        nmVersion_ = value;
        onChanged();
        return this;
      }

      // repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
      private java.util.List containerStatuses_ =
        java.util.Collections.emptyList();
      private void ensureContainerStatusesIsMutable() {
        if (!((bitField0_ & 0x00000010) == 0x00000010)) {
          containerStatuses_ = new java.util.ArrayList(containerStatuses_);
          bitField0_ |= 0x00000010;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder> containerStatusesBuilder_;

      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public java.util.List getContainerStatusesList() {
        if (containerStatusesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(containerStatuses_);
        } else {
          return containerStatusesBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public int getContainerStatusesCount() {
        if (containerStatusesBuilder_ == null) {
          return containerStatuses_.size();
        } else {
          return containerStatusesBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto getContainerStatuses(int index) {
        if (containerStatusesBuilder_ == null) {
          return containerStatuses_.get(index);
        } else {
          return containerStatusesBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder setContainerStatuses(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto value) {
        if (containerStatusesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContainerStatusesIsMutable();
          containerStatuses_.set(index, value);
          onChanged();
        } else {
          containerStatusesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder setContainerStatuses(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder builderForValue) {
        if (containerStatusesBuilder_ == null) {
          ensureContainerStatusesIsMutable();
          containerStatuses_.set(index, builderForValue.build());
          onChanged();
        } else {
          containerStatusesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder addContainerStatuses(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto value) {
        if (containerStatusesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContainerStatusesIsMutable();
          containerStatuses_.add(value);
          onChanged();
        } else {
          containerStatusesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder addContainerStatuses(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto value) {
        if (containerStatusesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureContainerStatusesIsMutable();
          containerStatuses_.add(index, value);
          onChanged();
        } else {
          containerStatusesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder addContainerStatuses(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder builderForValue) {
        if (containerStatusesBuilder_ == null) {
          ensureContainerStatusesIsMutable();
          containerStatuses_.add(builderForValue.build());
          onChanged();
        } else {
          containerStatusesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder addContainerStatuses(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder builderForValue) {
        if (containerStatusesBuilder_ == null) {
          ensureContainerStatusesIsMutable();
          containerStatuses_.add(index, builderForValue.build());
          onChanged();
        } else {
          containerStatusesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder addAllContainerStatuses(
          java.lang.Iterable values) {
        if (containerStatusesBuilder_ == null) {
          ensureContainerStatusesIsMutable();
          super.addAll(values, containerStatuses_);
          onChanged();
        } else {
          containerStatusesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder clearContainerStatuses() {
        if (containerStatusesBuilder_ == null) {
          containerStatuses_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
        } else {
          containerStatusesBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public Builder removeContainerStatuses(int index) {
        if (containerStatusesBuilder_ == null) {
          ensureContainerStatusesIsMutable();
          containerStatuses_.remove(index);
          onChanged();
        } else {
          containerStatusesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder getContainerStatusesBuilder(
          int index) {
        return getContainerStatusesFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder getContainerStatusesOrBuilder(
          int index) {
        if (containerStatusesBuilder_ == null) {
          return containerStatuses_.get(index);  } else {
          return containerStatusesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public java.util.List 
           getContainerStatusesOrBuilderList() {
        if (containerStatusesBuilder_ != null) {
          return containerStatusesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(containerStatuses_);
        }
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder addContainerStatusesBuilder() {
        return getContainerStatusesFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder addContainerStatusesBuilder(
          int index) {
        return getContainerStatusesFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.NMContainerStatusProto container_statuses = 6;
       */
      public java.util.List 
           getContainerStatusesBuilderList() {
        return getContainerStatusesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder> 
          getContainerStatusesFieldBuilder() {
        if (containerStatusesBuilder_ == null) {
          containerStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder>(
                  containerStatuses_,
                  ((bitField0_ & 0x00000010) == 0x00000010),
                  getParentForChildren(),
                  isClean());
          containerStatuses_ = null;
        }
        return containerStatusesBuilder_;
      }

      // repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
      private java.util.List runningApplications_ =
        java.util.Collections.emptyList();
      private void ensureRunningApplicationsIsMutable() {
        if (!((bitField0_ & 0x00000020) == 0x00000020)) {
          runningApplications_ = new java.util.ArrayList(runningApplications_);
          bitField0_ |= 0x00000020;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> runningApplicationsBuilder_;

      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public java.util.List getRunningApplicationsList() {
        if (runningApplicationsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(runningApplications_);
        } else {
          return runningApplicationsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public int getRunningApplicationsCount() {
        if (runningApplicationsBuilder_ == null) {
          return runningApplications_.size();
        } else {
          return runningApplicationsBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getRunningApplications(int index) {
        if (runningApplicationsBuilder_ == null) {
          return runningApplications_.get(index);
        } else {
          return runningApplicationsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder setRunningApplications(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
        if (runningApplicationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRunningApplicationsIsMutable();
          runningApplications_.set(index, value);
          onChanged();
        } else {
          runningApplicationsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder setRunningApplications(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
        if (runningApplicationsBuilder_ == null) {
          ensureRunningApplicationsIsMutable();
          runningApplications_.set(index, builderForValue.build());
          onChanged();
        } else {
          runningApplicationsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder addRunningApplications(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
        if (runningApplicationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRunningApplicationsIsMutable();
          runningApplications_.add(value);
          onChanged();
        } else {
          runningApplicationsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder addRunningApplications(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
        if (runningApplicationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRunningApplicationsIsMutable();
          runningApplications_.add(index, value);
          onChanged();
        } else {
          runningApplicationsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder addRunningApplications(
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
        if (runningApplicationsBuilder_ == null) {
          ensureRunningApplicationsIsMutable();
          runningApplications_.add(builderForValue.build());
          onChanged();
        } else {
          runningApplicationsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder addRunningApplications(
          int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
        if (runningApplicationsBuilder_ == null) {
          ensureRunningApplicationsIsMutable();
          runningApplications_.add(index, builderForValue.build());
          onChanged();
        } else {
          runningApplicationsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder addAllRunningApplications(
          java.lang.Iterable values) {
        if (runningApplicationsBuilder_ == null) {
          ensureRunningApplicationsIsMutable();
          super.addAll(values, runningApplications_);
          onChanged();
        } else {
          runningApplicationsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder clearRunningApplications() {
        if (runningApplicationsBuilder_ == null) {
          runningApplications_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000020);
          onChanged();
        } else {
          runningApplicationsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public Builder removeRunningApplications(int index) {
        if (runningApplicationsBuilder_ == null) {
          ensureRunningApplicationsIsMutable();
          runningApplications_.remove(index);
          onChanged();
        } else {
          runningApplicationsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getRunningApplicationsBuilder(
          int index) {
        return getRunningApplicationsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getRunningApplicationsOrBuilder(
          int index) {
        if (runningApplicationsBuilder_ == null) {
          return runningApplications_.get(index);  } else {
          return runningApplicationsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public java.util.List 
           getRunningApplicationsOrBuilderList() {
        if (runningApplicationsBuilder_ != null) {
          return runningApplicationsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(runningApplications_);
        }
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder addRunningApplicationsBuilder() {
        return getRunningApplicationsFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder addRunningApplicationsBuilder(
          int index) {
        return getRunningApplicationsFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.ApplicationIdProto runningApplications = 7;
       */
      public java.util.List 
           getRunningApplicationsBuilderList() {
        return getRunningApplicationsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> 
          getRunningApplicationsFieldBuilder() {
        if (runningApplicationsBuilder_ == null) {
          runningApplicationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
                  runningApplications_,
                  ((bitField0_ & 0x00000020) == 0x00000020),
                  getParentForChildren(),
                  isClean());
          runningApplications_ = null;
        }
        return runningApplicationsBuilder_;
      }

      // optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
      private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder> nodeLabelsBuilder_;
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public boolean hasNodeLabels() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getNodeLabels() {
        if (nodeLabelsBuilder_ == null) {
          return nodeLabels_;
        } else {
          return nodeLabelsBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public Builder setNodeLabels(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeLabels_ = value;
          onChanged();
        } else {
          nodeLabelsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public Builder setNodeLabels(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder builderForValue) {
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = builderForValue.build();
          onChanged();
        } else {
          nodeLabelsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public Builder mergeNodeLabels(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (((bitField0_ & 0x00000040) == 0x00000040) &&
              nodeLabels_ != org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance()) {
            nodeLabels_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.newBuilder(nodeLabels_).mergeFrom(value).buildPartial();
          } else {
            nodeLabels_ = value;
          }
          onChanged();
        } else {
          nodeLabelsBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public Builder clearNodeLabels() {
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
          onChanged();
        } else {
          nodeLabelsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder getNodeLabelsBuilder() {
        bitField0_ |= 0x00000040;
        onChanged();
        return getNodeLabelsFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder getNodeLabelsOrBuilder() {
        if (nodeLabelsBuilder_ != null) {
          return nodeLabelsBuilder_.getMessageOrBuilder();
        } else {
          return nodeLabels_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 8;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder> 
          getNodeLabelsFieldBuilder() {
        if (nodeLabelsBuilder_ == null) {
          nodeLabelsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder>(
                  nodeLabels_,
                  getParentForChildren(),
                  isClean());
          nodeLabels_ = null;
        }
        return nodeLabelsBuilder_;
      }

      // optional .hadoop.yarn.ResourceProto physicalResource = 9;
      private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto physicalResource_ = 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> physicalResourceBuilder_;
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public boolean hasPhysicalResource() {
        return ((bitField0_ & 0x00000080) == 0x00000080);
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getPhysicalResource() {
        if (physicalResourceBuilder_ == null) {
          return physicalResource_;
        } else {
          return physicalResourceBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public Builder setPhysicalResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (physicalResourceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          physicalResource_ = value;
          onChanged();
        } else {
          physicalResourceBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public Builder setPhysicalResource(
          org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
        if (physicalResourceBuilder_ == null) {
          physicalResource_ = builderForValue.build();
          onChanged();
        } else {
          physicalResourceBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public Builder mergePhysicalResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (physicalResourceBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080) &&
              physicalResource_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
            physicalResource_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(physicalResource_).mergeFrom(value).buildPartial();
          } else {
            physicalResource_ = value;
          }
          onChanged();
        } else {
          physicalResourceBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public Builder clearPhysicalResource() {
        if (physicalResourceBuilder_ == null) {
          physicalResource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
          onChanged();
        } else {
          physicalResourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getPhysicalResourceBuilder() {
        bitField0_ |= 0x00000080;
        onChanged();
        return getPhysicalResourceFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getPhysicalResourceOrBuilder() {
        if (physicalResourceBuilder_ != null) {
          return physicalResourceBuilder_.getMessageOrBuilder();
        } else {
          return physicalResource_;
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto physicalResource = 9;
       */
      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> 
          getPhysicalResourceFieldBuilder() {
        if (physicalResourceBuilder_ == null) {
          physicalResourceBuilder_ = 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>(
                  physicalResource_,
                  getParentForChildren(),
                  isClean());
          physicalResource_ = null;
        }
        return physicalResourceBuilder_;
      }

      // repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
      private java.util.List logAggregationReportsForApps_ =
        java.util.Collections.emptyList();
      private void ensureLogAggregationReportsForAppsIsMutable() {
        if (!((bitField0_ & 0x00000100) == 0x00000100)) {
          logAggregationReportsForApps_ = new java.util.ArrayList(logAggregationReportsForApps_);
          bitField0_ |= 0x00000100;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder> logAggregationReportsForAppsBuilder_;

      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public java.util.List getLogAggregationReportsForAppsList() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
        } else {
          return logAggregationReportsForAppsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public int getLogAggregationReportsForAppsCount() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return logAggregationReportsForApps_.size();
        } else {
          return logAggregationReportsForAppsBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getLogAggregationReportsForApps(int index) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return logAggregationReportsForApps_.get(index);
        } else {
          return logAggregationReportsForAppsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder setLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto value) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.set(index, value);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder setLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder builderForValue) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.set(index, builderForValue.build());
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder addLogAggregationReportsForApps(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto value) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(value);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder addLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto value) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(index, value);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder addLogAggregationReportsForApps(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder builderForValue) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(builderForValue.build());
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder addLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder builderForValue) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(index, builderForValue.build());
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder addAllLogAggregationReportsForApps(
          java.lang.Iterable values) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          super.addAll(values, logAggregationReportsForApps_);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder clearLogAggregationReportsForApps() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          logAggregationReportsForApps_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000100);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public Builder removeLogAggregationReportsForApps(int index) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.remove(index);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder getLogAggregationReportsForAppsBuilder(
          int index) {
        return getLogAggregationReportsForAppsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder getLogAggregationReportsForAppsOrBuilder(
          int index) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return logAggregationReportsForApps_.get(index);  } else {
          return logAggregationReportsForAppsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public java.util.List 
           getLogAggregationReportsForAppsOrBuilderList() {
        if (logAggregationReportsForAppsBuilder_ != null) {
          return logAggregationReportsForAppsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder addLogAggregationReportsForAppsBuilder() {
        return getLogAggregationReportsForAppsFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder addLogAggregationReportsForAppsBuilder(
          int index) {
        return getLogAggregationReportsForAppsFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 10;
       */
      public java.util.List 
           getLogAggregationReportsForAppsBuilderList() {
        return getLogAggregationReportsForAppsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder> 
          getLogAggregationReportsForAppsFieldBuilder() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          logAggregationReportsForAppsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder>(
                  logAggregationReportsForApps_,
                  ((bitField0_ & 0x00000100) == 0x00000100),
                  getParentForChildren(),
                  isClean());
          logAggregationReportsForApps_ = null;
        }
        return logAggregationReportsForAppsBuilder_;
      }

      // optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
      private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder> nodeAttributesBuilder_;
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public boolean hasNodeAttributes() {
        return ((bitField0_ & 0x00000200) == 0x00000200);
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getNodeAttributes() {
        if (nodeAttributesBuilder_ == null) {
          return nodeAttributes_;
        } else {
          return nodeAttributesBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public Builder setNodeAttributes(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeAttributes_ = value;
          onChanged();
        } else {
          nodeAttributesBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public Builder setNodeAttributes(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder builderForValue) {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = builderForValue.build();
          onChanged();
        } else {
          nodeAttributesBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public Builder mergeNodeAttributes(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (((bitField0_ & 0x00000200) == 0x00000200) &&
              nodeAttributes_ != org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance()) {
            nodeAttributes_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.newBuilder(nodeAttributes_).mergeFrom(value).buildPartial();
          } else {
            nodeAttributes_ = value;
          }
          onChanged();
        } else {
          nodeAttributesBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000200;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public Builder clearNodeAttributes() {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
          onChanged();
        } else {
          nodeAttributesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000200);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder getNodeAttributesBuilder() {
        bitField0_ |= 0x00000200;
        onChanged();
        return getNodeAttributesFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder getNodeAttributesOrBuilder() {
        if (nodeAttributesBuilder_ != null) {
          return nodeAttributesBuilder_.getMessageOrBuilder();
        } else {
          return nodeAttributes_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 11;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder> 
          getNodeAttributesFieldBuilder() {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder>(
                  nodeAttributes_,
                  getParentForChildren(),
                  isClean());
          nodeAttributes_ = null;
        }
        return nodeAttributesBuilder_;
      }

      // optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder> nodeStatusBuilder_;
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public boolean hasNodeStatus() {
        return ((bitField0_ & 0x00000400) == 0x00000400);
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto getNodeStatus() {
        if (nodeStatusBuilder_ == null) {
          return nodeStatus_;
        } else {
          return nodeStatusBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public Builder setNodeStatus(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto value) {
        if (nodeStatusBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeStatus_ = value;
          onChanged();
        } else {
          nodeStatusBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public Builder setNodeStatus(
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder builderForValue) {
        if (nodeStatusBuilder_ == null) {
          nodeStatus_ = builderForValue.build();
          onChanged();
        } else {
          nodeStatusBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public Builder mergeNodeStatus(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto value) {
        if (nodeStatusBuilder_ == null) {
          if (((bitField0_ & 0x00000400) == 0x00000400) &&
              nodeStatus_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance()) {
            nodeStatus_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.newBuilder(nodeStatus_).mergeFrom(value).buildPartial();
          } else {
            nodeStatus_ = value;
          }
          onChanged();
        } else {
          nodeStatusBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000400;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public Builder clearNodeStatus() {
        if (nodeStatusBuilder_ == null) {
          nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
          onChanged();
        } else {
          nodeStatusBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000400);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder getNodeStatusBuilder() {
        bitField0_ |= 0x00000400;
        onChanged();
        return getNodeStatusFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder getNodeStatusOrBuilder() {
        if (nodeStatusBuilder_ != null) {
          return nodeStatusBuilder_.getMessageOrBuilder();
        } else {
          return nodeStatus_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto nodeStatus = 12;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder> 
          getNodeStatusFieldBuilder() {
        if (nodeStatusBuilder_ == null) {
          nodeStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder>(
                  nodeStatus_,
                  getParentForChildren(),
                  isClean());
          nodeStatus_ = null;
        }
        return nodeStatusBuilder_;
      }

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

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

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

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

    // optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
     */
    boolean hasContainerTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getContainerTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getContainerTokenMasterKeyOrBuilder();

    // optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
     */
    boolean hasNmTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNmTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNmTokenMasterKeyOrBuilder();

    // optional .hadoop.yarn.NodeActionProto nodeAction = 3;
    /**
     * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
     */
    boolean hasNodeAction();
    /**
     * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto getNodeAction();

    // optional int64 rm_identifier = 4;
    /**
     * optional int64 rm_identifier = 4;
     */
    boolean hasRmIdentifier();
    /**
     * optional int64 rm_identifier = 4;
     */
    long getRmIdentifier();

    // optional string diagnostics_message = 5;
    /**
     * optional string diagnostics_message = 5;
     */
    boolean hasDiagnosticsMessage();
    /**
     * optional string diagnostics_message = 5;
     */
    java.lang.String getDiagnosticsMessage();
    /**
     * optional string diagnostics_message = 5;
     */
    com.google.protobuf.ByteString
        getDiagnosticsMessageBytes();

    // optional string rm_version = 6;
    /**
     * optional string rm_version = 6;
     */
    boolean hasRmVersion();
    /**
     * optional string rm_version = 6;
     */
    java.lang.String getRmVersion();
    /**
     * optional string rm_version = 6;
     */
    com.google.protobuf.ByteString
        getRmVersionBytes();

    // optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
    /**
     * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
     */
    boolean hasAreNodeLabelsAcceptedByRM();
    /**
     * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
     */
    boolean getAreNodeLabelsAcceptedByRM();

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

    // optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
    /**
     * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
     */
    boolean hasAreNodeAttributesAcceptedByRM();
    /**
     * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
     */
    boolean getAreNodeAttributesAcceptedByRM();
  }
  /**
   * Protobuf type {@code hadoop.yarn.RegisterNodeManagerResponseProto}
   */
  public static final class RegisterNodeManagerResponseProto extends
      com.google.protobuf.GeneratedMessage
      implements RegisterNodeManagerResponseProtoOrBuilder {
    // Use RegisterNodeManagerResponseProto.newBuilder() to construct.
    private RegisterNodeManagerResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private RegisterNodeManagerResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public RegisterNodeManagerResponseProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private RegisterNodeManagerResponseProto(
        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.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = containerTokenMasterKey_.toBuilder();
              }
              containerTokenMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(containerTokenMasterKey_);
                containerTokenMasterKey_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = nmTokenMasterKey_.toBuilder();
              }
              nmTokenMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nmTokenMasterKey_);
                nmTokenMasterKey_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 24: {
              int rawValue = input.readEnum();
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto value = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(3, rawValue);
              } else {
                bitField0_ |= 0x00000004;
                nodeAction_ = value;
              }
              break;
            }
            case 32: {
              bitField0_ |= 0x00000008;
              rmIdentifier_ = input.readInt64();
              break;
            }
            case 42: {
              bitField0_ |= 0x00000010;
              diagnosticsMessage_ = input.readBytes();
              break;
            }
            case 50: {
              bitField0_ |= 0x00000020;
              rmVersion_ = input.readBytes();
              break;
            }
            case 56: {
              bitField0_ |= 0x00000040;
              areNodeLabelsAcceptedByRM_ = input.readBool();
              break;
            }
            case 66: {
              org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000080) == 0x00000080)) {
                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_ |= 0x00000080;
              break;
            }
            case 72: {
              bitField0_ |= 0x00000100;
              areNodeAttributesAcceptedByRM_ = input.readBool();
              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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
    public static final int CONTAINER_TOKEN_MASTER_KEY_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto containerTokenMasterKey_;
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
     */
    public boolean hasContainerTokenMasterKey() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getContainerTokenMasterKey() {
      return containerTokenMasterKey_;
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getContainerTokenMasterKeyOrBuilder() {
      return containerTokenMasterKey_;
    }

    // optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
    public static final int NM_TOKEN_MASTER_KEY_FIELD_NUMBER = 2;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto nmTokenMasterKey_;
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
     */
    public boolean hasNmTokenMasterKey() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNmTokenMasterKey() {
      return nmTokenMasterKey_;
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNmTokenMasterKeyOrBuilder() {
      return nmTokenMasterKey_;
    }

    // optional .hadoop.yarn.NodeActionProto nodeAction = 3;
    public static final int NODEACTION_FIELD_NUMBER = 3;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto nodeAction_;
    /**
     * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
     */
    public boolean hasNodeAction() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto getNodeAction() {
      return nodeAction_;
    }

    // optional int64 rm_identifier = 4;
    public static final int RM_IDENTIFIER_FIELD_NUMBER = 4;
    private long rmIdentifier_;
    /**
     * optional int64 rm_identifier = 4;
     */
    public boolean hasRmIdentifier() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional int64 rm_identifier = 4;
     */
    public long getRmIdentifier() {
      return rmIdentifier_;
    }

    // optional string diagnostics_message = 5;
    public static final int DIAGNOSTICS_MESSAGE_FIELD_NUMBER = 5;
    private java.lang.Object diagnosticsMessage_;
    /**
     * optional string diagnostics_message = 5;
     */
    public boolean hasDiagnosticsMessage() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * optional string diagnostics_message = 5;
     */
    public java.lang.String getDiagnosticsMessage() {
      java.lang.Object ref = diagnosticsMessage_;
      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()) {
          diagnosticsMessage_ = s;
        }
        return s;
      }
    }
    /**
     * optional string diagnostics_message = 5;
     */
    public com.google.protobuf.ByteString
        getDiagnosticsMessageBytes() {
      java.lang.Object ref = diagnosticsMessage_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnosticsMessage_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string rm_version = 6;
    public static final int RM_VERSION_FIELD_NUMBER = 6;
    private java.lang.Object rmVersion_;
    /**
     * optional string rm_version = 6;
     */
    public boolean hasRmVersion() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * optional string rm_version = 6;
     */
    public java.lang.String getRmVersion() {
      java.lang.Object ref = rmVersion_;
      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()) {
          rmVersion_ = s;
        }
        return s;
      }
    }
    /**
     * optional string rm_version = 6;
     */
    public com.google.protobuf.ByteString
        getRmVersionBytes() {
      java.lang.Object ref = rmVersion_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        rmVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
    public static final int ARENODELABELSACCEPTEDBYRM_FIELD_NUMBER = 7;
    private boolean areNodeLabelsAcceptedByRM_;
    /**
     * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
     */
    public boolean hasAreNodeLabelsAcceptedByRM() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
     */
    public boolean getAreNodeLabelsAcceptedByRM() {
      return areNodeLabelsAcceptedByRM_;
    }

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

    // optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
    public static final int ARENODEATTRIBUTESACCEPTEDBYRM_FIELD_NUMBER = 9;
    private boolean areNodeAttributesAcceptedByRM_;
    /**
     * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
     */
    public boolean hasAreNodeAttributesAcceptedByRM() {
      return ((bitField0_ & 0x00000100) == 0x00000100);
    }
    /**
     * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
     */
    public boolean getAreNodeAttributesAcceptedByRM() {
      return areNodeAttributesAcceptedByRM_;
    }

    private void initFields() {
      containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL;
      rmIdentifier_ = 0L;
      diagnosticsMessage_ = "";
      rmVersion_ = "";
      areNodeLabelsAcceptedByRM_ = false;
      resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
      areNodeAttributesAcceptedByRM_ = false;
    }
    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, containerTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, nmTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeEnum(3, nodeAction_.getNumber());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt64(4, rmIdentifier_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeBytes(5, getDiagnosticsMessageBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeBytes(6, getRmVersionBytes());
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeBool(7, areNodeLabelsAcceptedByRM_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeMessage(8, resource_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeBool(9, areNodeAttributesAcceptedByRM_);
      }
      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, containerTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, nmTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(3, nodeAction_.getNumber());
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(4, rmIdentifier_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(5, getDiagnosticsMessageBytes());
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(6, getRmVersionBytes());
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, areNodeLabelsAcceptedByRM_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, resource_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(9, areNodeAttributesAcceptedByRM_);
      }
      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.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto) obj;

      boolean result = true;
      result = result && (hasContainerTokenMasterKey() == other.hasContainerTokenMasterKey());
      if (hasContainerTokenMasterKey()) {
        result = result && getContainerTokenMasterKey()
            .equals(other.getContainerTokenMasterKey());
      }
      result = result && (hasNmTokenMasterKey() == other.hasNmTokenMasterKey());
      if (hasNmTokenMasterKey()) {
        result = result && getNmTokenMasterKey()
            .equals(other.getNmTokenMasterKey());
      }
      result = result && (hasNodeAction() == other.hasNodeAction());
      if (hasNodeAction()) {
        result = result &&
            (getNodeAction() == other.getNodeAction());
      }
      result = result && (hasRmIdentifier() == other.hasRmIdentifier());
      if (hasRmIdentifier()) {
        result = result && (getRmIdentifier()
            == other.getRmIdentifier());
      }
      result = result && (hasDiagnosticsMessage() == other.hasDiagnosticsMessage());
      if (hasDiagnosticsMessage()) {
        result = result && getDiagnosticsMessage()
            .equals(other.getDiagnosticsMessage());
      }
      result = result && (hasRmVersion() == other.hasRmVersion());
      if (hasRmVersion()) {
        result = result && getRmVersion()
            .equals(other.getRmVersion());
      }
      result = result && (hasAreNodeLabelsAcceptedByRM() == other.hasAreNodeLabelsAcceptedByRM());
      if (hasAreNodeLabelsAcceptedByRM()) {
        result = result && (getAreNodeLabelsAcceptedByRM()
            == other.getAreNodeLabelsAcceptedByRM());
      }
      result = result && (hasResource() == other.hasResource());
      if (hasResource()) {
        result = result && getResource()
            .equals(other.getResource());
      }
      result = result && (hasAreNodeAttributesAcceptedByRM() == other.hasAreNodeAttributesAcceptedByRM());
      if (hasAreNodeAttributesAcceptedByRM()) {
        result = result && (getAreNodeAttributesAcceptedByRM()
            == other.getAreNodeAttributesAcceptedByRM());
      }
      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 (hasContainerTokenMasterKey()) {
        hash = (37 * hash) + CONTAINER_TOKEN_MASTER_KEY_FIELD_NUMBER;
        hash = (53 * hash) + getContainerTokenMasterKey().hashCode();
      }
      if (hasNmTokenMasterKey()) {
        hash = (37 * hash) + NM_TOKEN_MASTER_KEY_FIELD_NUMBER;
        hash = (53 * hash) + getNmTokenMasterKey().hashCode();
      }
      if (hasNodeAction()) {
        hash = (37 * hash) + NODEACTION_FIELD_NUMBER;
        hash = (53 * hash) + hashEnum(getNodeAction());
      }
      if (hasRmIdentifier()) {
        hash = (37 * hash) + RM_IDENTIFIER_FIELD_NUMBER;
        hash = (53 * hash) + hashLong(getRmIdentifier());
      }
      if (hasDiagnosticsMessage()) {
        hash = (37 * hash) + DIAGNOSTICS_MESSAGE_FIELD_NUMBER;
        hash = (53 * hash) + getDiagnosticsMessage().hashCode();
      }
      if (hasRmVersion()) {
        hash = (37 * hash) + RM_VERSION_FIELD_NUMBER;
        hash = (53 * hash) + getRmVersion().hashCode();
      }
      if (hasAreNodeLabelsAcceptedByRM()) {
        hash = (37 * hash) + ARENODELABELSACCEPTEDBYRM_FIELD_NUMBER;
        hash = (53 * hash) + hashBoolean(getAreNodeLabelsAcceptedByRM());
      }
      if (hasResource()) {
        hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
        hash = (53 * hash) + getResource().hashCode();
      }
      if (hasAreNodeAttributesAcceptedByRM()) {
        hash = (37 * hash) + ARENODEATTRIBUTESACCEPTEDBYRM_FIELD_NUMBER;
        hash = (53 * hash) + hashBoolean(getAreNodeAttributesAcceptedByRM());
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (containerTokenMasterKeyBuilder_ == null) {
          containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
        } else {
          containerTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (nmTokenMasterKeyBuilder_ == null) {
          nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
        } else {
          nmTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL;
        bitField0_ = (bitField0_ & ~0x00000004);
        rmIdentifier_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000008);
        diagnosticsMessage_ = "";
        bitField0_ = (bitField0_ & ~0x00000010);
        rmVersion_ = "";
        bitField0_ = (bitField0_ & ~0x00000020);
        areNodeLabelsAcceptedByRM_ = false;
        bitField0_ = (bitField0_ & ~0x00000040);
        if (resourceBuilder_ == null) {
          resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
        } else {
          resourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        areNodeAttributesAcceptedByRM_ = false;
        bitField0_ = (bitField0_ & ~0x00000100);
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (containerTokenMasterKeyBuilder_ == null) {
          result.containerTokenMasterKey_ = containerTokenMasterKey_;
        } else {
          result.containerTokenMasterKey_ = containerTokenMasterKeyBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (nmTokenMasterKeyBuilder_ == null) {
          result.nmTokenMasterKey_ = nmTokenMasterKey_;
        } else {
          result.nmTokenMasterKey_ = nmTokenMasterKeyBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.nodeAction_ = nodeAction_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.rmIdentifier_ = rmIdentifier_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.diagnosticsMessage_ = diagnosticsMessage_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.rmVersion_ = rmVersion_;
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.areNodeLabelsAcceptedByRM_ = areNodeLabelsAcceptedByRM_;
        if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
          to_bitField0_ |= 0x00000080;
        }
        if (resourceBuilder_ == null) {
          result.resource_ = resource_;
        } else {
          result.resource_ = resourceBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
          to_bitField0_ |= 0x00000100;
        }
        result.areNodeAttributesAcceptedByRM_ = areNodeAttributesAcceptedByRM_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto.getDefaultInstance()) return this;
        if (other.hasContainerTokenMasterKey()) {
          mergeContainerTokenMasterKey(other.getContainerTokenMasterKey());
        }
        if (other.hasNmTokenMasterKey()) {
          mergeNmTokenMasterKey(other.getNmTokenMasterKey());
        }
        if (other.hasNodeAction()) {
          setNodeAction(other.getNodeAction());
        }
        if (other.hasRmIdentifier()) {
          setRmIdentifier(other.getRmIdentifier());
        }
        if (other.hasDiagnosticsMessage()) {
          bitField0_ |= 0x00000010;
          diagnosticsMessage_ = other.diagnosticsMessage_;
          onChanged();
        }
        if (other.hasRmVersion()) {
          bitField0_ |= 0x00000020;
          rmVersion_ = other.rmVersion_;
          onChanged();
        }
        if (other.hasAreNodeLabelsAcceptedByRM()) {
          setAreNodeLabelsAcceptedByRM(other.getAreNodeLabelsAcceptedByRM());
        }
        if (other.hasResource()) {
          mergeResource(other.getResource());
        }
        if (other.hasAreNodeAttributesAcceptedByRM()) {
          setAreNodeAttributesAcceptedByRM(other.getAreNodeAttributesAcceptedByRM());
        }
        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.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.RegisterNodeManagerResponseProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> containerTokenMasterKeyBuilder_;
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public boolean hasContainerTokenMasterKey() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getContainerTokenMasterKey() {
        if (containerTokenMasterKeyBuilder_ == null) {
          return containerTokenMasterKey_;
        } else {
          return containerTokenMasterKeyBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public Builder setContainerTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (containerTokenMasterKeyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          containerTokenMasterKey_ = value;
          onChanged();
        } else {
          containerTokenMasterKeyBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public Builder setContainerTokenMasterKey(
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) {
        if (containerTokenMasterKeyBuilder_ == null) {
          containerTokenMasterKey_ = builderForValue.build();
          onChanged();
        } else {
          containerTokenMasterKeyBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public Builder mergeContainerTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (containerTokenMasterKeyBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              containerTokenMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) {
            containerTokenMasterKey_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(containerTokenMasterKey_).mergeFrom(value).buildPartial();
          } else {
            containerTokenMasterKey_ = value;
          }
          onChanged();
        } else {
          containerTokenMasterKeyBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public Builder clearContainerTokenMasterKey() {
        if (containerTokenMasterKeyBuilder_ == null) {
          containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
          onChanged();
        } else {
          containerTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getContainerTokenMasterKeyBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getContainerTokenMasterKeyFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getContainerTokenMasterKeyOrBuilder() {
        if (containerTokenMasterKeyBuilder_ != null) {
          return containerTokenMasterKeyBuilder_.getMessageOrBuilder();
        } else {
          return containerTokenMasterKey_;
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> 
          getContainerTokenMasterKeyFieldBuilder() {
        if (containerTokenMasterKeyBuilder_ == null) {
          containerTokenMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder>(
                  containerTokenMasterKey_,
                  getParentForChildren(),
                  isClean());
          containerTokenMasterKey_ = null;
        }
        return containerTokenMasterKeyBuilder_;
      }

      // optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> nmTokenMasterKeyBuilder_;
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public boolean hasNmTokenMasterKey() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNmTokenMasterKey() {
        if (nmTokenMasterKeyBuilder_ == null) {
          return nmTokenMasterKey_;
        } else {
          return nmTokenMasterKeyBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public Builder setNmTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (nmTokenMasterKeyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nmTokenMasterKey_ = value;
          onChanged();
        } else {
          nmTokenMasterKeyBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public Builder setNmTokenMasterKey(
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) {
        if (nmTokenMasterKeyBuilder_ == null) {
          nmTokenMasterKey_ = builderForValue.build();
          onChanged();
        } else {
          nmTokenMasterKeyBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public Builder mergeNmTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (nmTokenMasterKeyBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              nmTokenMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) {
            nmTokenMasterKey_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(nmTokenMasterKey_).mergeFrom(value).buildPartial();
          } else {
            nmTokenMasterKey_ = value;
          }
          onChanged();
        } else {
          nmTokenMasterKeyBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public Builder clearNmTokenMasterKey() {
        if (nmTokenMasterKeyBuilder_ == null) {
          nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
          onChanged();
        } else {
          nmTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getNmTokenMasterKeyBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getNmTokenMasterKeyFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNmTokenMasterKeyOrBuilder() {
        if (nmTokenMasterKeyBuilder_ != null) {
          return nmTokenMasterKeyBuilder_.getMessageOrBuilder();
        } else {
          return nmTokenMasterKey_;
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 2;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> 
          getNmTokenMasterKeyFieldBuilder() {
        if (nmTokenMasterKeyBuilder_ == null) {
          nmTokenMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder>(
                  nmTokenMasterKey_,
                  getParentForChildren(),
                  isClean());
          nmTokenMasterKey_ = null;
        }
        return nmTokenMasterKeyBuilder_;
      }

      // optional .hadoop.yarn.NodeActionProto nodeAction = 3;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL;
      /**
       * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
       */
      public boolean hasNodeAction() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto getNodeAction() {
        return nodeAction_;
      }
      /**
       * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
       */
      public Builder setNodeAction(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000004;
        nodeAction_ = value;
        onChanged();
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeActionProto nodeAction = 3;
       */
      public Builder clearNodeAction() {
        bitField0_ = (bitField0_ & ~0x00000004);
        nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL;
        onChanged();
        return this;
      }

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

      // optional string diagnostics_message = 5;
      private java.lang.Object diagnosticsMessage_ = "";
      /**
       * optional string diagnostics_message = 5;
       */
      public boolean hasDiagnosticsMessage() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * optional string diagnostics_message = 5;
       */
      public java.lang.String getDiagnosticsMessage() {
        java.lang.Object ref = diagnosticsMessage_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          diagnosticsMessage_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string diagnostics_message = 5;
       */
      public com.google.protobuf.ByteString
          getDiagnosticsMessageBytes() {
        java.lang.Object ref = diagnosticsMessage_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          diagnosticsMessage_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string diagnostics_message = 5;
       */
      public Builder setDiagnosticsMessage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        diagnosticsMessage_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string diagnostics_message = 5;
       */
      public Builder clearDiagnosticsMessage() {
        bitField0_ = (bitField0_ & ~0x00000010);
        diagnosticsMessage_ = getDefaultInstance().getDiagnosticsMessage();
        onChanged();
        return this;
      }
      /**
       * optional string diagnostics_message = 5;
       */
      public Builder setDiagnosticsMessageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
        diagnosticsMessage_ = value;
        onChanged();
        return this;
      }

      // optional string rm_version = 6;
      private java.lang.Object rmVersion_ = "";
      /**
       * optional string rm_version = 6;
       */
      public boolean hasRmVersion() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * optional string rm_version = 6;
       */
      public java.lang.String getRmVersion() {
        java.lang.Object ref = rmVersion_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          rmVersion_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string rm_version = 6;
       */
      public com.google.protobuf.ByteString
          getRmVersionBytes() {
        java.lang.Object ref = rmVersion_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          rmVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string rm_version = 6;
       */
      public Builder setRmVersion(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        rmVersion_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string rm_version = 6;
       */
      public Builder clearRmVersion() {
        bitField0_ = (bitField0_ & ~0x00000020);
        rmVersion_ = getDefaultInstance().getRmVersion();
        onChanged();
        return this;
      }
      /**
       * optional string rm_version = 6;
       */
      public Builder setRmVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
        rmVersion_ = value;
        onChanged();
        return this;
      }

      // optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
      private boolean areNodeLabelsAcceptedByRM_ ;
      /**
       * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
       */
      public boolean hasAreNodeLabelsAcceptedByRM() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
       */
      public boolean getAreNodeLabelsAcceptedByRM() {
        return areNodeLabelsAcceptedByRM_;
      }
      /**
       * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
       */
      public Builder setAreNodeLabelsAcceptedByRM(boolean value) {
        bitField0_ |= 0x00000040;
        areNodeLabelsAcceptedByRM_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool areNodeLabelsAcceptedByRM = 7 [default = false];
       */
      public Builder clearAreNodeLabelsAcceptedByRM() {
        bitField0_ = (bitField0_ & ~0x00000040);
        areNodeLabelsAcceptedByRM_ = false;
        onChanged();
        return this;
      }

      // optional .hadoop.yarn.ResourceProto resource = 8;
      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 = 8;
       */
      public boolean hasResource() {
        return ((bitField0_ & 0x00000080) == 0x00000080);
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
        if (resourceBuilder_ == null) {
          return resource_;
        } else {
          return resourceBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      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_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      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_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      public Builder mergeResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
        if (resourceBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080) &&
              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_ |= 0x00000080;
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      public Builder clearResource() {
        if (resourceBuilder_ == null) {
          resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
          onChanged();
        } else {
          resourceBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000080);
        return this;
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
        bitField0_ |= 0x00000080;
        onChanged();
        return getResourceFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
        if (resourceBuilder_ != null) {
          return resourceBuilder_.getMessageOrBuilder();
        } else {
          return resource_;
        }
      }
      /**
       * optional .hadoop.yarn.ResourceProto resource = 8;
       */
      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 bool areNodeAttributesAcceptedByRM = 9 [default = false];
      private boolean areNodeAttributesAcceptedByRM_ ;
      /**
       * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
       */
      public boolean hasAreNodeAttributesAcceptedByRM() {
        return ((bitField0_ & 0x00000100) == 0x00000100);
      }
      /**
       * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
       */
      public boolean getAreNodeAttributesAcceptedByRM() {
        return areNodeAttributesAcceptedByRM_;
      }
      /**
       * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
       */
      public Builder setAreNodeAttributesAcceptedByRM(boolean value) {
        bitField0_ |= 0x00000100;
        areNodeAttributesAcceptedByRM_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool areNodeAttributesAcceptedByRM = 9 [default = false];
       */
      public Builder clearAreNodeAttributesAcceptedByRM() {
        bitField0_ = (bitField0_ & ~0x00000100);
        areNodeAttributesAcceptedByRM_ = false;
        onChanged();
        return this;
      }

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

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

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

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

    // optional .hadoop.yarn.NodeIdProto node_id = 1;
    /**
     * optional .hadoop.yarn.NodeIdProto node_id = 1;
     */
    boolean hasNodeId();
    /**
     * optional .hadoop.yarn.NodeIdProto node_id = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
    /**
     * optional .hadoop.yarn.NodeIdProto node_id = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
  }
  /**
   * Protobuf type {@code hadoop.yarn.UnRegisterNodeManagerRequestProto}
   */
  public static final class UnRegisterNodeManagerRequestProto extends
      com.google.protobuf.GeneratedMessage
      implements UnRegisterNodeManagerRequestProtoOrBuilder {
    // Use UnRegisterNodeManagerRequestProto.newBuilder() to construct.
    private UnRegisterNodeManagerRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private UnRegisterNodeManagerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public UnRegisterNodeManagerRequestProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private UnRegisterNodeManagerRequestProto(
        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.NodeIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                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_ |= 0x00000001;
              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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto.Builder.class);
    }

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

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

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

    private void initFields() {
      nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, nodeId_);
      }
      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, nodeId_);
      }
      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.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto) obj;

      boolean result = true;
      result = result && (hasNodeId() == other.hasNodeId());
      if (hasNodeId()) {
        result = result && getNodeId()
            .equals(other.getNodeId());
      }
      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 (hasNodeId()) {
        hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
        hash = (53 * hash) + getNodeId().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (nodeIdBuilder_ == null) {
          result.nodeId_ = nodeId_;
        } else {
          result.nodeId_ = nodeIdBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto.getDefaultInstance()) return this;
        if (other.hasNodeId()) {
          mergeNodeId(other.getNodeId());
        }
        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.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerRequestProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.NodeIdProto node_id = 1;
      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 node_id = 1;
       */
      public boolean hasNodeId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
        if (nodeIdBuilder_ == null) {
          return nodeId_;
        } else {
          return nodeIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public Builder mergeNodeId(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
        if (nodeIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              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_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public Builder clearNodeId() {
        if (nodeIdBuilder_ == null) {
          nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
          onChanged();
        } else {
          nodeIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getNodeIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
        if (nodeIdBuilder_ != null) {
          return nodeIdBuilder_.getMessageOrBuilder();
        } else {
          return nodeId_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeIdProto node_id = 1;
       */
      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_;
      }

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

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

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

  public interface UnRegisterNodeManagerResponseProtoOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code hadoop.yarn.UnRegisterNodeManagerResponseProto}
   */
  public static final class UnRegisterNodeManagerResponseProto extends
      com.google.protobuf.GeneratedMessage
      implements UnRegisterNodeManagerResponseProtoOrBuilder {
    // Use UnRegisterNodeManagerResponseProto.newBuilder() to construct.
    private UnRegisterNodeManagerResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private UnRegisterNodeManagerResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public UnRegisterNodeManagerResponseProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private UnRegisterNodeManagerResponseProto(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
            }
          }
        }
      } 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.Builder.class);
    }

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

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

    private void initFields() {
    }
    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();
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      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.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto) obj;

      boolean result = true;
      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();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.Builder.class);
      }

      // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.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();
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto(this);
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto.getDefaultInstance()) return this;
        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.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.UnRegisterNodeManagerResponseProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

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

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

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

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

    // optional .hadoop.yarn.NodeStatusProto node_status = 1;
    /**
     * optional .hadoop.yarn.NodeStatusProto node_status = 1;
     */
    boolean hasNodeStatus();
    /**
     * optional .hadoop.yarn.NodeStatusProto node_status = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto getNodeStatus();
    /**
     * optional .hadoop.yarn.NodeStatusProto node_status = 1;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder getNodeStatusOrBuilder();

    // optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
     */
    boolean hasLastKnownContainerTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getLastKnownContainerTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getLastKnownContainerTokenMasterKeyOrBuilder();

    // optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
     */
    boolean hasLastKnownNmTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getLastKnownNmTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getLastKnownNmTokenMasterKeyOrBuilder();

    // optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
     */
    boolean hasNodeLabels();
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getNodeLabels();
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder getNodeLabelsOrBuilder();

    // repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    java.util.List 
        getLogAggregationReportsForAppsList();
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getLogAggregationReportsForApps(int index);
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    int getLogAggregationReportsForAppsCount();
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    java.util.List 
        getLogAggregationReportsForAppsOrBuilderList();
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder getLogAggregationReportsForAppsOrBuilder(
        int index);

    // repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    java.util.List 
        getRegisteringCollectorsList();
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getRegisteringCollectors(int index);
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    int getRegisteringCollectorsCount();
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    java.util.List 
        getRegisteringCollectorsOrBuilderList();
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getRegisteringCollectorsOrBuilder(
        int index);

    // optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
     */
    boolean hasNodeAttributes();
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getNodeAttributes();
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder getNodeAttributesOrBuilder();
  }
  /**
   * Protobuf type {@code hadoop.yarn.NodeHeartbeatRequestProto}
   */
  public static final class NodeHeartbeatRequestProto extends
      com.google.protobuf.GeneratedMessage
      implements NodeHeartbeatRequestProtoOrBuilder {
    // Use NodeHeartbeatRequestProto.newBuilder() to construct.
    private NodeHeartbeatRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private NodeHeartbeatRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public NodeHeartbeatRequestProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private NodeHeartbeatRequestProto(
        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.YarnServerCommonProtos.NodeStatusProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = nodeStatus_.toBuilder();
              }
              nodeStatus_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeStatus_);
                nodeStatus_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 18: {
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = lastKnownContainerTokenMasterKey_.toBuilder();
              }
              lastKnownContainerTokenMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(lastKnownContainerTokenMasterKey_);
                lastKnownContainerTokenMasterKey_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 26: {
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = lastKnownNmTokenMasterKey_.toBuilder();
              }
              lastKnownNmTokenMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(lastKnownNmTokenMasterKey_);
                lastKnownNmTokenMasterKey_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
            case 34: {
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000008) == 0x00000008)) {
                subBuilder = nodeLabels_.toBuilder();
              }
              nodeLabels_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeLabels_);
                nodeLabels_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000008;
              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
                logAggregationReportsForApps_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000010;
              }
              logAggregationReportsForApps_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.PARSER, extensionRegistry));
              break;
            }
            case 50: {
              if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
                registeringCollectors_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000020;
              }
              registeringCollectors_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.PARSER, extensionRegistry));
              break;
            }
            case 58: {
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000010) == 0x00000010)) {
                subBuilder = nodeAttributes_.toBuilder();
              }
              nodeAttributes_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(nodeAttributes_);
                nodeAttributes_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000010;
              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_ & 0x00000010) == 0x00000010)) {
          logAggregationReportsForApps_ = java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
        }
        if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
          registeringCollectors_ = java.util.Collections.unmodifiableList(registeringCollectors_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatRequestProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatRequestProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.NodeStatusProto node_status = 1;
    public static final int NODE_STATUS_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto nodeStatus_;
    /**
     * optional .hadoop.yarn.NodeStatusProto node_status = 1;
     */
    public boolean hasNodeStatus() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.NodeStatusProto node_status = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto getNodeStatus() {
      return nodeStatus_;
    }
    /**
     * optional .hadoop.yarn.NodeStatusProto node_status = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder getNodeStatusOrBuilder() {
      return nodeStatus_;
    }

    // optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
    public static final int LAST_KNOWN_CONTAINER_TOKEN_MASTER_KEY_FIELD_NUMBER = 2;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto lastKnownContainerTokenMasterKey_;
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
     */
    public boolean hasLastKnownContainerTokenMasterKey() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getLastKnownContainerTokenMasterKey() {
      return lastKnownContainerTokenMasterKey_;
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getLastKnownContainerTokenMasterKeyOrBuilder() {
      return lastKnownContainerTokenMasterKey_;
    }

    // optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
    public static final int LAST_KNOWN_NM_TOKEN_MASTER_KEY_FIELD_NUMBER = 3;
    private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto lastKnownNmTokenMasterKey_;
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
     */
    public boolean hasLastKnownNmTokenMasterKey() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getLastKnownNmTokenMasterKey() {
      return lastKnownNmTokenMasterKey_;
    }
    /**
     * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getLastKnownNmTokenMasterKeyOrBuilder() {
      return lastKnownNmTokenMasterKey_;
    }

    // optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
    public static final int NODELABELS_FIELD_NUMBER = 4;
    private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto nodeLabels_;
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
     */
    public boolean hasNodeLabels() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getNodeLabels() {
      return nodeLabels_;
    }
    /**
     * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder getNodeLabelsOrBuilder() {
      return nodeLabels_;
    }

    // repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
    public static final int LOG_AGGREGATION_REPORTS_FOR_APPS_FIELD_NUMBER = 5;
    private java.util.List logAggregationReportsForApps_;
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    public java.util.List getLogAggregationReportsForAppsList() {
      return logAggregationReportsForApps_;
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    public java.util.List 
        getLogAggregationReportsForAppsOrBuilderList() {
      return logAggregationReportsForApps_;
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    public int getLogAggregationReportsForAppsCount() {
      return logAggregationReportsForApps_.size();
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getLogAggregationReportsForApps(int index) {
      return logAggregationReportsForApps_.get(index);
    }
    /**
     * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder getLogAggregationReportsForAppsOrBuilder(
        int index) {
      return logAggregationReportsForApps_.get(index);
    }

    // repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
    public static final int REGISTERING_COLLECTORS_FIELD_NUMBER = 6;
    private java.util.List registeringCollectors_;
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    public java.util.List getRegisteringCollectorsList() {
      return registeringCollectors_;
    }
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    public java.util.List 
        getRegisteringCollectorsOrBuilderList() {
      return registeringCollectors_;
    }
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    public int getRegisteringCollectorsCount() {
      return registeringCollectors_.size();
    }
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getRegisteringCollectors(int index) {
      return registeringCollectors_.get(index);
    }
    /**
     * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getRegisteringCollectorsOrBuilder(
        int index) {
      return registeringCollectors_.get(index);
    }

    // optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
    public static final int NODEATTRIBUTES_FIELD_NUMBER = 7;
    private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto nodeAttributes_;
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
     */
    public boolean hasNodeAttributes() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getNodeAttributes() {
      return nodeAttributes_;
    }
    /**
     * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
     */
    public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder getNodeAttributesOrBuilder() {
      return nodeAttributes_;
    }

    private void initFields() {
      nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
      lastKnownContainerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      lastKnownNmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
      logAggregationReportsForApps_ = java.util.Collections.emptyList();
      registeringCollectors_ = java.util.Collections.emptyList();
      nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (hasNodeStatus()) {
        if (!getNodeStatus().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getRegisteringCollectorsCount(); i++) {
        if (!getRegisteringCollectors(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (hasNodeAttributes()) {
        if (!getNodeAttributes().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, nodeStatus_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, lastKnownContainerTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(3, lastKnownNmTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(4, nodeLabels_);
      }
      for (int i = 0; i < logAggregationReportsForApps_.size(); i++) {
        output.writeMessage(5, logAggregationReportsForApps_.get(i));
      }
      for (int i = 0; i < registeringCollectors_.size(); i++) {
        output.writeMessage(6, registeringCollectors_.get(i));
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeMessage(7, nodeAttributes_);
      }
      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, nodeStatus_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, lastKnownContainerTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, lastKnownNmTokenMasterKey_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, nodeLabels_);
      }
      for (int i = 0; i < logAggregationReportsForApps_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, logAggregationReportsForApps_.get(i));
      }
      for (int i = 0; i < registeringCollectors_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, registeringCollectors_.get(i));
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, nodeAttributes_);
      }
      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.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto) obj;

      boolean result = true;
      result = result && (hasNodeStatus() == other.hasNodeStatus());
      if (hasNodeStatus()) {
        result = result && getNodeStatus()
            .equals(other.getNodeStatus());
      }
      result = result && (hasLastKnownContainerTokenMasterKey() == other.hasLastKnownContainerTokenMasterKey());
      if (hasLastKnownContainerTokenMasterKey()) {
        result = result && getLastKnownContainerTokenMasterKey()
            .equals(other.getLastKnownContainerTokenMasterKey());
      }
      result = result && (hasLastKnownNmTokenMasterKey() == other.hasLastKnownNmTokenMasterKey());
      if (hasLastKnownNmTokenMasterKey()) {
        result = result && getLastKnownNmTokenMasterKey()
            .equals(other.getLastKnownNmTokenMasterKey());
      }
      result = result && (hasNodeLabels() == other.hasNodeLabels());
      if (hasNodeLabels()) {
        result = result && getNodeLabels()
            .equals(other.getNodeLabels());
      }
      result = result && getLogAggregationReportsForAppsList()
          .equals(other.getLogAggregationReportsForAppsList());
      result = result && getRegisteringCollectorsList()
          .equals(other.getRegisteringCollectorsList());
      result = result && (hasNodeAttributes() == other.hasNodeAttributes());
      if (hasNodeAttributes()) {
        result = result && getNodeAttributes()
            .equals(other.getNodeAttributes());
      }
      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 (hasNodeStatus()) {
        hash = (37 * hash) + NODE_STATUS_FIELD_NUMBER;
        hash = (53 * hash) + getNodeStatus().hashCode();
      }
      if (hasLastKnownContainerTokenMasterKey()) {
        hash = (37 * hash) + LAST_KNOWN_CONTAINER_TOKEN_MASTER_KEY_FIELD_NUMBER;
        hash = (53 * hash) + getLastKnownContainerTokenMasterKey().hashCode();
      }
      if (hasLastKnownNmTokenMasterKey()) {
        hash = (37 * hash) + LAST_KNOWN_NM_TOKEN_MASTER_KEY_FIELD_NUMBER;
        hash = (53 * hash) + getLastKnownNmTokenMasterKey().hashCode();
      }
      if (hasNodeLabels()) {
        hash = (37 * hash) + NODELABELS_FIELD_NUMBER;
        hash = (53 * hash) + getNodeLabels().hashCode();
      }
      if (getLogAggregationReportsForAppsCount() > 0) {
        hash = (37 * hash) + LOG_AGGREGATION_REPORTS_FOR_APPS_FIELD_NUMBER;
        hash = (53 * hash) + getLogAggregationReportsForAppsList().hashCode();
      }
      if (getRegisteringCollectorsCount() > 0) {
        hash = (37 * hash) + REGISTERING_COLLECTORS_FIELD_NUMBER;
        hash = (53 * hash) + getRegisteringCollectorsList().hashCode();
      }
      if (hasNodeAttributes()) {
        hash = (37 * hash) + NODEATTRIBUTES_FIELD_NUMBER;
        hash = (53 * hash) + getNodeAttributes().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatRequestProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto.Builder.class);
      }

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

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getNodeStatusFieldBuilder();
          getLastKnownContainerTokenMasterKeyFieldBuilder();
          getLastKnownNmTokenMasterKeyFieldBuilder();
          getNodeLabelsFieldBuilder();
          getLogAggregationReportsForAppsFieldBuilder();
          getRegisteringCollectorsFieldBuilder();
          getNodeAttributesFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (nodeStatusBuilder_ == null) {
          nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
        } else {
          nodeStatusBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          lastKnownContainerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
        } else {
          lastKnownContainerTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          lastKnownNmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
        } else {
          lastKnownNmTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
        } else {
          nodeLabelsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        if (logAggregationReportsForAppsBuilder_ == null) {
          logAggregationReportsForApps_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          logAggregationReportsForAppsBuilder_.clear();
        }
        if (registeringCollectorsBuilder_ == null) {
          registeringCollectors_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000020);
        } else {
          registeringCollectorsBuilder_.clear();
        }
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
        } else {
          nodeAttributesBuilder_.clear();
        }
        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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatRequestProto_descriptor;
      }

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (nodeStatusBuilder_ == null) {
          result.nodeStatus_ = nodeStatus_;
        } else {
          result.nodeStatus_ = nodeStatusBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          result.lastKnownContainerTokenMasterKey_ = lastKnownContainerTokenMasterKey_;
        } else {
          result.lastKnownContainerTokenMasterKey_ = lastKnownContainerTokenMasterKeyBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          result.lastKnownNmTokenMasterKey_ = lastKnownNmTokenMasterKey_;
        } else {
          result.lastKnownNmTokenMasterKey_ = lastKnownNmTokenMasterKeyBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (nodeLabelsBuilder_ == null) {
          result.nodeLabels_ = nodeLabels_;
        } else {
          result.nodeLabels_ = nodeLabelsBuilder_.build();
        }
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010)) {
            logAggregationReportsForApps_ = java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.logAggregationReportsForApps_ = logAggregationReportsForApps_;
        } else {
          result.logAggregationReportsForApps_ = logAggregationReportsForAppsBuilder_.build();
        }
        if (registeringCollectorsBuilder_ == null) {
          if (((bitField0_ & 0x00000020) == 0x00000020)) {
            registeringCollectors_ = java.util.Collections.unmodifiableList(registeringCollectors_);
            bitField0_ = (bitField0_ & ~0x00000020);
          }
          result.registeringCollectors_ = registeringCollectors_;
        } else {
          result.registeringCollectors_ = registeringCollectorsBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000010;
        }
        if (nodeAttributesBuilder_ == null) {
          result.nodeAttributes_ = nodeAttributes_;
        } else {
          result.nodeAttributes_ = nodeAttributesBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto.getDefaultInstance()) return this;
        if (other.hasNodeStatus()) {
          mergeNodeStatus(other.getNodeStatus());
        }
        if (other.hasLastKnownContainerTokenMasterKey()) {
          mergeLastKnownContainerTokenMasterKey(other.getLastKnownContainerTokenMasterKey());
        }
        if (other.hasLastKnownNmTokenMasterKey()) {
          mergeLastKnownNmTokenMasterKey(other.getLastKnownNmTokenMasterKey());
        }
        if (other.hasNodeLabels()) {
          mergeNodeLabels(other.getNodeLabels());
        }
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (!other.logAggregationReportsForApps_.isEmpty()) {
            if (logAggregationReportsForApps_.isEmpty()) {
              logAggregationReportsForApps_ = other.logAggregationReportsForApps_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensureLogAggregationReportsForAppsIsMutable();
              logAggregationReportsForApps_.addAll(other.logAggregationReportsForApps_);
            }
            onChanged();
          }
        } else {
          if (!other.logAggregationReportsForApps_.isEmpty()) {
            if (logAggregationReportsForAppsBuilder_.isEmpty()) {
              logAggregationReportsForAppsBuilder_.dispose();
              logAggregationReportsForAppsBuilder_ = null;
              logAggregationReportsForApps_ = other.logAggregationReportsForApps_;
              bitField0_ = (bitField0_ & ~0x00000010);
              logAggregationReportsForAppsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getLogAggregationReportsForAppsFieldBuilder() : null;
            } else {
              logAggregationReportsForAppsBuilder_.addAllMessages(other.logAggregationReportsForApps_);
            }
          }
        }
        if (registeringCollectorsBuilder_ == null) {
          if (!other.registeringCollectors_.isEmpty()) {
            if (registeringCollectors_.isEmpty()) {
              registeringCollectors_ = other.registeringCollectors_;
              bitField0_ = (bitField0_ & ~0x00000020);
            } else {
              ensureRegisteringCollectorsIsMutable();
              registeringCollectors_.addAll(other.registeringCollectors_);
            }
            onChanged();
          }
        } else {
          if (!other.registeringCollectors_.isEmpty()) {
            if (registeringCollectorsBuilder_.isEmpty()) {
              registeringCollectorsBuilder_.dispose();
              registeringCollectorsBuilder_ = null;
              registeringCollectors_ = other.registeringCollectors_;
              bitField0_ = (bitField0_ & ~0x00000020);
              registeringCollectorsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getRegisteringCollectorsFieldBuilder() : null;
            } else {
              registeringCollectorsBuilder_.addAllMessages(other.registeringCollectors_);
            }
          }
        }
        if (other.hasNodeAttributes()) {
          mergeNodeAttributes(other.getNodeAttributes());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (hasNodeStatus()) {
          if (!getNodeStatus().isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getRegisteringCollectorsCount(); i++) {
          if (!getRegisteringCollectors(i).isInitialized()) {
            
            return false;
          }
        }
        if (hasNodeAttributes()) {
          if (!getNodeAttributes().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.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.NodeStatusProto node_status = 1;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder> nodeStatusBuilder_;
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public boolean hasNodeStatus() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto getNodeStatus() {
        if (nodeStatusBuilder_ == null) {
          return nodeStatus_;
        } else {
          return nodeStatusBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public Builder setNodeStatus(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto value) {
        if (nodeStatusBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeStatus_ = value;
          onChanged();
        } else {
          nodeStatusBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public Builder setNodeStatus(
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder builderForValue) {
        if (nodeStatusBuilder_ == null) {
          nodeStatus_ = builderForValue.build();
          onChanged();
        } else {
          nodeStatusBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public Builder mergeNodeStatus(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto value) {
        if (nodeStatusBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              nodeStatus_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance()) {
            nodeStatus_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.newBuilder(nodeStatus_).mergeFrom(value).buildPartial();
          } else {
            nodeStatus_ = value;
          }
          onChanged();
        } else {
          nodeStatusBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public Builder clearNodeStatus() {
        if (nodeStatusBuilder_ == null) {
          nodeStatus_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.getDefaultInstance();
          onChanged();
        } else {
          nodeStatusBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder getNodeStatusBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getNodeStatusFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder getNodeStatusOrBuilder() {
        if (nodeStatusBuilder_ != null) {
          return nodeStatusBuilder_.getMessageOrBuilder();
        } else {
          return nodeStatus_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeStatusProto node_status = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder> 
          getNodeStatusFieldBuilder() {
        if (nodeStatusBuilder_ == null) {
          nodeStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder>(
                  nodeStatus_,
                  getParentForChildren(),
                  isClean());
          nodeStatus_ = null;
        }
        return nodeStatusBuilder_;
      }

      // optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto lastKnownContainerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> lastKnownContainerTokenMasterKeyBuilder_;
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public boolean hasLastKnownContainerTokenMasterKey() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getLastKnownContainerTokenMasterKey() {
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          return lastKnownContainerTokenMasterKey_;
        } else {
          return lastKnownContainerTokenMasterKeyBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public Builder setLastKnownContainerTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          lastKnownContainerTokenMasterKey_ = value;
          onChanged();
        } else {
          lastKnownContainerTokenMasterKeyBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public Builder setLastKnownContainerTokenMasterKey(
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) {
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          lastKnownContainerTokenMasterKey_ = builderForValue.build();
          onChanged();
        } else {
          lastKnownContainerTokenMasterKeyBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public Builder mergeLastKnownContainerTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              lastKnownContainerTokenMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) {
            lastKnownContainerTokenMasterKey_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(lastKnownContainerTokenMasterKey_).mergeFrom(value).buildPartial();
          } else {
            lastKnownContainerTokenMasterKey_ = value;
          }
          onChanged();
        } else {
          lastKnownContainerTokenMasterKeyBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public Builder clearLastKnownContainerTokenMasterKey() {
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          lastKnownContainerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
          onChanged();
        } else {
          lastKnownContainerTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getLastKnownContainerTokenMasterKeyBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getLastKnownContainerTokenMasterKeyFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getLastKnownContainerTokenMasterKeyOrBuilder() {
        if (lastKnownContainerTokenMasterKeyBuilder_ != null) {
          return lastKnownContainerTokenMasterKeyBuilder_.getMessageOrBuilder();
        } else {
          return lastKnownContainerTokenMasterKey_;
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_container_token_master_key = 2;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> 
          getLastKnownContainerTokenMasterKeyFieldBuilder() {
        if (lastKnownContainerTokenMasterKeyBuilder_ == null) {
          lastKnownContainerTokenMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder>(
                  lastKnownContainerTokenMasterKey_,
                  getParentForChildren(),
                  isClean());
          lastKnownContainerTokenMasterKey_ = null;
        }
        return lastKnownContainerTokenMasterKeyBuilder_;
      }

      // optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
      private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto lastKnownNmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> lastKnownNmTokenMasterKeyBuilder_;
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public boolean hasLastKnownNmTokenMasterKey() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getLastKnownNmTokenMasterKey() {
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          return lastKnownNmTokenMasterKey_;
        } else {
          return lastKnownNmTokenMasterKeyBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public Builder setLastKnownNmTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          lastKnownNmTokenMasterKey_ = value;
          onChanged();
        } else {
          lastKnownNmTokenMasterKeyBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public Builder setLastKnownNmTokenMasterKey(
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) {
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          lastKnownNmTokenMasterKey_ = builderForValue.build();
          onChanged();
        } else {
          lastKnownNmTokenMasterKeyBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public Builder mergeLastKnownNmTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) {
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              lastKnownNmTokenMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) {
            lastKnownNmTokenMasterKey_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(lastKnownNmTokenMasterKey_).mergeFrom(value).buildPartial();
          } else {
            lastKnownNmTokenMasterKey_ = value;
          }
          onChanged();
        } else {
          lastKnownNmTokenMasterKeyBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public Builder clearLastKnownNmTokenMasterKey() {
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          lastKnownNmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance();
          onChanged();
        } else {
          lastKnownNmTokenMasterKeyBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getLastKnownNmTokenMasterKeyBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getLastKnownNmTokenMasterKeyFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getLastKnownNmTokenMasterKeyOrBuilder() {
        if (lastKnownNmTokenMasterKeyBuilder_ != null) {
          return lastKnownNmTokenMasterKeyBuilder_.getMessageOrBuilder();
        } else {
          return lastKnownNmTokenMasterKey_;
        }
      }
      /**
       * optional .hadoop.yarn.MasterKeyProto last_known_nm_token_master_key = 3;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> 
          getLastKnownNmTokenMasterKeyFieldBuilder() {
        if (lastKnownNmTokenMasterKeyBuilder_ == null) {
          lastKnownNmTokenMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder>(
                  lastKnownNmTokenMasterKey_,
                  getParentForChildren(),
                  isClean());
          lastKnownNmTokenMasterKey_ = null;
        }
        return lastKnownNmTokenMasterKeyBuilder_;
      }

      // optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
      private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder> nodeLabelsBuilder_;
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public boolean hasNodeLabels() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto getNodeLabels() {
        if (nodeLabelsBuilder_ == null) {
          return nodeLabels_;
        } else {
          return nodeLabelsBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public Builder setNodeLabels(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeLabels_ = value;
          onChanged();
        } else {
          nodeLabelsBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public Builder setNodeLabels(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder builderForValue) {
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = builderForValue.build();
          onChanged();
        } else {
          nodeLabelsBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public Builder mergeNodeLabels(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto value) {
        if (nodeLabelsBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              nodeLabels_ != org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance()) {
            nodeLabels_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.newBuilder(nodeLabels_).mergeFrom(value).buildPartial();
          } else {
            nodeLabels_ = value;
          }
          onChanged();
        } else {
          nodeLabelsBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public Builder clearNodeLabels() {
        if (nodeLabelsBuilder_ == null) {
          nodeLabels_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.getDefaultInstance();
          onChanged();
        } else {
          nodeLabelsBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder getNodeLabelsBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getNodeLabelsFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder getNodeLabelsOrBuilder() {
        if (nodeLabelsBuilder_ != null) {
          return nodeLabelsBuilder_.getMessageOrBuilder();
        } else {
          return nodeLabels_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeLabelsProto nodeLabels = 4;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder> 
          getNodeLabelsFieldBuilder() {
        if (nodeLabelsBuilder_ == null) {
          nodeLabelsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProtoOrBuilder>(
                  nodeLabels_,
                  getParentForChildren(),
                  isClean());
          nodeLabels_ = null;
        }
        return nodeLabelsBuilder_;
      }

      // repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
      private java.util.List logAggregationReportsForApps_ =
        java.util.Collections.emptyList();
      private void ensureLogAggregationReportsForAppsIsMutable() {
        if (!((bitField0_ & 0x00000010) == 0x00000010)) {
          logAggregationReportsForApps_ = new java.util.ArrayList(logAggregationReportsForApps_);
          bitField0_ |= 0x00000010;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder> logAggregationReportsForAppsBuilder_;

      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public java.util.List getLogAggregationReportsForAppsList() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
        } else {
          return logAggregationReportsForAppsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public int getLogAggregationReportsForAppsCount() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return logAggregationReportsForApps_.size();
        } else {
          return logAggregationReportsForAppsBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getLogAggregationReportsForApps(int index) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return logAggregationReportsForApps_.get(index);
        } else {
          return logAggregationReportsForAppsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder setLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto value) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.set(index, value);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder setLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder builderForValue) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.set(index, builderForValue.build());
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder addLogAggregationReportsForApps(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto value) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(value);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder addLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto value) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(index, value);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder addLogAggregationReportsForApps(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder builderForValue) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(builderForValue.build());
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder addLogAggregationReportsForApps(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder builderForValue) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.add(index, builderForValue.build());
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder addAllLogAggregationReportsForApps(
          java.lang.Iterable values) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          super.addAll(values, logAggregationReportsForApps_);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder clearLogAggregationReportsForApps() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          logAggregationReportsForApps_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public Builder removeLogAggregationReportsForApps(int index) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          ensureLogAggregationReportsForAppsIsMutable();
          logAggregationReportsForApps_.remove(index);
          onChanged();
        } else {
          logAggregationReportsForAppsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder getLogAggregationReportsForAppsBuilder(
          int index) {
        return getLogAggregationReportsForAppsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder getLogAggregationReportsForAppsOrBuilder(
          int index) {
        if (logAggregationReportsForAppsBuilder_ == null) {
          return logAggregationReportsForApps_.get(index);  } else {
          return logAggregationReportsForAppsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public java.util.List 
           getLogAggregationReportsForAppsOrBuilderList() {
        if (logAggregationReportsForAppsBuilder_ != null) {
          return logAggregationReportsForAppsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(logAggregationReportsForApps_);
        }
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder addLogAggregationReportsForAppsBuilder() {
        return getLogAggregationReportsForAppsFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder addLogAggregationReportsForAppsBuilder(
          int index) {
        return getLogAggregationReportsForAppsFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.LogAggregationReportProto log_aggregation_reports_for_apps = 5;
       */
      public java.util.List 
           getLogAggregationReportsForAppsBuilderList() {
        return getLogAggregationReportsForAppsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder> 
          getLogAggregationReportsForAppsFieldBuilder() {
        if (logAggregationReportsForAppsBuilder_ == null) {
          logAggregationReportsForAppsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProtoOrBuilder>(
                  logAggregationReportsForApps_,
                  ((bitField0_ & 0x00000010) == 0x00000010),
                  getParentForChildren(),
                  isClean());
          logAggregationReportsForApps_ = null;
        }
        return logAggregationReportsForAppsBuilder_;
      }

      // repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
      private java.util.List registeringCollectors_ =
        java.util.Collections.emptyList();
      private void ensureRegisteringCollectorsIsMutable() {
        if (!((bitField0_ & 0x00000020) == 0x00000020)) {
          registeringCollectors_ = new java.util.ArrayList(registeringCollectors_);
          bitField0_ |= 0x00000020;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder> registeringCollectorsBuilder_;

      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public java.util.List getRegisteringCollectorsList() {
        if (registeringCollectorsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(registeringCollectors_);
        } else {
          return registeringCollectorsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public int getRegisteringCollectorsCount() {
        if (registeringCollectorsBuilder_ == null) {
          return registeringCollectors_.size();
        } else {
          return registeringCollectorsBuilder_.getCount();
        }
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getRegisteringCollectors(int index) {
        if (registeringCollectorsBuilder_ == null) {
          return registeringCollectors_.get(index);
        } else {
          return registeringCollectorsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder setRegisteringCollectors(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) {
        if (registeringCollectorsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.set(index, value);
          onChanged();
        } else {
          registeringCollectorsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder setRegisteringCollectors(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) {
        if (registeringCollectorsBuilder_ == null) {
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.set(index, builderForValue.build());
          onChanged();
        } else {
          registeringCollectorsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder addRegisteringCollectors(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) {
        if (registeringCollectorsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.add(value);
          onChanged();
        } else {
          registeringCollectorsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder addRegisteringCollectors(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) {
        if (registeringCollectorsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.add(index, value);
          onChanged();
        } else {
          registeringCollectorsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder addRegisteringCollectors(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) {
        if (registeringCollectorsBuilder_ == null) {
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.add(builderForValue.build());
          onChanged();
        } else {
          registeringCollectorsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder addRegisteringCollectors(
          int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) {
        if (registeringCollectorsBuilder_ == null) {
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.add(index, builderForValue.build());
          onChanged();
        } else {
          registeringCollectorsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder addAllRegisteringCollectors(
          java.lang.Iterable values) {
        if (registeringCollectorsBuilder_ == null) {
          ensureRegisteringCollectorsIsMutable();
          super.addAll(values, registeringCollectors_);
          onChanged();
        } else {
          registeringCollectorsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder clearRegisteringCollectors() {
        if (registeringCollectorsBuilder_ == null) {
          registeringCollectors_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000020);
          onChanged();
        } else {
          registeringCollectorsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public Builder removeRegisteringCollectors(int index) {
        if (registeringCollectorsBuilder_ == null) {
          ensureRegisteringCollectorsIsMutable();
          registeringCollectors_.remove(index);
          onChanged();
        } else {
          registeringCollectorsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder getRegisteringCollectorsBuilder(
          int index) {
        return getRegisteringCollectorsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getRegisteringCollectorsOrBuilder(
          int index) {
        if (registeringCollectorsBuilder_ == null) {
          return registeringCollectors_.get(index);  } else {
          return registeringCollectorsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public java.util.List 
           getRegisteringCollectorsOrBuilderList() {
        if (registeringCollectorsBuilder_ != null) {
          return registeringCollectorsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(registeringCollectors_);
        }
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder addRegisteringCollectorsBuilder() {
        return getRegisteringCollectorsFieldBuilder().addBuilder(
            org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder addRegisteringCollectorsBuilder(
          int index) {
        return getRegisteringCollectorsFieldBuilder().addBuilder(
            index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance());
      }
      /**
       * repeated .hadoop.yarn.AppCollectorDataProto registering_collectors = 6;
       */
      public java.util.List 
           getRegisteringCollectorsBuilderList() {
        return getRegisteringCollectorsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder> 
          getRegisteringCollectorsFieldBuilder() {
        if (registeringCollectorsBuilder_ == null) {
          registeringCollectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder>(
                  registeringCollectors_,
                  ((bitField0_ & 0x00000020) == 0x00000020),
                  getParentForChildren(),
                  isClean());
          registeringCollectors_ = null;
        }
        return registeringCollectorsBuilder_;
      }

      // optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
      private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder> nodeAttributesBuilder_;
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public boolean hasNodeAttributes() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto getNodeAttributes() {
        if (nodeAttributesBuilder_ == null) {
          return nodeAttributes_;
        } else {
          return nodeAttributesBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public Builder setNodeAttributes(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          nodeAttributes_ = value;
          onChanged();
        } else {
          nodeAttributesBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public Builder setNodeAttributes(
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder builderForValue) {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = builderForValue.build();
          onChanged();
        } else {
          nodeAttributesBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public Builder mergeNodeAttributes(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto value) {
        if (nodeAttributesBuilder_ == null) {
          if (((bitField0_ & 0x00000040) == 0x00000040) &&
              nodeAttributes_ != org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance()) {
            nodeAttributes_ =
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.newBuilder(nodeAttributes_).mergeFrom(value).buildPartial();
          } else {
            nodeAttributes_ = value;
          }
          onChanged();
        } else {
          nodeAttributesBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000040;
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public Builder clearNodeAttributes() {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributes_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.getDefaultInstance();
          onChanged();
        } else {
          nodeAttributesBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder getNodeAttributesBuilder() {
        bitField0_ |= 0x00000040;
        onChanged();
        return getNodeAttributesFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder getNodeAttributesOrBuilder() {
        if (nodeAttributesBuilder_ != null) {
          return nodeAttributesBuilder_.getMessageOrBuilder();
        } else {
          return nodeAttributes_;
        }
      }
      /**
       * optional .hadoop.yarn.NodeAttributesProto nodeAttributes = 7;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder> 
          getNodeAttributesFieldBuilder() {
        if (nodeAttributesBuilder_ == null) {
          nodeAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeAttributesProtoOrBuilder>(
                  nodeAttributes_,
                  getParentForChildren(),
                  isClean());
          nodeAttributes_ = null;
        }
        return nodeAttributesBuilder_;
      }

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

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

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

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

    // optional .hadoop.yarn.ApplicationIdProto application_id = 1;
    /**
     * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
     */
    boolean hasApplicationId();
    /**
     * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
    /**
     * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();

    // optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
    /**
     * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
     */
    boolean hasLogAggregationStatus();
    /**
     * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto getLogAggregationStatus();

    // optional string diagnostics = 3 [default = "N/A"];
    /**
     * optional string diagnostics = 3 [default = "N/A"];
     */
    boolean hasDiagnostics();
    /**
     * optional string diagnostics = 3 [default = "N/A"];
     */
    java.lang.String getDiagnostics();
    /**
     * optional string diagnostics = 3 [default = "N/A"];
     */
    com.google.protobuf.ByteString
        getDiagnosticsBytes();
  }
  /**
   * Protobuf type {@code hadoop.yarn.LogAggregationReportProto}
   */
  public static final class LogAggregationReportProto extends
      com.google.protobuf.GeneratedMessage
      implements LogAggregationReportProtoOrBuilder {
    // Use LogAggregationReportProto.newBuilder() to construct.
    private LogAggregationReportProto(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private LogAggregationReportProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public LogAggregationReportProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private LogAggregationReportProto(
        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.ApplicationIdProto.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = applicationId_.toBuilder();
              }
              applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(applicationId_);
                applicationId_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 16: {
              int rawValue = input.readEnum();
              org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto value = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.valueOf(rawValue);
              if (value == null) {
                unknownFields.mergeVarintField(2, rawValue);
              } else {
                bitField0_ |= 0x00000002;
                logAggregationStatus_ = value;
              }
              break;
            }
            case 26: {
              bitField0_ |= 0x00000004;
              diagnostics_ = 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_LogAggregationReportProto_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_LogAggregationReportProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .hadoop.yarn.ApplicationIdProto application_id = 1;
    public static final int APPLICATION_ID_FIELD_NUMBER = 1;
    private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
    /**
     * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
     */
    public boolean hasApplicationId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
      return applicationId_;
    }
    /**
     * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
      return applicationId_;
    }

    // optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
    public static final int LOG_AGGREGATION_STATUS_FIELD_NUMBER = 2;
    private org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto logAggregationStatus_;
    /**
     * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
     */
    public boolean hasLogAggregationStatus() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
     */
    public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto getLogAggregationStatus() {
      return logAggregationStatus_;
    }

    // optional string diagnostics = 3 [default = "N/A"];
    public static final int DIAGNOSTICS_FIELD_NUMBER = 3;
    private java.lang.Object diagnostics_;
    /**
     * optional string diagnostics = 3 [default = "N/A"];
     */
    public boolean hasDiagnostics() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional string diagnostics = 3 [default = "N/A"];
     */
    public java.lang.String getDiagnostics() {
      java.lang.Object ref = diagnostics_;
      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()) {
          diagnostics_ = s;
        }
        return s;
      }
    }
    /**
     * optional string diagnostics = 3 [default = "N/A"];
     */
    public com.google.protobuf.ByteString
        getDiagnosticsBytes() {
      java.lang.Object ref = diagnostics_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        diagnostics_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
      logAggregationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.LOG_DISABLED;
      diagnostics_ = "N/A";
    }
    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, applicationId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeEnum(2, logAggregationStatus_.getNumber());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBytes(3, getDiagnosticsBytes());
      }
      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, applicationId_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, logAggregationStatus_.getNumber());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, getDiagnosticsBytes());
      }
      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.YarnServerCommonServiceProtos.LogAggregationReportProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto) obj;

      boolean result = true;
      result = result && (hasApplicationId() == other.hasApplicationId());
      if (hasApplicationId()) {
        result = result && getApplicationId()
            .equals(other.getApplicationId());
      }
      result = result && (hasLogAggregationStatus() == other.hasLogAggregationStatus());
      if (hasLogAggregationStatus()) {
        result = result &&
            (getLogAggregationStatus() == other.getLogAggregationStatus());
      }
      result = result && (hasDiagnostics() == other.hasDiagnostics());
      if (hasDiagnostics()) {
        result = result && getDiagnostics()
            .equals(other.getDiagnostics());
      }
      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 (hasApplicationId()) {
        hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
        hash = (53 * hash) + getApplicationId().hashCode();
      }
      if (hasLogAggregationStatus()) {
        hash = (37 * hash) + LOG_AGGREGATION_STATUS_FIELD_NUMBER;
        hash = (53 * hash) + hashEnum(getLogAggregationStatus());
      }
      if (hasDiagnostics()) {
        hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER;
        hash = (53 * hash) + getDiagnostics().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_LogAggregationReportProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.Builder.class);
      }

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

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

      public Builder clear() {
        super.clear();
        if (applicationIdBuilder_ == null) {
          applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
        } else {
          applicationIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        logAggregationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.LOG_DISABLED;
        bitField0_ = (bitField0_ & ~0x00000002);
        diagnostics_ = "N/A";
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

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

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto getDefaultInstanceForType() {
        return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.getDefaultInstance();
      }

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

      public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto buildPartial() {
        org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (applicationIdBuilder_ == null) {
          result.applicationId_ = applicationId_;
        } else {
          result.applicationId_ = applicationIdBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.logAggregationStatus_ = logAggregationStatus_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.diagnostics_ = diagnostics_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

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

      public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto other) {
        if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto.getDefaultInstance()) return this;
        if (other.hasApplicationId()) {
          mergeApplicationId(other.getApplicationId());
        }
        if (other.hasLogAggregationStatus()) {
          setLogAggregationStatus(other.getLogAggregationStatus());
        }
        if (other.hasDiagnostics()) {
          bitField0_ |= 0x00000004;
          diagnostics_ = other.diagnostics_;
          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.YarnServerCommonServiceProtos.LogAggregationReportProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .hadoop.yarn.ApplicationIdProto application_id = 1;
      private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public boolean hasApplicationId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
        if (applicationIdBuilder_ == null) {
          return applicationId_;
        } else {
          return applicationIdBuilder_.getMessage();
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public Builder setApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
        if (applicationIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          applicationId_ = value;
          onChanged();
        } else {
          applicationIdBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public Builder setApplicationId(
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
        if (applicationIdBuilder_ == null) {
          applicationId_ = builderForValue.build();
          onChanged();
        } else {
          applicationIdBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
        if (applicationIdBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
            applicationId_ =
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
          } else {
            applicationId_ = value;
          }
          onChanged();
        } else {
          applicationIdBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public Builder clearApplicationId() {
        if (applicationIdBuilder_ == null) {
          applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
          onChanged();
        } else {
          applicationIdBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getApplicationIdFieldBuilder().getBuilder();
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
        if (applicationIdBuilder_ != null) {
          return applicationIdBuilder_.getMessageOrBuilder();
        } else {
          return applicationId_;
        }
      }
      /**
       * optional .hadoop.yarn.ApplicationIdProto application_id = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> 
          getApplicationIdFieldBuilder() {
        if (applicationIdBuilder_ == null) {
          applicationIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
                  applicationId_,
                  getParentForChildren(),
                  isClean());
          applicationId_ = null;
        }
        return applicationIdBuilder_;
      }

      // optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
      private org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto logAggregationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.LOG_DISABLED;
      /**
       * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
       */
      public boolean hasLogAggregationStatus() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
       */
      public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto getLogAggregationStatus() {
        return logAggregationStatus_;
      }
      /**
       * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
       */
      public Builder setLogAggregationStatus(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        logAggregationStatus_ = value;
        onChanged();
        return this;
      }
      /**
       * optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 2;
       */
      public Builder clearLogAggregationStatus() {
        bitField0_ = (bitField0_ & ~0x00000002);
        logAggregationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.LOG_DISABLED;
        onChanged();
        return this;
      }

      // optional string diagnostics = 3 [default = "N/A"];
      private java.lang.Object diagnostics_ = "N/A";
      /**
       * optional string diagnostics = 3 [default = "N/A"];
       */
      public boolean hasDiagnostics() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional string diagnostics = 3 [default = "N/A"];
       */
      public java.lang.String getDiagnostics() {
        java.lang.Object ref = diagnostics_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          diagnostics_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string diagnostics = 3 [default = "N/A"];
       */
      public com.google.protobuf.ByteString
          getDiagnosticsBytes() {
        java.lang.Object ref = diagnostics_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          diagnostics_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string diagnostics = 3 [default = "N/A"];
       */
      public Builder setDiagnostics(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        diagnostics_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string diagnostics = 3 [default = "N/A"];
       */
      public Builder clearDiagnostics() {
        bitField0_ = (bitField0_ & ~0x00000004);
        diagnostics_ = getDefaultInstance().getDiagnostics();
        onChanged();
        return this;
      }
      /**
       * optional string diagnostics = 3 [default = "N/A"];
       */
      public Builder setDiagnosticsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000004;
        diagnostics_ = value;
        onChanged();
        return this;
      }

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

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

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

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

    // optional int32 response_id = 1;
    /**
     * optional int32 response_id = 1;
     */
    boolean hasResponseId();
    /**
     * optional int32 response_id = 1;
     */
    int getResponseId();

    // optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2;
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2;
     */
    boolean hasContainerTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getContainerTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getContainerTokenMasterKeyOrBuilder();

    // optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3;
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3;
     */
    boolean hasNmTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNmTokenMasterKey();
    /**
     * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNmTokenMasterKeyOrBuilder();

    // optional .hadoop.yarn.NodeActionProto nodeAction = 4;
    /**
     * optional .hadoop.yarn.NodeActionProto nodeAction = 4;
     */
    boolean hasNodeAction();
    /**
     * optional .hadoop.yarn.NodeActionProto nodeAction = 4;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto getNodeAction();

    // repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5;
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5;
     */
    java.util.List 
        getContainersToCleanupList();
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainersToCleanup(int index);
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5;
     */
    int getContainersToCleanupCount();
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5;
     */
    java.util.List 
        getContainersToCleanupOrBuilderList();
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainersToCleanupOrBuilder(
        int index);

    // repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6;
    /**
     * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6;
     */
    java.util.List 
        getApplicationsToCleanupList();
    /**
     * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationsToCleanup(int index);
    /**
     * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6;
     */
    int getApplicationsToCleanupCount();
    /**
     * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6;
     */
    java.util.List 
        getApplicationsToCleanupOrBuilderList();
    /**
     * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationsToCleanupOrBuilder(
        int index);

    // optional int64 nextHeartBeatInterval = 7;
    /**
     * optional int64 nextHeartBeatInterval = 7;
     */
    boolean hasNextHeartBeatInterval();
    /**
     * optional int64 nextHeartBeatInterval = 7;
     */
    long getNextHeartBeatInterval();

    // optional string diagnostics_message = 8;
    /**
     * optional string diagnostics_message = 8;
     */
    boolean hasDiagnosticsMessage();
    /**
     * optional string diagnostics_message = 8;
     */
    java.lang.String getDiagnosticsMessage();
    /**
     * optional string diagnostics_message = 8;
     */
    com.google.protobuf.ByteString
        getDiagnosticsMessageBytes();

    // repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9;
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9;
     */
    java.util.List 
        getContainersToBeRemovedFromNmList();
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainersToBeRemovedFromNm(int index);
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9;
     */
    int getContainersToBeRemovedFromNmCount();
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9;
     */
    java.util.List 
        getContainersToBeRemovedFromNmOrBuilderList();
    /**
     * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9;
     */
    org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainersToBeRemovedFromNmOrBuilder(
        int index);

    // repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10;
    /**
     * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10;
     */
    java.util.List 
        getSystemCredentialsForAppsList();
    /**
     * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto getSystemCredentialsForApps(int index);
    /**
     * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10;
     */
    int getSystemCredentialsForAppsCount();
    /**
     * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10;
     */
    java.util.List 
        getSystemCredentialsForAppsOrBuilderList();
    /**
     * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10;
     */
    org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder getSystemCredentialsForAppsOrBuilder(
        int index);

    // optional bool areNodeLabelsAcceptedByRM = 11 [default = false];
    /**
     * optional bool areNodeLabelsAcceptedByRM = 11 [default = false];
     */
    boolean hasAreNodeLabelsAcceptedByRM();
    /**
     * optional bool areNodeLabelsAcceptedByRM = 11 [default = false];
     */
    boolean getAreNodeLabelsAcceptedByRM();

    // repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12;
    /**
     * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12;
     *
     * 
     * to be deprecated in favour of containers_to_update
     * 
*/ java.util.List getContainersToDecreaseList(); /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersToDecrease(int index); /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ int getContainersToDecreaseCount(); /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ java.util.List getContainersToDecreaseOrBuilderList(); /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersToDecreaseOrBuilder( int index); // repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ java.util.List getContainersToSignalList(); /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto getContainersToSignal(int index); /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ int getContainersToSignalCount(); /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ java.util.List getContainersToSignalOrBuilderList(); /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProtoOrBuilder getContainersToSignalOrBuilder( int index); // optional .hadoop.yarn.ResourceProto resource = 14; /** * optional .hadoop.yarn.ResourceProto resource = 14; */ boolean hasResource(); /** * optional .hadoop.yarn.ResourceProto resource = 14; */ org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource(); /** * optional .hadoop.yarn.ResourceProto resource = 14; */ org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder(); // optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ boolean hasContainerQueuingLimit(); /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto getContainerQueuingLimit(); /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder getContainerQueuingLimitOrBuilder(); // repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ java.util.List getAppCollectorsList(); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getAppCollectors(int index); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ int getAppCollectorsCount(); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ java.util.List getAppCollectorsOrBuilderList(); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getAppCollectorsOrBuilder( int index); // repeated .hadoop.yarn.ContainerProto containers_to_update = 17; /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ java.util.List getContainersToUpdateList(); /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersToUpdate(int index); /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ int getContainersToUpdateCount(); /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ java.util.List getContainersToUpdateOrBuilderList(); /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersToUpdateOrBuilder( int index); // optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ boolean hasAreNodeAttributesAcceptedByRM(); /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ boolean getAreNodeAttributesAcceptedByRM(); } /** * Protobuf type {@code hadoop.yarn.NodeHeartbeatResponseProto} */ public static final class NodeHeartbeatResponseProto extends com.google.protobuf.GeneratedMessage implements NodeHeartbeatResponseProtoOrBuilder { // Use NodeHeartbeatResponseProto.newBuilder() to construct. private NodeHeartbeatResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NodeHeartbeatResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NodeHeartbeatResponseProto defaultInstance; public static NodeHeartbeatResponseProto getDefaultInstance() { return defaultInstance; } public NodeHeartbeatResponseProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeHeartbeatResponseProto( 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 8: { bitField0_ |= 0x00000001; responseId_ = input.readInt32(); break; } case 18: { org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = containerTokenMasterKey_.toBuilder(); } containerTokenMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerTokenMasterKey_); containerTokenMasterKey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = nmTokenMasterKey_.toBuilder(); } nmTokenMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nmTokenMasterKey_); nmTokenMasterKey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { int rawValue = input.readEnum(); org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto value = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; nodeAction_ = value; } break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { containersToCleanup_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } containersToCleanup_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry)); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { applicationsToCleanup_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } applicationsToCleanup_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry)); break; } case 56: { bitField0_ |= 0x00000010; nextHeartBeatInterval_ = input.readInt64(); break; } case 66: { bitField0_ |= 0x00000020; diagnosticsMessage_ = input.readBytes(); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { containersToBeRemovedFromNm_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } containersToBeRemovedFromNm_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry)); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { systemCredentialsForApps_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } systemCredentialsForApps_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.PARSER, extensionRegistry)); break; } case 88: { bitField0_ |= 0x00000040; areNodeLabelsAcceptedByRM_ = input.readBool(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { containersToDecrease_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } containersToDecrease_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry)); break; } case 106: { if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { containersToSignal_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00001000; } containersToSignal_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.PARSER, extensionRegistry)); break; } case 114: { org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { 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_ |= 0x00000080; break; } case 122: { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = containerQueuingLimit_.toBuilder(); } containerQueuingLimit_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerQueuingLimit_); containerQueuingLimit_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 130: { if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { appCollectors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } appCollectors_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.PARSER, extensionRegistry)); break; } case 138: { if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { containersToUpdate_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00010000; } containersToUpdate_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry)); break; } case 144: { bitField0_ |= 0x00000200; areNodeAttributesAcceptedByRM_ = input.readBool(); 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_ & 0x00000010) == 0x00000010)) { containersToCleanup_ = java.util.Collections.unmodifiableList(containersToCleanup_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { applicationsToCleanup_ = java.util.Collections.unmodifiableList(applicationsToCleanup_); } if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { containersToBeRemovedFromNm_ = java.util.Collections.unmodifiableList(containersToBeRemovedFromNm_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { systemCredentialsForApps_ = java.util.Collections.unmodifiableList(systemCredentialsForApps_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { containersToDecrease_ = java.util.Collections.unmodifiableList(containersToDecrease_); } if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { containersToSignal_ = java.util.Collections.unmodifiableList(containersToSignal_); } if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { appCollectors_ = java.util.Collections.unmodifiableList(appCollectors_); } if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { containersToUpdate_ = java.util.Collections.unmodifiableList(containersToUpdate_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NodeHeartbeatResponseProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeHeartbeatResponseProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 response_id = 1; public static final int RESPONSE_ID_FIELD_NUMBER = 1; private int responseId_; /** * optional int32 response_id = 1; */ public boolean hasResponseId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 response_id = 1; */ public int getResponseId() { return responseId_; } // optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; public static final int CONTAINER_TOKEN_MASTER_KEY_FIELD_NUMBER = 2; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto containerTokenMasterKey_; /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public boolean hasContainerTokenMasterKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getContainerTokenMasterKey() { return containerTokenMasterKey_; } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getContainerTokenMasterKeyOrBuilder() { return containerTokenMasterKey_; } // optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; public static final int NM_TOKEN_MASTER_KEY_FIELD_NUMBER = 3; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto nmTokenMasterKey_; /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public boolean hasNmTokenMasterKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNmTokenMasterKey() { return nmTokenMasterKey_; } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNmTokenMasterKeyOrBuilder() { return nmTokenMasterKey_; } // optional .hadoop.yarn.NodeActionProto nodeAction = 4; public static final int NODEACTION_FIELD_NUMBER = 4; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto nodeAction_; /** * optional .hadoop.yarn.NodeActionProto nodeAction = 4; */ public boolean hasNodeAction() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.yarn.NodeActionProto nodeAction = 4; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto getNodeAction() { return nodeAction_; } // repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; public static final int CONTAINERS_TO_CLEANUP_FIELD_NUMBER = 5; private java.util.List containersToCleanup_; /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public java.util.List getContainersToCleanupList() { return containersToCleanup_; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public java.util.List getContainersToCleanupOrBuilderList() { return containersToCleanup_; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public int getContainersToCleanupCount() { return containersToCleanup_.size(); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainersToCleanup(int index) { return containersToCleanup_.get(index); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainersToCleanupOrBuilder( int index) { return containersToCleanup_.get(index); } // repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; public static final int APPLICATIONS_TO_CLEANUP_FIELD_NUMBER = 6; private java.util.List applicationsToCleanup_; /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public java.util.List getApplicationsToCleanupList() { return applicationsToCleanup_; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public java.util.List getApplicationsToCleanupOrBuilderList() { return applicationsToCleanup_; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public int getApplicationsToCleanupCount() { return applicationsToCleanup_.size(); } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationsToCleanup(int index) { return applicationsToCleanup_.get(index); } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationsToCleanupOrBuilder( int index) { return applicationsToCleanup_.get(index); } // optional int64 nextHeartBeatInterval = 7; public static final int NEXTHEARTBEATINTERVAL_FIELD_NUMBER = 7; private long nextHeartBeatInterval_; /** * optional int64 nextHeartBeatInterval = 7; */ public boolean hasNextHeartBeatInterval() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 nextHeartBeatInterval = 7; */ public long getNextHeartBeatInterval() { return nextHeartBeatInterval_; } // optional string diagnostics_message = 8; public static final int DIAGNOSTICS_MESSAGE_FIELD_NUMBER = 8; private java.lang.Object diagnosticsMessage_; /** * optional string diagnostics_message = 8; */ public boolean hasDiagnosticsMessage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string diagnostics_message = 8; */ public java.lang.String getDiagnosticsMessage() { java.lang.Object ref = diagnosticsMessage_; 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()) { diagnosticsMessage_ = s; } return s; } } /** * optional string diagnostics_message = 8; */ public com.google.protobuf.ByteString getDiagnosticsMessageBytes() { java.lang.Object ref = diagnosticsMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diagnosticsMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; public static final int CONTAINERS_TO_BE_REMOVED_FROM_NM_FIELD_NUMBER = 9; private java.util.List containersToBeRemovedFromNm_; /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public java.util.List getContainersToBeRemovedFromNmList() { return containersToBeRemovedFromNm_; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public java.util.List getContainersToBeRemovedFromNmOrBuilderList() { return containersToBeRemovedFromNm_; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public int getContainersToBeRemovedFromNmCount() { return containersToBeRemovedFromNm_.size(); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainersToBeRemovedFromNm(int index) { return containersToBeRemovedFromNm_.get(index); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainersToBeRemovedFromNmOrBuilder( int index) { return containersToBeRemovedFromNm_.get(index); } // repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; public static final int SYSTEM_CREDENTIALS_FOR_APPS_FIELD_NUMBER = 10; private java.util.List systemCredentialsForApps_; /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public java.util.List getSystemCredentialsForAppsList() { return systemCredentialsForApps_; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public java.util.List getSystemCredentialsForAppsOrBuilderList() { return systemCredentialsForApps_; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public int getSystemCredentialsForAppsCount() { return systemCredentialsForApps_.size(); } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto getSystemCredentialsForApps(int index) { return systemCredentialsForApps_.get(index); } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder getSystemCredentialsForAppsOrBuilder( int index) { return systemCredentialsForApps_.get(index); } // optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; public static final int ARENODELABELSACCEPTEDBYRM_FIELD_NUMBER = 11; private boolean areNodeLabelsAcceptedByRM_; /** * optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; */ public boolean hasAreNodeLabelsAcceptedByRM() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; */ public boolean getAreNodeLabelsAcceptedByRM() { return areNodeLabelsAcceptedByRM_; } // repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; public static final int CONTAINERS_TO_DECREASE_FIELD_NUMBER = 12; private java.util.List containersToDecrease_; /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ public java.util.List getContainersToDecreaseList() { return containersToDecrease_; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ public java.util.List getContainersToDecreaseOrBuilderList() { return containersToDecrease_; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ public int getContainersToDecreaseCount() { return containersToDecrease_.size(); } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersToDecrease(int index) { return containersToDecrease_.get(index); } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
     * to be deprecated in favour of containers_to_update
     * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersToDecreaseOrBuilder( int index) { return containersToDecrease_.get(index); } // repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; public static final int CONTAINERS_TO_SIGNAL_FIELD_NUMBER = 13; private java.util.List containersToSignal_; /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public java.util.List getContainersToSignalList() { return containersToSignal_; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public java.util.List getContainersToSignalOrBuilderList() { return containersToSignal_; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public int getContainersToSignalCount() { return containersToSignal_.size(); } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto getContainersToSignal(int index) { return containersToSignal_.get(index); } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProtoOrBuilder getContainersToSignalOrBuilder( int index) { return containersToSignal_.get(index); } // optional .hadoop.yarn.ResourceProto resource = 14; public static final int RESOURCE_FIELD_NUMBER = 14; private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_; /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public boolean hasResource() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() { return resource_; } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() { return resource_; } // optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; public static final int CONTAINER_QUEUING_LIMIT_FIELD_NUMBER = 15; private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto containerQueuingLimit_; /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public boolean hasContainerQueuingLimit() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto getContainerQueuingLimit() { return containerQueuingLimit_; } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder getContainerQueuingLimitOrBuilder() { return containerQueuingLimit_; } // repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; public static final int APP_COLLECTORS_FIELD_NUMBER = 16; private java.util.List appCollectors_; /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public java.util.List getAppCollectorsList() { return appCollectors_; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public java.util.List getAppCollectorsOrBuilderList() { return appCollectors_; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public int getAppCollectorsCount() { return appCollectors_.size(); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getAppCollectors(int index) { return appCollectors_.get(index); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getAppCollectorsOrBuilder( int index) { return appCollectors_.get(index); } // repeated .hadoop.yarn.ContainerProto containers_to_update = 17; public static final int CONTAINERS_TO_UPDATE_FIELD_NUMBER = 17; private java.util.List containersToUpdate_; /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ public java.util.List getContainersToUpdateList() { return containersToUpdate_; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ public java.util.List getContainersToUpdateOrBuilderList() { return containersToUpdate_; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ public int getContainersToUpdateCount() { return containersToUpdate_.size(); } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersToUpdate(int index) { return containersToUpdate_.get(index); } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
     * to be used in place of containers_to_decrease
     * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersToUpdateOrBuilder( int index) { return containersToUpdate_.get(index); } // optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; public static final int ARENODEATTRIBUTESACCEPTEDBYRM_FIELD_NUMBER = 18; private boolean areNodeAttributesAcceptedByRM_; /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ public boolean hasAreNodeAttributesAcceptedByRM() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ public boolean getAreNodeAttributesAcceptedByRM() { return areNodeAttributesAcceptedByRM_; } private void initFields() { responseId_ = 0; containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL; containersToCleanup_ = java.util.Collections.emptyList(); applicationsToCleanup_ = java.util.Collections.emptyList(); nextHeartBeatInterval_ = 0L; diagnosticsMessage_ = ""; containersToBeRemovedFromNm_ = java.util.Collections.emptyList(); systemCredentialsForApps_ = java.util.Collections.emptyList(); areNodeLabelsAcceptedByRM_ = false; containersToDecrease_ = java.util.Collections.emptyList(); containersToSignal_ = java.util.Collections.emptyList(); resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance(); containerQueuingLimit_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance(); appCollectors_ = java.util.Collections.emptyList(); containersToUpdate_ = java.util.Collections.emptyList(); areNodeAttributesAcceptedByRM_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getContainersToDecreaseCount(); i++) { if (!getContainersToDecrease(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getContainersToSignalCount(); i++) { if (!getContainersToSignal(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasResource()) { if (!getResource().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAppCollectorsCount(); i++) { if (!getAppCollectors(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getContainersToUpdateCount(); i++) { if (!getContainersToUpdate(i).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.writeInt32(1, responseId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, containerTokenMasterKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, nmTokenMasterKey_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(4, nodeAction_.getNumber()); } for (int i = 0; i < containersToCleanup_.size(); i++) { output.writeMessage(5, containersToCleanup_.get(i)); } for (int i = 0; i < applicationsToCleanup_.size(); i++) { output.writeMessage(6, applicationsToCleanup_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(7, nextHeartBeatInterval_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(8, getDiagnosticsMessageBytes()); } for (int i = 0; i < containersToBeRemovedFromNm_.size(); i++) { output.writeMessage(9, containersToBeRemovedFromNm_.get(i)); } for (int i = 0; i < systemCredentialsForApps_.size(); i++) { output.writeMessage(10, systemCredentialsForApps_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(11, areNodeLabelsAcceptedByRM_); } for (int i = 0; i < containersToDecrease_.size(); i++) { output.writeMessage(12, containersToDecrease_.get(i)); } for (int i = 0; i < containersToSignal_.size(); i++) { output.writeMessage(13, containersToSignal_.get(i)); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(14, resource_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(15, containerQueuingLimit_); } for (int i = 0; i < appCollectors_.size(); i++) { output.writeMessage(16, appCollectors_.get(i)); } for (int i = 0; i < containersToUpdate_.size(); i++) { output.writeMessage(17, containersToUpdate_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(18, areNodeAttributesAcceptedByRM_); } 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 .computeInt32Size(1, responseId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, containerTokenMasterKey_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, nmTokenMasterKey_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, nodeAction_.getNumber()); } for (int i = 0; i < containersToCleanup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, containersToCleanup_.get(i)); } for (int i = 0; i < applicationsToCleanup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, applicationsToCleanup_.get(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, nextHeartBeatInterval_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getDiagnosticsMessageBytes()); } for (int i = 0; i < containersToBeRemovedFromNm_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, containersToBeRemovedFromNm_.get(i)); } for (int i = 0; i < systemCredentialsForApps_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, systemCredentialsForApps_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, areNodeLabelsAcceptedByRM_); } for (int i = 0; i < containersToDecrease_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, containersToDecrease_.get(i)); } for (int i = 0; i < containersToSignal_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, containersToSignal_.get(i)); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, resource_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, containerQueuingLimit_); } for (int i = 0; i < appCollectors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, appCollectors_.get(i)); } for (int i = 0; i < containersToUpdate_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, containersToUpdate_.get(i)); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, areNodeAttributesAcceptedByRM_); } 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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto) obj; boolean result = true; result = result && (hasResponseId() == other.hasResponseId()); if (hasResponseId()) { result = result && (getResponseId() == other.getResponseId()); } result = result && (hasContainerTokenMasterKey() == other.hasContainerTokenMasterKey()); if (hasContainerTokenMasterKey()) { result = result && getContainerTokenMasterKey() .equals(other.getContainerTokenMasterKey()); } result = result && (hasNmTokenMasterKey() == other.hasNmTokenMasterKey()); if (hasNmTokenMasterKey()) { result = result && getNmTokenMasterKey() .equals(other.getNmTokenMasterKey()); } result = result && (hasNodeAction() == other.hasNodeAction()); if (hasNodeAction()) { result = result && (getNodeAction() == other.getNodeAction()); } result = result && getContainersToCleanupList() .equals(other.getContainersToCleanupList()); result = result && getApplicationsToCleanupList() .equals(other.getApplicationsToCleanupList()); result = result && (hasNextHeartBeatInterval() == other.hasNextHeartBeatInterval()); if (hasNextHeartBeatInterval()) { result = result && (getNextHeartBeatInterval() == other.getNextHeartBeatInterval()); } result = result && (hasDiagnosticsMessage() == other.hasDiagnosticsMessage()); if (hasDiagnosticsMessage()) { result = result && getDiagnosticsMessage() .equals(other.getDiagnosticsMessage()); } result = result && getContainersToBeRemovedFromNmList() .equals(other.getContainersToBeRemovedFromNmList()); result = result && getSystemCredentialsForAppsList() .equals(other.getSystemCredentialsForAppsList()); result = result && (hasAreNodeLabelsAcceptedByRM() == other.hasAreNodeLabelsAcceptedByRM()); if (hasAreNodeLabelsAcceptedByRM()) { result = result && (getAreNodeLabelsAcceptedByRM() == other.getAreNodeLabelsAcceptedByRM()); } result = result && getContainersToDecreaseList() .equals(other.getContainersToDecreaseList()); result = result && getContainersToSignalList() .equals(other.getContainersToSignalList()); result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasContainerQueuingLimit() == other.hasContainerQueuingLimit()); if (hasContainerQueuingLimit()) { result = result && getContainerQueuingLimit() .equals(other.getContainerQueuingLimit()); } result = result && getAppCollectorsList() .equals(other.getAppCollectorsList()); result = result && getContainersToUpdateList() .equals(other.getContainersToUpdateList()); result = result && (hasAreNodeAttributesAcceptedByRM() == other.hasAreNodeAttributesAcceptedByRM()); if (hasAreNodeAttributesAcceptedByRM()) { result = result && (getAreNodeAttributesAcceptedByRM() == other.getAreNodeAttributesAcceptedByRM()); } 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 (hasResponseId()) { hash = (37 * hash) + RESPONSE_ID_FIELD_NUMBER; hash = (53 * hash) + getResponseId(); } if (hasContainerTokenMasterKey()) { hash = (37 * hash) + CONTAINER_TOKEN_MASTER_KEY_FIELD_NUMBER; hash = (53 * hash) + getContainerTokenMasterKey().hashCode(); } if (hasNmTokenMasterKey()) { hash = (37 * hash) + NM_TOKEN_MASTER_KEY_FIELD_NUMBER; hash = (53 * hash) + getNmTokenMasterKey().hashCode(); } if (hasNodeAction()) { hash = (37 * hash) + NODEACTION_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getNodeAction()); } if (getContainersToCleanupCount() > 0) { hash = (37 * hash) + CONTAINERS_TO_CLEANUP_FIELD_NUMBER; hash = (53 * hash) + getContainersToCleanupList().hashCode(); } if (getApplicationsToCleanupCount() > 0) { hash = (37 * hash) + APPLICATIONS_TO_CLEANUP_FIELD_NUMBER; hash = (53 * hash) + getApplicationsToCleanupList().hashCode(); } if (hasNextHeartBeatInterval()) { hash = (37 * hash) + NEXTHEARTBEATINTERVAL_FIELD_NUMBER; hash = (53 * hash) + hashLong(getNextHeartBeatInterval()); } if (hasDiagnosticsMessage()) { hash = (37 * hash) + DIAGNOSTICS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getDiagnosticsMessage().hashCode(); } if (getContainersToBeRemovedFromNmCount() > 0) { hash = (37 * hash) + CONTAINERS_TO_BE_REMOVED_FROM_NM_FIELD_NUMBER; hash = (53 * hash) + getContainersToBeRemovedFromNmList().hashCode(); } if (getSystemCredentialsForAppsCount() > 0) { hash = (37 * hash) + SYSTEM_CREDENTIALS_FOR_APPS_FIELD_NUMBER; hash = (53 * hash) + getSystemCredentialsForAppsList().hashCode(); } if (hasAreNodeLabelsAcceptedByRM()) { hash = (37 * hash) + ARENODELABELSACCEPTEDBYRM_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getAreNodeLabelsAcceptedByRM()); } if (getContainersToDecreaseCount() > 0) { hash = (37 * hash) + CONTAINERS_TO_DECREASE_FIELD_NUMBER; hash = (53 * hash) + getContainersToDecreaseList().hashCode(); } if (getContainersToSignalCount() > 0) { hash = (37 * hash) + CONTAINERS_TO_SIGNAL_FIELD_NUMBER; hash = (53 * hash) + getContainersToSignalList().hashCode(); } if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } if (hasContainerQueuingLimit()) { hash = (37 * hash) + CONTAINER_QUEUING_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getContainerQueuingLimit().hashCode(); } if (getAppCollectorsCount() > 0) { hash = (37 * hash) + APP_COLLECTORS_FIELD_NUMBER; hash = (53 * hash) + getAppCollectorsList().hashCode(); } if (getContainersToUpdateCount() > 0) { hash = (37 * hash) + CONTAINERS_TO_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getContainersToUpdateList().hashCode(); } if (hasAreNodeAttributesAcceptedByRM()) { hash = (37 * hash) + ARENODEATTRIBUTESACCEPTEDBYRM_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getAreNodeAttributesAcceptedByRM()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto 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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto 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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto 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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto 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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto 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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto 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.NodeHeartbeatResponseProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerTokenMasterKeyFieldBuilder(); getNmTokenMasterKeyFieldBuilder(); getContainersToCleanupFieldBuilder(); getApplicationsToCleanupFieldBuilder(); getContainersToBeRemovedFromNmFieldBuilder(); getSystemCredentialsForAppsFieldBuilder(); getContainersToDecreaseFieldBuilder(); getContainersToSignalFieldBuilder(); getResourceFieldBuilder(); getContainerQueuingLimitFieldBuilder(); getAppCollectorsFieldBuilder(); getContainersToUpdateFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); responseId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (containerTokenMasterKeyBuilder_ == null) { containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); } else { containerTokenMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (nmTokenMasterKeyBuilder_ == null) { nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); } else { nmTokenMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL; bitField0_ = (bitField0_ & ~0x00000008); if (containersToCleanupBuilder_ == null) { containersToCleanup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { containersToCleanupBuilder_.clear(); } if (applicationsToCleanupBuilder_ == null) { applicationsToCleanup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { applicationsToCleanupBuilder_.clear(); } nextHeartBeatInterval_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); diagnosticsMessage_ = ""; bitField0_ = (bitField0_ & ~0x00000080); if (containersToBeRemovedFromNmBuilder_ == null) { containersToBeRemovedFromNm_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { containersToBeRemovedFromNmBuilder_.clear(); } if (systemCredentialsForAppsBuilder_ == null) { systemCredentialsForApps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { systemCredentialsForAppsBuilder_.clear(); } areNodeLabelsAcceptedByRM_ = false; bitField0_ = (bitField0_ & ~0x00000400); if (containersToDecreaseBuilder_ == null) { containersToDecrease_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { containersToDecreaseBuilder_.clear(); } if (containersToSignalBuilder_ == null) { containersToSignal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); } else { containersToSignalBuilder_.clear(); } if (resourceBuilder_ == null) { resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance(); } else { resourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (containerQueuingLimitBuilder_ == null) { containerQueuingLimit_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance(); } else { containerQueuingLimitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); if (appCollectorsBuilder_ == null) { appCollectors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); } else { appCollectorsBuilder_.clear(); } if (containersToUpdateBuilder_ == null) { containersToUpdate_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); } else { containersToUpdateBuilder_.clear(); } areNodeAttributesAcceptedByRM_ = false; bitField0_ = (bitField0_ & ~0x00020000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NodeHeartbeatResponseProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.responseId_ = responseId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (containerTokenMasterKeyBuilder_ == null) { result.containerTokenMasterKey_ = containerTokenMasterKey_; } else { result.containerTokenMasterKey_ = containerTokenMasterKeyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (nmTokenMasterKeyBuilder_ == null) { result.nmTokenMasterKey_ = nmTokenMasterKey_; } else { result.nmTokenMasterKey_ = nmTokenMasterKeyBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.nodeAction_ = nodeAction_; if (containersToCleanupBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { containersToCleanup_ = java.util.Collections.unmodifiableList(containersToCleanup_); bitField0_ = (bitField0_ & ~0x00000010); } result.containersToCleanup_ = containersToCleanup_; } else { result.containersToCleanup_ = containersToCleanupBuilder_.build(); } if (applicationsToCleanupBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { applicationsToCleanup_ = java.util.Collections.unmodifiableList(applicationsToCleanup_); bitField0_ = (bitField0_ & ~0x00000020); } result.applicationsToCleanup_ = applicationsToCleanup_; } else { result.applicationsToCleanup_ = applicationsToCleanupBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.nextHeartBeatInterval_ = nextHeartBeatInterval_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } result.diagnosticsMessage_ = diagnosticsMessage_; if (containersToBeRemovedFromNmBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { containersToBeRemovedFromNm_ = java.util.Collections.unmodifiableList(containersToBeRemovedFromNm_); bitField0_ = (bitField0_ & ~0x00000100); } result.containersToBeRemovedFromNm_ = containersToBeRemovedFromNm_; } else { result.containersToBeRemovedFromNm_ = containersToBeRemovedFromNmBuilder_.build(); } if (systemCredentialsForAppsBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { systemCredentialsForApps_ = java.util.Collections.unmodifiableList(systemCredentialsForApps_); bitField0_ = (bitField0_ & ~0x00000200); } result.systemCredentialsForApps_ = systemCredentialsForApps_; } else { result.systemCredentialsForApps_ = systemCredentialsForAppsBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000040; } result.areNodeLabelsAcceptedByRM_ = areNodeLabelsAcceptedByRM_; if (containersToDecreaseBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { containersToDecrease_ = java.util.Collections.unmodifiableList(containersToDecrease_); bitField0_ = (bitField0_ & ~0x00000800); } result.containersToDecrease_ = containersToDecrease_; } else { result.containersToDecrease_ = containersToDecreaseBuilder_.build(); } if (containersToSignalBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000)) { containersToSignal_ = java.util.Collections.unmodifiableList(containersToSignal_); bitField0_ = (bitField0_ & ~0x00001000); } result.containersToSignal_ = containersToSignal_; } else { result.containersToSignal_ = containersToSignalBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000080; } if (resourceBuilder_ == null) { result.resource_ = resource_; } else { result.resource_ = resourceBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000100; } if (containerQueuingLimitBuilder_ == null) { result.containerQueuingLimit_ = containerQueuingLimit_; } else { result.containerQueuingLimit_ = containerQueuingLimitBuilder_.build(); } if (appCollectorsBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000)) { appCollectors_ = java.util.Collections.unmodifiableList(appCollectors_); bitField0_ = (bitField0_ & ~0x00008000); } result.appCollectors_ = appCollectors_; } else { result.appCollectors_ = appCollectorsBuilder_.build(); } if (containersToUpdateBuilder_ == null) { if (((bitField0_ & 0x00010000) == 0x00010000)) { containersToUpdate_ = java.util.Collections.unmodifiableList(containersToUpdate_); bitField0_ = (bitField0_ & ~0x00010000); } result.containersToUpdate_ = containersToUpdate_; } else { result.containersToUpdate_ = containersToUpdateBuilder_.build(); } if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00000200; } result.areNodeAttributesAcceptedByRM_ = areNodeAttributesAcceptedByRM_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto.getDefaultInstance()) return this; if (other.hasResponseId()) { setResponseId(other.getResponseId()); } if (other.hasContainerTokenMasterKey()) { mergeContainerTokenMasterKey(other.getContainerTokenMasterKey()); } if (other.hasNmTokenMasterKey()) { mergeNmTokenMasterKey(other.getNmTokenMasterKey()); } if (other.hasNodeAction()) { setNodeAction(other.getNodeAction()); } if (containersToCleanupBuilder_ == null) { if (!other.containersToCleanup_.isEmpty()) { if (containersToCleanup_.isEmpty()) { containersToCleanup_ = other.containersToCleanup_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureContainersToCleanupIsMutable(); containersToCleanup_.addAll(other.containersToCleanup_); } onChanged(); } } else { if (!other.containersToCleanup_.isEmpty()) { if (containersToCleanupBuilder_.isEmpty()) { containersToCleanupBuilder_.dispose(); containersToCleanupBuilder_ = null; containersToCleanup_ = other.containersToCleanup_; bitField0_ = (bitField0_ & ~0x00000010); containersToCleanupBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContainersToCleanupFieldBuilder() : null; } else { containersToCleanupBuilder_.addAllMessages(other.containersToCleanup_); } } } if (applicationsToCleanupBuilder_ == null) { if (!other.applicationsToCleanup_.isEmpty()) { if (applicationsToCleanup_.isEmpty()) { applicationsToCleanup_ = other.applicationsToCleanup_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.addAll(other.applicationsToCleanup_); } onChanged(); } } else { if (!other.applicationsToCleanup_.isEmpty()) { if (applicationsToCleanupBuilder_.isEmpty()) { applicationsToCleanupBuilder_.dispose(); applicationsToCleanupBuilder_ = null; applicationsToCleanup_ = other.applicationsToCleanup_; bitField0_ = (bitField0_ & ~0x00000020); applicationsToCleanupBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getApplicationsToCleanupFieldBuilder() : null; } else { applicationsToCleanupBuilder_.addAllMessages(other.applicationsToCleanup_); } } } if (other.hasNextHeartBeatInterval()) { setNextHeartBeatInterval(other.getNextHeartBeatInterval()); } if (other.hasDiagnosticsMessage()) { bitField0_ |= 0x00000080; diagnosticsMessage_ = other.diagnosticsMessage_; onChanged(); } if (containersToBeRemovedFromNmBuilder_ == null) { if (!other.containersToBeRemovedFromNm_.isEmpty()) { if (containersToBeRemovedFromNm_.isEmpty()) { containersToBeRemovedFromNm_ = other.containersToBeRemovedFromNm_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.addAll(other.containersToBeRemovedFromNm_); } onChanged(); } } else { if (!other.containersToBeRemovedFromNm_.isEmpty()) { if (containersToBeRemovedFromNmBuilder_.isEmpty()) { containersToBeRemovedFromNmBuilder_.dispose(); containersToBeRemovedFromNmBuilder_ = null; containersToBeRemovedFromNm_ = other.containersToBeRemovedFromNm_; bitField0_ = (bitField0_ & ~0x00000100); containersToBeRemovedFromNmBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContainersToBeRemovedFromNmFieldBuilder() : null; } else { containersToBeRemovedFromNmBuilder_.addAllMessages(other.containersToBeRemovedFromNm_); } } } if (systemCredentialsForAppsBuilder_ == null) { if (!other.systemCredentialsForApps_.isEmpty()) { if (systemCredentialsForApps_.isEmpty()) { systemCredentialsForApps_ = other.systemCredentialsForApps_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.addAll(other.systemCredentialsForApps_); } onChanged(); } } else { if (!other.systemCredentialsForApps_.isEmpty()) { if (systemCredentialsForAppsBuilder_.isEmpty()) { systemCredentialsForAppsBuilder_.dispose(); systemCredentialsForAppsBuilder_ = null; systemCredentialsForApps_ = other.systemCredentialsForApps_; bitField0_ = (bitField0_ & ~0x00000200); systemCredentialsForAppsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSystemCredentialsForAppsFieldBuilder() : null; } else { systemCredentialsForAppsBuilder_.addAllMessages(other.systemCredentialsForApps_); } } } if (other.hasAreNodeLabelsAcceptedByRM()) { setAreNodeLabelsAcceptedByRM(other.getAreNodeLabelsAcceptedByRM()); } if (containersToDecreaseBuilder_ == null) { if (!other.containersToDecrease_.isEmpty()) { if (containersToDecrease_.isEmpty()) { containersToDecrease_ = other.containersToDecrease_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureContainersToDecreaseIsMutable(); containersToDecrease_.addAll(other.containersToDecrease_); } onChanged(); } } else { if (!other.containersToDecrease_.isEmpty()) { if (containersToDecreaseBuilder_.isEmpty()) { containersToDecreaseBuilder_.dispose(); containersToDecreaseBuilder_ = null; containersToDecrease_ = other.containersToDecrease_; bitField0_ = (bitField0_ & ~0x00000800); containersToDecreaseBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContainersToDecreaseFieldBuilder() : null; } else { containersToDecreaseBuilder_.addAllMessages(other.containersToDecrease_); } } } if (containersToSignalBuilder_ == null) { if (!other.containersToSignal_.isEmpty()) { if (containersToSignal_.isEmpty()) { containersToSignal_ = other.containersToSignal_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureContainersToSignalIsMutable(); containersToSignal_.addAll(other.containersToSignal_); } onChanged(); } } else { if (!other.containersToSignal_.isEmpty()) { if (containersToSignalBuilder_.isEmpty()) { containersToSignalBuilder_.dispose(); containersToSignalBuilder_ = null; containersToSignal_ = other.containersToSignal_; bitField0_ = (bitField0_ & ~0x00001000); containersToSignalBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContainersToSignalFieldBuilder() : null; } else { containersToSignalBuilder_.addAllMessages(other.containersToSignal_); } } } if (other.hasResource()) { mergeResource(other.getResource()); } if (other.hasContainerQueuingLimit()) { mergeContainerQueuingLimit(other.getContainerQueuingLimit()); } if (appCollectorsBuilder_ == null) { if (!other.appCollectors_.isEmpty()) { if (appCollectors_.isEmpty()) { appCollectors_ = other.appCollectors_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureAppCollectorsIsMutable(); appCollectors_.addAll(other.appCollectors_); } onChanged(); } } else { if (!other.appCollectors_.isEmpty()) { if (appCollectorsBuilder_.isEmpty()) { appCollectorsBuilder_.dispose(); appCollectorsBuilder_ = null; appCollectors_ = other.appCollectors_; bitField0_ = (bitField0_ & ~0x00008000); appCollectorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAppCollectorsFieldBuilder() : null; } else { appCollectorsBuilder_.addAllMessages(other.appCollectors_); } } } if (containersToUpdateBuilder_ == null) { if (!other.containersToUpdate_.isEmpty()) { if (containersToUpdate_.isEmpty()) { containersToUpdate_ = other.containersToUpdate_; bitField0_ = (bitField0_ & ~0x00010000); } else { ensureContainersToUpdateIsMutable(); containersToUpdate_.addAll(other.containersToUpdate_); } onChanged(); } } else { if (!other.containersToUpdate_.isEmpty()) { if (containersToUpdateBuilder_.isEmpty()) { containersToUpdateBuilder_.dispose(); containersToUpdateBuilder_ = null; containersToUpdate_ = other.containersToUpdate_; bitField0_ = (bitField0_ & ~0x00010000); containersToUpdateBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContainersToUpdateFieldBuilder() : null; } else { containersToUpdateBuilder_.addAllMessages(other.containersToUpdate_); } } } if (other.hasAreNodeAttributesAcceptedByRM()) { setAreNodeAttributesAcceptedByRM(other.getAreNodeAttributesAcceptedByRM()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getContainersToDecreaseCount(); i++) { if (!getContainersToDecrease(i).isInitialized()) { return false; } } for (int i = 0; i < getContainersToSignalCount(); i++) { if (!getContainersToSignal(i).isInitialized()) { return false; } } if (hasResource()) { if (!getResource().isInitialized()) { return false; } } for (int i = 0; i < getAppCollectorsCount(); i++) { if (!getAppCollectors(i).isInitialized()) { return false; } } for (int i = 0; i < getContainersToUpdateCount(); i++) { if (!getContainersToUpdate(i).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.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 response_id = 1; private int responseId_ ; /** * optional int32 response_id = 1; */ public boolean hasResponseId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 response_id = 1; */ public int getResponseId() { return responseId_; } /** * optional int32 response_id = 1; */ public Builder setResponseId(int value) { bitField0_ |= 0x00000001; responseId_ = value; onChanged(); return this; } /** * optional int32 response_id = 1; */ public Builder clearResponseId() { bitField0_ = (bitField0_ & ~0x00000001); responseId_ = 0; onChanged(); return this; } // optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> containerTokenMasterKeyBuilder_; /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public boolean hasContainerTokenMasterKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getContainerTokenMasterKey() { if (containerTokenMasterKeyBuilder_ == null) { return containerTokenMasterKey_; } else { return containerTokenMasterKeyBuilder_.getMessage(); } } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public Builder setContainerTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (containerTokenMasterKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } containerTokenMasterKey_ = value; onChanged(); } else { containerTokenMasterKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public Builder setContainerTokenMasterKey( org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) { if (containerTokenMasterKeyBuilder_ == null) { containerTokenMasterKey_ = builderForValue.build(); onChanged(); } else { containerTokenMasterKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public Builder mergeContainerTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (containerTokenMasterKeyBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && containerTokenMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) { containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(containerTokenMasterKey_).mergeFrom(value).buildPartial(); } else { containerTokenMasterKey_ = value; } onChanged(); } else { containerTokenMasterKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public Builder clearContainerTokenMasterKey() { if (containerTokenMasterKeyBuilder_ == null) { containerTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); onChanged(); } else { containerTokenMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getContainerTokenMasterKeyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getContainerTokenMasterKeyFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getContainerTokenMasterKeyOrBuilder() { if (containerTokenMasterKeyBuilder_ != null) { return containerTokenMasterKeyBuilder_.getMessageOrBuilder(); } else { return containerTokenMasterKey_; } } /** * optional .hadoop.yarn.MasterKeyProto container_token_master_key = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> getContainerTokenMasterKeyFieldBuilder() { if (containerTokenMasterKeyBuilder_ == null) { containerTokenMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder>( containerTokenMasterKey_, getParentForChildren(), isClean()); containerTokenMasterKey_ = null; } return containerTokenMasterKeyBuilder_; } // optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> nmTokenMasterKeyBuilder_; /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public boolean hasNmTokenMasterKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNmTokenMasterKey() { if (nmTokenMasterKeyBuilder_ == null) { return nmTokenMasterKey_; } else { return nmTokenMasterKeyBuilder_.getMessage(); } } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public Builder setNmTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (nmTokenMasterKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nmTokenMasterKey_ = value; onChanged(); } else { nmTokenMasterKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public Builder setNmTokenMasterKey( org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) { if (nmTokenMasterKeyBuilder_ == null) { nmTokenMasterKey_ = builderForValue.build(); onChanged(); } else { nmTokenMasterKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public Builder mergeNmTokenMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (nmTokenMasterKeyBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && nmTokenMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) { nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(nmTokenMasterKey_).mergeFrom(value).buildPartial(); } else { nmTokenMasterKey_ = value; } onChanged(); } else { nmTokenMasterKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public Builder clearNmTokenMasterKey() { if (nmTokenMasterKeyBuilder_ == null) { nmTokenMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); onChanged(); } else { nmTokenMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getNmTokenMasterKeyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNmTokenMasterKeyFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNmTokenMasterKeyOrBuilder() { if (nmTokenMasterKeyBuilder_ != null) { return nmTokenMasterKeyBuilder_.getMessageOrBuilder(); } else { return nmTokenMasterKey_; } } /** * optional .hadoop.yarn.MasterKeyProto nm_token_master_key = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder> getNmTokenMasterKeyFieldBuilder() { if (nmTokenMasterKeyBuilder_ == null) { nmTokenMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder>( nmTokenMasterKey_, getParentForChildren(), isClean()); nmTokenMasterKey_ = null; } return nmTokenMasterKeyBuilder_; } // optional .hadoop.yarn.NodeActionProto nodeAction = 4; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL; /** * optional .hadoop.yarn.NodeActionProto nodeAction = 4; */ public boolean hasNodeAction() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.yarn.NodeActionProto nodeAction = 4; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto getNodeAction() { return nodeAction_; } /** * optional .hadoop.yarn.NodeActionProto nodeAction = 4; */ public Builder setNodeAction(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; nodeAction_ = value; onChanged(); return this; } /** * optional .hadoop.yarn.NodeActionProto nodeAction = 4; */ public Builder clearNodeAction() { bitField0_ = (bitField0_ & ~0x00000008); nodeAction_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeActionProto.NORMAL; onChanged(); return this; } // repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; private java.util.List containersToCleanup_ = java.util.Collections.emptyList(); private void ensureContainersToCleanupIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { containersToCleanup_ = new java.util.ArrayList(containersToCleanup_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> containersToCleanupBuilder_; /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public java.util.List getContainersToCleanupList() { if (containersToCleanupBuilder_ == null) { return java.util.Collections.unmodifiableList(containersToCleanup_); } else { return containersToCleanupBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public int getContainersToCleanupCount() { if (containersToCleanupBuilder_ == null) { return containersToCleanup_.size(); } else { return containersToCleanupBuilder_.getCount(); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainersToCleanup(int index) { if (containersToCleanupBuilder_ == null) { return containersToCleanup_.get(index); } else { return containersToCleanupBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder setContainersToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containersToCleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToCleanupIsMutable(); containersToCleanup_.set(index, value); onChanged(); } else { containersToCleanupBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder setContainersToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) { if (containersToCleanupBuilder_ == null) { ensureContainersToCleanupIsMutable(); containersToCleanup_.set(index, builderForValue.build()); onChanged(); } else { containersToCleanupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder addContainersToCleanup(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containersToCleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToCleanupIsMutable(); containersToCleanup_.add(value); onChanged(); } else { containersToCleanupBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder addContainersToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containersToCleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToCleanupIsMutable(); containersToCleanup_.add(index, value); onChanged(); } else { containersToCleanupBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder addContainersToCleanup( org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) { if (containersToCleanupBuilder_ == null) { ensureContainersToCleanupIsMutable(); containersToCleanup_.add(builderForValue.build()); onChanged(); } else { containersToCleanupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder addContainersToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) { if (containersToCleanupBuilder_ == null) { ensureContainersToCleanupIsMutable(); containersToCleanup_.add(index, builderForValue.build()); onChanged(); } else { containersToCleanupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder addAllContainersToCleanup( java.lang.Iterable values) { if (containersToCleanupBuilder_ == null) { ensureContainersToCleanupIsMutable(); super.addAll(values, containersToCleanup_); onChanged(); } else { containersToCleanupBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder clearContainersToCleanup() { if (containersToCleanupBuilder_ == null) { containersToCleanup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { containersToCleanupBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public Builder removeContainersToCleanup(int index) { if (containersToCleanupBuilder_ == null) { ensureContainersToCleanupIsMutable(); containersToCleanup_.remove(index); onChanged(); } else { containersToCleanupBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainersToCleanupBuilder( int index) { return getContainersToCleanupFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainersToCleanupOrBuilder( int index) { if (containersToCleanupBuilder_ == null) { return containersToCleanup_.get(index); } else { return containersToCleanupBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public java.util.List getContainersToCleanupOrBuilderList() { if (containersToCleanupBuilder_ != null) { return containersToCleanupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containersToCleanup_); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder addContainersToCleanupBuilder() { return getContainersToCleanupFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder addContainersToCleanupBuilder( int index) { return getContainersToCleanupFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_cleanup = 5; */ public java.util.List getContainersToCleanupBuilderList() { return getContainersToCleanupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> getContainersToCleanupFieldBuilder() { if (containersToCleanupBuilder_ == null) { containersToCleanupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>( containersToCleanup_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); containersToCleanup_ = null; } return containersToCleanupBuilder_; } // repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; private java.util.List applicationsToCleanup_ = java.util.Collections.emptyList(); private void ensureApplicationsToCleanupIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { applicationsToCleanup_ = new java.util.ArrayList(applicationsToCleanup_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationsToCleanupBuilder_; /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public java.util.List getApplicationsToCleanupList() { if (applicationsToCleanupBuilder_ == null) { return java.util.Collections.unmodifiableList(applicationsToCleanup_); } else { return applicationsToCleanupBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public int getApplicationsToCleanupCount() { if (applicationsToCleanupBuilder_ == null) { return applicationsToCleanup_.size(); } else { return applicationsToCleanupBuilder_.getCount(); } } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationsToCleanup(int index) { if (applicationsToCleanupBuilder_ == null) { return applicationsToCleanup_.get(index); } else { return applicationsToCleanupBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder setApplicationsToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (applicationsToCleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.set(index, value); onChanged(); } else { applicationsToCleanupBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder setApplicationsToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) { if (applicationsToCleanupBuilder_ == null) { ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.set(index, builderForValue.build()); onChanged(); } else { applicationsToCleanupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder addApplicationsToCleanup(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (applicationsToCleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.add(value); onChanged(); } else { applicationsToCleanupBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder addApplicationsToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (applicationsToCleanupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.add(index, value); onChanged(); } else { applicationsToCleanupBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder addApplicationsToCleanup( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) { if (applicationsToCleanupBuilder_ == null) { ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.add(builderForValue.build()); onChanged(); } else { applicationsToCleanupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder addApplicationsToCleanup( int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) { if (applicationsToCleanupBuilder_ == null) { ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.add(index, builderForValue.build()); onChanged(); } else { applicationsToCleanupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder addAllApplicationsToCleanup( java.lang.Iterable values) { if (applicationsToCleanupBuilder_ == null) { ensureApplicationsToCleanupIsMutable(); super.addAll(values, applicationsToCleanup_); onChanged(); } else { applicationsToCleanupBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder clearApplicationsToCleanup() { if (applicationsToCleanupBuilder_ == null) { applicationsToCleanup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { applicationsToCleanupBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public Builder removeApplicationsToCleanup(int index) { if (applicationsToCleanupBuilder_ == null) { ensureApplicationsToCleanupIsMutable(); applicationsToCleanup_.remove(index); onChanged(); } else { applicationsToCleanupBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationsToCleanupBuilder( int index) { return getApplicationsToCleanupFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationsToCleanupOrBuilder( int index) { if (applicationsToCleanupBuilder_ == null) { return applicationsToCleanup_.get(index); } else { return applicationsToCleanupBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public java.util.List getApplicationsToCleanupOrBuilderList() { if (applicationsToCleanupBuilder_ != null) { return applicationsToCleanupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(applicationsToCleanup_); } } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder addApplicationsToCleanupBuilder() { return getApplicationsToCleanupFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder addApplicationsToCleanupBuilder( int index) { return getApplicationsToCleanupFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ApplicationIdProto applications_to_cleanup = 6; */ public java.util.List getApplicationsToCleanupBuilderList() { return getApplicationsToCleanupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> getApplicationsToCleanupFieldBuilder() { if (applicationsToCleanupBuilder_ == null) { applicationsToCleanupBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>( applicationsToCleanup_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); applicationsToCleanup_ = null; } return applicationsToCleanupBuilder_; } // optional int64 nextHeartBeatInterval = 7; private long nextHeartBeatInterval_ ; /** * optional int64 nextHeartBeatInterval = 7; */ public boolean hasNextHeartBeatInterval() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 nextHeartBeatInterval = 7; */ public long getNextHeartBeatInterval() { return nextHeartBeatInterval_; } /** * optional int64 nextHeartBeatInterval = 7; */ public Builder setNextHeartBeatInterval(long value) { bitField0_ |= 0x00000040; nextHeartBeatInterval_ = value; onChanged(); return this; } /** * optional int64 nextHeartBeatInterval = 7; */ public Builder clearNextHeartBeatInterval() { bitField0_ = (bitField0_ & ~0x00000040); nextHeartBeatInterval_ = 0L; onChanged(); return this; } // optional string diagnostics_message = 8; private java.lang.Object diagnosticsMessage_ = ""; /** * optional string diagnostics_message = 8; */ public boolean hasDiagnosticsMessage() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string diagnostics_message = 8; */ public java.lang.String getDiagnosticsMessage() { java.lang.Object ref = diagnosticsMessage_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); diagnosticsMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string diagnostics_message = 8; */ public com.google.protobuf.ByteString getDiagnosticsMessageBytes() { java.lang.Object ref = diagnosticsMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diagnosticsMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string diagnostics_message = 8; */ public Builder setDiagnosticsMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; diagnosticsMessage_ = value; onChanged(); return this; } /** * optional string diagnostics_message = 8; */ public Builder clearDiagnosticsMessage() { bitField0_ = (bitField0_ & ~0x00000080); diagnosticsMessage_ = getDefaultInstance().getDiagnosticsMessage(); onChanged(); return this; } /** * optional string diagnostics_message = 8; */ public Builder setDiagnosticsMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; diagnosticsMessage_ = value; onChanged(); return this; } // repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; private java.util.List containersToBeRemovedFromNm_ = java.util.Collections.emptyList(); private void ensureContainersToBeRemovedFromNmIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { containersToBeRemovedFromNm_ = new java.util.ArrayList(containersToBeRemovedFromNm_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> containersToBeRemovedFromNmBuilder_; /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public java.util.List getContainersToBeRemovedFromNmList() { if (containersToBeRemovedFromNmBuilder_ == null) { return java.util.Collections.unmodifiableList(containersToBeRemovedFromNm_); } else { return containersToBeRemovedFromNmBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public int getContainersToBeRemovedFromNmCount() { if (containersToBeRemovedFromNmBuilder_ == null) { return containersToBeRemovedFromNm_.size(); } else { return containersToBeRemovedFromNmBuilder_.getCount(); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainersToBeRemovedFromNm(int index) { if (containersToBeRemovedFromNmBuilder_ == null) { return containersToBeRemovedFromNm_.get(index); } else { return containersToBeRemovedFromNmBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder setContainersToBeRemovedFromNm( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containersToBeRemovedFromNmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.set(index, value); onChanged(); } else { containersToBeRemovedFromNmBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder setContainersToBeRemovedFromNm( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) { if (containersToBeRemovedFromNmBuilder_ == null) { ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.set(index, builderForValue.build()); onChanged(); } else { containersToBeRemovedFromNmBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder addContainersToBeRemovedFromNm(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containersToBeRemovedFromNmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.add(value); onChanged(); } else { containersToBeRemovedFromNmBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder addContainersToBeRemovedFromNm( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) { if (containersToBeRemovedFromNmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.add(index, value); onChanged(); } else { containersToBeRemovedFromNmBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder addContainersToBeRemovedFromNm( org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) { if (containersToBeRemovedFromNmBuilder_ == null) { ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.add(builderForValue.build()); onChanged(); } else { containersToBeRemovedFromNmBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder addContainersToBeRemovedFromNm( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) { if (containersToBeRemovedFromNmBuilder_ == null) { ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.add(index, builderForValue.build()); onChanged(); } else { containersToBeRemovedFromNmBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder addAllContainersToBeRemovedFromNm( java.lang.Iterable values) { if (containersToBeRemovedFromNmBuilder_ == null) { ensureContainersToBeRemovedFromNmIsMutable(); super.addAll(values, containersToBeRemovedFromNm_); onChanged(); } else { containersToBeRemovedFromNmBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder clearContainersToBeRemovedFromNm() { if (containersToBeRemovedFromNmBuilder_ == null) { containersToBeRemovedFromNm_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { containersToBeRemovedFromNmBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public Builder removeContainersToBeRemovedFromNm(int index) { if (containersToBeRemovedFromNmBuilder_ == null) { ensureContainersToBeRemovedFromNmIsMutable(); containersToBeRemovedFromNm_.remove(index); onChanged(); } else { containersToBeRemovedFromNmBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainersToBeRemovedFromNmBuilder( int index) { return getContainersToBeRemovedFromNmFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainersToBeRemovedFromNmOrBuilder( int index) { if (containersToBeRemovedFromNmBuilder_ == null) { return containersToBeRemovedFromNm_.get(index); } else { return containersToBeRemovedFromNmBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public java.util.List getContainersToBeRemovedFromNmOrBuilderList() { if (containersToBeRemovedFromNmBuilder_ != null) { return containersToBeRemovedFromNmBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containersToBeRemovedFromNm_); } } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder addContainersToBeRemovedFromNmBuilder() { return getContainersToBeRemovedFromNmFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder addContainersToBeRemovedFromNmBuilder( int index) { return getContainersToBeRemovedFromNmFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerIdProto containers_to_be_removed_from_nm = 9; */ public java.util.List getContainersToBeRemovedFromNmBuilderList() { return getContainersToBeRemovedFromNmFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> getContainersToBeRemovedFromNmFieldBuilder() { if (containersToBeRemovedFromNmBuilder_ == null) { containersToBeRemovedFromNmBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>( containersToBeRemovedFromNm_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); containersToBeRemovedFromNm_ = null; } return containersToBeRemovedFromNmBuilder_; } // repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; private java.util.List systemCredentialsForApps_ = java.util.Collections.emptyList(); private void ensureSystemCredentialsForAppsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { systemCredentialsForApps_ = new java.util.ArrayList(systemCredentialsForApps_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder> systemCredentialsForAppsBuilder_; /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public java.util.List getSystemCredentialsForAppsList() { if (systemCredentialsForAppsBuilder_ == null) { return java.util.Collections.unmodifiableList(systemCredentialsForApps_); } else { return systemCredentialsForAppsBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public int getSystemCredentialsForAppsCount() { if (systemCredentialsForAppsBuilder_ == null) { return systemCredentialsForApps_.size(); } else { return systemCredentialsForAppsBuilder_.getCount(); } } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto getSystemCredentialsForApps(int index) { if (systemCredentialsForAppsBuilder_ == null) { return systemCredentialsForApps_.get(index); } else { return systemCredentialsForAppsBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder setSystemCredentialsForApps( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto value) { if (systemCredentialsForAppsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.set(index, value); onChanged(); } else { systemCredentialsForAppsBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder setSystemCredentialsForApps( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder builderForValue) { if (systemCredentialsForAppsBuilder_ == null) { ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.set(index, builderForValue.build()); onChanged(); } else { systemCredentialsForAppsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder addSystemCredentialsForApps(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto value) { if (systemCredentialsForAppsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.add(value); onChanged(); } else { systemCredentialsForAppsBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder addSystemCredentialsForApps( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto value) { if (systemCredentialsForAppsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.add(index, value); onChanged(); } else { systemCredentialsForAppsBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder addSystemCredentialsForApps( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder builderForValue) { if (systemCredentialsForAppsBuilder_ == null) { ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.add(builderForValue.build()); onChanged(); } else { systemCredentialsForAppsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder addSystemCredentialsForApps( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder builderForValue) { if (systemCredentialsForAppsBuilder_ == null) { ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.add(index, builderForValue.build()); onChanged(); } else { systemCredentialsForAppsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder addAllSystemCredentialsForApps( java.lang.Iterable values) { if (systemCredentialsForAppsBuilder_ == null) { ensureSystemCredentialsForAppsIsMutable(); super.addAll(values, systemCredentialsForApps_); onChanged(); } else { systemCredentialsForAppsBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder clearSystemCredentialsForApps() { if (systemCredentialsForAppsBuilder_ == null) { systemCredentialsForApps_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { systemCredentialsForAppsBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public Builder removeSystemCredentialsForApps(int index) { if (systemCredentialsForAppsBuilder_ == null) { ensureSystemCredentialsForAppsIsMutable(); systemCredentialsForApps_.remove(index); onChanged(); } else { systemCredentialsForAppsBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder getSystemCredentialsForAppsBuilder( int index) { return getSystemCredentialsForAppsFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder getSystemCredentialsForAppsOrBuilder( int index) { if (systemCredentialsForAppsBuilder_ == null) { return systemCredentialsForApps_.get(index); } else { return systemCredentialsForAppsBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public java.util.List getSystemCredentialsForAppsOrBuilderList() { if (systemCredentialsForAppsBuilder_ != null) { return systemCredentialsForAppsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(systemCredentialsForApps_); } } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder addSystemCredentialsForAppsBuilder() { return getSystemCredentialsForAppsFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder addSystemCredentialsForAppsBuilder( int index) { return getSystemCredentialsForAppsFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.SystemCredentialsForAppsProto system_credentials_for_apps = 10; */ public java.util.List getSystemCredentialsForAppsBuilderList() { return getSystemCredentialsForAppsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder> getSystemCredentialsForAppsFieldBuilder() { if (systemCredentialsForAppsBuilder_ == null) { systemCredentialsForAppsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder>( systemCredentialsForApps_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); systemCredentialsForApps_ = null; } return systemCredentialsForAppsBuilder_; } // optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; private boolean areNodeLabelsAcceptedByRM_ ; /** * optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; */ public boolean hasAreNodeLabelsAcceptedByRM() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; */ public boolean getAreNodeLabelsAcceptedByRM() { return areNodeLabelsAcceptedByRM_; } /** * optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; */ public Builder setAreNodeLabelsAcceptedByRM(boolean value) { bitField0_ |= 0x00000400; areNodeLabelsAcceptedByRM_ = value; onChanged(); return this; } /** * optional bool areNodeLabelsAcceptedByRM = 11 [default = false]; */ public Builder clearAreNodeLabelsAcceptedByRM() { bitField0_ = (bitField0_ & ~0x00000400); areNodeLabelsAcceptedByRM_ = false; onChanged(); return this; } // repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; private java.util.List containersToDecrease_ = java.util.Collections.emptyList(); private void ensureContainersToDecreaseIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { containersToDecrease_ = new java.util.ArrayList(containersToDecrease_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> containersToDecreaseBuilder_; /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public java.util.List getContainersToDecreaseList() { if (containersToDecreaseBuilder_ == null) { return java.util.Collections.unmodifiableList(containersToDecrease_); } else { return containersToDecreaseBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public int getContainersToDecreaseCount() { if (containersToDecreaseBuilder_ == null) { return containersToDecrease_.size(); } else { return containersToDecreaseBuilder_.getCount(); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersToDecrease(int index) { if (containersToDecreaseBuilder_ == null) { return containersToDecrease_.get(index); } else { return containersToDecreaseBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder setContainersToDecrease( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (containersToDecreaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToDecreaseIsMutable(); containersToDecrease_.set(index, value); onChanged(); } else { containersToDecreaseBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder setContainersToDecrease( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (containersToDecreaseBuilder_ == null) { ensureContainersToDecreaseIsMutable(); containersToDecrease_.set(index, builderForValue.build()); onChanged(); } else { containersToDecreaseBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder addContainersToDecrease(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (containersToDecreaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToDecreaseIsMutable(); containersToDecrease_.add(value); onChanged(); } else { containersToDecreaseBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder addContainersToDecrease( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (containersToDecreaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToDecreaseIsMutable(); containersToDecrease_.add(index, value); onChanged(); } else { containersToDecreaseBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder addContainersToDecrease( org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (containersToDecreaseBuilder_ == null) { ensureContainersToDecreaseIsMutable(); containersToDecrease_.add(builderForValue.build()); onChanged(); } else { containersToDecreaseBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder addContainersToDecrease( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (containersToDecreaseBuilder_ == null) { ensureContainersToDecreaseIsMutable(); containersToDecrease_.add(index, builderForValue.build()); onChanged(); } else { containersToDecreaseBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder addAllContainersToDecrease( java.lang.Iterable values) { if (containersToDecreaseBuilder_ == null) { ensureContainersToDecreaseIsMutable(); super.addAll(values, containersToDecrease_); onChanged(); } else { containersToDecreaseBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder clearContainersToDecrease() { if (containersToDecreaseBuilder_ == null) { containersToDecrease_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { containersToDecreaseBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public Builder removeContainersToDecrease(int index) { if (containersToDecreaseBuilder_ == null) { ensureContainersToDecreaseIsMutable(); containersToDecrease_.remove(index); onChanged(); } else { containersToDecreaseBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getContainersToDecreaseBuilder( int index) { return getContainersToDecreaseFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersToDecreaseOrBuilder( int index) { if (containersToDecreaseBuilder_ == null) { return containersToDecrease_.get(index); } else { return containersToDecreaseBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public java.util.List getContainersToDecreaseOrBuilderList() { if (containersToDecreaseBuilder_ != null) { return containersToDecreaseBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containersToDecrease_); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersToDecreaseBuilder() { return getContainersToDecreaseFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersToDecreaseBuilder( int index) { return getContainersToDecreaseFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerProto containers_to_decrease = 12; * *
       * to be deprecated in favour of containers_to_update
       * 
*/ public java.util.List getContainersToDecreaseBuilderList() { return getContainersToDecreaseFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> getContainersToDecreaseFieldBuilder() { if (containersToDecreaseBuilder_ == null) { containersToDecreaseBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>( containersToDecrease_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); containersToDecrease_ = null; } return containersToDecreaseBuilder_; } // repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; private java.util.List containersToSignal_ = java.util.Collections.emptyList(); private void ensureContainersToSignalIsMutable() { if (!((bitField0_ & 0x00001000) == 0x00001000)) { containersToSignal_ = new java.util.ArrayList(containersToSignal_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProtoOrBuilder> containersToSignalBuilder_; /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public java.util.List getContainersToSignalList() { if (containersToSignalBuilder_ == null) { return java.util.Collections.unmodifiableList(containersToSignal_); } else { return containersToSignalBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public int getContainersToSignalCount() { if (containersToSignalBuilder_ == null) { return containersToSignal_.size(); } else { return containersToSignalBuilder_.getCount(); } } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto getContainersToSignal(int index) { if (containersToSignalBuilder_ == null) { return containersToSignal_.get(index); } else { return containersToSignalBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder setContainersToSignal( int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto value) { if (containersToSignalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToSignalIsMutable(); containersToSignal_.set(index, value); onChanged(); } else { containersToSignalBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder setContainersToSignal( int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder builderForValue) { if (containersToSignalBuilder_ == null) { ensureContainersToSignalIsMutable(); containersToSignal_.set(index, builderForValue.build()); onChanged(); } else { containersToSignalBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder addContainersToSignal(org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto value) { if (containersToSignalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToSignalIsMutable(); containersToSignal_.add(value); onChanged(); } else { containersToSignalBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder addContainersToSignal( int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto value) { if (containersToSignalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToSignalIsMutable(); containersToSignal_.add(index, value); onChanged(); } else { containersToSignalBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder addContainersToSignal( org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder builderForValue) { if (containersToSignalBuilder_ == null) { ensureContainersToSignalIsMutable(); containersToSignal_.add(builderForValue.build()); onChanged(); } else { containersToSignalBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder addContainersToSignal( int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder builderForValue) { if (containersToSignalBuilder_ == null) { ensureContainersToSignalIsMutable(); containersToSignal_.add(index, builderForValue.build()); onChanged(); } else { containersToSignalBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder addAllContainersToSignal( java.lang.Iterable values) { if (containersToSignalBuilder_ == null) { ensureContainersToSignalIsMutable(); super.addAll(values, containersToSignal_); onChanged(); } else { containersToSignalBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder clearContainersToSignal() { if (containersToSignalBuilder_ == null) { containersToSignal_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { containersToSignalBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public Builder removeContainersToSignal(int index) { if (containersToSignalBuilder_ == null) { ensureContainersToSignalIsMutable(); containersToSignal_.remove(index); onChanged(); } else { containersToSignalBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder getContainersToSignalBuilder( int index) { return getContainersToSignalFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProtoOrBuilder getContainersToSignalOrBuilder( int index) { if (containersToSignalBuilder_ == null) { return containersToSignal_.get(index); } else { return containersToSignalBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public java.util.List getContainersToSignalOrBuilderList() { if (containersToSignalBuilder_ != null) { return containersToSignalBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containersToSignal_); } } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder addContainersToSignalBuilder() { return getContainersToSignalFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder addContainersToSignalBuilder( int index) { return getContainersToSignalFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.SignalContainerRequestProto containers_to_signal = 13; */ public java.util.List getContainersToSignalBuilderList() { return getContainersToSignalFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProtoOrBuilder> getContainersToSignalFieldBuilder() { if (containersToSignalBuilder_ == null) { containersToSignalBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProtoOrBuilder>( containersToSignal_, ((bitField0_ & 0x00001000) == 0x00001000), getParentForChildren(), isClean()); containersToSignal_ = null; } return containersToSignalBuilder_; } // optional .hadoop.yarn.ResourceProto resource = 14; 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 = 14; */ public boolean hasResource() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() { if (resourceBuilder_ == null) { return resource_; } else { return resourceBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ 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_ |= 0x00002000; return this; } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ 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_ |= 0x00002000; return this; } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public Builder mergeResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) { if (resourceBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && 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_ |= 0x00002000; return this; } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public Builder clearResource() { if (resourceBuilder_ == null) { resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance(); onChanged(); } else { resourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() { bitField0_ |= 0x00002000; onChanged(); return getResourceFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { return resource_; } } /** * optional .hadoop.yarn.ResourceProto resource = 14; */ 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 .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; private org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto containerQueuingLimit_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder> containerQueuingLimitBuilder_; /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public boolean hasContainerQueuingLimit() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto getContainerQueuingLimit() { if (containerQueuingLimitBuilder_ == null) { return containerQueuingLimit_; } else { return containerQueuingLimitBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public Builder setContainerQueuingLimit(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto value) { if (containerQueuingLimitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } containerQueuingLimit_ = value; onChanged(); } else { containerQueuingLimitBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public Builder setContainerQueuingLimit( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder builderForValue) { if (containerQueuingLimitBuilder_ == null) { containerQueuingLimit_ = builderForValue.build(); onChanged(); } else { containerQueuingLimitBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public Builder mergeContainerQueuingLimit(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto value) { if (containerQueuingLimitBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && containerQueuingLimit_ != org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance()) { containerQueuingLimit_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.newBuilder(containerQueuingLimit_).mergeFrom(value).buildPartial(); } else { containerQueuingLimit_ = value; } onChanged(); } else { containerQueuingLimitBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public Builder clearContainerQueuingLimit() { if (containerQueuingLimitBuilder_ == null) { containerQueuingLimit_ = org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance(); onChanged(); } else { containerQueuingLimitBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder getContainerQueuingLimitBuilder() { bitField0_ |= 0x00004000; onChanged(); return getContainerQueuingLimitFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder getContainerQueuingLimitOrBuilder() { if (containerQueuingLimitBuilder_ != null) { return containerQueuingLimitBuilder_.getMessageOrBuilder(); } else { return containerQueuingLimit_; } } /** * optional .hadoop.yarn.ContainerQueuingLimitProto container_queuing_limit = 15; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder> getContainerQueuingLimitFieldBuilder() { if (containerQueuingLimitBuilder_ == null) { containerQueuingLimitBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder>( containerQueuingLimit_, getParentForChildren(), isClean()); containerQueuingLimit_ = null; } return containerQueuingLimitBuilder_; } // repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; private java.util.List appCollectors_ = java.util.Collections.emptyList(); private void ensureAppCollectorsIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { appCollectors_ = new java.util.ArrayList(appCollectors_); bitField0_ |= 0x00008000; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder> appCollectorsBuilder_; /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public java.util.List getAppCollectorsList() { if (appCollectorsBuilder_ == null) { return java.util.Collections.unmodifiableList(appCollectors_); } else { return appCollectorsBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public int getAppCollectorsCount() { if (appCollectorsBuilder_ == null) { return appCollectors_.size(); } else { return appCollectorsBuilder_.getCount(); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getAppCollectors(int index) { if (appCollectorsBuilder_ == null) { return appCollectors_.get(index); } else { return appCollectorsBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder setAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) { if (appCollectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAppCollectorsIsMutable(); appCollectors_.set(index, value); onChanged(); } else { appCollectorsBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder setAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.set(index, builderForValue.build()); onChanged(); } else { appCollectorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder addAppCollectors(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) { if (appCollectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAppCollectorsIsMutable(); appCollectors_.add(value); onChanged(); } else { appCollectorsBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder addAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) { if (appCollectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAppCollectorsIsMutable(); appCollectors_.add(index, value); onChanged(); } else { appCollectorsBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder addAppCollectors( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.add(builderForValue.build()); onChanged(); } else { appCollectorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder addAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.add(index, builderForValue.build()); onChanged(); } else { appCollectorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder addAllAppCollectors( java.lang.Iterable values) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); super.addAll(values, appCollectors_); onChanged(); } else { appCollectorsBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder clearAppCollectors() { if (appCollectorsBuilder_ == null) { appCollectors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { appCollectorsBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public Builder removeAppCollectors(int index) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.remove(index); onChanged(); } else { appCollectorsBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder getAppCollectorsBuilder( int index) { return getAppCollectorsFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getAppCollectorsOrBuilder( int index) { if (appCollectorsBuilder_ == null) { return appCollectors_.get(index); } else { return appCollectorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public java.util.List getAppCollectorsOrBuilderList() { if (appCollectorsBuilder_ != null) { return appCollectorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(appCollectors_); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder addAppCollectorsBuilder() { return getAppCollectorsFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder addAppCollectorsBuilder( int index) { return getAppCollectorsFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 16; */ public java.util.List getAppCollectorsBuilderList() { return getAppCollectorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder> getAppCollectorsFieldBuilder() { if (appCollectorsBuilder_ == null) { appCollectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder>( appCollectors_, ((bitField0_ & 0x00008000) == 0x00008000), getParentForChildren(), isClean()); appCollectors_ = null; } return appCollectorsBuilder_; } // repeated .hadoop.yarn.ContainerProto containers_to_update = 17; private java.util.List containersToUpdate_ = java.util.Collections.emptyList(); private void ensureContainersToUpdateIsMutable() { if (!((bitField0_ & 0x00010000) == 0x00010000)) { containersToUpdate_ = new java.util.ArrayList(containersToUpdate_); bitField0_ |= 0x00010000; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> containersToUpdateBuilder_; /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public java.util.List getContainersToUpdateList() { if (containersToUpdateBuilder_ == null) { return java.util.Collections.unmodifiableList(containersToUpdate_); } else { return containersToUpdateBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public int getContainersToUpdateCount() { if (containersToUpdateBuilder_ == null) { return containersToUpdate_.size(); } else { return containersToUpdateBuilder_.getCount(); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersToUpdate(int index) { if (containersToUpdateBuilder_ == null) { return containersToUpdate_.get(index); } else { return containersToUpdateBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder setContainersToUpdate( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (containersToUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToUpdateIsMutable(); containersToUpdate_.set(index, value); onChanged(); } else { containersToUpdateBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder setContainersToUpdate( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (containersToUpdateBuilder_ == null) { ensureContainersToUpdateIsMutable(); containersToUpdate_.set(index, builderForValue.build()); onChanged(); } else { containersToUpdateBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder addContainersToUpdate(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (containersToUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToUpdateIsMutable(); containersToUpdate_.add(value); onChanged(); } else { containersToUpdateBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder addContainersToUpdate( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (containersToUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersToUpdateIsMutable(); containersToUpdate_.add(index, value); onChanged(); } else { containersToUpdateBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder addContainersToUpdate( org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (containersToUpdateBuilder_ == null) { ensureContainersToUpdateIsMutable(); containersToUpdate_.add(builderForValue.build()); onChanged(); } else { containersToUpdateBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder addContainersToUpdate( int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (containersToUpdateBuilder_ == null) { ensureContainersToUpdateIsMutable(); containersToUpdate_.add(index, builderForValue.build()); onChanged(); } else { containersToUpdateBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder addAllContainersToUpdate( java.lang.Iterable values) { if (containersToUpdateBuilder_ == null) { ensureContainersToUpdateIsMutable(); super.addAll(values, containersToUpdate_); onChanged(); } else { containersToUpdateBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder clearContainersToUpdate() { if (containersToUpdateBuilder_ == null) { containersToUpdate_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00010000); onChanged(); } else { containersToUpdateBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public Builder removeContainersToUpdate(int index) { if (containersToUpdateBuilder_ == null) { ensureContainersToUpdateIsMutable(); containersToUpdate_.remove(index); onChanged(); } else { containersToUpdateBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getContainersToUpdateBuilder( int index) { return getContainersToUpdateFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersToUpdateOrBuilder( int index) { if (containersToUpdateBuilder_ == null) { return containersToUpdate_.get(index); } else { return containersToUpdateBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public java.util.List getContainersToUpdateOrBuilderList() { if (containersToUpdateBuilder_ != null) { return containersToUpdateBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containersToUpdate_); } } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersToUpdateBuilder() { return getContainersToUpdateFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersToUpdateBuilder( int index) { return getContainersToUpdateFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.ContainerProto containers_to_update = 17; * *
       * to be used in place of containers_to_decrease
       * 
*/ public java.util.List getContainersToUpdateBuilderList() { return getContainersToUpdateFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> getContainersToUpdateFieldBuilder() { if (containersToUpdateBuilder_ == null) { containersToUpdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>( containersToUpdate_, ((bitField0_ & 0x00010000) == 0x00010000), getParentForChildren(), isClean()); containersToUpdate_ = null; } return containersToUpdateBuilder_; } // optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; private boolean areNodeAttributesAcceptedByRM_ ; /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ public boolean hasAreNodeAttributesAcceptedByRM() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ public boolean getAreNodeAttributesAcceptedByRM() { return areNodeAttributesAcceptedByRM_; } /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ public Builder setAreNodeAttributesAcceptedByRM(boolean value) { bitField0_ |= 0x00020000; areNodeAttributesAcceptedByRM_ = value; onChanged(); return this; } /** * optional bool areNodeAttributesAcceptedByRM = 18 [default = false]; */ public Builder clearAreNodeAttributesAcceptedByRM() { bitField0_ = (bitField0_ & ~0x00020000); areNodeAttributesAcceptedByRM_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.NodeHeartbeatResponseProto) } static { defaultInstance = new NodeHeartbeatResponseProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.NodeHeartbeatResponseProto) } public interface ContainerQueuingLimitProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 max_queue_length = 1; /** * optional int32 max_queue_length = 1; */ boolean hasMaxQueueLength(); /** * optional int32 max_queue_length = 1; */ int getMaxQueueLength(); // optional int32 max_queue_wait_time_in_ms = 2; /** * optional int32 max_queue_wait_time_in_ms = 2; */ boolean hasMaxQueueWaitTimeInMs(); /** * optional int32 max_queue_wait_time_in_ms = 2; */ int getMaxQueueWaitTimeInMs(); } /** * Protobuf type {@code hadoop.yarn.ContainerQueuingLimitProto} */ public static final class ContainerQueuingLimitProto extends com.google.protobuf.GeneratedMessage implements ContainerQueuingLimitProtoOrBuilder { // Use ContainerQueuingLimitProto.newBuilder() to construct. private ContainerQueuingLimitProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ContainerQueuingLimitProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ContainerQueuingLimitProto defaultInstance; public static ContainerQueuingLimitProto getDefaultInstance() { return defaultInstance; } public ContainerQueuingLimitProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContainerQueuingLimitProto( 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 8: { bitField0_ |= 0x00000001; maxQueueLength_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; maxQueueWaitTimeInMs_ = 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ContainerQueuingLimitProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ContainerQueuingLimitProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ContainerQueuingLimitProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContainerQueuingLimitProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 max_queue_length = 1; public static final int MAX_QUEUE_LENGTH_FIELD_NUMBER = 1; private int maxQueueLength_; /** * optional int32 max_queue_length = 1; */ public boolean hasMaxQueueLength() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 max_queue_length = 1; */ public int getMaxQueueLength() { return maxQueueLength_; } // optional int32 max_queue_wait_time_in_ms = 2; public static final int MAX_QUEUE_WAIT_TIME_IN_MS_FIELD_NUMBER = 2; private int maxQueueWaitTimeInMs_; /** * optional int32 max_queue_wait_time_in_ms = 2; */ public boolean hasMaxQueueWaitTimeInMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 max_queue_wait_time_in_ms = 2; */ public int getMaxQueueWaitTimeInMs() { return maxQueueWaitTimeInMs_; } private void initFields() { maxQueueLength_ = 0; maxQueueWaitTimeInMs_ = 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.writeInt32(1, maxQueueLength_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, maxQueueWaitTimeInMs_); } 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 .computeInt32Size(1, maxQueueLength_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maxQueueWaitTimeInMs_); } 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto) obj; boolean result = true; result = result && (hasMaxQueueLength() == other.hasMaxQueueLength()); if (hasMaxQueueLength()) { result = result && (getMaxQueueLength() == other.getMaxQueueLength()); } result = result && (hasMaxQueueWaitTimeInMs() == other.hasMaxQueueWaitTimeInMs()); if (hasMaxQueueWaitTimeInMs()) { result = result && (getMaxQueueWaitTimeInMs() == other.getMaxQueueWaitTimeInMs()); } 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 (hasMaxQueueLength()) { hash = (37 * hash) + MAX_QUEUE_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getMaxQueueLength(); } if (hasMaxQueueWaitTimeInMs()) { hash = (37 * hash) + MAX_QUEUE_WAIT_TIME_IN_MS_FIELD_NUMBER; hash = (53 * hash) + getMaxQueueWaitTimeInMs(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto 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.ContainerQueuingLimitProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ContainerQueuingLimitProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ContainerQueuingLimitProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.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(); maxQueueLength_ = 0; bitField0_ = (bitField0_ & ~0x00000001); maxQueueWaitTimeInMs_ = 0; 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ContainerQueuingLimitProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.maxQueueLength_ = maxQueueLength_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.maxQueueWaitTimeInMs_ = maxQueueWaitTimeInMs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto.getDefaultInstance()) return this; if (other.hasMaxQueueLength()) { setMaxQueueLength(other.getMaxQueueLength()); } if (other.hasMaxQueueWaitTimeInMs()) { setMaxQueueWaitTimeInMs(other.getMaxQueueWaitTimeInMs()); } 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.YarnServerCommonServiceProtos.ContainerQueuingLimitProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ContainerQueuingLimitProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 max_queue_length = 1; private int maxQueueLength_ ; /** * optional int32 max_queue_length = 1; */ public boolean hasMaxQueueLength() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 max_queue_length = 1; */ public int getMaxQueueLength() { return maxQueueLength_; } /** * optional int32 max_queue_length = 1; */ public Builder setMaxQueueLength(int value) { bitField0_ |= 0x00000001; maxQueueLength_ = value; onChanged(); return this; } /** * optional int32 max_queue_length = 1; */ public Builder clearMaxQueueLength() { bitField0_ = (bitField0_ & ~0x00000001); maxQueueLength_ = 0; onChanged(); return this; } // optional int32 max_queue_wait_time_in_ms = 2; private int maxQueueWaitTimeInMs_ ; /** * optional int32 max_queue_wait_time_in_ms = 2; */ public boolean hasMaxQueueWaitTimeInMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 max_queue_wait_time_in_ms = 2; */ public int getMaxQueueWaitTimeInMs() { return maxQueueWaitTimeInMs_; } /** * optional int32 max_queue_wait_time_in_ms = 2; */ public Builder setMaxQueueWaitTimeInMs(int value) { bitField0_ |= 0x00000002; maxQueueWaitTimeInMs_ = value; onChanged(); return this; } /** * optional int32 max_queue_wait_time_in_ms = 2; */ public Builder clearMaxQueueWaitTimeInMs() { bitField0_ = (bitField0_ & ~0x00000002); maxQueueWaitTimeInMs_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.ContainerQueuingLimitProto) } static { defaultInstance = new ContainerQueuingLimitProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerQueuingLimitProto) } public interface SystemCredentialsForAppsProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.ApplicationIdProto appId = 1; /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ boolean hasAppId(); /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId(); /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder(); // optional bytes credentialsForApp = 2; /** * optional bytes credentialsForApp = 2; */ boolean hasCredentialsForApp(); /** * optional bytes credentialsForApp = 2; */ com.google.protobuf.ByteString getCredentialsForApp(); } /** * Protobuf type {@code hadoop.yarn.SystemCredentialsForAppsProto} */ public static final class SystemCredentialsForAppsProto extends com.google.protobuf.GeneratedMessage implements SystemCredentialsForAppsProtoOrBuilder { // Use SystemCredentialsForAppsProto.newBuilder() to construct. private SystemCredentialsForAppsProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SystemCredentialsForAppsProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SystemCredentialsForAppsProto defaultInstance; public static SystemCredentialsForAppsProto getDefaultInstance() { return defaultInstance; } public SystemCredentialsForAppsProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SystemCredentialsForAppsProto( 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.ApplicationIdProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = appId_.toBuilder(); } appId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appId_); appId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; credentialsForApp_ = 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SystemCredentialsForAppsProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SystemCredentialsForAppsProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SystemCredentialsForAppsProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SystemCredentialsForAppsProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.ApplicationIdProto appId = 1; public static final int APPID_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_; /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() { return appId_; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() { return appId_; } // optional bytes credentialsForApp = 2; public static final int CREDENTIALSFORAPP_FIELD_NUMBER = 2; private com.google.protobuf.ByteString credentialsForApp_; /** * optional bytes credentialsForApp = 2; */ public boolean hasCredentialsForApp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes credentialsForApp = 2; */ public com.google.protobuf.ByteString getCredentialsForApp() { return credentialsForApp_; } private void initFields() { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); credentialsForApp_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, appId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, credentialsForApp_); } 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, appId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, credentialsForApp_); } 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto) obj; boolean result = true; result = result && (hasAppId() == other.hasAppId()); if (hasAppId()) { result = result && getAppId() .equals(other.getAppId()); } result = result && (hasCredentialsForApp() == other.hasCredentialsForApp()); if (hasCredentialsForApp()) { result = result && getCredentialsForApp() .equals(other.getCredentialsForApp()); } 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 (hasAppId()) { hash = (37 * hash) + APPID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } if (hasCredentialsForApp()) { hash = (37 * hash) + CREDENTIALSFORAPP_FIELD_NUMBER; hash = (53 * hash) + getCredentialsForApp().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto 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.SystemCredentialsForAppsProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SystemCredentialsForAppsProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SystemCredentialsForAppsProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAppIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (appIdBuilder_ == null) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); } else { appIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); credentialsForApp_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SystemCredentialsForAppsProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (appIdBuilder_ == null) { result.appId_ = appId_; } else { result.appId_ = appIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.credentialsForApp_ = credentialsForApp_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto.getDefaultInstance()) return this; if (other.hasAppId()) { mergeAppId(other.getAppId()); } if (other.hasCredentialsForApp()) { setCredentialsForApp(other.getCredentialsForApp()); } 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.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.ApplicationIdProto appId = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> appIdBuilder_; /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() { if (appIdBuilder_ == null) { return appId_; } else { return appIdBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder setAppId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (appIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); } else { appIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder setAppId( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) { if (appIdBuilder_ == null) { appId_ = builderForValue.build(); onChanged(); } else { appIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder mergeAppId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (appIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && appId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(appId_).mergeFrom(value).buildPartial(); } else { appId_ = value; } onChanged(); } else { appIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder clearAppId() { if (appIdBuilder_ == null) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); onChanged(); } else { appIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getAppIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAppIdFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() { if (appIdBuilder_ != null) { return appIdBuilder_.getMessageOrBuilder(); } else { return appId_; } } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> getAppIdFieldBuilder() { if (appIdBuilder_ == null) { appIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>( appId_, getParentForChildren(), isClean()); appId_ = null; } return appIdBuilder_; } // optional bytes credentialsForApp = 2; private com.google.protobuf.ByteString credentialsForApp_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes credentialsForApp = 2; */ public boolean hasCredentialsForApp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes credentialsForApp = 2; */ public com.google.protobuf.ByteString getCredentialsForApp() { return credentialsForApp_; } /** * optional bytes credentialsForApp = 2; */ public Builder setCredentialsForApp(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; credentialsForApp_ = value; onChanged(); return this; } /** * optional bytes credentialsForApp = 2; */ public Builder clearCredentialsForApp() { bitField0_ = (bitField0_ & ~0x00000002); credentialsForApp_ = getDefaultInstance().getCredentialsForApp(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.SystemCredentialsForAppsProto) } static { defaultInstance = new SystemCredentialsForAppsProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.SystemCredentialsForAppsProto) } public interface AppCollectorDataProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.ApplicationIdProto app_id = 1; /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ boolean hasAppId(); /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId(); /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder(); // optional string app_collector_addr = 2; /** * optional string app_collector_addr = 2; */ boolean hasAppCollectorAddr(); /** * optional string app_collector_addr = 2; */ java.lang.String getAppCollectorAddr(); /** * optional string app_collector_addr = 2; */ com.google.protobuf.ByteString getAppCollectorAddrBytes(); // optional int64 rm_identifier = 3 [default = -1]; /** * optional int64 rm_identifier = 3 [default = -1]; */ boolean hasRmIdentifier(); /** * optional int64 rm_identifier = 3 [default = -1]; */ long getRmIdentifier(); // optional int64 version = 4 [default = -1]; /** * optional int64 version = 4 [default = -1]; */ boolean hasVersion(); /** * optional int64 version = 4 [default = -1]; */ long getVersion(); // optional .hadoop.common.TokenProto app_collector_token = 5; /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ boolean hasAppCollectorToken(); /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAppCollectorToken(); /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAppCollectorTokenOrBuilder(); } /** * Protobuf type {@code hadoop.yarn.AppCollectorDataProto} * *
   *//////////////////////////////////////////////////////////////////////
   * //// From collector_nodemanager_protocol ////////////////////////////
   * //////////////////////////////////////////////////////////////////////
   * 
*/ public static final class AppCollectorDataProto extends com.google.protobuf.GeneratedMessage implements AppCollectorDataProtoOrBuilder { // Use AppCollectorDataProto.newBuilder() to construct. private AppCollectorDataProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AppCollectorDataProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AppCollectorDataProto defaultInstance; public static AppCollectorDataProto getDefaultInstance() { return defaultInstance; } public AppCollectorDataProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AppCollectorDataProto( 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.ApplicationIdProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = appId_.toBuilder(); } appId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appId_); appId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; appCollectorAddr_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; rmIdentifier_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; version_ = input.readInt64(); break; } case 42: { org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = appCollectorToken_.toBuilder(); } appCollectorToken_ = input.readMessage(org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appCollectorToken_); appCollectorToken_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_AppCollectorDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_AppCollectorDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AppCollectorDataProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AppCollectorDataProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.ApplicationIdProto app_id = 1; public static final int APP_ID_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_; /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() { return appId_; } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() { return appId_; } // optional string app_collector_addr = 2; public static final int APP_COLLECTOR_ADDR_FIELD_NUMBER = 2; private java.lang.Object appCollectorAddr_; /** * optional string app_collector_addr = 2; */ public boolean hasAppCollectorAddr() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string app_collector_addr = 2; */ public java.lang.String getAppCollectorAddr() { java.lang.Object ref = appCollectorAddr_; 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()) { appCollectorAddr_ = s; } return s; } } /** * optional string app_collector_addr = 2; */ public com.google.protobuf.ByteString getAppCollectorAddrBytes() { java.lang.Object ref = appCollectorAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appCollectorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 rm_identifier = 3 [default = -1]; public static final int RM_IDENTIFIER_FIELD_NUMBER = 3; private long rmIdentifier_; /** * optional int64 rm_identifier = 3 [default = -1]; */ public boolean hasRmIdentifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 rm_identifier = 3 [default = -1]; */ public long getRmIdentifier() { return rmIdentifier_; } // optional int64 version = 4 [default = -1]; public static final int VERSION_FIELD_NUMBER = 4; private long version_; /** * optional int64 version = 4 [default = -1]; */ public boolean hasVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 version = 4 [default = -1]; */ public long getVersion() { return version_; } // optional .hadoop.common.TokenProto app_collector_token = 5; public static final int APP_COLLECTOR_TOKEN_FIELD_NUMBER = 5; private org.apache.hadoop.security.proto.SecurityProtos.TokenProto appCollectorToken_; /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public boolean hasAppCollectorToken() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAppCollectorToken() { return appCollectorToken_; } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAppCollectorTokenOrBuilder() { return appCollectorToken_; } private void initFields() { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); appCollectorAddr_ = ""; rmIdentifier_ = -1L; version_ = -1L; appCollectorToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasAppCollectorToken()) { if (!getAppCollectorToken().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, appId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAppCollectorAddrBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, rmIdentifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, version_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, appCollectorToken_); } 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, appId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAppCollectorAddrBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, rmIdentifier_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, version_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, appCollectorToken_); } 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.YarnServerCommonServiceProtos.AppCollectorDataProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto) obj; boolean result = true; result = result && (hasAppId() == other.hasAppId()); if (hasAppId()) { result = result && getAppId() .equals(other.getAppId()); } result = result && (hasAppCollectorAddr() == other.hasAppCollectorAddr()); if (hasAppCollectorAddr()) { result = result && getAppCollectorAddr() .equals(other.getAppCollectorAddr()); } result = result && (hasRmIdentifier() == other.hasRmIdentifier()); if (hasRmIdentifier()) { result = result && (getRmIdentifier() == other.getRmIdentifier()); } result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && (hasAppCollectorToken() == other.hasAppCollectorToken()); if (hasAppCollectorToken()) { result = result && getAppCollectorToken() .equals(other.getAppCollectorToken()); } 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 (hasAppId()) { hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } if (hasAppCollectorAddr()) { hash = (37 * hash) + APP_COLLECTOR_ADDR_FIELD_NUMBER; hash = (53 * hash) + getAppCollectorAddr().hashCode(); } if (hasRmIdentifier()) { hash = (37 * hash) + RM_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + hashLong(getRmIdentifier()); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + hashLong(getVersion()); } if (hasAppCollectorToken()) { hash = (37 * hash) + APP_COLLECTOR_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getAppCollectorToken().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto 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.YarnServerCommonServiceProtos.AppCollectorDataProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto 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.YarnServerCommonServiceProtos.AppCollectorDataProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto 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.YarnServerCommonServiceProtos.AppCollectorDataProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto 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.YarnServerCommonServiceProtos.AppCollectorDataProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto 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.YarnServerCommonServiceProtos.AppCollectorDataProto 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.AppCollectorDataProto} * *
     *//////////////////////////////////////////////////////////////////////
     * //// From collector_nodemanager_protocol ////////////////////////////
     * //////////////////////////////////////////////////////////////////////
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_AppCollectorDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_AppCollectorDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAppIdFieldBuilder(); getAppCollectorTokenFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (appIdBuilder_ == null) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); } else { appIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); appCollectorAddr_ = ""; bitField0_ = (bitField0_ & ~0x00000002); rmIdentifier_ = -1L; bitField0_ = (bitField0_ & ~0x00000004); version_ = -1L; bitField0_ = (bitField0_ & ~0x00000008); if (appCollectorTokenBuilder_ == null) { appCollectorToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance(); } else { appCollectorTokenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_AppCollectorDataProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (appIdBuilder_ == null) { result.appId_ = appId_; } else { result.appId_ = appIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.appCollectorAddr_ = appCollectorAddr_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rmIdentifier_ = rmIdentifier_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.version_ = version_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (appCollectorTokenBuilder_ == null) { result.appCollectorToken_ = appCollectorToken_; } else { result.appCollectorToken_ = appCollectorTokenBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance()) return this; if (other.hasAppId()) { mergeAppId(other.getAppId()); } if (other.hasAppCollectorAddr()) { bitField0_ |= 0x00000002; appCollectorAddr_ = other.appCollectorAddr_; onChanged(); } if (other.hasRmIdentifier()) { setRmIdentifier(other.getRmIdentifier()); } if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasAppCollectorToken()) { mergeAppCollectorToken(other.getAppCollectorToken()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasAppCollectorToken()) { if (!getAppCollectorToken().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.YarnServerCommonServiceProtos.AppCollectorDataProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.ApplicationIdProto app_id = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> appIdBuilder_; /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() { if (appIdBuilder_ == null) { return appId_; } else { return appIdBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public Builder setAppId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (appIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); } else { appIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public Builder setAppId( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) { if (appIdBuilder_ == null) { appId_ = builderForValue.build(); onChanged(); } else { appIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public Builder mergeAppId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (appIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && appId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(appId_).mergeFrom(value).buildPartial(); } else { appId_ = value; } onChanged(); } else { appIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public Builder clearAppId() { if (appIdBuilder_ == null) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); onChanged(); } else { appIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getAppIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAppIdFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() { if (appIdBuilder_ != null) { return appIdBuilder_.getMessageOrBuilder(); } else { return appId_; } } /** * optional .hadoop.yarn.ApplicationIdProto app_id = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> getAppIdFieldBuilder() { if (appIdBuilder_ == null) { appIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>( appId_, getParentForChildren(), isClean()); appId_ = null; } return appIdBuilder_; } // optional string app_collector_addr = 2; private java.lang.Object appCollectorAddr_ = ""; /** * optional string app_collector_addr = 2; */ public boolean hasAppCollectorAddr() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string app_collector_addr = 2; */ public java.lang.String getAppCollectorAddr() { java.lang.Object ref = appCollectorAddr_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appCollectorAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string app_collector_addr = 2; */ public com.google.protobuf.ByteString getAppCollectorAddrBytes() { java.lang.Object ref = appCollectorAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appCollectorAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app_collector_addr = 2; */ public Builder setAppCollectorAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appCollectorAddr_ = value; onChanged(); return this; } /** * optional string app_collector_addr = 2; */ public Builder clearAppCollectorAddr() { bitField0_ = (bitField0_ & ~0x00000002); appCollectorAddr_ = getDefaultInstance().getAppCollectorAddr(); onChanged(); return this; } /** * optional string app_collector_addr = 2; */ public Builder setAppCollectorAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appCollectorAddr_ = value; onChanged(); return this; } // optional int64 rm_identifier = 3 [default = -1]; private long rmIdentifier_ = -1L; /** * optional int64 rm_identifier = 3 [default = -1]; */ public boolean hasRmIdentifier() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 rm_identifier = 3 [default = -1]; */ public long getRmIdentifier() { return rmIdentifier_; } /** * optional int64 rm_identifier = 3 [default = -1]; */ public Builder setRmIdentifier(long value) { bitField0_ |= 0x00000004; rmIdentifier_ = value; onChanged(); return this; } /** * optional int64 rm_identifier = 3 [default = -1]; */ public Builder clearRmIdentifier() { bitField0_ = (bitField0_ & ~0x00000004); rmIdentifier_ = -1L; onChanged(); return this; } // optional int64 version = 4 [default = -1]; private long version_ = -1L; /** * optional int64 version = 4 [default = -1]; */ public boolean hasVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 version = 4 [default = -1]; */ public long getVersion() { return version_; } /** * optional int64 version = 4 [default = -1]; */ public Builder setVersion(long value) { bitField0_ |= 0x00000008; version_ = value; onChanged(); return this; } /** * optional int64 version = 4 [default = -1]; */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000008); version_ = -1L; onChanged(); return this; } // optional .hadoop.common.TokenProto app_collector_token = 5; private org.apache.hadoop.security.proto.SecurityProtos.TokenProto appCollectorToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> appCollectorTokenBuilder_; /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public boolean hasAppCollectorToken() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAppCollectorToken() { if (appCollectorTokenBuilder_ == null) { return appCollectorToken_; } else { return appCollectorTokenBuilder_.getMessage(); } } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public Builder setAppCollectorToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) { if (appCollectorTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appCollectorToken_ = value; onChanged(); } else { appCollectorTokenBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public Builder setAppCollectorToken( org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) { if (appCollectorTokenBuilder_ == null) { appCollectorToken_ = builderForValue.build(); onChanged(); } else { appCollectorTokenBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public Builder mergeAppCollectorToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) { if (appCollectorTokenBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && appCollectorToken_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) { appCollectorToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(appCollectorToken_).mergeFrom(value).buildPartial(); } else { appCollectorToken_ = value; } onChanged(); } else { appCollectorTokenBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public Builder clearAppCollectorToken() { if (appCollectorTokenBuilder_ == null) { appCollectorToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance(); onChanged(); } else { appCollectorTokenBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getAppCollectorTokenBuilder() { bitField0_ |= 0x00000010; onChanged(); return getAppCollectorTokenFieldBuilder().getBuilder(); } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAppCollectorTokenOrBuilder() { if (appCollectorTokenBuilder_ != null) { return appCollectorTokenBuilder_.getMessageOrBuilder(); } else { return appCollectorToken_; } } /** * optional .hadoop.common.TokenProto app_collector_token = 5; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> getAppCollectorTokenFieldBuilder() { if (appCollectorTokenBuilder_ == null) { appCollectorTokenBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>( appCollectorToken_, getParentForChildren(), isClean()); appCollectorToken_ = null; } return appCollectorTokenBuilder_; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.AppCollectorDataProto) } static { defaultInstance = new AppCollectorDataProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.AppCollectorDataProto) } public interface ReportNewCollectorInfoRequestProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ java.util.List getAppCollectorsList(); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getAppCollectors(int index); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ int getAppCollectorsCount(); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ java.util.List getAppCollectorsOrBuilderList(); /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getAppCollectorsOrBuilder( int index); } /** * Protobuf type {@code hadoop.yarn.ReportNewCollectorInfoRequestProto} * *
   *////////////////////////////////////////////////////
   * ///// collector_nodemanager_protocol //////////////
   * ////////////////////////////////////////////////////
   * 
*/ public static final class ReportNewCollectorInfoRequestProto extends com.google.protobuf.GeneratedMessage implements ReportNewCollectorInfoRequestProtoOrBuilder { // Use ReportNewCollectorInfoRequestProto.newBuilder() to construct. private ReportNewCollectorInfoRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReportNewCollectorInfoRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReportNewCollectorInfoRequestProto defaultInstance; public static ReportNewCollectorInfoRequestProto getDefaultInstance() { return defaultInstance; } public ReportNewCollectorInfoRequestProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReportNewCollectorInfoRequestProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { appCollectors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } appCollectors_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { appCollectors_ = java.util.Collections.unmodifiableList(appCollectors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReportNewCollectorInfoRequestProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReportNewCollectorInfoRequestProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; public static final int APP_COLLECTORS_FIELD_NUMBER = 1; private java.util.List appCollectors_; /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public java.util.List getAppCollectorsList() { return appCollectors_; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public java.util.List getAppCollectorsOrBuilderList() { return appCollectors_; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public int getAppCollectorsCount() { return appCollectors_.size(); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getAppCollectors(int index) { return appCollectors_.get(index); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getAppCollectorsOrBuilder( int index) { return appCollectors_.get(index); } private void initFields() { appCollectors_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getAppCollectorsCount(); i++) { if (!getAppCollectors(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < appCollectors_.size(); i++) { output.writeMessage(1, appCollectors_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < appCollectors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, appCollectors_.get(i)); } 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto) obj; boolean result = true; result = result && getAppCollectorsList() .equals(other.getAppCollectorsList()); 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 (getAppCollectorsCount() > 0) { hash = (37 * hash) + APP_COLLECTORS_FIELD_NUMBER; hash = (53 * hash) + getAppCollectorsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto 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.ReportNewCollectorInfoRequestProto} * *
     *////////////////////////////////////////////////////
     * ///// collector_nodemanager_protocol //////////////
     * ////////////////////////////////////////////////////
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAppCollectorsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (appCollectorsBuilder_ == null) { appCollectors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { appCollectorsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto(this); int from_bitField0_ = bitField0_; if (appCollectorsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { appCollectors_ = java.util.Collections.unmodifiableList(appCollectors_); bitField0_ = (bitField0_ & ~0x00000001); } result.appCollectors_ = appCollectors_; } else { result.appCollectors_ = appCollectorsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto.getDefaultInstance()) return this; if (appCollectorsBuilder_ == null) { if (!other.appCollectors_.isEmpty()) { if (appCollectors_.isEmpty()) { appCollectors_ = other.appCollectors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAppCollectorsIsMutable(); appCollectors_.addAll(other.appCollectors_); } onChanged(); } } else { if (!other.appCollectors_.isEmpty()) { if (appCollectorsBuilder_.isEmpty()) { appCollectorsBuilder_.dispose(); appCollectorsBuilder_ = null; appCollectors_ = other.appCollectors_; bitField0_ = (bitField0_ & ~0x00000001); appCollectorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAppCollectorsFieldBuilder() : null; } else { appCollectorsBuilder_.addAllMessages(other.appCollectors_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getAppCollectorsCount(); i++) { if (!getAppCollectors(i).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.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoRequestProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; private java.util.List appCollectors_ = java.util.Collections.emptyList(); private void ensureAppCollectorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { appCollectors_ = new java.util.ArrayList(appCollectors_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder> appCollectorsBuilder_; /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public java.util.List getAppCollectorsList() { if (appCollectorsBuilder_ == null) { return java.util.Collections.unmodifiableList(appCollectors_); } else { return appCollectorsBuilder_.getMessageList(); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public int getAppCollectorsCount() { if (appCollectorsBuilder_ == null) { return appCollectors_.size(); } else { return appCollectorsBuilder_.getCount(); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto getAppCollectors(int index) { if (appCollectorsBuilder_ == null) { return appCollectors_.get(index); } else { return appCollectorsBuilder_.getMessage(index); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder setAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) { if (appCollectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAppCollectorsIsMutable(); appCollectors_.set(index, value); onChanged(); } else { appCollectorsBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder setAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.set(index, builderForValue.build()); onChanged(); } else { appCollectorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder addAppCollectors(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) { if (appCollectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAppCollectorsIsMutable(); appCollectors_.add(value); onChanged(); } else { appCollectorsBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder addAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto value) { if (appCollectorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAppCollectorsIsMutable(); appCollectors_.add(index, value); onChanged(); } else { appCollectorsBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder addAppCollectors( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.add(builderForValue.build()); onChanged(); } else { appCollectorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder addAppCollectors( int index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder builderForValue) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.add(index, builderForValue.build()); onChanged(); } else { appCollectorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder addAllAppCollectors( java.lang.Iterable values) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); super.addAll(values, appCollectors_); onChanged(); } else { appCollectorsBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder clearAppCollectors() { if (appCollectorsBuilder_ == null) { appCollectors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { appCollectorsBuilder_.clear(); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public Builder removeAppCollectors(int index) { if (appCollectorsBuilder_ == null) { ensureAppCollectorsIsMutable(); appCollectors_.remove(index); onChanged(); } else { appCollectorsBuilder_.remove(index); } return this; } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder getAppCollectorsBuilder( int index) { return getAppCollectorsFieldBuilder().getBuilder(index); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder getAppCollectorsOrBuilder( int index) { if (appCollectorsBuilder_ == null) { return appCollectors_.get(index); } else { return appCollectorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public java.util.List getAppCollectorsOrBuilderList() { if (appCollectorsBuilder_ != null) { return appCollectorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(appCollectors_); } } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder addAppCollectorsBuilder() { return getAppCollectorsFieldBuilder().addBuilder( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder addAppCollectorsBuilder( int index) { return getAppCollectorsFieldBuilder().addBuilder( index, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.getDefaultInstance()); } /** * repeated .hadoop.yarn.AppCollectorDataProto app_collectors = 1; */ public java.util.List getAppCollectorsBuilderList() { return getAppCollectorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder> getAppCollectorsFieldBuilder() { if (appCollectorsBuilder_ == null) { appCollectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProto.Builder, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorDataProtoOrBuilder>( appCollectors_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); appCollectors_ = null; } return appCollectorsBuilder_; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.ReportNewCollectorInfoRequestProto) } static { defaultInstance = new ReportNewCollectorInfoRequestProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.ReportNewCollectorInfoRequestProto) } public interface ReportNewCollectorInfoResponseProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code hadoop.yarn.ReportNewCollectorInfoResponseProto} */ public static final class ReportNewCollectorInfoResponseProto extends com.google.protobuf.GeneratedMessage implements ReportNewCollectorInfoResponseProtoOrBuilder { // Use ReportNewCollectorInfoResponseProto.newBuilder() to construct. private ReportNewCollectorInfoResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReportNewCollectorInfoResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReportNewCollectorInfoResponseProto defaultInstance; public static ReportNewCollectorInfoResponseProto getDefaultInstance() { return defaultInstance; } public ReportNewCollectorInfoResponseProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReportNewCollectorInfoResponseProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); 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; } } } } 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReportNewCollectorInfoResponseProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReportNewCollectorInfoResponseProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private void initFields() { } 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(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto) obj; boolean result = true; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto 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.ReportNewCollectorInfoResponseProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.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(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto.getDefaultInstance()) return this; 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.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.ReportNewCollectorInfoResponseProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.ReportNewCollectorInfoResponseProto) } static { defaultInstance = new ReportNewCollectorInfoResponseProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.ReportNewCollectorInfoResponseProto) } public interface GetTimelineCollectorContextRequestProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.ApplicationIdProto appId = 1; /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ boolean hasAppId(); /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId(); /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder(); } /** * Protobuf type {@code hadoop.yarn.GetTimelineCollectorContextRequestProto} */ public static final class GetTimelineCollectorContextRequestProto extends com.google.protobuf.GeneratedMessage implements GetTimelineCollectorContextRequestProtoOrBuilder { // Use GetTimelineCollectorContextRequestProto.newBuilder() to construct. private GetTimelineCollectorContextRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetTimelineCollectorContextRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetTimelineCollectorContextRequestProto defaultInstance; public static GetTimelineCollectorContextRequestProto getDefaultInstance() { return defaultInstance; } public GetTimelineCollectorContextRequestProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetTimelineCollectorContextRequestProto( 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.ApplicationIdProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = appId_.toBuilder(); } appId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(appId_); appId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetTimelineCollectorContextRequestProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetTimelineCollectorContextRequestProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.ApplicationIdProto appId = 1; public static final int APPID_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_; /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() { return appId_; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() { return appId_; } private void initFields() { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, appId_); } 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, appId_); } 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto) obj; boolean result = true; result = result && (hasAppId() == other.hasAppId()); if (hasAppId()) { result = result && getAppId() .equals(other.getAppId()); } 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 (hasAppId()) { hash = (37 * hash) + APPID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto 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.GetTimelineCollectorContextRequestProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAppIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (appIdBuilder_ == null) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); } else { appIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (appIdBuilder_ == null) { result.appId_ = appId_; } else { result.appId_ = appIdBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto.getDefaultInstance()) return this; if (other.hasAppId()) { mergeAppId(other.getAppId()); } 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextRequestProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.ApplicationIdProto appId = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> appIdBuilder_; /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() { if (appIdBuilder_ == null) { return appId_; } else { return appIdBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder setAppId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (appIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appId_ = value; onChanged(); } else { appIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder setAppId( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) { if (appIdBuilder_ == null) { appId_ = builderForValue.build(); onChanged(); } else { appIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder mergeAppId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) { if (appIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && appId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(appId_).mergeFrom(value).buildPartial(); } else { appId_ = value; } onChanged(); } else { appIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public Builder clearAppId() { if (appIdBuilder_ == null) { appId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance(); onChanged(); } else { appIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getAppIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAppIdFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() { if (appIdBuilder_ != null) { return appIdBuilder_.getMessageOrBuilder(); } else { return appId_; } } /** * optional .hadoop.yarn.ApplicationIdProto appId = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> getAppIdFieldBuilder() { if (appIdBuilder_ == null) { appIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>( appId_, getParentForChildren(), isClean()); appId_ = null; } return appIdBuilder_; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.GetTimelineCollectorContextRequestProto) } static { defaultInstance = new GetTimelineCollectorContextRequestProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.GetTimelineCollectorContextRequestProto) } public interface GetTimelineCollectorContextResponseProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string user_id = 1; /** * optional string user_id = 1; */ boolean hasUserId(); /** * optional string user_id = 1; */ java.lang.String getUserId(); /** * optional string user_id = 1; */ com.google.protobuf.ByteString getUserIdBytes(); // optional string flow_name = 2; /** * optional string flow_name = 2; */ boolean hasFlowName(); /** * optional string flow_name = 2; */ java.lang.String getFlowName(); /** * optional string flow_name = 2; */ com.google.protobuf.ByteString getFlowNameBytes(); // optional string flow_version = 3; /** * optional string flow_version = 3; */ boolean hasFlowVersion(); /** * optional string flow_version = 3; */ java.lang.String getFlowVersion(); /** * optional string flow_version = 3; */ com.google.protobuf.ByteString getFlowVersionBytes(); // optional int64 flow_run_id = 4; /** * optional int64 flow_run_id = 4; */ boolean hasFlowRunId(); /** * optional int64 flow_run_id = 4; */ long getFlowRunId(); } /** * Protobuf type {@code hadoop.yarn.GetTimelineCollectorContextResponseProto} */ public static final class GetTimelineCollectorContextResponseProto extends com.google.protobuf.GeneratedMessage implements GetTimelineCollectorContextResponseProtoOrBuilder { // Use GetTimelineCollectorContextResponseProto.newBuilder() to construct. private GetTimelineCollectorContextResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetTimelineCollectorContextResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetTimelineCollectorContextResponseProto defaultInstance; public static GetTimelineCollectorContextResponseProto getDefaultInstance() { return defaultInstance; } public GetTimelineCollectorContextResponseProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetTimelineCollectorContextResponseProto( 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; userId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; flowName_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; flowVersion_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; flowRunId_ = input.readInt64(); 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetTimelineCollectorContextResponseProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetTimelineCollectorContextResponseProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string user_id = 1; public static final int USER_ID_FIELD_NUMBER = 1; private java.lang.Object userId_; /** * optional string user_id = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string user_id = 1; */ public java.lang.String getUserId() { java.lang.Object ref = userId_; 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()) { userId_ = s; } return s; } } /** * optional string user_id = 1; */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string flow_name = 2; public static final int FLOW_NAME_FIELD_NUMBER = 2; private java.lang.Object flowName_; /** * optional string flow_name = 2; */ public boolean hasFlowName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string flow_name = 2; */ public java.lang.String getFlowName() { java.lang.Object ref = flowName_; 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()) { flowName_ = s; } return s; } } /** * optional string flow_name = 2; */ public com.google.protobuf.ByteString getFlowNameBytes() { java.lang.Object ref = flowName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); flowName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string flow_version = 3; public static final int FLOW_VERSION_FIELD_NUMBER = 3; private java.lang.Object flowVersion_; /** * optional string flow_version = 3; */ public boolean hasFlowVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string flow_version = 3; */ public java.lang.String getFlowVersion() { java.lang.Object ref = flowVersion_; 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()) { flowVersion_ = s; } return s; } } /** * optional string flow_version = 3; */ public com.google.protobuf.ByteString getFlowVersionBytes() { java.lang.Object ref = flowVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); flowVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 flow_run_id = 4; public static final int FLOW_RUN_ID_FIELD_NUMBER = 4; private long flowRunId_; /** * optional int64 flow_run_id = 4; */ public boolean hasFlowRunId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 flow_run_id = 4; */ public long getFlowRunId() { return flowRunId_; } private void initFields() { userId_ = ""; flowName_ = ""; flowVersion_ = ""; flowRunId_ = 0L; } 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, getUserIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFlowNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getFlowVersionBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, flowRunId_); } 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, getUserIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFlowNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getFlowVersionBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, flowRunId_); } 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto) obj; boolean result = true; result = result && (hasUserId() == other.hasUserId()); if (hasUserId()) { result = result && getUserId() .equals(other.getUserId()); } result = result && (hasFlowName() == other.hasFlowName()); if (hasFlowName()) { result = result && getFlowName() .equals(other.getFlowName()); } result = result && (hasFlowVersion() == other.hasFlowVersion()); if (hasFlowVersion()) { result = result && getFlowVersion() .equals(other.getFlowVersion()); } result = result && (hasFlowRunId() == other.hasFlowRunId()); if (hasFlowRunId()) { result = result && (getFlowRunId() == other.getFlowRunId()); } 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 (hasUserId()) { hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); } if (hasFlowName()) { hash = (37 * hash) + FLOW_NAME_FIELD_NUMBER; hash = (53 * hash) + getFlowName().hashCode(); } if (hasFlowVersion()) { hash = (37 * hash) + FLOW_VERSION_FIELD_NUMBER; hash = (53 * hash) + getFlowVersion().hashCode(); } if (hasFlowRunId()) { hash = (37 * hash) + FLOW_RUN_ID_FIELD_NUMBER; hash = (53 * hash) + hashLong(getFlowRunId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto 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.GetTimelineCollectorContextResponseProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.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(); userId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); flowName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); flowVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000004); flowRunId_ = 0L; 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userId_ = userId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.flowName_ = flowName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.flowVersion_ = flowVersion_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.flowRunId_ = flowRunId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto.getDefaultInstance()) return this; if (other.hasUserId()) { bitField0_ |= 0x00000001; userId_ = other.userId_; onChanged(); } if (other.hasFlowName()) { bitField0_ |= 0x00000002; flowName_ = other.flowName_; onChanged(); } if (other.hasFlowVersion()) { bitField0_ |= 0x00000004; flowVersion_ = other.flowVersion_; onChanged(); } if (other.hasFlowRunId()) { setFlowRunId(other.getFlowRunId()); } 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.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.GetTimelineCollectorContextResponseProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string user_id = 1; private java.lang.Object userId_ = ""; /** * optional string user_id = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string user_id = 1; */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string user_id = 1; */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string user_id = 1; */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } /** * optional string user_id = 1; */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** * optional string user_id = 1; */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } // optional string flow_name = 2; private java.lang.Object flowName_ = ""; /** * optional string flow_name = 2; */ public boolean hasFlowName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string flow_name = 2; */ public java.lang.String getFlowName() { java.lang.Object ref = flowName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); flowName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string flow_name = 2; */ public com.google.protobuf.ByteString getFlowNameBytes() { java.lang.Object ref = flowName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); flowName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string flow_name = 2; */ public Builder setFlowName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; flowName_ = value; onChanged(); return this; } /** * optional string flow_name = 2; */ public Builder clearFlowName() { bitField0_ = (bitField0_ & ~0x00000002); flowName_ = getDefaultInstance().getFlowName(); onChanged(); return this; } /** * optional string flow_name = 2; */ public Builder setFlowNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; flowName_ = value; onChanged(); return this; } // optional string flow_version = 3; private java.lang.Object flowVersion_ = ""; /** * optional string flow_version = 3; */ public boolean hasFlowVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string flow_version = 3; */ public java.lang.String getFlowVersion() { java.lang.Object ref = flowVersion_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); flowVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string flow_version = 3; */ public com.google.protobuf.ByteString getFlowVersionBytes() { java.lang.Object ref = flowVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); flowVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string flow_version = 3; */ public Builder setFlowVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; flowVersion_ = value; onChanged(); return this; } /** * optional string flow_version = 3; */ public Builder clearFlowVersion() { bitField0_ = (bitField0_ & ~0x00000004); flowVersion_ = getDefaultInstance().getFlowVersion(); onChanged(); return this; } /** * optional string flow_version = 3; */ public Builder setFlowVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; flowVersion_ = value; onChanged(); return this; } // optional int64 flow_run_id = 4; private long flowRunId_ ; /** * optional int64 flow_run_id = 4; */ public boolean hasFlowRunId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 flow_run_id = 4; */ public long getFlowRunId() { return flowRunId_; } /** * optional int64 flow_run_id = 4; */ public Builder setFlowRunId(long value) { bitField0_ |= 0x00000008; flowRunId_ = value; onChanged(); return this; } /** * optional int64 flow_run_id = 4; */ public Builder clearFlowRunId() { bitField0_ = (bitField0_ & ~0x00000008); flowRunId_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.GetTimelineCollectorContextResponseProto) } static { defaultInstance = new GetTimelineCollectorContextResponseProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.GetTimelineCollectorContextResponseProto) } public interface NMContainerStatusProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.ContainerIdProto container_id = 1; /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ boolean hasContainerId(); /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId(); /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder(); // optional .hadoop.yarn.ContainerStateProto container_state = 2; /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ boolean hasContainerState(); /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto getContainerState(); // optional .hadoop.yarn.ResourceProto resource = 3; /** * optional .hadoop.yarn.ResourceProto resource = 3; */ boolean hasResource(); /** * optional .hadoop.yarn.ResourceProto resource = 3; */ org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource(); /** * optional .hadoop.yarn.ResourceProto resource = 3; */ org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder(); // optional .hadoop.yarn.PriorityProto priority = 4; /** * optional .hadoop.yarn.PriorityProto priority = 4; */ boolean hasPriority(); /** * optional .hadoop.yarn.PriorityProto priority = 4; */ org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority(); /** * optional .hadoop.yarn.PriorityProto priority = 4; */ org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder(); // optional string diagnostics = 5 [default = "N/A"]; /** * optional string diagnostics = 5 [default = "N/A"]; */ boolean hasDiagnostics(); /** * optional string diagnostics = 5 [default = "N/A"]; */ java.lang.String getDiagnostics(); /** * optional string diagnostics = 5 [default = "N/A"]; */ com.google.protobuf.ByteString getDiagnosticsBytes(); // optional int32 container_exit_status = 6; /** * optional int32 container_exit_status = 6; */ boolean hasContainerExitStatus(); /** * optional int32 container_exit_status = 6; */ int getContainerExitStatus(); // optional int64 creation_time = 7; /** * optional int64 creation_time = 7; */ boolean hasCreationTime(); /** * optional int64 creation_time = 7; */ long getCreationTime(); // optional string nodeLabelExpression = 8; /** * optional string nodeLabelExpression = 8; */ boolean hasNodeLabelExpression(); /** * optional string nodeLabelExpression = 8; */ java.lang.String getNodeLabelExpression(); /** * optional string nodeLabelExpression = 8; */ com.google.protobuf.ByteString getNodeLabelExpressionBytes(); // optional int32 version = 9; /** * optional int32 version = 9; */ boolean hasVersion(); /** * optional int32 version = 9; */ int getVersion(); // optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ boolean hasExecutionType(); /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType(); // optional int64 allocation_request_id = 11 [default = -1]; /** * optional int64 allocation_request_id = 11 [default = -1]; */ boolean hasAllocationRequestId(); /** * optional int64 allocation_request_id = 11 [default = -1]; */ long getAllocationRequestId(); // repeated string allocation_tags = 12; /** * repeated string allocation_tags = 12; */ java.util.List getAllocationTagsList(); /** * repeated string allocation_tags = 12; */ int getAllocationTagsCount(); /** * repeated string allocation_tags = 12; */ java.lang.String getAllocationTags(int index); /** * repeated string allocation_tags = 12; */ com.google.protobuf.ByteString getAllocationTagsBytes(int index); } /** * Protobuf type {@code hadoop.yarn.NMContainerStatusProto} */ public static final class NMContainerStatusProto extends com.google.protobuf.GeneratedMessage implements NMContainerStatusProtoOrBuilder { // Use NMContainerStatusProto.newBuilder() to construct. private NMContainerStatusProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NMContainerStatusProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NMContainerStatusProto defaultInstance; public static NMContainerStatusProto getDefaultInstance() { return defaultInstance; } public NMContainerStatusProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NMContainerStatusProto( 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 16: { int rawValue = input.readEnum(); org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto value = org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; containerState_ = value; } break; } case 26: { org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { 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_ |= 0x00000004; break; } case 34: { org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { 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_ |= 0x00000008; break; } case 42: { bitField0_ |= 0x00000010; diagnostics_ = input.readBytes(); break; } case 48: { bitField0_ |= 0x00000020; containerExitStatus_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; creationTime_ = input.readInt64(); break; } case 66: { bitField0_ |= 0x00000080; nodeLabelExpression_ = input.readBytes(); break; } case 72: { bitField0_ |= 0x00000100; version_ = input.readInt32(); break; } case 80: { 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(10, rawValue); } else { bitField0_ |= 0x00000200; executionType_ = value; } break; } case 88: { bitField0_ |= 0x00000400; allocationRequestId_ = input.readInt64(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { allocationTags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000800; } 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_ & 0x00000800) == 0x00000800)) { 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NMContainerStatusProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NMContainerStatusProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NMContainerStatusProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NMContainerStatusProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.ContainerIdProto container_id = 1; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_; /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() { return containerId_; } /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() { return containerId_; } // optional .hadoop.yarn.ContainerStateProto container_state = 2; public static final int CONTAINER_STATE_FIELD_NUMBER = 2; private org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto containerState_; /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ public boolean hasContainerState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto getContainerState() { return containerState_; } // optional .hadoop.yarn.ResourceProto resource = 3; public static final int RESOURCE_FIELD_NUMBER = 3; private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_; /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public boolean hasResource() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() { return resource_; } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() { return resource_; } // optional .hadoop.yarn.PriorityProto priority = 4; public static final int PRIORITY_FIELD_NUMBER = 4; private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_; /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public boolean hasPriority() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() { return priority_; } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() { return priority_; } // optional string diagnostics = 5 [default = "N/A"]; public static final int DIAGNOSTICS_FIELD_NUMBER = 5; private java.lang.Object diagnostics_; /** * optional string diagnostics = 5 [default = "N/A"]; */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string diagnostics = 5 [default = "N/A"]; */ public java.lang.String getDiagnostics() { java.lang.Object ref = diagnostics_; 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()) { diagnostics_ = s; } return s; } } /** * optional string diagnostics = 5 [default = "N/A"]; */ public com.google.protobuf.ByteString getDiagnosticsBytes() { java.lang.Object ref = diagnostics_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diagnostics_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 container_exit_status = 6; public static final int CONTAINER_EXIT_STATUS_FIELD_NUMBER = 6; private int containerExitStatus_; /** * optional int32 container_exit_status = 6; */ public boolean hasContainerExitStatus() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 container_exit_status = 6; */ public int getContainerExitStatus() { return containerExitStatus_; } // optional int64 creation_time = 7; public static final int CREATION_TIME_FIELD_NUMBER = 7; private long creationTime_; /** * optional int64 creation_time = 7; */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 creation_time = 7; */ public long getCreationTime() { return creationTime_; } // optional string nodeLabelExpression = 8; public static final int NODELABELEXPRESSION_FIELD_NUMBER = 8; private java.lang.Object nodeLabelExpression_; /** * optional string nodeLabelExpression = 8; */ public boolean hasNodeLabelExpression() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string nodeLabelExpression = 8; */ 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 = 8; */ 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 int32 version = 9; public static final int VERSION_FIELD_NUMBER = 9; private int version_; /** * optional int32 version = 9; */ public boolean hasVersion() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 version = 9; */ public int getVersion() { return version_; } // optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; public static final int EXECUTIONTYPE_FIELD_NUMBER = 10; private org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto executionType_; /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ public boolean hasExecutionType() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ public org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() { return executionType_; } // optional int64 allocation_request_id = 11 [default = -1]; public static final int ALLOCATION_REQUEST_ID_FIELD_NUMBER = 11; private long allocationRequestId_; /** * optional int64 allocation_request_id = 11 [default = -1]; */ public boolean hasAllocationRequestId() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 allocation_request_id = 11 [default = -1]; */ public long getAllocationRequestId() { return allocationRequestId_; } // repeated string allocation_tags = 12; public static final int ALLOCATION_TAGS_FIELD_NUMBER = 12; private com.google.protobuf.LazyStringList allocationTags_; /** * repeated string allocation_tags = 12; */ public java.util.List getAllocationTagsList() { return allocationTags_; } /** * repeated string allocation_tags = 12; */ public int getAllocationTagsCount() { return allocationTags_.size(); } /** * repeated string allocation_tags = 12; */ public java.lang.String getAllocationTags(int index) { return allocationTags_.get(index); } /** * repeated string allocation_tags = 12; */ public com.google.protobuf.ByteString getAllocationTagsBytes(int index) { return allocationTags_.getByteString(index); } private void initFields() { containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance(); containerState_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.C_NEW; resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance(); priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance(); diagnostics_ = "N/A"; containerExitStatus_ = 0; creationTime_ = 0L; nodeLabelExpression_ = ""; version_ = 0; executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED; 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.writeEnum(2, containerState_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, resource_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, priority_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getDiagnosticsBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, containerExitStatus_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, creationTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getNodeLabelExpressionBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, version_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeEnum(10, executionType_.getNumber()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(11, allocationRequestId_); } for (int i = 0; i < allocationTags_.size(); i++) { output.writeBytes(12, 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 .computeEnumSize(2, containerState_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, resource_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, priority_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getDiagnosticsBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, containerExitStatus_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, creationTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getNodeLabelExpressionBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, version_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, executionType_.getNumber()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, allocationRequestId_); } { int dataSize = 0; for (int i = 0; i < allocationTags_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(allocationTags_.getByteString(i)); } size += dataSize; size += 1 * 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.YarnServerCommonServiceProtos.NMContainerStatusProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto) obj; boolean result = true; result = result && (hasContainerId() == other.hasContainerId()); if (hasContainerId()) { result = result && getContainerId() .equals(other.getContainerId()); } result = result && (hasContainerState() == other.hasContainerState()); if (hasContainerState()) { result = result && (getContainerState() == other.getContainerState()); } result = result && (hasResource() == other.hasResource()); if (hasResource()) { result = result && getResource() .equals(other.getResource()); } result = result && (hasPriority() == other.hasPriority()); if (hasPriority()) { result = result && getPriority() .equals(other.getPriority()); } result = result && (hasDiagnostics() == other.hasDiagnostics()); if (hasDiagnostics()) { result = result && getDiagnostics() .equals(other.getDiagnostics()); } result = result && (hasContainerExitStatus() == other.hasContainerExitStatus()); if (hasContainerExitStatus()) { result = result && (getContainerExitStatus() == other.getContainerExitStatus()); } result = result && (hasCreationTime() == other.hasCreationTime()); if (hasCreationTime()) { result = result && (getCreationTime() == other.getCreationTime()); } result = result && (hasNodeLabelExpression() == other.hasNodeLabelExpression()); if (hasNodeLabelExpression()) { result = result && getNodeLabelExpression() .equals(other.getNodeLabelExpression()); } result = result && (hasVersion() == other.hasVersion()); if (hasVersion()) { result = result && (getVersion() == other.getVersion()); } result = result && (hasExecutionType() == other.hasExecutionType()); if (hasExecutionType()) { result = result && (getExecutionType() == other.getExecutionType()); } 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) + CONTAINER_ID_FIELD_NUMBER; hash = (53 * hash) + getContainerId().hashCode(); } if (hasContainerState()) { hash = (37 * hash) + CONTAINER_STATE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getContainerState()); } if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } if (hasPriority()) { hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority().hashCode(); } if (hasDiagnostics()) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnostics().hashCode(); } if (hasContainerExitStatus()) { hash = (37 * hash) + CONTAINER_EXIT_STATUS_FIELD_NUMBER; hash = (53 * hash) + getContainerExitStatus(); } if (hasCreationTime()) { hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getCreationTime()); } if (hasNodeLabelExpression()) { hash = (37 * hash) + NODELABELEXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getNodeLabelExpression().hashCode(); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); } if (hasExecutionType()) { hash = (37 * hash) + EXECUTIONTYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getExecutionType()); } 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.YarnServerCommonServiceProtos.NMContainerStatusProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto 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.YarnServerCommonServiceProtos.NMContainerStatusProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto 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.YarnServerCommonServiceProtos.NMContainerStatusProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto 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.YarnServerCommonServiceProtos.NMContainerStatusProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto 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.YarnServerCommonServiceProtos.NMContainerStatusProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto 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.YarnServerCommonServiceProtos.NMContainerStatusProto 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.NMContainerStatusProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NMContainerStatusProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NMContainerStatusProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.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(); } } 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); containerState_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.C_NEW; bitField0_ = (bitField0_ & ~0x00000002); if (resourceBuilder_ == null) { resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance(); } else { resourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (priorityBuilder_ == null) { priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance(); } else { priorityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); diagnostics_ = "N/A"; bitField0_ = (bitField0_ & ~0x00000010); containerExitStatus_ = 0; bitField0_ = (bitField0_ & ~0x00000020); creationTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); nodeLabelExpression_ = ""; bitField0_ = (bitField0_ & ~0x00000080); version_ = 0; bitField0_ = (bitField0_ & ~0x00000100); executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED; bitField0_ = (bitField0_ & ~0x00000200); allocationRequestId_ = -1L; bitField0_ = (bitField0_ & ~0x00000400); allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_NMContainerStatusProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto(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.containerState_ = containerState_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (resourceBuilder_ == null) { result.resource_ = resource_; } else { result.resource_ = resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (priorityBuilder_ == null) { result.priority_ = priority_; } else { result.priority_ = priorityBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.diagnostics_ = diagnostics_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.containerExitStatus_ = containerExitStatus_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.creationTime_ = creationTime_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.nodeLabelExpression_ = nodeLabelExpression_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.version_ = version_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.executionType_ = executionType_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.allocationRequestId_ = allocationRequestId_; if (((bitField0_ & 0x00000800) == 0x00000800)) { allocationTags_ = new com.google.protobuf.UnmodifiableLazyStringList( allocationTags_); bitField0_ = (bitField0_ & ~0x00000800); } 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.YarnServerCommonServiceProtos.NMContainerStatusProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (other.hasContainerState()) { setContainerState(other.getContainerState()); } if (other.hasResource()) { mergeResource(other.getResource()); } if (other.hasPriority()) { mergePriority(other.getPriority()); } if (other.hasDiagnostics()) { bitField0_ |= 0x00000010; diagnostics_ = other.diagnostics_; onChanged(); } if (other.hasContainerExitStatus()) { setContainerExitStatus(other.getContainerExitStatus()); } if (other.hasCreationTime()) { setCreationTime(other.getCreationTime()); } if (other.hasNodeLabelExpression()) { bitField0_ |= 0x00000080; nodeLabelExpression_ = other.nodeLabelExpression_; onChanged(); } if (other.hasVersion()) { setVersion(other.getVersion()); } if (other.hasExecutionType()) { setExecutionType(other.getExecutionType()); } if (other.hasAllocationRequestId()) { setAllocationRequestId(other.getAllocationRequestId()); } if (!other.allocationTags_.isEmpty()) { if (allocationTags_.isEmpty()) { allocationTags_ = other.allocationTags_; bitField0_ = (bitField0_ & ~0x00000800); } 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.YarnServerCommonServiceProtos.NMContainerStatusProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NMContainerStatusProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.ContainerIdProto container_id = 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 container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ContainerIdProto container_id = 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 container_id = 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 container_id = 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 container_id = 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 container_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ContainerIdProto container_id = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * optional .hadoop.yarn.ContainerIdProto container_id = 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 .hadoop.yarn.ContainerStateProto container_state = 2; private org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto containerState_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.C_NEW; /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ public boolean hasContainerState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto getContainerState() { return containerState_; } /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ public Builder setContainerState(org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; containerState_ = value; onChanged(); return this; } /** * optional .hadoop.yarn.ContainerStateProto container_state = 2; */ public Builder clearContainerState() { bitField0_ = (bitField0_ & ~0x00000002); containerState_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.C_NEW; onChanged(); return this; } // optional .hadoop.yarn.ResourceProto resource = 3; 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 = 3; */ public boolean hasResource() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() { if (resourceBuilder_ == null) { return resource_; } else { return resourceBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ 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_ |= 0x00000004; return this; } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ 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_ |= 0x00000004; return this; } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public Builder mergeResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) { if (resourceBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && 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_ |= 0x00000004; return this; } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public Builder clearResource() { if (resourceBuilder_ == null) { resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance(); onChanged(); } else { resourceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getResourceFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { return resource_; } } /** * optional .hadoop.yarn.ResourceProto resource = 3; */ 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 .hadoop.yarn.PriorityProto priority = 4; 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 = 4; */ public boolean hasPriority() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() { if (priorityBuilder_ == null) { return priority_; } else { return priorityBuilder_.getMessage(); } } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ 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_ |= 0x00000008; return this; } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ 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_ |= 0x00000008; return this; } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public Builder mergePriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) { if (priorityBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && 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_ |= 0x00000008; return this; } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public Builder clearPriority() { if (priorityBuilder_ == null) { priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance(); onChanged(); } else { priorityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getPriorityBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPriorityFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() { if (priorityBuilder_ != null) { return priorityBuilder_.getMessageOrBuilder(); } else { return priority_; } } /** * optional .hadoop.yarn.PriorityProto priority = 4; */ 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 string diagnostics = 5 [default = "N/A"]; private java.lang.Object diagnostics_ = "N/A"; /** * optional string diagnostics = 5 [default = "N/A"]; */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string diagnostics = 5 [default = "N/A"]; */ public java.lang.String getDiagnostics() { java.lang.Object ref = diagnostics_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); diagnostics_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string diagnostics = 5 [default = "N/A"]; */ public com.google.protobuf.ByteString getDiagnosticsBytes() { java.lang.Object ref = diagnostics_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diagnostics_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string diagnostics = 5 [default = "N/A"]; */ public Builder setDiagnostics( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; diagnostics_ = value; onChanged(); return this; } /** * optional string diagnostics = 5 [default = "N/A"]; */ public Builder clearDiagnostics() { bitField0_ = (bitField0_ & ~0x00000010); diagnostics_ = getDefaultInstance().getDiagnostics(); onChanged(); return this; } /** * optional string diagnostics = 5 [default = "N/A"]; */ public Builder setDiagnosticsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; diagnostics_ = value; onChanged(); return this; } // optional int32 container_exit_status = 6; private int containerExitStatus_ ; /** * optional int32 container_exit_status = 6; */ public boolean hasContainerExitStatus() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 container_exit_status = 6; */ public int getContainerExitStatus() { return containerExitStatus_; } /** * optional int32 container_exit_status = 6; */ public Builder setContainerExitStatus(int value) { bitField0_ |= 0x00000020; containerExitStatus_ = value; onChanged(); return this; } /** * optional int32 container_exit_status = 6; */ public Builder clearContainerExitStatus() { bitField0_ = (bitField0_ & ~0x00000020); containerExitStatus_ = 0; onChanged(); return this; } // optional int64 creation_time = 7; private long creationTime_ ; /** * optional int64 creation_time = 7; */ public boolean hasCreationTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 creation_time = 7; */ public long getCreationTime() { return creationTime_; } /** * optional int64 creation_time = 7; */ public Builder setCreationTime(long value) { bitField0_ |= 0x00000040; creationTime_ = value; onChanged(); return this; } /** * optional int64 creation_time = 7; */ public Builder clearCreationTime() { bitField0_ = (bitField0_ & ~0x00000040); creationTime_ = 0L; onChanged(); return this; } // optional string nodeLabelExpression = 8; private java.lang.Object nodeLabelExpression_ = ""; /** * optional string nodeLabelExpression = 8; */ public boolean hasNodeLabelExpression() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string nodeLabelExpression = 8; */ 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 = 8; */ 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 = 8; */ public Builder setNodeLabelExpression( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; nodeLabelExpression_ = value; onChanged(); return this; } /** * optional string nodeLabelExpression = 8; */ public Builder clearNodeLabelExpression() { bitField0_ = (bitField0_ & ~0x00000080); nodeLabelExpression_ = getDefaultInstance().getNodeLabelExpression(); onChanged(); return this; } /** * optional string nodeLabelExpression = 8; */ public Builder setNodeLabelExpressionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; nodeLabelExpression_ = value; onChanged(); return this; } // optional int32 version = 9; private int version_ ; /** * optional int32 version = 9; */ public boolean hasVersion() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 version = 9; */ public int getVersion() { return version_; } /** * optional int32 version = 9; */ public Builder setVersion(int value) { bitField0_ |= 0x00000100; version_ = value; onChanged(); return this; } /** * optional int32 version = 9; */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000100); version_ = 0; onChanged(); return this; } // optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; private org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED; /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ public boolean hasExecutionType() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ public org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() { return executionType_; } /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ public Builder setExecutionType(org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; executionType_ = value; onChanged(); return this; } /** * optional .hadoop.yarn.ExecutionTypeProto executionType = 10 [default = GUARANTEED]; */ public Builder clearExecutionType() { bitField0_ = (bitField0_ & ~0x00000200); executionType_ = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED; onChanged(); return this; } // optional int64 allocation_request_id = 11 [default = -1]; private long allocationRequestId_ = -1L; /** * optional int64 allocation_request_id = 11 [default = -1]; */ public boolean hasAllocationRequestId() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 allocation_request_id = 11 [default = -1]; */ public long getAllocationRequestId() { return allocationRequestId_; } /** * optional int64 allocation_request_id = 11 [default = -1]; */ public Builder setAllocationRequestId(long value) { bitField0_ |= 0x00000400; allocationRequestId_ = value; onChanged(); return this; } /** * optional int64 allocation_request_id = 11 [default = -1]; */ public Builder clearAllocationRequestId() { bitField0_ = (bitField0_ & ~0x00000400); allocationRequestId_ = -1L; onChanged(); return this; } // repeated string allocation_tags = 12; private com.google.protobuf.LazyStringList allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllocationTagsIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { allocationTags_ = new com.google.protobuf.LazyStringArrayList(allocationTags_); bitField0_ |= 0x00000800; } } /** * repeated string allocation_tags = 12; */ public java.util.List getAllocationTagsList() { return java.util.Collections.unmodifiableList(allocationTags_); } /** * repeated string allocation_tags = 12; */ public int getAllocationTagsCount() { return allocationTags_.size(); } /** * repeated string allocation_tags = 12; */ public java.lang.String getAllocationTags(int index) { return allocationTags_.get(index); } /** * repeated string allocation_tags = 12; */ public com.google.protobuf.ByteString getAllocationTagsBytes(int index) { return allocationTags_.getByteString(index); } /** * repeated string allocation_tags = 12; */ 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 = 12; */ public Builder addAllocationTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAllocationTagsIsMutable(); allocationTags_.add(value); onChanged(); return this; } /** * repeated string allocation_tags = 12; */ public Builder addAllAllocationTags( java.lang.Iterable values) { ensureAllocationTagsIsMutable(); super.addAll(values, allocationTags_); onChanged(); return this; } /** * repeated string allocation_tags = 12; */ public Builder clearAllocationTags() { allocationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** * repeated string allocation_tags = 12; */ 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.NMContainerStatusProto) } static { defaultInstance = new NMContainerStatusProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.NMContainerStatusProto) } public interface SCMUploaderNotifyRequestProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string resource_key = 1; /** * optional string resource_key = 1; */ boolean hasResourceKey(); /** * optional string resource_key = 1; */ java.lang.String getResourceKey(); /** * optional string resource_key = 1; */ com.google.protobuf.ByteString getResourceKeyBytes(); // optional string filename = 2; /** * optional string filename = 2; */ boolean hasFilename(); /** * optional string filename = 2; */ java.lang.String getFilename(); /** * optional string filename = 2; */ com.google.protobuf.ByteString getFilenameBytes(); } /** * Protobuf type {@code hadoop.yarn.SCMUploaderNotifyRequestProto} */ public static final class SCMUploaderNotifyRequestProto extends com.google.protobuf.GeneratedMessage implements SCMUploaderNotifyRequestProtoOrBuilder { // Use SCMUploaderNotifyRequestProto.newBuilder() to construct. private SCMUploaderNotifyRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SCMUploaderNotifyRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SCMUploaderNotifyRequestProto defaultInstance; public static SCMUploaderNotifyRequestProto getDefaultInstance() { return defaultInstance; } public SCMUploaderNotifyRequestProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SCMUploaderNotifyRequestProto( 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; resourceKey_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; filename_ = 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SCMUploaderNotifyRequestProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SCMUploaderNotifyRequestProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string resource_key = 1; public static final int RESOURCE_KEY_FIELD_NUMBER = 1; private java.lang.Object resourceKey_; /** * optional string resource_key = 1; */ public boolean hasResourceKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string resource_key = 1; */ public java.lang.String getResourceKey() { java.lang.Object ref = resourceKey_; 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()) { resourceKey_ = s; } return s; } } /** * optional string resource_key = 1; */ public com.google.protobuf.ByteString getResourceKeyBytes() { java.lang.Object ref = resourceKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string filename = 2; public static final int FILENAME_FIELD_NUMBER = 2; private java.lang.Object filename_; /** * optional string filename = 2; */ public boolean hasFilename() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string filename = 2; */ public java.lang.String getFilename() { java.lang.Object ref = filename_; 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()) { filename_ = s; } return s; } } /** * optional string filename = 2; */ public com.google.protobuf.ByteString getFilenameBytes() { java.lang.Object ref = filename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { resourceKey_ = ""; filename_ = ""; } 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, getResourceKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFilenameBytes()); } 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, getResourceKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFilenameBytes()); } 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto) obj; boolean result = true; result = result && (hasResourceKey() == other.hasResourceKey()); if (hasResourceKey()) { result = result && getResourceKey() .equals(other.getResourceKey()); } result = result && (hasFilename() == other.hasFilename()); if (hasFilename()) { result = result && getFilename() .equals(other.getFilename()); } 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 (hasResourceKey()) { hash = (37 * hash) + RESOURCE_KEY_FIELD_NUMBER; hash = (53 * hash) + getResourceKey().hashCode(); } if (hasFilename()) { hash = (37 * hash) + FILENAME_FIELD_NUMBER; hash = (53 * hash) + getFilename().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto 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.SCMUploaderNotifyRequestProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.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(); resourceKey_ = ""; bitField0_ = (bitField0_ & ~0x00000001); filename_ = ""; 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.resourceKey_ = resourceKey_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.filename_ = filename_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto.getDefaultInstance()) return this; if (other.hasResourceKey()) { bitField0_ |= 0x00000001; resourceKey_ = other.resourceKey_; onChanged(); } if (other.hasFilename()) { bitField0_ |= 0x00000002; filename_ = other.filename_; 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.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyRequestProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string resource_key = 1; private java.lang.Object resourceKey_ = ""; /** * optional string resource_key = 1; */ public boolean hasResourceKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string resource_key = 1; */ public java.lang.String getResourceKey() { java.lang.Object ref = resourceKey_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); resourceKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string resource_key = 1; */ public com.google.protobuf.ByteString getResourceKeyBytes() { java.lang.Object ref = resourceKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string resource_key = 1; */ public Builder setResourceKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resourceKey_ = value; onChanged(); return this; } /** * optional string resource_key = 1; */ public Builder clearResourceKey() { bitField0_ = (bitField0_ & ~0x00000001); resourceKey_ = getDefaultInstance().getResourceKey(); onChanged(); return this; } /** * optional string resource_key = 1; */ public Builder setResourceKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resourceKey_ = value; onChanged(); return this; } // optional string filename = 2; private java.lang.Object filename_ = ""; /** * optional string filename = 2; */ public boolean hasFilename() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string filename = 2; */ public java.lang.String getFilename() { java.lang.Object ref = filename_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); filename_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string filename = 2; */ public com.google.protobuf.ByteString getFilenameBytes() { java.lang.Object ref = filename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string filename = 2; */ public Builder setFilename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; filename_ = value; onChanged(); return this; } /** * optional string filename = 2; */ public Builder clearFilename() { bitField0_ = (bitField0_ & ~0x00000002); filename_ = getDefaultInstance().getFilename(); onChanged(); return this; } /** * optional string filename = 2; */ public Builder setFilenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; filename_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.SCMUploaderNotifyRequestProto) } static { defaultInstance = new SCMUploaderNotifyRequestProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.SCMUploaderNotifyRequestProto) } public interface SCMUploaderNotifyResponseProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bool accepted = 1; /** * optional bool accepted = 1; */ boolean hasAccepted(); /** * optional bool accepted = 1; */ boolean getAccepted(); } /** * Protobuf type {@code hadoop.yarn.SCMUploaderNotifyResponseProto} */ public static final class SCMUploaderNotifyResponseProto extends com.google.protobuf.GeneratedMessage implements SCMUploaderNotifyResponseProtoOrBuilder { // Use SCMUploaderNotifyResponseProto.newBuilder() to construct. private SCMUploaderNotifyResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SCMUploaderNotifyResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SCMUploaderNotifyResponseProto defaultInstance; public static SCMUploaderNotifyResponseProto getDefaultInstance() { return defaultInstance; } public SCMUploaderNotifyResponseProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SCMUploaderNotifyResponseProto( 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 8: { bitField0_ |= 0x00000001; accepted_ = input.readBool(); 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SCMUploaderNotifyResponseProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SCMUploaderNotifyResponseProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional bool accepted = 1; public static final int ACCEPTED_FIELD_NUMBER = 1; private boolean accepted_; /** * optional bool accepted = 1; */ public boolean hasAccepted() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool accepted = 1; */ public boolean getAccepted() { return accepted_; } private void initFields() { accepted_ = false; } 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.writeBool(1, accepted_); } 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 .computeBoolSize(1, accepted_); } 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto) obj; boolean result = true; result = result && (hasAccepted() == other.hasAccepted()); if (hasAccepted()) { result = result && (getAccepted() == other.getAccepted()); } 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 (hasAccepted()) { hash = (37 * hash) + ACCEPTED_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getAccepted()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto 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.SCMUploaderNotifyResponseProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.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(); accepted_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.accepted_ = accepted_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto.getDefaultInstance()) return this; if (other.hasAccepted()) { setAccepted(other.getAccepted()); } 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.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderNotifyResponseProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bool accepted = 1; private boolean accepted_ ; /** * optional bool accepted = 1; */ public boolean hasAccepted() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool accepted = 1; */ public boolean getAccepted() { return accepted_; } /** * optional bool accepted = 1; */ public Builder setAccepted(boolean value) { bitField0_ |= 0x00000001; accepted_ = value; onChanged(); return this; } /** * optional bool accepted = 1; */ public Builder clearAccepted() { bitField0_ = (bitField0_ & ~0x00000001); accepted_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.SCMUploaderNotifyResponseProto) } static { defaultInstance = new SCMUploaderNotifyResponseProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.SCMUploaderNotifyResponseProto) } public interface SCMUploaderCanUploadRequestProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string resource_key = 1; /** * optional string resource_key = 1; */ boolean hasResourceKey(); /** * optional string resource_key = 1; */ java.lang.String getResourceKey(); /** * optional string resource_key = 1; */ com.google.protobuf.ByteString getResourceKeyBytes(); } /** * Protobuf type {@code hadoop.yarn.SCMUploaderCanUploadRequestProto} */ public static final class SCMUploaderCanUploadRequestProto extends com.google.protobuf.GeneratedMessage implements SCMUploaderCanUploadRequestProtoOrBuilder { // Use SCMUploaderCanUploadRequestProto.newBuilder() to construct. private SCMUploaderCanUploadRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SCMUploaderCanUploadRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SCMUploaderCanUploadRequestProto defaultInstance; public static SCMUploaderCanUploadRequestProto getDefaultInstance() { return defaultInstance; } public SCMUploaderCanUploadRequestProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SCMUploaderCanUploadRequestProto( 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; resourceKey_ = 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SCMUploaderCanUploadRequestProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SCMUploaderCanUploadRequestProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string resource_key = 1; public static final int RESOURCE_KEY_FIELD_NUMBER = 1; private java.lang.Object resourceKey_; /** * optional string resource_key = 1; */ public boolean hasResourceKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string resource_key = 1; */ public java.lang.String getResourceKey() { java.lang.Object ref = resourceKey_; 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()) { resourceKey_ = s; } return s; } } /** * optional string resource_key = 1; */ public com.google.protobuf.ByteString getResourceKeyBytes() { java.lang.Object ref = resourceKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { resourceKey_ = ""; } 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, getResourceKeyBytes()); } 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, getResourceKeyBytes()); } 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto) obj; boolean result = true; result = result && (hasResourceKey() == other.hasResourceKey()); if (hasResourceKey()) { result = result && getResourceKey() .equals(other.getResourceKey()); } 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 (hasResourceKey()) { hash = (37 * hash) + RESOURCE_KEY_FIELD_NUMBER; hash = (53 * hash) + getResourceKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto 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.SCMUploaderCanUploadRequestProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.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(); resourceKey_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.resourceKey_ = resourceKey_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto.getDefaultInstance()) return this; if (other.hasResourceKey()) { bitField0_ |= 0x00000001; resourceKey_ = other.resourceKey_; 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadRequestProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string resource_key = 1; private java.lang.Object resourceKey_ = ""; /** * optional string resource_key = 1; */ public boolean hasResourceKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string resource_key = 1; */ public java.lang.String getResourceKey() { java.lang.Object ref = resourceKey_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); resourceKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string resource_key = 1; */ public com.google.protobuf.ByteString getResourceKeyBytes() { java.lang.Object ref = resourceKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourceKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string resource_key = 1; */ public Builder setResourceKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resourceKey_ = value; onChanged(); return this; } /** * optional string resource_key = 1; */ public Builder clearResourceKey() { bitField0_ = (bitField0_ & ~0x00000001); resourceKey_ = getDefaultInstance().getResourceKey(); onChanged(); return this; } /** * optional string resource_key = 1; */ public Builder setResourceKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resourceKey_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.SCMUploaderCanUploadRequestProto) } static { defaultInstance = new SCMUploaderCanUploadRequestProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.SCMUploaderCanUploadRequestProto) } public interface SCMUploaderCanUploadResponseProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bool uploadable = 1; /** * optional bool uploadable = 1; */ boolean hasUploadable(); /** * optional bool uploadable = 1; */ boolean getUploadable(); } /** * Protobuf type {@code hadoop.yarn.SCMUploaderCanUploadResponseProto} */ public static final class SCMUploaderCanUploadResponseProto extends com.google.protobuf.GeneratedMessage implements SCMUploaderCanUploadResponseProtoOrBuilder { // Use SCMUploaderCanUploadResponseProto.newBuilder() to construct. private SCMUploaderCanUploadResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SCMUploaderCanUploadResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SCMUploaderCanUploadResponseProto defaultInstance; public static SCMUploaderCanUploadResponseProto getDefaultInstance() { return defaultInstance; } public SCMUploaderCanUploadResponseProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SCMUploaderCanUploadResponseProto( 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 8: { bitField0_ |= 0x00000001; uploadable_ = input.readBool(); 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.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SCMUploaderCanUploadResponseProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SCMUploaderCanUploadResponseProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional bool uploadable = 1; public static final int UPLOADABLE_FIELD_NUMBER = 1; private boolean uploadable_; /** * optional bool uploadable = 1; */ public boolean hasUploadable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool uploadable = 1; */ public boolean getUploadable() { return uploadable_; } private void initFields() { uploadable_ = false; } 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.writeBool(1, uploadable_); } 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 .computeBoolSize(1, uploadable_); } 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto other = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto) obj; boolean result = true; result = result && (hasUploadable() == other.hasUploadable()); if (hasUploadable()) { result = result && (getUploadable() == other.getUploadable()); } 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 (hasUploadable()) { hash = (37 * hash) + UPLOADABLE_FIELD_NUMBER; hash = (53 * hash) + hashBoolean(getUploadable()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto 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.SCMUploaderCanUploadResponseProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.class, org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.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(); uploadable_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto build() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto result = new org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.uploadable_ = uploadable_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto.getDefaultInstance()) return this; if (other.hasUploadable()) { setUploadable(other.getUploadable()); } 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.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SCMUploaderCanUploadResponseProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bool uploadable = 1; private boolean uploadable_ ; /** * optional bool uploadable = 1; */ public boolean hasUploadable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional bool uploadable = 1; */ public boolean getUploadable() { return uploadable_; } /** * optional bool uploadable = 1; */ public Builder setUploadable(boolean value) { bitField0_ |= 0x00000001; uploadable_ = value; onChanged(); return this; } /** * optional bool uploadable = 1; */ public Builder clearUploadable() { bitField0_ = (bitField0_ & ~0x00000001); uploadable_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.SCMUploaderCanUploadResponseProto) } static { defaultInstance = new SCMUploaderCanUploadResponseProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.SCMUploaderCanUploadResponseProto) } private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_RemoteNodeProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_RemoteNodeProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_NodeLabelsProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_NodeLabelsProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_NodeAttributesProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_NodeAttributesProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_NodeHeartbeatRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_NodeHeartbeatRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_LogAggregationReportProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_LogAggregationReportProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_NodeHeartbeatResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_NodeHeartbeatResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_ContainerQueuingLimitProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_ContainerQueuingLimitProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_SystemCredentialsForAppsProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_SystemCredentialsForAppsProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_AppCollectorDataProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_AppCollectorDataProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_NMContainerStatusProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_NMContainerStatusProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_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\'yarn_server_common_service_protos.prot" + "o\022\013hadoop.yarn\032\016Security.proto\032\021yarn_pro" + "tos.proto\032\037yarn_server_common_protos.pro" + "to\032\031yarn_service_protos.proto\"}\n\017RemoteN" + "odeProto\022)\n\007node_id\030\001 \001(\0132\030.hadoop.yarn." + "NodeIdProto\022\024\n\014http_address\030\002 \001(\t\022\021\n\trac" + "k_name\030\003 \001(\t\022\026\n\016node_partition\030\004 \001(\t\"\264\003\n" + ",RegisterDistributedSchedulingAMResponse" + "Proto\022N\n\021register_response\030\001 \001(\01323.hadoo" + "p.yarn.RegisterApplicationMasterResponse", "Proto\022:\n\026max_container_resource\030\002 \001(\0132\032." + "hadoop.yarn.ResourceProto\022:\n\026min_contain" + "er_resource\030\003 \001(\0132\032.hadoop.yarn.Resource" + "Proto\022;\n\027incr_container_resource\030\004 \001(\0132\032" + ".hadoop.yarn.ResourceProto\022\'\n\037container_" + "token_expiry_interval\030\005 \001(\005\022\032\n\022container" + "_id_start\030\006 \001(\003\022:\n\024nodes_for_scheduling\030" + "\007 \003(\0132\034.hadoop.yarn.RemoteNodeProto\"\247\001\n*" + "DistributedSchedulingAllocateResponsePro" + "to\022=\n\021allocate_response\030\001 \001(\0132\".hadoop.y", "arn.AllocateResponseProto\022:\n\024nodes_for_s" + "cheduling\030\002 \003(\0132\034.hadoop.yarn.RemoteNode" + "Proto\"\243\001\n)DistributedSchedulingAllocateR" + "equestProto\022;\n\020allocate_request\030\001 \001(\0132!." + "hadoop.yarn.AllocateRequestProto\0229\n\024allo" + "cated_containers\030\002 \003(\0132\033.hadoop.yarn.Con" + "tainerProto\"B\n\017NodeLabelsProto\022/\n\nnodeLa" + "bels\030\001 \003(\0132\033.hadoop.yarn.NodeLabelProto\"" + "N\n\023NodeAttributesProto\0227\n\016nodeAttributes" + "\030\001 \003(\0132\037.hadoop.yarn.NodeAttributeProto\"", "\306\004\n\037RegisterNodeManagerRequestProto\022)\n\007n" + "ode_id\030\001 \001(\0132\030.hadoop.yarn.NodeIdProto\022\021" + "\n\thttp_port\030\003 \001(\005\022,\n\010resource\030\004 \001(\0132\032.ha" + "doop.yarn.ResourceProto\022\022\n\nnm_version\030\005 " + "\001(\t\022?\n\022container_statuses\030\006 \003(\0132#.hadoop" + ".yarn.NMContainerStatusProto\022<\n\023runningA" + "pplications\030\007 \003(\0132\037.hadoop.yarn.Applicat" + "ionIdProto\0220\n\nnodeLabels\030\010 \001(\0132\034.hadoop." + "yarn.NodeLabelsProto\0224\n\020physicalResource" + "\030\t \001(\0132\032.hadoop.yarn.ResourceProto\022P\n lo", "g_aggregation_reports_for_apps\030\n \003(\0132&.h" + "adoop.yarn.LogAggregationReportProto\0228\n\016" + "nodeAttributes\030\013 \001(\0132 .hadoop.yarn.NodeA" + "ttributesProto\0220\n\nnodeStatus\030\014 \001(\0132\034.had" + "oop.yarn.NodeStatusProto\"\235\003\n RegisterNod" + "eManagerResponseProto\022?\n\032container_token" + "_master_key\030\001 \001(\0132\033.hadoop.yarn.MasterKe" + "yProto\0228\n\023nm_token_master_key\030\002 \001(\0132\033.ha" + "doop.yarn.MasterKeyProto\0220\n\nnodeAction\030\003" + " \001(\0162\034.hadoop.yarn.NodeActionProto\022\025\n\rrm", "_identifier\030\004 \001(\003\022\033\n\023diagnostics_message" + "\030\005 \001(\t\022\022\n\nrm_version\030\006 \001(\t\022(\n\031areNodeLab" + "elsAcceptedByRM\030\007 \001(\010:\005false\022,\n\010resource" + "\030\010 \001(\0132\032.hadoop.yarn.ResourceProto\022,\n\035ar" + "eNodeAttributesAcceptedByRM\030\t \001(\010:\005false" + "\"N\n!UnRegisterNodeManagerRequestProto\022)\n" + "\007node_id\030\001 \001(\0132\030.hadoop.yarn.NodeIdProto" + "\"$\n\"UnRegisterNodeManagerResponseProto\"\341" + "\003\n\031NodeHeartbeatRequestProto\0221\n\013node_sta" + "tus\030\001 \001(\0132\034.hadoop.yarn.NodeStatusProto\022", "J\n%last_known_container_token_master_key" + "\030\002 \001(\0132\033.hadoop.yarn.MasterKeyProto\022C\n\036l" + "ast_known_nm_token_master_key\030\003 \001(\0132\033.ha" + "doop.yarn.MasterKeyProto\0220\n\nnodeLabels\030\004" + " \001(\0132\034.hadoop.yarn.NodeLabelsProto\022P\n lo" + "g_aggregation_reports_for_apps\030\005 \003(\0132&.h" + "adoop.yarn.LogAggregationReportProto\022B\n\026" + "registering_collectors\030\006 \003(\0132\".hadoop.ya" + "rn.AppCollectorDataProto\0228\n\016nodeAttribut" + "es\030\007 \001(\0132 .hadoop.yarn.NodeAttributesPro", "to\"\266\001\n\031LogAggregationReportProto\0227\n\016appl" + "ication_id\030\001 \001(\0132\037.hadoop.yarn.Applicati" + "onIdProto\022F\n\026log_aggregation_status\030\002 \001(" + "\0162&.hadoop.yarn.LogAggregationStatusProt" + "o\022\030\n\013diagnostics\030\003 \001(\t:\003N/A\"\200\010\n\032NodeHear" + "tbeatResponseProto\022\023\n\013response_id\030\001 \001(\005\022" + "?\n\032container_token_master_key\030\002 \001(\0132\033.ha" + "doop.yarn.MasterKeyProto\0228\n\023nm_token_mas" + "ter_key\030\003 \001(\0132\033.hadoop.yarn.MasterKeyPro" + "to\0220\n\nnodeAction\030\004 \001(\0162\034.hadoop.yarn.Nod", "eActionProto\022<\n\025containers_to_cleanup\030\005 " + "\003(\0132\035.hadoop.yarn.ContainerIdProto\022@\n\027ap" + "plications_to_cleanup\030\006 \003(\0132\037.hadoop.yar" + "n.ApplicationIdProto\022\035\n\025nextHeartBeatInt" + "erval\030\007 \001(\003\022\033\n\023diagnostics_message\030\010 \001(\t" + "\022G\n containers_to_be_removed_from_nm\030\t \003" + "(\0132\035.hadoop.yarn.ContainerIdProto\022O\n\033sys" + "tem_credentials_for_apps\030\n \003(\0132*.hadoop." + "yarn.SystemCredentialsForAppsProto\022(\n\031ar" + "eNodeLabelsAcceptedByRM\030\013 \001(\010:\005false\022;\n\026", "containers_to_decrease\030\014 \003(\0132\033.hadoop.ya" + "rn.ContainerProto\022F\n\024containers_to_signa" + "l\030\r \003(\0132(.hadoop.yarn.SignalContainerReq" + "uestProto\022,\n\010resource\030\016 \001(\0132\032.hadoop.yar" + "n.ResourceProto\022H\n\027container_queuing_lim" + "it\030\017 \001(\0132\'.hadoop.yarn.ContainerQueuingL" + "imitProto\022:\n\016app_collectors\030\020 \003(\0132\".hado" + "op.yarn.AppCollectorDataProto\0229\n\024contain" + "ers_to_update\030\021 \003(\0132\033.hadoop.yarn.Contai" + "nerProto\022,\n\035areNodeAttributesAcceptedByR", "M\030\022 \001(\010:\005false\"Y\n\032ContainerQueuingLimitP" + "roto\022\030\n\020max_queue_length\030\001 \001(\005\022!\n\031max_qu" + "eue_wait_time_in_ms\030\002 \001(\005\"j\n\035SystemCrede" + "ntialsForAppsProto\022.\n\005appId\030\001 \001(\0132\037.hado" + "op.yarn.ApplicationIdProto\022\031\n\021credential" + "sForApp\030\002 \001(\014\"\314\001\n\025AppCollectorDataProto\022" + "/\n\006app_id\030\001 \001(\0132\037.hadoop.yarn.Applicatio" + "nIdProto\022\032\n\022app_collector_addr\030\002 \001(\t\022\031\n\r" + "rm_identifier\030\003 \001(\003:\002-1\022\023\n\007version\030\004 \001(\003" + ":\002-1\0226\n\023app_collector_token\030\005 \001(\0132\031.hado", "op.common.TokenProto\"`\n\"ReportNewCollect" + "orInfoRequestProto\022:\n\016app_collectors\030\001 \003" + "(\0132\".hadoop.yarn.AppCollectorDataProto\"%" + "\n#ReportNewCollectorInfoResponseProto\"Y\n" + "\'GetTimelineCollectorContextRequestProto" + "\022.\n\005appId\030\001 \001(\0132\037.hadoop.yarn.Applicatio" + "nIdProto\"y\n(GetTimelineCollectorContextR" + "esponseProto\022\017\n\007user_id\030\001 \001(\t\022\021\n\tflow_na" + "me\030\002 \001(\t\022\024\n\014flow_version\030\003 \001(\t\022\023\n\013flow_r" + "un_id\030\004 \001(\003\"\342\003\n\026NMContainerStatusProto\0223", "\n\014container_id\030\001 \001(\0132\035.hadoop.yarn.Conta" + "inerIdProto\0229\n\017container_state\030\002 \001(\0162 .h" + "adoop.yarn.ContainerStateProto\022,\n\010resour" + "ce\030\003 \001(\0132\032.hadoop.yarn.ResourceProto\022,\n\010" + "priority\030\004 \001(\0132\032.hadoop.yarn.PriorityPro" + "to\022\030\n\013diagnostics\030\005 \001(\t:\003N/A\022\035\n\025containe" + "r_exit_status\030\006 \001(\005\022\025\n\rcreation_time\030\007 \001" + "(\003\022\033\n\023nodeLabelExpression\030\010 \001(\t\022\017\n\007versi" + "on\030\t \001(\005\022B\n\rexecutionType\030\n \001(\0162\037.hadoop" + ".yarn.ExecutionTypeProto:\nGUARANTEED\022!\n\025", "allocation_request_id\030\013 \001(\003:\002-1\022\027\n\017alloc" + "ation_tags\030\014 \003(\t\"G\n\035SCMUploaderNotifyReq" + "uestProto\022\024\n\014resource_key\030\001 \001(\t\022\020\n\010filen" + "ame\030\002 \001(\t\"2\n\036SCMUploaderNotifyResponsePr" + "oto\022\020\n\010accepted\030\001 \001(\010\"8\n SCMUploaderCanU" + "ploadRequestProto\022\024\n\014resource_key\030\001 \001(\t\"" + "7\n!SCMUploaderCanUploadResponseProto\022\022\n\n" + "uploadable\030\001 \001(\010BC\n\034org.apache.hadoop.ya" + "rn.protoB\035YarnServerCommonServiceProtos\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_RemoteNodeProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hadoop_yarn_RemoteNodeProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_RemoteNodeProto_descriptor, new java.lang.String[] { "NodeId", "HttpAddress", "RackName", "NodePartition", }); internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_RegisterDistributedSchedulingAMResponseProto_descriptor, new java.lang.String[] { "RegisterResponse", "MaxContainerResource", "MinContainerResource", "IncrContainerResource", "ContainerTokenExpiryInterval", "ContainerIdStart", "NodesForScheduling", }); internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_DistributedSchedulingAllocateResponseProto_descriptor, new java.lang.String[] { "AllocateResponse", "NodesForScheduling", }); internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_DistributedSchedulingAllocateRequestProto_descriptor, new java.lang.String[] { "AllocateRequest", "AllocatedContainers", }); internal_static_hadoop_yarn_NodeLabelsProto_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_hadoop_yarn_NodeLabelsProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_NodeLabelsProto_descriptor, new java.lang.String[] { "NodeLabels", }); internal_static_hadoop_yarn_NodeAttributesProto_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_hadoop_yarn_NodeAttributesProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_NodeAttributesProto_descriptor, new java.lang.String[] { "NodeAttributes", }); internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_RegisterNodeManagerRequestProto_descriptor, new java.lang.String[] { "NodeId", "HttpPort", "Resource", "NmVersion", "ContainerStatuses", "RunningApplications", "NodeLabels", "PhysicalResource", "LogAggregationReportsForApps", "NodeAttributes", "NodeStatus", }); internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_RegisterNodeManagerResponseProto_descriptor, new java.lang.String[] { "ContainerTokenMasterKey", "NmTokenMasterKey", "NodeAction", "RmIdentifier", "DiagnosticsMessage", "RmVersion", "AreNodeLabelsAcceptedByRM", "Resource", "AreNodeAttributesAcceptedByRM", }); internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_UnRegisterNodeManagerRequestProto_descriptor, new java.lang.String[] { "NodeId", }); internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_UnRegisterNodeManagerResponseProto_descriptor, new java.lang.String[] { }); internal_static_hadoop_yarn_NodeHeartbeatRequestProto_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_hadoop_yarn_NodeHeartbeatRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_NodeHeartbeatRequestProto_descriptor, new java.lang.String[] { "NodeStatus", "LastKnownContainerTokenMasterKey", "LastKnownNmTokenMasterKey", "NodeLabels", "LogAggregationReportsForApps", "RegisteringCollectors", "NodeAttributes", }); internal_static_hadoop_yarn_LogAggregationReportProto_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_hadoop_yarn_LogAggregationReportProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_LogAggregationReportProto_descriptor, new java.lang.String[] { "ApplicationId", "LogAggregationStatus", "Diagnostics", }); internal_static_hadoop_yarn_NodeHeartbeatResponseProto_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_hadoop_yarn_NodeHeartbeatResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_NodeHeartbeatResponseProto_descriptor, new java.lang.String[] { "ResponseId", "ContainerTokenMasterKey", "NmTokenMasterKey", "NodeAction", "ContainersToCleanup", "ApplicationsToCleanup", "NextHeartBeatInterval", "DiagnosticsMessage", "ContainersToBeRemovedFromNm", "SystemCredentialsForApps", "AreNodeLabelsAcceptedByRM", "ContainersToDecrease", "ContainersToSignal", "Resource", "ContainerQueuingLimit", "AppCollectors", "ContainersToUpdate", "AreNodeAttributesAcceptedByRM", }); internal_static_hadoop_yarn_ContainerQueuingLimitProto_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_hadoop_yarn_ContainerQueuingLimitProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_ContainerQueuingLimitProto_descriptor, new java.lang.String[] { "MaxQueueLength", "MaxQueueWaitTimeInMs", }); internal_static_hadoop_yarn_SystemCredentialsForAppsProto_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_hadoop_yarn_SystemCredentialsForAppsProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_SystemCredentialsForAppsProto_descriptor, new java.lang.String[] { "AppId", "CredentialsForApp", }); internal_static_hadoop_yarn_AppCollectorDataProto_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_hadoop_yarn_AppCollectorDataProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_AppCollectorDataProto_descriptor, new java.lang.String[] { "AppId", "AppCollectorAddr", "RmIdentifier", "Version", "AppCollectorToken", }); internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_ReportNewCollectorInfoRequestProto_descriptor, new java.lang.String[] { "AppCollectors", }); internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_ReportNewCollectorInfoResponseProto_descriptor, new java.lang.String[] { }); internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_GetTimelineCollectorContextRequestProto_descriptor, new java.lang.String[] { "AppId", }); internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_GetTimelineCollectorContextResponseProto_descriptor, new java.lang.String[] { "UserId", "FlowName", "FlowVersion", "FlowRunId", }); internal_static_hadoop_yarn_NMContainerStatusProto_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_hadoop_yarn_NMContainerStatusProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_NMContainerStatusProto_descriptor, new java.lang.String[] { "ContainerId", "ContainerState", "Resource", "Priority", "Diagnostics", "ContainerExitStatus", "CreationTime", "NodeLabelExpression", "Version", "ExecutionType", "AllocationRequestId", "AllocationTags", }); internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_SCMUploaderNotifyRequestProto_descriptor, new java.lang.String[] { "ResourceKey", "Filename", }); internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_SCMUploaderNotifyResponseProto_descriptor, new java.lang.String[] { "Accepted", }); internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_SCMUploaderCanUploadRequestProto_descriptor, new java.lang.String[] { "ResourceKey", }); internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_SCMUploaderCanUploadResponseProto_descriptor, new java.lang.String[] { "Uploadable", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.apache.hadoop.security.proto.SecurityProtos.getDescriptor(), org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor(), org.apache.hadoop.yarn.proto.YarnServerCommonProtos.getDescriptor(), org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy