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

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

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

package org.apache.hadoop.yarn.proto;

public final class YarnServerResourceManagerRecoveryProtos {
  private YarnServerResourceManagerRecoveryProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code hadoop.yarn.RMAppAttemptStateProto}
   *
   * 
   *//////////////////////////////////////////////////////////////////////
   * //// RM recovery related records /////////////////////////////////////
   * //////////////////////////////////////////////////////////////////////
   * 
*/ public enum RMAppAttemptStateProto implements com.google.protobuf.ProtocolMessageEnum { /** * RMATTEMPT_NEW = 1; */ RMATTEMPT_NEW(0, 1), /** * RMATTEMPT_SUBMITTED = 2; */ RMATTEMPT_SUBMITTED(1, 2), /** * RMATTEMPT_SCHEDULED = 3; */ RMATTEMPT_SCHEDULED(2, 3), /** * RMATTEMPT_ALLOCATED = 4; */ RMATTEMPT_ALLOCATED(3, 4), /** * RMATTEMPT_LAUNCHED = 5; */ RMATTEMPT_LAUNCHED(4, 5), /** * RMATTEMPT_FAILED = 6; */ RMATTEMPT_FAILED(5, 6), /** * RMATTEMPT_RUNNING = 7; */ RMATTEMPT_RUNNING(6, 7), /** * RMATTEMPT_FINISHING = 8; */ RMATTEMPT_FINISHING(7, 8), /** * RMATTEMPT_FINISHED = 9; */ RMATTEMPT_FINISHED(8, 9), /** * RMATTEMPT_KILLED = 10; */ RMATTEMPT_KILLED(9, 10), /** * RMATTEMPT_ALLOCATED_SAVING = 11; */ RMATTEMPT_ALLOCATED_SAVING(10, 11), /** * RMATTEMPT_LAUNCHED_UNMANAGED_SAVING = 12; */ RMATTEMPT_LAUNCHED_UNMANAGED_SAVING(11, 12), /** * RMATTEMPT_RECOVERED = 13; */ RMATTEMPT_RECOVERED(12, 13), /** * RMATTEMPT_FINAL_SAVING = 14; */ RMATTEMPT_FINAL_SAVING(13, 14), ; /** * RMATTEMPT_NEW = 1; */ public static final int RMATTEMPT_NEW_VALUE = 1; /** * RMATTEMPT_SUBMITTED = 2; */ public static final int RMATTEMPT_SUBMITTED_VALUE = 2; /** * RMATTEMPT_SCHEDULED = 3; */ public static final int RMATTEMPT_SCHEDULED_VALUE = 3; /** * RMATTEMPT_ALLOCATED = 4; */ public static final int RMATTEMPT_ALLOCATED_VALUE = 4; /** * RMATTEMPT_LAUNCHED = 5; */ public static final int RMATTEMPT_LAUNCHED_VALUE = 5; /** * RMATTEMPT_FAILED = 6; */ public static final int RMATTEMPT_FAILED_VALUE = 6; /** * RMATTEMPT_RUNNING = 7; */ public static final int RMATTEMPT_RUNNING_VALUE = 7; /** * RMATTEMPT_FINISHING = 8; */ public static final int RMATTEMPT_FINISHING_VALUE = 8; /** * RMATTEMPT_FINISHED = 9; */ public static final int RMATTEMPT_FINISHED_VALUE = 9; /** * RMATTEMPT_KILLED = 10; */ public static final int RMATTEMPT_KILLED_VALUE = 10; /** * RMATTEMPT_ALLOCATED_SAVING = 11; */ public static final int RMATTEMPT_ALLOCATED_SAVING_VALUE = 11; /** * RMATTEMPT_LAUNCHED_UNMANAGED_SAVING = 12; */ public static final int RMATTEMPT_LAUNCHED_UNMANAGED_SAVING_VALUE = 12; /** * RMATTEMPT_RECOVERED = 13; */ public static final int RMATTEMPT_RECOVERED_VALUE = 13; /** * RMATTEMPT_FINAL_SAVING = 14; */ public static final int RMATTEMPT_FINAL_SAVING_VALUE = 14; public final int getNumber() { return value; } public static RMAppAttemptStateProto valueOf(int value) { switch (value) { case 1: return RMATTEMPT_NEW; case 2: return RMATTEMPT_SUBMITTED; case 3: return RMATTEMPT_SCHEDULED; case 4: return RMATTEMPT_ALLOCATED; case 5: return RMATTEMPT_LAUNCHED; case 6: return RMATTEMPT_FAILED; case 7: return RMATTEMPT_RUNNING; case 8: return RMATTEMPT_FINISHING; case 9: return RMATTEMPT_FINISHED; case 10: return RMATTEMPT_KILLED; case 11: return RMATTEMPT_ALLOCATED_SAVING; case 12: return RMATTEMPT_LAUNCHED_UNMANAGED_SAVING; case 13: return RMATTEMPT_RECOVERED; case 14: return RMATTEMPT_FINAL_SAVING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RMAppAttemptStateProto findValueByNumber(int number) { return RMAppAttemptStateProto.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.getDescriptor().getEnumTypes().get(0); } private static final RMAppAttemptStateProto[] VALUES = values(); public static RMAppAttemptStateProto valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private RMAppAttemptStateProto(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:hadoop.yarn.RMAppAttemptStateProto) } /** * Protobuf enum {@code hadoop.yarn.RMAppStateProto} */ public enum RMAppStateProto implements com.google.protobuf.ProtocolMessageEnum { /** * RMAPP_NEW = 1; */ RMAPP_NEW(0, 1), /** * RMAPP_NEW_SAVING = 2; */ RMAPP_NEW_SAVING(1, 2), /** * RMAPP_SUBMITTED = 3; */ RMAPP_SUBMITTED(2, 3), /** * RMAPP_ACCEPTED = 4; */ RMAPP_ACCEPTED(3, 4), /** * RMAPP_RUNNING = 5; */ RMAPP_RUNNING(4, 5), /** * RMAPP_FINAL_SAVING = 6; */ RMAPP_FINAL_SAVING(5, 6), /** * RMAPP_FINISHING = 7; */ RMAPP_FINISHING(6, 7), /** * RMAPP_FINISHED = 8; */ RMAPP_FINISHED(7, 8), /** * RMAPP_FAILED = 9; */ RMAPP_FAILED(8, 9), /** * RMAPP_KILLED = 10; */ RMAPP_KILLED(9, 10), ; /** * RMAPP_NEW = 1; */ public static final int RMAPP_NEW_VALUE = 1; /** * RMAPP_NEW_SAVING = 2; */ public static final int RMAPP_NEW_SAVING_VALUE = 2; /** * RMAPP_SUBMITTED = 3; */ public static final int RMAPP_SUBMITTED_VALUE = 3; /** * RMAPP_ACCEPTED = 4; */ public static final int RMAPP_ACCEPTED_VALUE = 4; /** * RMAPP_RUNNING = 5; */ public static final int RMAPP_RUNNING_VALUE = 5; /** * RMAPP_FINAL_SAVING = 6; */ public static final int RMAPP_FINAL_SAVING_VALUE = 6; /** * RMAPP_FINISHING = 7; */ public static final int RMAPP_FINISHING_VALUE = 7; /** * RMAPP_FINISHED = 8; */ public static final int RMAPP_FINISHED_VALUE = 8; /** * RMAPP_FAILED = 9; */ public static final int RMAPP_FAILED_VALUE = 9; /** * RMAPP_KILLED = 10; */ public static final int RMAPP_KILLED_VALUE = 10; public final int getNumber() { return value; } public static RMAppStateProto valueOf(int value) { switch (value) { case 1: return RMAPP_NEW; case 2: return RMAPP_NEW_SAVING; case 3: return RMAPP_SUBMITTED; case 4: return RMAPP_ACCEPTED; case 5: return RMAPP_RUNNING; case 6: return RMAPP_FINAL_SAVING; case 7: return RMAPP_FINISHING; case 8: return RMAPP_FINISHED; case 9: return RMAPP_FAILED; case 10: return RMAPP_KILLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RMAppStateProto findValueByNumber(int number) { return RMAppStateProto.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.getDescriptor().getEnumTypes().get(1); } private static final RMAppStateProto[] VALUES = values(); public static RMAppStateProto valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private RMAppStateProto(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:hadoop.yarn.RMAppStateProto) } public interface ApplicationStateDataProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 submit_time = 1; /** * optional int64 submit_time = 1; */ boolean hasSubmitTime(); /** * optional int64 submit_time = 1; */ long getSubmitTime(); // optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ boolean hasApplicationSubmissionContext(); /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext(); /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder(); // optional string user = 3; /** * optional string user = 3; */ boolean hasUser(); /** * optional string user = 3; */ java.lang.String getUser(); /** * optional string user = 3; */ com.google.protobuf.ByteString getUserBytes(); // optional int64 start_time = 4; /** * optional int64 start_time = 4; */ boolean hasStartTime(); /** * optional int64 start_time = 4; */ long getStartTime(); // optional .hadoop.yarn.RMAppStateProto application_state = 5; /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ boolean hasApplicationState(); /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto getApplicationState(); // optional string diagnostics = 6 [default = "N/A"]; /** * optional string diagnostics = 6 [default = "N/A"]; */ boolean hasDiagnostics(); /** * optional string diagnostics = 6 [default = "N/A"]; */ java.lang.String getDiagnostics(); /** * optional string diagnostics = 6 [default = "N/A"]; */ com.google.protobuf.ByteString getDiagnosticsBytes(); // optional int64 finish_time = 7; /** * optional int64 finish_time = 7; */ boolean hasFinishTime(); /** * optional int64 finish_time = 7; */ long getFinishTime(); // optional .hadoop.common.RPCCallerContextProto caller_context = 8; /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ boolean hasCallerContext(); /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto getCallerContext(); /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProtoOrBuilder getCallerContextOrBuilder(); } /** * Protobuf type {@code hadoop.yarn.ApplicationStateDataProto} */ public static final class ApplicationStateDataProto extends com.google.protobuf.GeneratedMessage implements ApplicationStateDataProtoOrBuilder { // Use ApplicationStateDataProto.newBuilder() to construct. private ApplicationStateDataProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ApplicationStateDataProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ApplicationStateDataProto defaultInstance; public static ApplicationStateDataProto getDefaultInstance() { return defaultInstance; } public ApplicationStateDataProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplicationStateDataProto( 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; submitTime_ = input.readInt64(); break; } case 18: { org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = applicationSubmissionContext_.toBuilder(); } applicationSubmissionContext_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(applicationSubmissionContext_); applicationSubmissionContext_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { bitField0_ |= 0x00000004; user_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; startTime_ = input.readInt64(); break; } case 40: { int rawValue = input.readEnum(); org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto value = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000010; applicationState_ = value; } break; } case 50: { bitField0_ |= 0x00000020; diagnostics_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; finishTime_ = input.readInt64(); break; } case 66: { org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = callerContext_.toBuilder(); } callerContext_ = input.readMessage(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(callerContext_); callerContext_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationStateDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationStateDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApplicationStateDataProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationStateDataProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int64 submit_time = 1; public static final int SUBMIT_TIME_FIELD_NUMBER = 1; private long submitTime_; /** * optional int64 submit_time = 1; */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 submit_time = 1; */ public long getSubmitTime() { return submitTime_; } // optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; public static final int APPLICATION_SUBMISSION_CONTEXT_FIELD_NUMBER = 2; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto applicationSubmissionContext_; /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public boolean hasApplicationSubmissionContext() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext() { return applicationSubmissionContext_; } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder() { return applicationSubmissionContext_; } // optional string user = 3; public static final int USER_FIELD_NUMBER = 3; private java.lang.Object user_; /** * optional string user = 3; */ public boolean hasUser() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string user = 3; */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** * optional string user = 3; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 start_time = 4; public static final int START_TIME_FIELD_NUMBER = 4; private long startTime_; /** * optional int64 start_time = 4; */ public boolean hasStartTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 start_time = 4; */ public long getStartTime() { return startTime_; } // optional .hadoop.yarn.RMAppStateProto application_state = 5; public static final int APPLICATION_STATE_FIELD_NUMBER = 5; private org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto applicationState_; /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ public boolean hasApplicationState() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto getApplicationState() { return applicationState_; } // optional string diagnostics = 6 [default = "N/A"]; public static final int DIAGNOSTICS_FIELD_NUMBER = 6; private java.lang.Object diagnostics_; /** * optional string diagnostics = 6 [default = "N/A"]; */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string diagnostics = 6 [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 = 6 [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 int64 finish_time = 7; public static final int FINISH_TIME_FIELD_NUMBER = 7; private long finishTime_; /** * optional int64 finish_time = 7; */ public boolean hasFinishTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 finish_time = 7; */ public long getFinishTime() { return finishTime_; } // optional .hadoop.common.RPCCallerContextProto caller_context = 8; public static final int CALLER_CONTEXT_FIELD_NUMBER = 8; private org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto callerContext_; /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public boolean hasCallerContext() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto getCallerContext() { return callerContext_; } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProtoOrBuilder getCallerContextOrBuilder() { return callerContext_; } private void initFields() { submitTime_ = 0L; applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance(); user_ = ""; startTime_ = 0L; applicationState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto.RMAPP_NEW; diagnostics_ = "N/A"; finishTime_ = 0L; callerContext_ = org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasCallerContext()) { if (!getCallerContext().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.writeInt64(1, submitTime_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, applicationSubmissionContext_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getUserBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, startTime_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(5, applicationState_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getDiagnosticsBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, finishTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, callerContext_); } 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 .computeInt64Size(1, submitTime_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, applicationSubmissionContext_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getUserBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, startTime_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, applicationState_.getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getDiagnosticsBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, finishTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, callerContext_); } 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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto other = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto) obj; boolean result = true; result = result && (hasSubmitTime() == other.hasSubmitTime()); if (hasSubmitTime()) { result = result && (getSubmitTime() == other.getSubmitTime()); } result = result && (hasApplicationSubmissionContext() == other.hasApplicationSubmissionContext()); if (hasApplicationSubmissionContext()) { result = result && getApplicationSubmissionContext() .equals(other.getApplicationSubmissionContext()); } result = result && (hasUser() == other.hasUser()); if (hasUser()) { result = result && getUser() .equals(other.getUser()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && (getStartTime() == other.getStartTime()); } result = result && (hasApplicationState() == other.hasApplicationState()); if (hasApplicationState()) { result = result && (getApplicationState() == other.getApplicationState()); } result = result && (hasDiagnostics() == other.hasDiagnostics()); if (hasDiagnostics()) { result = result && getDiagnostics() .equals(other.getDiagnostics()); } result = result && (hasFinishTime() == other.hasFinishTime()); if (hasFinishTime()) { result = result && (getFinishTime() == other.getFinishTime()); } result = result && (hasCallerContext() == other.hasCallerContext()); if (hasCallerContext()) { result = result && getCallerContext() .equals(other.getCallerContext()); } 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 (hasSubmitTime()) { hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getSubmitTime()); } if (hasApplicationSubmissionContext()) { hash = (37 * hash) + APPLICATION_SUBMISSION_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getApplicationSubmissionContext().hashCode(); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getStartTime()); } if (hasApplicationState()) { hash = (37 * hash) + APPLICATION_STATE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getApplicationState()); } if (hasDiagnostics()) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnostics().hashCode(); } if (hasFinishTime()) { hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getFinishTime()); } if (hasCallerContext()) { hash = (37 * hash) + CALLER_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getCallerContext().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto 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.ApplicationStateDataProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationStateDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationStateDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getApplicationSubmissionContextFieldBuilder(); getCallerContextFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); submitTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (applicationSubmissionContextBuilder_ == null) { applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance(); } else { applicationSubmissionContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); user_ = ""; bitField0_ = (bitField0_ & ~0x00000004); startTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); applicationState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto.RMAPP_NEW; bitField0_ = (bitField0_ & ~0x00000010); diagnostics_ = "N/A"; bitField0_ = (bitField0_ & ~0x00000020); finishTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); if (callerContextBuilder_ == null) { callerContext_ = org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.getDefaultInstance(); } else { callerContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationStateDataProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto build() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto result = new org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.submitTime_ = submitTime_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (applicationSubmissionContextBuilder_ == null) { result.applicationSubmissionContext_ = applicationSubmissionContext_; } else { result.applicationSubmissionContext_ = applicationSubmissionContextBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.user_ = user_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.startTime_ = startTime_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.applicationState_ = applicationState_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.diagnostics_ = diagnostics_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.finishTime_ = finishTime_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (callerContextBuilder_ == null) { result.callerContext_ = callerContext_; } else { result.callerContext_ = callerContextBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto.getDefaultInstance()) return this; if (other.hasSubmitTime()) { setSubmitTime(other.getSubmitTime()); } if (other.hasApplicationSubmissionContext()) { mergeApplicationSubmissionContext(other.getApplicationSubmissionContext()); } if (other.hasUser()) { bitField0_ |= 0x00000004; user_ = other.user_; onChanged(); } if (other.hasStartTime()) { setStartTime(other.getStartTime()); } if (other.hasApplicationState()) { setApplicationState(other.getApplicationState()); } if (other.hasDiagnostics()) { bitField0_ |= 0x00000020; diagnostics_ = other.diagnostics_; onChanged(); } if (other.hasFinishTime()) { setFinishTime(other.getFinishTime()); } if (other.hasCallerContext()) { mergeCallerContext(other.getCallerContext()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasCallerContext()) { if (!getCallerContext().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.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 submit_time = 1; private long submitTime_ ; /** * optional int64 submit_time = 1; */ public boolean hasSubmitTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 submit_time = 1; */ public long getSubmitTime() { return submitTime_; } /** * optional int64 submit_time = 1; */ public Builder setSubmitTime(long value) { bitField0_ |= 0x00000001; submitTime_ = value; onChanged(); return this; } /** * optional int64 submit_time = 1; */ public Builder clearSubmitTime() { bitField0_ = (bitField0_ & ~0x00000001); submitTime_ = 0L; onChanged(); return this; } // optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder> applicationSubmissionContextBuilder_; /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public boolean hasApplicationSubmissionContext() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext() { if (applicationSubmissionContextBuilder_ == null) { return applicationSubmissionContext_; } else { return applicationSubmissionContextBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public Builder setApplicationSubmissionContext(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto value) { if (applicationSubmissionContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } applicationSubmissionContext_ = value; onChanged(); } else { applicationSubmissionContextBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public Builder setApplicationSubmissionContext( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder builderForValue) { if (applicationSubmissionContextBuilder_ == null) { applicationSubmissionContext_ = builderForValue.build(); onChanged(); } else { applicationSubmissionContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public Builder mergeApplicationSubmissionContext(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto value) { if (applicationSubmissionContextBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && applicationSubmissionContext_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance()) { applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.newBuilder(applicationSubmissionContext_).mergeFrom(value).buildPartial(); } else { applicationSubmissionContext_ = value; } onChanged(); } else { applicationSubmissionContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public Builder clearApplicationSubmissionContext() { if (applicationSubmissionContextBuilder_ == null) { applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance(); onChanged(); } else { applicationSubmissionContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder getApplicationSubmissionContextBuilder() { bitField0_ |= 0x00000002; onChanged(); return getApplicationSubmissionContextFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder() { if (applicationSubmissionContextBuilder_ != null) { return applicationSubmissionContextBuilder_.getMessageOrBuilder(); } else { return applicationSubmissionContext_; } } /** * optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder> getApplicationSubmissionContextFieldBuilder() { if (applicationSubmissionContextBuilder_ == null) { applicationSubmissionContextBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder>( applicationSubmissionContext_, getParentForChildren(), isClean()); applicationSubmissionContext_ = null; } return applicationSubmissionContextBuilder_; } // optional string user = 3; private java.lang.Object user_ = ""; /** * optional string user = 3; */ public boolean hasUser() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string user = 3; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string user = 3; */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string user = 3; */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } /** * optional string user = 3; */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000004); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * optional string user = 3; */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; user_ = value; onChanged(); return this; } // optional int64 start_time = 4; private long startTime_ ; /** * optional int64 start_time = 4; */ public boolean hasStartTime() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 start_time = 4; */ public long getStartTime() { return startTime_; } /** * optional int64 start_time = 4; */ public Builder setStartTime(long value) { bitField0_ |= 0x00000008; startTime_ = value; onChanged(); return this; } /** * optional int64 start_time = 4; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000008); startTime_ = 0L; onChanged(); return this; } // optional .hadoop.yarn.RMAppStateProto application_state = 5; private org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto applicationState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto.RMAPP_NEW; /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ public boolean hasApplicationState() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto getApplicationState() { return applicationState_; } /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ public Builder setApplicationState(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; applicationState_ = value; onChanged(); return this; } /** * optional .hadoop.yarn.RMAppStateProto application_state = 5; */ public Builder clearApplicationState() { bitField0_ = (bitField0_ & ~0x00000010); applicationState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppStateProto.RMAPP_NEW; onChanged(); return this; } // optional string diagnostics = 6 [default = "N/A"]; private java.lang.Object diagnostics_ = "N/A"; /** * optional string diagnostics = 6 [default = "N/A"]; */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string diagnostics = 6 [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 = 6 [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 = 6 [default = "N/A"]; */ public Builder setDiagnostics( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; diagnostics_ = value; onChanged(); return this; } /** * optional string diagnostics = 6 [default = "N/A"]; */ public Builder clearDiagnostics() { bitField0_ = (bitField0_ & ~0x00000020); diagnostics_ = getDefaultInstance().getDiagnostics(); onChanged(); return this; } /** * optional string diagnostics = 6 [default = "N/A"]; */ public Builder setDiagnosticsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; diagnostics_ = value; onChanged(); return this; } // optional int64 finish_time = 7; private long finishTime_ ; /** * optional int64 finish_time = 7; */ public boolean hasFinishTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 finish_time = 7; */ public long getFinishTime() { return finishTime_; } /** * optional int64 finish_time = 7; */ public Builder setFinishTime(long value) { bitField0_ |= 0x00000040; finishTime_ = value; onChanged(); return this; } /** * optional int64 finish_time = 7; */ public Builder clearFinishTime() { bitField0_ = (bitField0_ & ~0x00000040); finishTime_ = 0L; onChanged(); return this; } // optional .hadoop.common.RPCCallerContextProto caller_context = 8; private org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto callerContext_ = org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto, org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.Builder, org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProtoOrBuilder> callerContextBuilder_; /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public boolean hasCallerContext() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto getCallerContext() { if (callerContextBuilder_ == null) { return callerContext_; } else { return callerContextBuilder_.getMessage(); } } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public Builder setCallerContext(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto value) { if (callerContextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } callerContext_ = value; onChanged(); } else { callerContextBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public Builder setCallerContext( org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.Builder builderForValue) { if (callerContextBuilder_ == null) { callerContext_ = builderForValue.build(); onChanged(); } else { callerContextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public Builder mergeCallerContext(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto value) { if (callerContextBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && callerContext_ != org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.getDefaultInstance()) { callerContext_ = org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.newBuilder(callerContext_).mergeFrom(value).buildPartial(); } else { callerContext_ = value; } onChanged(); } else { callerContextBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public Builder clearCallerContext() { if (callerContextBuilder_ == null) { callerContext_ = org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.getDefaultInstance(); onChanged(); } else { callerContextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.Builder getCallerContextBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCallerContextFieldBuilder().getBuilder(); } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ public org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProtoOrBuilder getCallerContextOrBuilder() { if (callerContextBuilder_ != null) { return callerContextBuilder_.getMessageOrBuilder(); } else { return callerContext_; } } /** * optional .hadoop.common.RPCCallerContextProto caller_context = 8; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto, org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.Builder, org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProtoOrBuilder> getCallerContextFieldBuilder() { if (callerContextBuilder_ == null) { callerContextBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto, org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProto.Builder, org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RPCCallerContextProtoOrBuilder>( callerContext_, getParentForChildren(), isClean()); callerContext_ = null; } return callerContextBuilder_; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationStateDataProto) } static { defaultInstance = new ApplicationStateDataProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationStateDataProto) } public interface ApplicationAttemptStateDataProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ boolean hasAttemptId(); /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAttemptId(); /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAttemptIdOrBuilder(); // optional .hadoop.yarn.ContainerProto master_container = 2; /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ boolean hasMasterContainer(); /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getMasterContainer(); /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getMasterContainerOrBuilder(); // optional bytes app_attempt_tokens = 3; /** * optional bytes app_attempt_tokens = 3; */ boolean hasAppAttemptTokens(); /** * optional bytes app_attempt_tokens = 3; */ com.google.protobuf.ByteString getAppAttemptTokens(); // optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ boolean hasAppAttemptState(); /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto getAppAttemptState(); // optional string final_tracking_url = 5; /** * optional string final_tracking_url = 5; */ boolean hasFinalTrackingUrl(); /** * optional string final_tracking_url = 5; */ java.lang.String getFinalTrackingUrl(); /** * optional string final_tracking_url = 5; */ com.google.protobuf.ByteString getFinalTrackingUrlBytes(); // optional string diagnostics = 6 [default = "N/A"]; /** * optional string diagnostics = 6 [default = "N/A"]; */ boolean hasDiagnostics(); /** * optional string diagnostics = 6 [default = "N/A"]; */ java.lang.String getDiagnostics(); /** * optional string diagnostics = 6 [default = "N/A"]; */ com.google.protobuf.ByteString getDiagnosticsBytes(); // optional int64 start_time = 7; /** * optional int64 start_time = 7; */ boolean hasStartTime(); /** * optional int64 start_time = 7; */ long getStartTime(); // optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ boolean hasFinalApplicationStatus(); /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus(); // optional int32 am_container_exit_status = 9 [default = -1000]; /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ boolean hasAmContainerExitStatus(); /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ int getAmContainerExitStatus(); // optional int64 memory_seconds = 10; /** * optional int64 memory_seconds = 10; */ boolean hasMemorySeconds(); /** * optional int64 memory_seconds = 10; */ long getMemorySeconds(); // optional int64 vcore_seconds = 11; /** * optional int64 vcore_seconds = 11; */ boolean hasVcoreSeconds(); /** * optional int64 vcore_seconds = 11; */ long getVcoreSeconds(); // optional int64 finish_time = 12; /** * optional int64 finish_time = 12; */ boolean hasFinishTime(); /** * optional int64 finish_time = 12; */ long getFinishTime(); // optional int64 preempted_memory_seconds = 13; /** * optional int64 preempted_memory_seconds = 13; */ boolean hasPreemptedMemorySeconds(); /** * optional int64 preempted_memory_seconds = 13; */ long getPreemptedMemorySeconds(); // optional int64 preempted_vcore_seconds = 14; /** * optional int64 preempted_vcore_seconds = 14; */ boolean hasPreemptedVcoreSeconds(); /** * optional int64 preempted_vcore_seconds = 14; */ long getPreemptedVcoreSeconds(); } /** * Protobuf type {@code hadoop.yarn.ApplicationAttemptStateDataProto} */ public static final class ApplicationAttemptStateDataProto extends com.google.protobuf.GeneratedMessage implements ApplicationAttemptStateDataProtoOrBuilder { // Use ApplicationAttemptStateDataProto.newBuilder() to construct. private ApplicationAttemptStateDataProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ApplicationAttemptStateDataProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ApplicationAttemptStateDataProto defaultInstance; public static ApplicationAttemptStateDataProto getDefaultInstance() { return defaultInstance; } public ApplicationAttemptStateDataProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplicationAttemptStateDataProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = attemptId_.toBuilder(); } attemptId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attemptId_); attemptId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = masterContainer_.toBuilder(); } masterContainer_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(masterContainer_); masterContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { bitField0_ |= 0x00000004; appAttemptTokens_ = input.readBytes(); break; } case 32: { int rawValue = input.readEnum(); org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto value = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; appAttemptState_ = value; } break; } case 42: { bitField0_ |= 0x00000010; finalTrackingUrl_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; diagnostics_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; startTime_ = input.readInt64(); break; } case 64: { int rawValue = input.readEnum(); org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(8, rawValue); } else { bitField0_ |= 0x00000080; finalApplicationStatus_ = value; } break; } case 72: { bitField0_ |= 0x00000100; amContainerExitStatus_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00000200; memorySeconds_ = input.readInt64(); break; } case 88: { bitField0_ |= 0x00000400; vcoreSeconds_ = input.readInt64(); break; } case 96: { bitField0_ |= 0x00000800; finishTime_ = input.readInt64(); break; } case 104: { bitField0_ |= 0x00001000; preemptedMemorySeconds_ = input.readInt64(); break; } case 112: { bitField0_ |= 0x00002000; preemptedVcoreSeconds_ = 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApplicationAttemptStateDataProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationAttemptStateDataProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; public static final int ATTEMPTID_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto attemptId_; /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public boolean hasAttemptId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAttemptId() { return attemptId_; } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAttemptIdOrBuilder() { return attemptId_; } // optional .hadoop.yarn.ContainerProto master_container = 2; public static final int MASTER_CONTAINER_FIELD_NUMBER = 2; private org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto masterContainer_; /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public boolean hasMasterContainer() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getMasterContainer() { return masterContainer_; } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getMasterContainerOrBuilder() { return masterContainer_; } // optional bytes app_attempt_tokens = 3; public static final int APP_ATTEMPT_TOKENS_FIELD_NUMBER = 3; private com.google.protobuf.ByteString appAttemptTokens_; /** * optional bytes app_attempt_tokens = 3; */ public boolean hasAppAttemptTokens() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes app_attempt_tokens = 3; */ public com.google.protobuf.ByteString getAppAttemptTokens() { return appAttemptTokens_; } // optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; public static final int APP_ATTEMPT_STATE_FIELD_NUMBER = 4; private org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto appAttemptState_; /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ public boolean hasAppAttemptState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto getAppAttemptState() { return appAttemptState_; } // optional string final_tracking_url = 5; public static final int FINAL_TRACKING_URL_FIELD_NUMBER = 5; private java.lang.Object finalTrackingUrl_; /** * optional string final_tracking_url = 5; */ public boolean hasFinalTrackingUrl() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string final_tracking_url = 5; */ public java.lang.String getFinalTrackingUrl() { java.lang.Object ref = finalTrackingUrl_; 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()) { finalTrackingUrl_ = s; } return s; } } /** * optional string final_tracking_url = 5; */ public com.google.protobuf.ByteString getFinalTrackingUrlBytes() { java.lang.Object ref = finalTrackingUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finalTrackingUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string diagnostics = 6 [default = "N/A"]; public static final int DIAGNOSTICS_FIELD_NUMBER = 6; private java.lang.Object diagnostics_; /** * optional string diagnostics = 6 [default = "N/A"]; */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string diagnostics = 6 [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 = 6 [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 int64 start_time = 7; public static final int START_TIME_FIELD_NUMBER = 7; private long startTime_; /** * optional int64 start_time = 7; */ public boolean hasStartTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 start_time = 7; */ public long getStartTime() { return startTime_; } // optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; public static final int FINAL_APPLICATION_STATUS_FIELD_NUMBER = 8; private org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto finalApplicationStatus_; /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ public boolean hasFinalApplicationStatus() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ public org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() { return finalApplicationStatus_; } // optional int32 am_container_exit_status = 9 [default = -1000]; public static final int AM_CONTAINER_EXIT_STATUS_FIELD_NUMBER = 9; private int amContainerExitStatus_; /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ public boolean hasAmContainerExitStatus() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ public int getAmContainerExitStatus() { return amContainerExitStatus_; } // optional int64 memory_seconds = 10; public static final int MEMORY_SECONDS_FIELD_NUMBER = 10; private long memorySeconds_; /** * optional int64 memory_seconds = 10; */ public boolean hasMemorySeconds() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 memory_seconds = 10; */ public long getMemorySeconds() { return memorySeconds_; } // optional int64 vcore_seconds = 11; public static final int VCORE_SECONDS_FIELD_NUMBER = 11; private long vcoreSeconds_; /** * optional int64 vcore_seconds = 11; */ public boolean hasVcoreSeconds() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 vcore_seconds = 11; */ public long getVcoreSeconds() { return vcoreSeconds_; } // optional int64 finish_time = 12; public static final int FINISH_TIME_FIELD_NUMBER = 12; private long finishTime_; /** * optional int64 finish_time = 12; */ public boolean hasFinishTime() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 finish_time = 12; */ public long getFinishTime() { return finishTime_; } // optional int64 preempted_memory_seconds = 13; public static final int PREEMPTED_MEMORY_SECONDS_FIELD_NUMBER = 13; private long preemptedMemorySeconds_; /** * optional int64 preempted_memory_seconds = 13; */ public boolean hasPreemptedMemorySeconds() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 preempted_memory_seconds = 13; */ public long getPreemptedMemorySeconds() { return preemptedMemorySeconds_; } // optional int64 preempted_vcore_seconds = 14; public static final int PREEMPTED_VCORE_SECONDS_FIELD_NUMBER = 14; private long preemptedVcoreSeconds_; /** * optional int64 preempted_vcore_seconds = 14; */ public boolean hasPreemptedVcoreSeconds() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 preempted_vcore_seconds = 14; */ public long getPreemptedVcoreSeconds() { return preemptedVcoreSeconds_; } private void initFields() { attemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance(); masterContainer_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance(); appAttemptTokens_ = com.google.protobuf.ByteString.EMPTY; appAttemptState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto.RMATTEMPT_NEW; finalTrackingUrl_ = ""; diagnostics_ = "N/A"; startTime_ = 0L; finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED; amContainerExitStatus_ = -1000; memorySeconds_ = 0L; vcoreSeconds_ = 0L; finishTime_ = 0L; preemptedMemorySeconds_ = 0L; preemptedVcoreSeconds_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasMasterContainer()) { if (!getMasterContainer().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, attemptId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, masterContainer_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, appAttemptTokens_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(4, appAttemptState_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getFinalTrackingUrlBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getDiagnosticsBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, startTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeEnum(8, finalApplicationStatus_.getNumber()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, amContainerExitStatus_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt64(10, memorySeconds_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt64(11, vcoreSeconds_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt64(12, finishTime_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(13, preemptedMemorySeconds_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt64(14, preemptedVcoreSeconds_); } 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, attemptId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, masterContainer_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, appAttemptTokens_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, appAttemptState_.getNumber()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getFinalTrackingUrlBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getDiagnosticsBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, startTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, finalApplicationStatus_.getNumber()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, amContainerExitStatus_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, memorySeconds_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(11, vcoreSeconds_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, finishTime_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, preemptedMemorySeconds_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, preemptedVcoreSeconds_); } 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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto other = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto) obj; boolean result = true; result = result && (hasAttemptId() == other.hasAttemptId()); if (hasAttemptId()) { result = result && getAttemptId() .equals(other.getAttemptId()); } result = result && (hasMasterContainer() == other.hasMasterContainer()); if (hasMasterContainer()) { result = result && getMasterContainer() .equals(other.getMasterContainer()); } result = result && (hasAppAttemptTokens() == other.hasAppAttemptTokens()); if (hasAppAttemptTokens()) { result = result && getAppAttemptTokens() .equals(other.getAppAttemptTokens()); } result = result && (hasAppAttemptState() == other.hasAppAttemptState()); if (hasAppAttemptState()) { result = result && (getAppAttemptState() == other.getAppAttemptState()); } result = result && (hasFinalTrackingUrl() == other.hasFinalTrackingUrl()); if (hasFinalTrackingUrl()) { result = result && getFinalTrackingUrl() .equals(other.getFinalTrackingUrl()); } result = result && (hasDiagnostics() == other.hasDiagnostics()); if (hasDiagnostics()) { result = result && getDiagnostics() .equals(other.getDiagnostics()); } result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && (getStartTime() == other.getStartTime()); } result = result && (hasFinalApplicationStatus() == other.hasFinalApplicationStatus()); if (hasFinalApplicationStatus()) { result = result && (getFinalApplicationStatus() == other.getFinalApplicationStatus()); } result = result && (hasAmContainerExitStatus() == other.hasAmContainerExitStatus()); if (hasAmContainerExitStatus()) { result = result && (getAmContainerExitStatus() == other.getAmContainerExitStatus()); } result = result && (hasMemorySeconds() == other.hasMemorySeconds()); if (hasMemorySeconds()) { result = result && (getMemorySeconds() == other.getMemorySeconds()); } result = result && (hasVcoreSeconds() == other.hasVcoreSeconds()); if (hasVcoreSeconds()) { result = result && (getVcoreSeconds() == other.getVcoreSeconds()); } result = result && (hasFinishTime() == other.hasFinishTime()); if (hasFinishTime()) { result = result && (getFinishTime() == other.getFinishTime()); } result = result && (hasPreemptedMemorySeconds() == other.hasPreemptedMemorySeconds()); if (hasPreemptedMemorySeconds()) { result = result && (getPreemptedMemorySeconds() == other.getPreemptedMemorySeconds()); } result = result && (hasPreemptedVcoreSeconds() == other.hasPreemptedVcoreSeconds()); if (hasPreemptedVcoreSeconds()) { result = result && (getPreemptedVcoreSeconds() == other.getPreemptedVcoreSeconds()); } 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 (hasAttemptId()) { hash = (37 * hash) + ATTEMPTID_FIELD_NUMBER; hash = (53 * hash) + getAttemptId().hashCode(); } if (hasMasterContainer()) { hash = (37 * hash) + MASTER_CONTAINER_FIELD_NUMBER; hash = (53 * hash) + getMasterContainer().hashCode(); } if (hasAppAttemptTokens()) { hash = (37 * hash) + APP_ATTEMPT_TOKENS_FIELD_NUMBER; hash = (53 * hash) + getAppAttemptTokens().hashCode(); } if (hasAppAttemptState()) { hash = (37 * hash) + APP_ATTEMPT_STATE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getAppAttemptState()); } if (hasFinalTrackingUrl()) { hash = (37 * hash) + FINAL_TRACKING_URL_FIELD_NUMBER; hash = (53 * hash) + getFinalTrackingUrl().hashCode(); } if (hasDiagnostics()) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnostics().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getStartTime()); } if (hasFinalApplicationStatus()) { hash = (37 * hash) + FINAL_APPLICATION_STATUS_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getFinalApplicationStatus()); } if (hasAmContainerExitStatus()) { hash = (37 * hash) + AM_CONTAINER_EXIT_STATUS_FIELD_NUMBER; hash = (53 * hash) + getAmContainerExitStatus(); } if (hasMemorySeconds()) { hash = (37 * hash) + MEMORY_SECONDS_FIELD_NUMBER; hash = (53 * hash) + hashLong(getMemorySeconds()); } if (hasVcoreSeconds()) { hash = (37 * hash) + VCORE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + hashLong(getVcoreSeconds()); } if (hasFinishTime()) { hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getFinishTime()); } if (hasPreemptedMemorySeconds()) { hash = (37 * hash) + PREEMPTED_MEMORY_SECONDS_FIELD_NUMBER; hash = (53 * hash) + hashLong(getPreemptedMemorySeconds()); } if (hasPreemptedVcoreSeconds()) { hash = (37 * hash) + PREEMPTED_VCORE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + hashLong(getPreemptedVcoreSeconds()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto 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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto 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.ApplicationAttemptStateDataProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAttemptIdFieldBuilder(); getMasterContainerFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (attemptIdBuilder_ == null) { attemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance(); } else { attemptIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (masterContainerBuilder_ == null) { masterContainer_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance(); } else { masterContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); appAttemptTokens_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); appAttemptState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto.RMATTEMPT_NEW; bitField0_ = (bitField0_ & ~0x00000008); finalTrackingUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000010); diagnostics_ = "N/A"; bitField0_ = (bitField0_ & ~0x00000020); startTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED; bitField0_ = (bitField0_ & ~0x00000080); amContainerExitStatus_ = -1000; bitField0_ = (bitField0_ & ~0x00000100); memorySeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); vcoreSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); finishTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000800); preemptedMemorySeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); preemptedVcoreSeconds_ = 0L; bitField0_ = (bitField0_ & ~0x00002000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto build() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto result = new org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (attemptIdBuilder_ == null) { result.attemptId_ = attemptId_; } else { result.attemptId_ = attemptIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (masterContainerBuilder_ == null) { result.masterContainer_ = masterContainer_; } else { result.masterContainer_ = masterContainerBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.appAttemptTokens_ = appAttemptTokens_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.appAttemptState_ = appAttemptState_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.finalTrackingUrl_ = finalTrackingUrl_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.diagnostics_ = diagnostics_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.startTime_ = startTime_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.finalApplicationStatus_ = finalApplicationStatus_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.amContainerExitStatus_ = amContainerExitStatus_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.memorySeconds_ = memorySeconds_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.vcoreSeconds_ = vcoreSeconds_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.finishTime_ = finishTime_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.preemptedMemorySeconds_ = preemptedMemorySeconds_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.preemptedVcoreSeconds_ = preemptedVcoreSeconds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto.getDefaultInstance()) return this; if (other.hasAttemptId()) { mergeAttemptId(other.getAttemptId()); } if (other.hasMasterContainer()) { mergeMasterContainer(other.getMasterContainer()); } if (other.hasAppAttemptTokens()) { setAppAttemptTokens(other.getAppAttemptTokens()); } if (other.hasAppAttemptState()) { setAppAttemptState(other.getAppAttemptState()); } if (other.hasFinalTrackingUrl()) { bitField0_ |= 0x00000010; finalTrackingUrl_ = other.finalTrackingUrl_; onChanged(); } if (other.hasDiagnostics()) { bitField0_ |= 0x00000020; diagnostics_ = other.diagnostics_; onChanged(); } if (other.hasStartTime()) { setStartTime(other.getStartTime()); } if (other.hasFinalApplicationStatus()) { setFinalApplicationStatus(other.getFinalApplicationStatus()); } if (other.hasAmContainerExitStatus()) { setAmContainerExitStatus(other.getAmContainerExitStatus()); } if (other.hasMemorySeconds()) { setMemorySeconds(other.getMemorySeconds()); } if (other.hasVcoreSeconds()) { setVcoreSeconds(other.getVcoreSeconds()); } if (other.hasFinishTime()) { setFinishTime(other.getFinishTime()); } if (other.hasPreemptedMemorySeconds()) { setPreemptedMemorySeconds(other.getPreemptedMemorySeconds()); } if (other.hasPreemptedVcoreSeconds()) { setPreemptedVcoreSeconds(other.getPreemptedVcoreSeconds()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasMasterContainer()) { if (!getMasterContainer().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.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto attemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> attemptIdBuilder_; /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public boolean hasAttemptId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAttemptId() { if (attemptIdBuilder_ == null) { return attemptId_; } else { return attemptIdBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public Builder setAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) { if (attemptIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attemptId_ = value; onChanged(); } else { attemptIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public Builder setAttemptId( org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) { if (attemptIdBuilder_ == null) { attemptId_ = builderForValue.build(); onChanged(); } else { attemptIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public Builder mergeAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) { if (attemptIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && attemptId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) { attemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(attemptId_).mergeFrom(value).buildPartial(); } else { attemptId_ = value; } onChanged(); } else { attemptIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public Builder clearAttemptId() { if (attemptIdBuilder_ == null) { attemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance(); onChanged(); } else { attemptIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getAttemptIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAttemptIdFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAttemptIdOrBuilder() { if (attemptIdBuilder_ != null) { return attemptIdBuilder_.getMessageOrBuilder(); } else { return attemptId_; } } /** * optional .hadoop.yarn.ApplicationAttemptIdProto attemptId = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> getAttemptIdFieldBuilder() { if (attemptIdBuilder_ == null) { attemptIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>( attemptId_, getParentForChildren(), isClean()); attemptId_ = null; } return attemptIdBuilder_; } // optional .hadoop.yarn.ContainerProto master_container = 2; private org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto masterContainer_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> masterContainerBuilder_; /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public boolean hasMasterContainer() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getMasterContainer() { if (masterContainerBuilder_ == null) { return masterContainer_; } else { return masterContainerBuilder_.getMessage(); } } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public Builder setMasterContainer(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (masterContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } masterContainer_ = value; onChanged(); } else { masterContainerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public Builder setMasterContainer( org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) { if (masterContainerBuilder_ == null) { masterContainer_ = builderForValue.build(); onChanged(); } else { masterContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public Builder mergeMasterContainer(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) { if (masterContainerBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && masterContainer_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()) { masterContainer_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.newBuilder(masterContainer_).mergeFrom(value).buildPartial(); } else { masterContainer_ = value; } onChanged(); } else { masterContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public Builder clearMasterContainer() { if (masterContainerBuilder_ == null) { masterContainer_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance(); onChanged(); } else { masterContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getMasterContainerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMasterContainerFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getMasterContainerOrBuilder() { if (masterContainerBuilder_ != null) { return masterContainerBuilder_.getMessageOrBuilder(); } else { return masterContainer_; } } /** * optional .hadoop.yarn.ContainerProto master_container = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> getMasterContainerFieldBuilder() { if (masterContainerBuilder_ == null) { masterContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>( masterContainer_, getParentForChildren(), isClean()); masterContainer_ = null; } return masterContainerBuilder_; } // optional bytes app_attempt_tokens = 3; private com.google.protobuf.ByteString appAttemptTokens_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes app_attempt_tokens = 3; */ public boolean hasAppAttemptTokens() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bytes app_attempt_tokens = 3; */ public com.google.protobuf.ByteString getAppAttemptTokens() { return appAttemptTokens_; } /** * optional bytes app_attempt_tokens = 3; */ public Builder setAppAttemptTokens(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; appAttemptTokens_ = value; onChanged(); return this; } /** * optional bytes app_attempt_tokens = 3; */ public Builder clearAppAttemptTokens() { bitField0_ = (bitField0_ & ~0x00000004); appAttemptTokens_ = getDefaultInstance().getAppAttemptTokens(); onChanged(); return this; } // optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; private org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto appAttemptState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto.RMATTEMPT_NEW; /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ public boolean hasAppAttemptState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto getAppAttemptState() { return appAttemptState_; } /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ public Builder setAppAttemptState(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; appAttemptState_ = value; onChanged(); return this; } /** * optional .hadoop.yarn.RMAppAttemptStateProto app_attempt_state = 4; */ public Builder clearAppAttemptState() { bitField0_ = (bitField0_ & ~0x00000008); appAttemptState_ = org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMAppAttemptStateProto.RMATTEMPT_NEW; onChanged(); return this; } // optional string final_tracking_url = 5; private java.lang.Object finalTrackingUrl_ = ""; /** * optional string final_tracking_url = 5; */ public boolean hasFinalTrackingUrl() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string final_tracking_url = 5; */ public java.lang.String getFinalTrackingUrl() { java.lang.Object ref = finalTrackingUrl_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); finalTrackingUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string final_tracking_url = 5; */ public com.google.protobuf.ByteString getFinalTrackingUrlBytes() { java.lang.Object ref = finalTrackingUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); finalTrackingUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string final_tracking_url = 5; */ public Builder setFinalTrackingUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; finalTrackingUrl_ = value; onChanged(); return this; } /** * optional string final_tracking_url = 5; */ public Builder clearFinalTrackingUrl() { bitField0_ = (bitField0_ & ~0x00000010); finalTrackingUrl_ = getDefaultInstance().getFinalTrackingUrl(); onChanged(); return this; } /** * optional string final_tracking_url = 5; */ public Builder setFinalTrackingUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; finalTrackingUrl_ = value; onChanged(); return this; } // optional string diagnostics = 6 [default = "N/A"]; private java.lang.Object diagnostics_ = "N/A"; /** * optional string diagnostics = 6 [default = "N/A"]; */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string diagnostics = 6 [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 = 6 [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 = 6 [default = "N/A"]; */ public Builder setDiagnostics( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; diagnostics_ = value; onChanged(); return this; } /** * optional string diagnostics = 6 [default = "N/A"]; */ public Builder clearDiagnostics() { bitField0_ = (bitField0_ & ~0x00000020); diagnostics_ = getDefaultInstance().getDiagnostics(); onChanged(); return this; } /** * optional string diagnostics = 6 [default = "N/A"]; */ public Builder setDiagnosticsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; diagnostics_ = value; onChanged(); return this; } // optional int64 start_time = 7; private long startTime_ ; /** * optional int64 start_time = 7; */ public boolean hasStartTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 start_time = 7; */ public long getStartTime() { return startTime_; } /** * optional int64 start_time = 7; */ public Builder setStartTime(long value) { bitField0_ |= 0x00000040; startTime_ = value; onChanged(); return this; } /** * optional int64 start_time = 7; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000040); startTime_ = 0L; onChanged(); return this; } // optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; private org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED; /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ public boolean hasFinalApplicationStatus() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ public org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() { return finalApplicationStatus_; } /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ public Builder setFinalApplicationStatus(org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; finalApplicationStatus_ = value; onChanged(); return this; } /** * optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 8; */ public Builder clearFinalApplicationStatus() { bitField0_ = (bitField0_ & ~0x00000080); finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED; onChanged(); return this; } // optional int32 am_container_exit_status = 9 [default = -1000]; private int amContainerExitStatus_ = -1000; /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ public boolean hasAmContainerExitStatus() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ public int getAmContainerExitStatus() { return amContainerExitStatus_; } /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ public Builder setAmContainerExitStatus(int value) { bitField0_ |= 0x00000100; amContainerExitStatus_ = value; onChanged(); return this; } /** * optional int32 am_container_exit_status = 9 [default = -1000]; */ public Builder clearAmContainerExitStatus() { bitField0_ = (bitField0_ & ~0x00000100); amContainerExitStatus_ = -1000; onChanged(); return this; } // optional int64 memory_seconds = 10; private long memorySeconds_ ; /** * optional int64 memory_seconds = 10; */ public boolean hasMemorySeconds() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 memory_seconds = 10; */ public long getMemorySeconds() { return memorySeconds_; } /** * optional int64 memory_seconds = 10; */ public Builder setMemorySeconds(long value) { bitField0_ |= 0x00000200; memorySeconds_ = value; onChanged(); return this; } /** * optional int64 memory_seconds = 10; */ public Builder clearMemorySeconds() { bitField0_ = (bitField0_ & ~0x00000200); memorySeconds_ = 0L; onChanged(); return this; } // optional int64 vcore_seconds = 11; private long vcoreSeconds_ ; /** * optional int64 vcore_seconds = 11; */ public boolean hasVcoreSeconds() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int64 vcore_seconds = 11; */ public long getVcoreSeconds() { return vcoreSeconds_; } /** * optional int64 vcore_seconds = 11; */ public Builder setVcoreSeconds(long value) { bitField0_ |= 0x00000400; vcoreSeconds_ = value; onChanged(); return this; } /** * optional int64 vcore_seconds = 11; */ public Builder clearVcoreSeconds() { bitField0_ = (bitField0_ & ~0x00000400); vcoreSeconds_ = 0L; onChanged(); return this; } // optional int64 finish_time = 12; private long finishTime_ ; /** * optional int64 finish_time = 12; */ public boolean hasFinishTime() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int64 finish_time = 12; */ public long getFinishTime() { return finishTime_; } /** * optional int64 finish_time = 12; */ public Builder setFinishTime(long value) { bitField0_ |= 0x00000800; finishTime_ = value; onChanged(); return this; } /** * optional int64 finish_time = 12; */ public Builder clearFinishTime() { bitField0_ = (bitField0_ & ~0x00000800); finishTime_ = 0L; onChanged(); return this; } // optional int64 preempted_memory_seconds = 13; private long preemptedMemorySeconds_ ; /** * optional int64 preempted_memory_seconds = 13; */ public boolean hasPreemptedMemorySeconds() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int64 preempted_memory_seconds = 13; */ public long getPreemptedMemorySeconds() { return preemptedMemorySeconds_; } /** * optional int64 preempted_memory_seconds = 13; */ public Builder setPreemptedMemorySeconds(long value) { bitField0_ |= 0x00001000; preemptedMemorySeconds_ = value; onChanged(); return this; } /** * optional int64 preempted_memory_seconds = 13; */ public Builder clearPreemptedMemorySeconds() { bitField0_ = (bitField0_ & ~0x00001000); preemptedMemorySeconds_ = 0L; onChanged(); return this; } // optional int64 preempted_vcore_seconds = 14; private long preemptedVcoreSeconds_ ; /** * optional int64 preempted_vcore_seconds = 14; */ public boolean hasPreemptedVcoreSeconds() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int64 preempted_vcore_seconds = 14; */ public long getPreemptedVcoreSeconds() { return preemptedVcoreSeconds_; } /** * optional int64 preempted_vcore_seconds = 14; */ public Builder setPreemptedVcoreSeconds(long value) { bitField0_ |= 0x00002000; preemptedVcoreSeconds_ = value; onChanged(); return this; } /** * optional int64 preempted_vcore_seconds = 14; */ public Builder clearPreemptedVcoreSeconds() { bitField0_ = (bitField0_ & ~0x00002000); preemptedVcoreSeconds_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationAttemptStateDataProto) } static { defaultInstance = new ApplicationAttemptStateDataProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationAttemptStateDataProto) } public interface EpochProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 epoch = 1; /** * optional int64 epoch = 1; */ boolean hasEpoch(); /** * optional int64 epoch = 1; */ long getEpoch(); } /** * Protobuf type {@code hadoop.yarn.EpochProto} */ public static final class EpochProto extends com.google.protobuf.GeneratedMessage implements EpochProtoOrBuilder { // Use EpochProto.newBuilder() to construct. private EpochProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private EpochProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final EpochProto defaultInstance; public static EpochProto getDefaultInstance() { return defaultInstance; } public EpochProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EpochProto( 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; epoch_ = 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_EpochProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_EpochProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EpochProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EpochProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int64 epoch = 1; public static final int EPOCH_FIELD_NUMBER = 1; private long epoch_; /** * optional int64 epoch = 1; */ public boolean hasEpoch() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 epoch = 1; */ public long getEpoch() { return epoch_; } private void initFields() { epoch_ = 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.writeInt64(1, epoch_); } 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 .computeInt64Size(1, epoch_); } 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.YarnServerResourceManagerRecoveryProtos.EpochProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto other = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto) obj; boolean result = true; result = result && (hasEpoch() == other.hasEpoch()); if (hasEpoch()) { result = result && (getEpoch() == other.getEpoch()); } 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 (hasEpoch()) { hash = (37 * hash) + EPOCH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getEpoch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto 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.YarnServerResourceManagerRecoveryProtos.EpochProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto 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.YarnServerResourceManagerRecoveryProtos.EpochProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto 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.YarnServerResourceManagerRecoveryProtos.EpochProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto 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.YarnServerResourceManagerRecoveryProtos.EpochProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto 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.YarnServerResourceManagerRecoveryProtos.EpochProto 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.EpochProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_EpochProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_EpochProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.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(); epoch_ = 0L; 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_EpochProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto build() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto result = new org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.epoch_ = epoch_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto.getDefaultInstance()) return this; if (other.hasEpoch()) { setEpoch(other.getEpoch()); } 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.YarnServerResourceManagerRecoveryProtos.EpochProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.EpochProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 epoch = 1; private long epoch_ ; /** * optional int64 epoch = 1; */ public boolean hasEpoch() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 epoch = 1; */ public long getEpoch() { return epoch_; } /** * optional int64 epoch = 1; */ public Builder setEpoch(long value) { bitField0_ |= 0x00000001; epoch_ = value; onChanged(); return this; } /** * optional int64 epoch = 1; */ public Builder clearEpoch() { bitField0_ = (bitField0_ & ~0x00000001); epoch_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.EpochProto) } static { defaultInstance = new EpochProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.EpochProto) } public interface AMRMTokenSecretManagerStateProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.MasterKeyProto current_master_key = 1; /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ boolean hasCurrentMasterKey(); /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getCurrentMasterKey(); /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getCurrentMasterKeyOrBuilder(); // optional .hadoop.yarn.MasterKeyProto next_master_key = 2; /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ boolean hasNextMasterKey(); /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNextMasterKey(); /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNextMasterKeyOrBuilder(); } /** * Protobuf type {@code hadoop.yarn.AMRMTokenSecretManagerStateProto} */ public static final class AMRMTokenSecretManagerStateProto extends com.google.protobuf.GeneratedMessage implements AMRMTokenSecretManagerStateProtoOrBuilder { // Use AMRMTokenSecretManagerStateProto.newBuilder() to construct. private AMRMTokenSecretManagerStateProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AMRMTokenSecretManagerStateProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AMRMTokenSecretManagerStateProto defaultInstance; public static AMRMTokenSecretManagerStateProto getDefaultInstance() { return defaultInstance; } public AMRMTokenSecretManagerStateProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AMRMTokenSecretManagerStateProto( 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 = currentMasterKey_.toBuilder(); } currentMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(currentMasterKey_); currentMasterKey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = nextMasterKey_.toBuilder(); } nextMasterKey_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(nextMasterKey_); nextMasterKey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AMRMTokenSecretManagerStateProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AMRMTokenSecretManagerStateProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.MasterKeyProto current_master_key = 1; public static final int CURRENT_MASTER_KEY_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto currentMasterKey_; /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public boolean hasCurrentMasterKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getCurrentMasterKey() { return currentMasterKey_; } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getCurrentMasterKeyOrBuilder() { return currentMasterKey_; } // optional .hadoop.yarn.MasterKeyProto next_master_key = 2; public static final int NEXT_MASTER_KEY_FIELD_NUMBER = 2; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto nextMasterKey_; /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public boolean hasNextMasterKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNextMasterKey() { return nextMasterKey_; } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNextMasterKeyOrBuilder() { return nextMasterKey_; } private void initFields() { currentMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); nextMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.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, currentMasterKey_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, nextMasterKey_); } 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, currentMasterKey_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nextMasterKey_); } 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto other = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto) obj; boolean result = true; result = result && (hasCurrentMasterKey() == other.hasCurrentMasterKey()); if (hasCurrentMasterKey()) { result = result && getCurrentMasterKey() .equals(other.getCurrentMasterKey()); } result = result && (hasNextMasterKey() == other.hasNextMasterKey()); if (hasNextMasterKey()) { result = result && getNextMasterKey() .equals(other.getNextMasterKey()); } 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 (hasCurrentMasterKey()) { hash = (37 * hash) + CURRENT_MASTER_KEY_FIELD_NUMBER; hash = (53 * hash) + getCurrentMasterKey().hashCode(); } if (hasNextMasterKey()) { hash = (37 * hash) + NEXT_MASTER_KEY_FIELD_NUMBER; hash = (53 * hash) + getNextMasterKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto 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.AMRMTokenSecretManagerStateProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCurrentMasterKeyFieldBuilder(); getNextMasterKeyFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (currentMasterKeyBuilder_ == null) { currentMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); } else { currentMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (nextMasterKeyBuilder_ == null) { nextMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); } else { nextMasterKeyBuilder_.clear(); } 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto build() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto result = new org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (currentMasterKeyBuilder_ == null) { result.currentMasterKey_ = currentMasterKey_; } else { result.currentMasterKey_ = currentMasterKeyBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (nextMasterKeyBuilder_ == null) { result.nextMasterKey_ = nextMasterKey_; } else { result.nextMasterKey_ = nextMasterKeyBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto.getDefaultInstance()) return this; if (other.hasCurrentMasterKey()) { mergeCurrentMasterKey(other.getCurrentMasterKey()); } if (other.hasNextMasterKey()) { mergeNextMasterKey(other.getNextMasterKey()); } 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.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.MasterKeyProto current_master_key = 1; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto currentMasterKey_ = 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> currentMasterKeyBuilder_; /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public boolean hasCurrentMasterKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getCurrentMasterKey() { if (currentMasterKeyBuilder_ == null) { return currentMasterKey_; } else { return currentMasterKeyBuilder_.getMessage(); } } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public Builder setCurrentMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (currentMasterKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentMasterKey_ = value; onChanged(); } else { currentMasterKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public Builder setCurrentMasterKey( org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) { if (currentMasterKeyBuilder_ == null) { currentMasterKey_ = builderForValue.build(); onChanged(); } else { currentMasterKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public Builder mergeCurrentMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (currentMasterKeyBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && currentMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) { currentMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(currentMasterKey_).mergeFrom(value).buildPartial(); } else { currentMasterKey_ = value; } onChanged(); } else { currentMasterKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public Builder clearCurrentMasterKey() { if (currentMasterKeyBuilder_ == null) { currentMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); onChanged(); } else { currentMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getCurrentMasterKeyBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCurrentMasterKeyFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.MasterKeyProto current_master_key = 1; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getCurrentMasterKeyOrBuilder() { if (currentMasterKeyBuilder_ != null) { return currentMasterKeyBuilder_.getMessageOrBuilder(); } else { return currentMasterKey_; } } /** * optional .hadoop.yarn.MasterKeyProto current_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> getCurrentMasterKeyFieldBuilder() { if (currentMasterKeyBuilder_ == null) { currentMasterKeyBuilder_ = 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>( currentMasterKey_, getParentForChildren(), isClean()); currentMasterKey_ = null; } return currentMasterKeyBuilder_; } // optional .hadoop.yarn.MasterKeyProto next_master_key = 2; private org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto nextMasterKey_ = 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> nextMasterKeyBuilder_; /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public boolean hasNextMasterKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto getNextMasterKey() { if (nextMasterKeyBuilder_ == null) { return nextMasterKey_; } else { return nextMasterKeyBuilder_.getMessage(); } } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public Builder setNextMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (nextMasterKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } nextMasterKey_ = value; onChanged(); } else { nextMasterKeyBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public Builder setNextMasterKey( org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder builderForValue) { if (nextMasterKeyBuilder_ == null) { nextMasterKey_ = builderForValue.build(); onChanged(); } else { nextMasterKeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public Builder mergeNextMasterKey(org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto value) { if (nextMasterKeyBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && nextMasterKey_ != org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance()) { nextMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.newBuilder(nextMasterKey_).mergeFrom(value).buildPartial(); } else { nextMasterKey_ = value; } onChanged(); } else { nextMasterKeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public Builder clearNextMasterKey() { if (nextMasterKeyBuilder_ == null) { nextMasterKey_ = org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.getDefaultInstance(); onChanged(); } else { nextMasterKeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProto.Builder getNextMasterKeyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getNextMasterKeyFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.MasterKeyProto next_master_key = 2; */ public org.apache.hadoop.yarn.proto.YarnServerCommonProtos.MasterKeyProtoOrBuilder getNextMasterKeyOrBuilder() { if (nextMasterKeyBuilder_ != null) { return nextMasterKeyBuilder_.getMessageOrBuilder(); } else { return nextMasterKey_; } } /** * optional .hadoop.yarn.MasterKeyProto next_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> getNextMasterKeyFieldBuilder() { if (nextMasterKeyBuilder_ == null) { nextMasterKeyBuilder_ = 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>( nextMasterKey_, getParentForChildren(), isClean()); nextMasterKey_ = null; } return nextMasterKeyBuilder_; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.AMRMTokenSecretManagerStateProto) } static { defaultInstance = new AMRMTokenSecretManagerStateProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.AMRMTokenSecretManagerStateProto) } public interface RMDelegationTokenIdentifierDataProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ boolean hasTokenIdentifier(); /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto getTokenIdentifier(); /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder getTokenIdentifierOrBuilder(); // optional int64 renewDate = 2; /** * optional int64 renewDate = 2; */ boolean hasRenewDate(); /** * optional int64 renewDate = 2; */ long getRenewDate(); } /** * Protobuf type {@code hadoop.yarn.RMDelegationTokenIdentifierDataProto} */ public static final class RMDelegationTokenIdentifierDataProto extends com.google.protobuf.GeneratedMessage implements RMDelegationTokenIdentifierDataProtoOrBuilder { // Use RMDelegationTokenIdentifierDataProto.newBuilder() to construct. private RMDelegationTokenIdentifierDataProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RMDelegationTokenIdentifierDataProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RMDelegationTokenIdentifierDataProto defaultInstance; public static RMDelegationTokenIdentifierDataProto getDefaultInstance() { return defaultInstance; } public RMDelegationTokenIdentifierDataProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RMDelegationTokenIdentifierDataProto( 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.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = tokenIdentifier_.toBuilder(); } tokenIdentifier_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tokenIdentifier_); tokenIdentifier_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; renewDate_ = 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RMDelegationTokenIdentifierDataProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RMDelegationTokenIdentifierDataProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; public static final int TOKEN_IDENTIFIER_FIELD_NUMBER = 1; private org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto tokenIdentifier_; /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public boolean hasTokenIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto getTokenIdentifier() { return tokenIdentifier_; } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder getTokenIdentifierOrBuilder() { return tokenIdentifier_; } // optional int64 renewDate = 2; public static final int RENEWDATE_FIELD_NUMBER = 2; private long renewDate_; /** * optional int64 renewDate = 2; */ public boolean hasRenewDate() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 renewDate = 2; */ public long getRenewDate() { return renewDate_; } private void initFields() { tokenIdentifier_ = org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance(); renewDate_ = 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.writeMessage(1, tokenIdentifier_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, renewDate_); } 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, tokenIdentifier_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, renewDate_); } 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto)) { return super.equals(obj); } org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto other = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto) obj; boolean result = true; result = result && (hasTokenIdentifier() == other.hasTokenIdentifier()); if (hasTokenIdentifier()) { result = result && getTokenIdentifier() .equals(other.getTokenIdentifier()); } result = result && (hasRenewDate() == other.hasRenewDate()); if (hasRenewDate()) { result = result && (getRenewDate() == other.getRenewDate()); } 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 (hasTokenIdentifier()) { hash = (37 * hash) + TOKEN_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getTokenIdentifier().hashCode(); } if (hasRenewDate()) { hash = (37 * hash) + RENEWDATE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getRenewDate()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto 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.RMDelegationTokenIdentifierDataProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.class, org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.Builder.class); } // Construct using org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTokenIdentifierFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (tokenIdentifierBuilder_ == null) { tokenIdentifier_ = org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance(); } else { tokenIdentifierBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); renewDate_ = 0L; 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.YarnServerResourceManagerRecoveryProtos.internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_descriptor; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto getDefaultInstanceForType() { return org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.getDefaultInstance(); } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto build() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto buildPartial() { org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto result = new org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (tokenIdentifierBuilder_ == null) { result.tokenIdentifier_ = tokenIdentifier_; } else { result.tokenIdentifier_ = tokenIdentifierBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.renewDate_ = renewDate_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto) { return mergeFrom((org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto other) { if (other == org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto.getDefaultInstance()) return this; if (other.hasTokenIdentifier()) { mergeTokenIdentifier(other.getTokenIdentifier()); } if (other.hasRenewDate()) { setRenewDate(other.getRenewDate()); } 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.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.RMDelegationTokenIdentifierDataProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; private org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto tokenIdentifier_ = org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder> tokenIdentifierBuilder_; /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public boolean hasTokenIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto getTokenIdentifier() { if (tokenIdentifierBuilder_ == null) { return tokenIdentifier_; } else { return tokenIdentifierBuilder_.getMessage(); } } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public Builder setTokenIdentifier(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto value) { if (tokenIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tokenIdentifier_ = value; onChanged(); } else { tokenIdentifierBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public Builder setTokenIdentifier( org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder builderForValue) { if (tokenIdentifierBuilder_ == null) { tokenIdentifier_ = builderForValue.build(); onChanged(); } else { tokenIdentifierBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public Builder mergeTokenIdentifier(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto value) { if (tokenIdentifierBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && tokenIdentifier_ != org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance()) { tokenIdentifier_ = org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.newBuilder(tokenIdentifier_).mergeFrom(value).buildPartial(); } else { tokenIdentifier_ = value; } onChanged(); } else { tokenIdentifierBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public Builder clearTokenIdentifier() { if (tokenIdentifierBuilder_ == null) { tokenIdentifier_ = org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.getDefaultInstance(); onChanged(); } else { tokenIdentifierBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder getTokenIdentifierBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTokenIdentifierFieldBuilder().getBuilder(); } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder getTokenIdentifierOrBuilder() { if (tokenIdentifierBuilder_ != null) { return tokenIdentifierBuilder_.getMessageOrBuilder(); } else { return tokenIdentifier_; } } /** * optional .hadoop.yarn.YARNDelegationTokenIdentifierProto token_identifier = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder> getTokenIdentifierFieldBuilder() { if (tokenIdentifierBuilder_ == null) { tokenIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProto.Builder, org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.YARNDelegationTokenIdentifierProtoOrBuilder>( tokenIdentifier_, getParentForChildren(), isClean()); tokenIdentifier_ = null; } return tokenIdentifierBuilder_; } // optional int64 renewDate = 2; private long renewDate_ ; /** * optional int64 renewDate = 2; */ public boolean hasRenewDate() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 renewDate = 2; */ public long getRenewDate() { return renewDate_; } /** * optional int64 renewDate = 2; */ public Builder setRenewDate(long value) { bitField0_ |= 0x00000002; renewDate_ = value; onChanged(); return this; } /** * optional int64 renewDate = 2; */ public Builder clearRenewDate() { bitField0_ = (bitField0_ & ~0x00000002); renewDate_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.yarn.RMDelegationTokenIdentifierDataProto) } static { defaultInstance = new RMDelegationTokenIdentifierDataProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.yarn.RMDelegationTokenIdentifierDataProto) } private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_ApplicationStateDataProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_ApplicationStateDataProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_EpochProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_EpochProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_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_resourcemanager_recovery.p" + "roto\022\013hadoop.yarn\032\037yarn_server_common_pr" + "otos.proto\032\021yarn_protos.proto\032\031yarn_secu" + "rity_token.proto\032\017RpcHeader.proto\"\320\002\n\031Ap" + "plicationStateDataProto\022\023\n\013submit_time\030\001" + " \001(\003\022V\n\036application_submission_context\030\002" + " \001(\0132..hadoop.yarn.ApplicationSubmission" + "ContextProto\022\014\n\004user\030\003 \001(\t\022\022\n\nstart_time" + "\030\004 \001(\003\0227\n\021application_state\030\005 \001(\0162\034.hado" + "op.yarn.RMAppStateProto\022\030\n\013diagnostics\030\006", " \001(\t:\003N/A\022\023\n\013finish_time\030\007 \001(\003\022<\n\016caller" + "_context\030\010 \001(\0132$.hadoop.common.RPCCaller" + "ContextProto\"\266\004\n ApplicationAttemptState" + "DataProto\0229\n\tattemptId\030\001 \001(\0132&.hadoop.ya" + "rn.ApplicationAttemptIdProto\0225\n\020master_c" + "ontainer\030\002 \001(\0132\033.hadoop.yarn.ContainerPr" + "oto\022\032\n\022app_attempt_tokens\030\003 \001(\014\022>\n\021app_a" + "ttempt_state\030\004 \001(\0162#.hadoop.yarn.RMAppAt" + "temptStateProto\022\032\n\022final_tracking_url\030\005 " + "\001(\t\022\030\n\013diagnostics\030\006 \001(\t:\003N/A\022\022\n\nstart_t", "ime\030\007 \001(\003\022J\n\030final_application_status\030\010 " + "\001(\0162(.hadoop.yarn.FinalApplicationStatus" + "Proto\022\'\n\030am_container_exit_status\030\t \001(\005:" + "\005-1000\022\026\n\016memory_seconds\030\n \001(\003\022\025\n\rvcore_" + "seconds\030\013 \001(\003\022\023\n\013finish_time\030\014 \001(\003\022 \n\030pr" + "eempted_memory_seconds\030\r \001(\003\022\037\n\027preempte" + "d_vcore_seconds\030\016 \001(\003\"\033\n\nEpochProto\022\r\n\005e" + "poch\030\001 \001(\003\"\221\001\n AMRMTokenSecretManagerSta" + "teProto\0227\n\022current_master_key\030\001 \001(\0132\033.ha" + "doop.yarn.MasterKeyProto\0224\n\017next_master_", "key\030\002 \001(\0132\033.hadoop.yarn.MasterKeyProto\"\204" + "\001\n$RMDelegationTokenIdentifierDataProto\022" + "I\n\020token_identifier\030\001 \001(\0132/.hadoop.yarn." + "YARNDelegationTokenIdentifierProto\022\021\n\tre" + "newDate\030\002 \001(\003*\200\003\n\026RMAppAttemptStateProto" + "\022\021\n\rRMATTEMPT_NEW\020\001\022\027\n\023RMATTEMPT_SUBMITT" + "ED\020\002\022\027\n\023RMATTEMPT_SCHEDULED\020\003\022\027\n\023RMATTEM" + "PT_ALLOCATED\020\004\022\026\n\022RMATTEMPT_LAUNCHED\020\005\022\024" + "\n\020RMATTEMPT_FAILED\020\006\022\025\n\021RMATTEMPT_RUNNIN" + "G\020\007\022\027\n\023RMATTEMPT_FINISHING\020\010\022\026\n\022RMATTEMP", "T_FINISHED\020\t\022\024\n\020RMATTEMPT_KILLED\020\n\022\036\n\032RM" + "ATTEMPT_ALLOCATED_SAVING\020\013\022\'\n#RMATTEMPT_" + "LAUNCHED_UNMANAGED_SAVING\020\014\022\027\n\023RMATTEMPT" + "_RECOVERED\020\r\022\032\n\026RMATTEMPT_FINAL_SAVING\020\016" + "*\327\001\n\017RMAppStateProto\022\r\n\tRMAPP_NEW\020\001\022\024\n\020R" + "MAPP_NEW_SAVING\020\002\022\023\n\017RMAPP_SUBMITTED\020\003\022\022" + "\n\016RMAPP_ACCEPTED\020\004\022\021\n\rRMAPP_RUNNING\020\005\022\026\n" + "\022RMAPP_FINAL_SAVING\020\006\022\023\n\017RMAPP_FINISHING" + "\020\007\022\022\n\016RMAPP_FINISHED\020\010\022\020\n\014RMAPP_FAILED\020\t" + "\022\020\n\014RMAPP_KILLED\020\nBM\n\034org.apache.hadoop.", "yarn.protoB\'YarnServerResourceManagerRec" + "overyProtos\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_ApplicationStateDataProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hadoop_yarn_ApplicationStateDataProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_ApplicationStateDataProto_descriptor, new java.lang.String[] { "SubmitTime", "ApplicationSubmissionContext", "User", "StartTime", "ApplicationState", "Diagnostics", "FinishTime", "CallerContext", }); internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_ApplicationAttemptStateDataProto_descriptor, new java.lang.String[] { "AttemptId", "MasterContainer", "AppAttemptTokens", "AppAttemptState", "FinalTrackingUrl", "Diagnostics", "StartTime", "FinalApplicationStatus", "AmContainerExitStatus", "MemorySeconds", "VcoreSeconds", "FinishTime", "PreemptedMemorySeconds", "PreemptedVcoreSeconds", }); internal_static_hadoop_yarn_EpochProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_hadoop_yarn_EpochProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_EpochProto_descriptor, new java.lang.String[] { "Epoch", }); internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_AMRMTokenSecretManagerStateProto_descriptor, new java.lang.String[] { "CurrentMasterKey", "NextMasterKey", }); internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_yarn_RMDelegationTokenIdentifierDataProto_descriptor, new java.lang.String[] { "TokenIdentifier", "RenewDate", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.apache.hadoop.yarn.proto.YarnServerCommonProtos.getDescriptor(), org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor(), org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.getDescriptor(), org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy