Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.hadoop.yarn.proto.YarnProtos Maven / Gradle / Ivy
// Generated by the protocol buffer org.apache.hadoop.shaded.com.iler. DO NOT EDIT!
// source: yarn_protos.proto
package org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto;
public final class YarnProtos {
private YarnProtos() {}
public static void registerAllExtensions(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code hadoop.yarn.ResourceTypesProto}
*/
public enum ResourceTypesProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* COUNTABLE = 0;
*/
COUNTABLE(0),
;
/**
* COUNTABLE = 0;
*/
public static final int COUNTABLE_VALUE = 0;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResourceTypesProto valueOf(int value) {
return forNumber(value);
}
public static ResourceTypesProto forNumber(int value) {
switch (value) {
case 0: return COUNTABLE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ResourceTypesProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ResourceTypesProto findValueByNumber(int number) {
return ResourceTypesProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(0);
}
private static final ResourceTypesProto[] VALUES = values();
public static ResourceTypesProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ResourceTypesProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ResourceTypesProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ContainerStateProto}
*/
public enum ContainerStateProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* C_NEW = 1;
*/
C_NEW(1),
/**
* C_RUNNING = 2;
*/
C_RUNNING(2),
/**
* C_COMPLETE = 3;
*/
C_COMPLETE(3),
;
/**
* C_NEW = 1;
*/
public static final int C_NEW_VALUE = 1;
/**
* C_RUNNING = 2;
*/
public static final int C_RUNNING_VALUE = 2;
/**
* C_COMPLETE = 3;
*/
public static final int C_COMPLETE_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContainerStateProto valueOf(int value) {
return forNumber(value);
}
public static ContainerStateProto forNumber(int value) {
switch (value) {
case 1: return C_NEW;
case 2: return C_RUNNING;
case 3: return C_COMPLETE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ContainerStateProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ContainerStateProto findValueByNumber(int number) {
return ContainerStateProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(1);
}
private static final ContainerStateProto[] VALUES = values();
public static ContainerStateProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ContainerStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ContainerStateProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ContainerSubStateProto}
*/
public enum ContainerSubStateProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
*
**
* NEW, LOCALIZING, SCHEDULED,
* REINITIALIZING_AWAITING_KILL, RELAUNCHING,
*
*
* CSS_SCHEDULED = 1;
*/
CSS_SCHEDULED(1),
/**
*
**
* RUNNING, REINITIALIZING, PAUSING, KILLING
*
*
* CSS_RUNNING = 2;
*/
CSS_RUNNING(2),
/**
*
**
* PAUSED, RESUMING
*
*
* CSS_PAUSED = 3;
*/
CSS_PAUSED(3),
/**
*
**
* LOCALIZATION_FAILED, EXITED_WITH_SUCCESS,
* EXITED_WITH_FAILURE,
* CONTAINER_CLEANEDUP_AFTER_KILL,
* CONTAINER_RESOURCES_CLEANINGUP
*
*
* CSS_COMPLETING = 4;
*/
CSS_COMPLETING(4),
/**
*
**
* DONE
*
*
* CSS_DONE = 5;
*/
CSS_DONE(5),
;
/**
*
**
* NEW, LOCALIZING, SCHEDULED,
* REINITIALIZING_AWAITING_KILL, RELAUNCHING,
*
*
* CSS_SCHEDULED = 1;
*/
public static final int CSS_SCHEDULED_VALUE = 1;
/**
*
**
* RUNNING, REINITIALIZING, PAUSING, KILLING
*
*
* CSS_RUNNING = 2;
*/
public static final int CSS_RUNNING_VALUE = 2;
/**
*
**
* PAUSED, RESUMING
*
*
* CSS_PAUSED = 3;
*/
public static final int CSS_PAUSED_VALUE = 3;
/**
*
**
* LOCALIZATION_FAILED, EXITED_WITH_SUCCESS,
* EXITED_WITH_FAILURE,
* CONTAINER_CLEANEDUP_AFTER_KILL,
* CONTAINER_RESOURCES_CLEANINGUP
*
*
* CSS_COMPLETING = 4;
*/
public static final int CSS_COMPLETING_VALUE = 4;
/**
*
**
* DONE
*
*
* CSS_DONE = 5;
*/
public static final int CSS_DONE_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContainerSubStateProto valueOf(int value) {
return forNumber(value);
}
public static ContainerSubStateProto forNumber(int value) {
switch (value) {
case 1: return CSS_SCHEDULED;
case 2: return CSS_RUNNING;
case 3: return CSS_PAUSED;
case 4: return CSS_COMPLETING;
case 5: return CSS_DONE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ContainerSubStateProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ContainerSubStateProto findValueByNumber(int number) {
return ContainerSubStateProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(2);
}
private static final ContainerSubStateProto[] VALUES = values();
public static ContainerSubStateProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ContainerSubStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ContainerSubStateProto)
}
/**
* Protobuf enum {@code hadoop.yarn.YarnApplicationStateProto}
*/
public enum YarnApplicationStateProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* NEW = 1;
*/
NEW(1),
/**
* NEW_SAVING = 2;
*/
NEW_SAVING(2),
/**
* SUBMITTED = 3;
*/
SUBMITTED(3),
/**
* ACCEPTED = 4;
*/
ACCEPTED(4),
/**
* RUNNING = 5;
*/
RUNNING(5),
/**
* FINISHED = 6;
*/
FINISHED(6),
/**
* FAILED = 7;
*/
FAILED(7),
/**
* KILLED = 8;
*/
KILLED(8),
;
/**
* NEW = 1;
*/
public static final int NEW_VALUE = 1;
/**
* NEW_SAVING = 2;
*/
public static final int NEW_SAVING_VALUE = 2;
/**
* SUBMITTED = 3;
*/
public static final int SUBMITTED_VALUE = 3;
/**
* ACCEPTED = 4;
*/
public static final int ACCEPTED_VALUE = 4;
/**
* RUNNING = 5;
*/
public static final int RUNNING_VALUE = 5;
/**
* FINISHED = 6;
*/
public static final int FINISHED_VALUE = 6;
/**
* FAILED = 7;
*/
public static final int FAILED_VALUE = 7;
/**
* KILLED = 8;
*/
public static final int KILLED_VALUE = 8;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static YarnApplicationStateProto valueOf(int value) {
return forNumber(value);
}
public static YarnApplicationStateProto forNumber(int value) {
switch (value) {
case 1: return NEW;
case 2: return NEW_SAVING;
case 3: return SUBMITTED;
case 4: return ACCEPTED;
case 5: return RUNNING;
case 6: return FINISHED;
case 7: return FAILED;
case 8: return KILLED;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
YarnApplicationStateProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public YarnApplicationStateProto findValueByNumber(int number) {
return YarnApplicationStateProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(3);
}
private static final YarnApplicationStateProto[] VALUES = values();
public static YarnApplicationStateProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private YarnApplicationStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.YarnApplicationStateProto)
}
/**
* Protobuf enum {@code hadoop.yarn.YarnApplicationAttemptStateProto}
*/
public enum YarnApplicationAttemptStateProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* APP_ATTEMPT_NEW = 1;
*/
APP_ATTEMPT_NEW(1),
/**
* APP_ATTEMPT_SUBMITTED = 2;
*/
APP_ATTEMPT_SUBMITTED(2),
/**
* APP_ATTEMPT_SCHEDULED = 3;
*/
APP_ATTEMPT_SCHEDULED(3),
/**
* APP_ATTEMPT_ALLOCATED_SAVING = 4;
*/
APP_ATTEMPT_ALLOCATED_SAVING(4),
/**
* APP_ATTEMPT_ALLOCATED = 5;
*/
APP_ATTEMPT_ALLOCATED(5),
/**
* APP_ATTEMPT_LAUNCHED = 6;
*/
APP_ATTEMPT_LAUNCHED(6),
/**
* APP_ATTEMPT_FAILED = 7;
*/
APP_ATTEMPT_FAILED(7),
/**
* APP_ATTEMPT_RUNNING = 8;
*/
APP_ATTEMPT_RUNNING(8),
/**
* APP_ATTEMPT_FINISHING = 9;
*/
APP_ATTEMPT_FINISHING(9),
/**
* APP_ATTEMPT_FINISHED = 10;
*/
APP_ATTEMPT_FINISHED(10),
/**
* APP_ATTEMPT_KILLED = 11;
*/
APP_ATTEMPT_KILLED(11),
;
/**
* APP_ATTEMPT_NEW = 1;
*/
public static final int APP_ATTEMPT_NEW_VALUE = 1;
/**
* APP_ATTEMPT_SUBMITTED = 2;
*/
public static final int APP_ATTEMPT_SUBMITTED_VALUE = 2;
/**
* APP_ATTEMPT_SCHEDULED = 3;
*/
public static final int APP_ATTEMPT_SCHEDULED_VALUE = 3;
/**
* APP_ATTEMPT_ALLOCATED_SAVING = 4;
*/
public static final int APP_ATTEMPT_ALLOCATED_SAVING_VALUE = 4;
/**
* APP_ATTEMPT_ALLOCATED = 5;
*/
public static final int APP_ATTEMPT_ALLOCATED_VALUE = 5;
/**
* APP_ATTEMPT_LAUNCHED = 6;
*/
public static final int APP_ATTEMPT_LAUNCHED_VALUE = 6;
/**
* APP_ATTEMPT_FAILED = 7;
*/
public static final int APP_ATTEMPT_FAILED_VALUE = 7;
/**
* APP_ATTEMPT_RUNNING = 8;
*/
public static final int APP_ATTEMPT_RUNNING_VALUE = 8;
/**
* APP_ATTEMPT_FINISHING = 9;
*/
public static final int APP_ATTEMPT_FINISHING_VALUE = 9;
/**
* APP_ATTEMPT_FINISHED = 10;
*/
public static final int APP_ATTEMPT_FINISHED_VALUE = 10;
/**
* APP_ATTEMPT_KILLED = 11;
*/
public static final int APP_ATTEMPT_KILLED_VALUE = 11;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static YarnApplicationAttemptStateProto valueOf(int value) {
return forNumber(value);
}
public static YarnApplicationAttemptStateProto forNumber(int value) {
switch (value) {
case 1: return APP_ATTEMPT_NEW;
case 2: return APP_ATTEMPT_SUBMITTED;
case 3: return APP_ATTEMPT_SCHEDULED;
case 4: return APP_ATTEMPT_ALLOCATED_SAVING;
case 5: return APP_ATTEMPT_ALLOCATED;
case 6: return APP_ATTEMPT_LAUNCHED;
case 7: return APP_ATTEMPT_FAILED;
case 8: return APP_ATTEMPT_RUNNING;
case 9: return APP_ATTEMPT_FINISHING;
case 10: return APP_ATTEMPT_FINISHED;
case 11: return APP_ATTEMPT_KILLED;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
YarnApplicationAttemptStateProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public YarnApplicationAttemptStateProto findValueByNumber(int number) {
return YarnApplicationAttemptStateProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(4);
}
private static final YarnApplicationAttemptStateProto[] VALUES = values();
public static YarnApplicationAttemptStateProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private YarnApplicationAttemptStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.YarnApplicationAttemptStateProto)
}
/**
* Protobuf enum {@code hadoop.yarn.FinalApplicationStatusProto}
*/
public enum FinalApplicationStatusProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* APP_UNDEFINED = 0;
*/
APP_UNDEFINED(0),
/**
* APP_SUCCEEDED = 1;
*/
APP_SUCCEEDED(1),
/**
* APP_FAILED = 2;
*/
APP_FAILED(2),
/**
* APP_KILLED = 3;
*/
APP_KILLED(3),
/**
* APP_ENDED = 4;
*/
APP_ENDED(4),
;
/**
* APP_UNDEFINED = 0;
*/
public static final int APP_UNDEFINED_VALUE = 0;
/**
* APP_SUCCEEDED = 1;
*/
public static final int APP_SUCCEEDED_VALUE = 1;
/**
* APP_FAILED = 2;
*/
public static final int APP_FAILED_VALUE = 2;
/**
* APP_KILLED = 3;
*/
public static final int APP_KILLED_VALUE = 3;
/**
* APP_ENDED = 4;
*/
public static final int APP_ENDED_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FinalApplicationStatusProto valueOf(int value) {
return forNumber(value);
}
public static FinalApplicationStatusProto forNumber(int value) {
switch (value) {
case 0: return APP_UNDEFINED;
case 1: return APP_SUCCEEDED;
case 2: return APP_FAILED;
case 3: return APP_KILLED;
case 4: return APP_ENDED;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
FinalApplicationStatusProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public FinalApplicationStatusProto findValueByNumber(int number) {
return FinalApplicationStatusProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(5);
}
private static final FinalApplicationStatusProto[] VALUES = values();
public static FinalApplicationStatusProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private FinalApplicationStatusProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.FinalApplicationStatusProto)
}
/**
* Protobuf enum {@code hadoop.yarn.LocalResourceVisibilityProto}
*/
public enum LocalResourceVisibilityProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* PUBLIC = 1;
*/
PUBLIC(1),
/**
* PRIVATE = 2;
*/
PRIVATE(2),
/**
* APPLICATION = 3;
*/
APPLICATION(3),
;
/**
* PUBLIC = 1;
*/
public static final int PUBLIC_VALUE = 1;
/**
* PRIVATE = 2;
*/
public static final int PRIVATE_VALUE = 2;
/**
* APPLICATION = 3;
*/
public static final int APPLICATION_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LocalResourceVisibilityProto valueOf(int value) {
return forNumber(value);
}
public static LocalResourceVisibilityProto forNumber(int value) {
switch (value) {
case 1: return PUBLIC;
case 2: return PRIVATE;
case 3: return APPLICATION;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
LocalResourceVisibilityProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public LocalResourceVisibilityProto findValueByNumber(int number) {
return LocalResourceVisibilityProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(6);
}
private static final LocalResourceVisibilityProto[] VALUES = values();
public static LocalResourceVisibilityProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private LocalResourceVisibilityProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.LocalResourceVisibilityProto)
}
/**
* Protobuf enum {@code hadoop.yarn.LocalResourceTypeProto}
*/
public enum LocalResourceTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* ARCHIVE = 1;
*/
ARCHIVE(1),
/**
* FILE = 2;
*/
FILE(2),
/**
* PATTERN = 3;
*/
PATTERN(3),
;
/**
* ARCHIVE = 1;
*/
public static final int ARCHIVE_VALUE = 1;
/**
* FILE = 2;
*/
public static final int FILE_VALUE = 2;
/**
* PATTERN = 3;
*/
public static final int PATTERN_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LocalResourceTypeProto valueOf(int value) {
return forNumber(value);
}
public static LocalResourceTypeProto forNumber(int value) {
switch (value) {
case 1: return ARCHIVE;
case 2: return FILE;
case 3: return PATTERN;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
LocalResourceTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public LocalResourceTypeProto findValueByNumber(int number) {
return LocalResourceTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(7);
}
private static final LocalResourceTypeProto[] VALUES = values();
public static LocalResourceTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private LocalResourceTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.LocalResourceTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.LogAggregationStatusProto}
*/
public enum LogAggregationStatusProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* LOG_DISABLED = 1;
*/
LOG_DISABLED(1),
/**
* LOG_NOT_START = 2;
*/
LOG_NOT_START(2),
/**
* LOG_RUNNING = 3;
*/
LOG_RUNNING(3),
/**
* LOG_SUCCEEDED = 4;
*/
LOG_SUCCEEDED(4),
/**
* LOG_FAILED = 5;
*/
LOG_FAILED(5),
/**
* LOG_TIME_OUT = 6;
*/
LOG_TIME_OUT(6),
/**
* LOG_RUNNING_WITH_FAILURE = 7;
*/
LOG_RUNNING_WITH_FAILURE(7),
;
/**
* LOG_DISABLED = 1;
*/
public static final int LOG_DISABLED_VALUE = 1;
/**
* LOG_NOT_START = 2;
*/
public static final int LOG_NOT_START_VALUE = 2;
/**
* LOG_RUNNING = 3;
*/
public static final int LOG_RUNNING_VALUE = 3;
/**
* LOG_SUCCEEDED = 4;
*/
public static final int LOG_SUCCEEDED_VALUE = 4;
/**
* LOG_FAILED = 5;
*/
public static final int LOG_FAILED_VALUE = 5;
/**
* LOG_TIME_OUT = 6;
*/
public static final int LOG_TIME_OUT_VALUE = 6;
/**
* LOG_RUNNING_WITH_FAILURE = 7;
*/
public static final int LOG_RUNNING_WITH_FAILURE_VALUE = 7;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LogAggregationStatusProto valueOf(int value) {
return forNumber(value);
}
public static LogAggregationStatusProto forNumber(int value) {
switch (value) {
case 1: return LOG_DISABLED;
case 2: return LOG_NOT_START;
case 3: return LOG_RUNNING;
case 4: return LOG_SUCCEEDED;
case 5: return LOG_FAILED;
case 6: return LOG_TIME_OUT;
case 7: return LOG_RUNNING_WITH_FAILURE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
LogAggregationStatusProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public LogAggregationStatusProto findValueByNumber(int number) {
return LogAggregationStatusProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(8);
}
private static final LogAggregationStatusProto[] VALUES = values();
public static LogAggregationStatusProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private LogAggregationStatusProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.LogAggregationStatusProto)
}
/**
* Protobuf enum {@code hadoop.yarn.NodeStateProto}
*/
public enum NodeStateProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* NS_NEW = 1;
*/
NS_NEW(1),
/**
* NS_RUNNING = 2;
*/
NS_RUNNING(2),
/**
* NS_UNHEALTHY = 3;
*/
NS_UNHEALTHY(3),
/**
* NS_DECOMMISSIONED = 4;
*/
NS_DECOMMISSIONED(4),
/**
* NS_LOST = 5;
*/
NS_LOST(5),
/**
* NS_REBOOTED = 6;
*/
NS_REBOOTED(6),
/**
* NS_DECOMMISSIONING = 7;
*/
NS_DECOMMISSIONING(7),
/**
* NS_SHUTDOWN = 8;
*/
NS_SHUTDOWN(8),
;
/**
* NS_NEW = 1;
*/
public static final int NS_NEW_VALUE = 1;
/**
* NS_RUNNING = 2;
*/
public static final int NS_RUNNING_VALUE = 2;
/**
* NS_UNHEALTHY = 3;
*/
public static final int NS_UNHEALTHY_VALUE = 3;
/**
* NS_DECOMMISSIONED = 4;
*/
public static final int NS_DECOMMISSIONED_VALUE = 4;
/**
* NS_LOST = 5;
*/
public static final int NS_LOST_VALUE = 5;
/**
* NS_REBOOTED = 6;
*/
public static final int NS_REBOOTED_VALUE = 6;
/**
* NS_DECOMMISSIONING = 7;
*/
public static final int NS_DECOMMISSIONING_VALUE = 7;
/**
* NS_SHUTDOWN = 8;
*/
public static final int NS_SHUTDOWN_VALUE = 8;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeStateProto valueOf(int value) {
return forNumber(value);
}
public static NodeStateProto forNumber(int value) {
switch (value) {
case 1: return NS_NEW;
case 2: return NS_RUNNING;
case 3: return NS_UNHEALTHY;
case 4: return NS_DECOMMISSIONED;
case 5: return NS_LOST;
case 6: return NS_REBOOTED;
case 7: return NS_DECOMMISSIONING;
case 8: return NS_SHUTDOWN;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
NodeStateProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public NodeStateProto findValueByNumber(int number) {
return NodeStateProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(9);
}
private static final NodeStateProto[] VALUES = values();
public static NodeStateProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private NodeStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.NodeStateProto)
}
/**
* Protobuf enum {@code hadoop.yarn.NodeUpdateTypeProto}
*/
public enum NodeUpdateTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* NODE_USABLE = 0;
*/
NODE_USABLE(0),
/**
* NODE_UNUSABLE = 1;
*/
NODE_UNUSABLE(1),
/**
* NODE_DECOMMISSIONING = 2;
*/
NODE_DECOMMISSIONING(2),
;
/**
* NODE_USABLE = 0;
*/
public static final int NODE_USABLE_VALUE = 0;
/**
* NODE_UNUSABLE = 1;
*/
public static final int NODE_UNUSABLE_VALUE = 1;
/**
* NODE_DECOMMISSIONING = 2;
*/
public static final int NODE_DECOMMISSIONING_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeUpdateTypeProto valueOf(int value) {
return forNumber(value);
}
public static NodeUpdateTypeProto forNumber(int value) {
switch (value) {
case 0: return NODE_USABLE;
case 1: return NODE_UNUSABLE;
case 2: return NODE_DECOMMISSIONING;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
NodeUpdateTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public NodeUpdateTypeProto findValueByNumber(int number) {
return NodeUpdateTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(10);
}
private static final NodeUpdateTypeProto[] VALUES = values();
public static NodeUpdateTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private NodeUpdateTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.NodeUpdateTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.NodeAttributeTypeProto}
*/
public enum NodeAttributeTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* STRING = 1;
*/
STRING(1),
;
/**
* STRING = 1;
*/
public static final int STRING_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeAttributeTypeProto valueOf(int value) {
return forNumber(value);
}
public static NodeAttributeTypeProto forNumber(int value) {
switch (value) {
case 1: return STRING;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
NodeAttributeTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public NodeAttributeTypeProto findValueByNumber(int number) {
return NodeAttributeTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(11);
}
private static final NodeAttributeTypeProto[] VALUES = values();
public static NodeAttributeTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private NodeAttributeTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.NodeAttributeTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ContainerTypeProto}
*/
public enum ContainerTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* APPLICATION_MASTER = 1;
*/
APPLICATION_MASTER(1),
/**
* TASK = 2;
*/
TASK(2),
;
/**
* APPLICATION_MASTER = 1;
*/
public static final int APPLICATION_MASTER_VALUE = 1;
/**
* TASK = 2;
*/
public static final int TASK_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContainerTypeProto valueOf(int value) {
return forNumber(value);
}
public static ContainerTypeProto forNumber(int value) {
switch (value) {
case 1: return APPLICATION_MASTER;
case 2: return TASK;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ContainerTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ContainerTypeProto findValueByNumber(int number) {
return ContainerTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(12);
}
private static final ContainerTypeProto[] VALUES = values();
public static ContainerTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ContainerTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ContainerTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ExecutionTypeProto}
*/
public enum ExecutionTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* GUARANTEED = 1;
*/
GUARANTEED(1),
/**
* OPPORTUNISTIC = 2;
*/
OPPORTUNISTIC(2),
;
/**
* GUARANTEED = 1;
*/
public static final int GUARANTEED_VALUE = 1;
/**
* OPPORTUNISTIC = 2;
*/
public static final int OPPORTUNISTIC_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ExecutionTypeProto valueOf(int value) {
return forNumber(value);
}
public static ExecutionTypeProto forNumber(int value) {
switch (value) {
case 1: return GUARANTEED;
case 2: return OPPORTUNISTIC;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ExecutionTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ExecutionTypeProto findValueByNumber(int number) {
return ExecutionTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(13);
}
private static final ExecutionTypeProto[] VALUES = values();
public static ExecutionTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ExecutionTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ExecutionTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.AMCommandProto}
*/
public enum AMCommandProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* AM_RESYNC = 1;
*/
AM_RESYNC(1),
/**
* AM_SHUTDOWN = 2;
*/
AM_SHUTDOWN(2),
;
/**
* AM_RESYNC = 1;
*/
public static final int AM_RESYNC_VALUE = 1;
/**
* AM_SHUTDOWN = 2;
*/
public static final int AM_SHUTDOWN_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AMCommandProto valueOf(int value) {
return forNumber(value);
}
public static AMCommandProto forNumber(int value) {
switch (value) {
case 1: return AM_RESYNC;
case 2: return AM_SHUTDOWN;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
AMCommandProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public AMCommandProto findValueByNumber(int number) {
return AMCommandProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(14);
}
private static final AMCommandProto[] VALUES = values();
public static AMCommandProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private AMCommandProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.AMCommandProto)
}
/**
* Protobuf enum {@code hadoop.yarn.RejectionReasonProto}
*/
public enum RejectionReasonProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* RRP_COULD_NOT_PLACE_ON_NODE = 1;
*/
RRP_COULD_NOT_PLACE_ON_NODE(1),
/**
* RRP_COULD_NOT_SCHEDULE_ON_NODE = 2;
*/
RRP_COULD_NOT_SCHEDULE_ON_NODE(2),
;
/**
* RRP_COULD_NOT_PLACE_ON_NODE = 1;
*/
public static final int RRP_COULD_NOT_PLACE_ON_NODE_VALUE = 1;
/**
* RRP_COULD_NOT_SCHEDULE_ON_NODE = 2;
*/
public static final int RRP_COULD_NOT_SCHEDULE_ON_NODE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RejectionReasonProto valueOf(int value) {
return forNumber(value);
}
public static RejectionReasonProto forNumber(int value) {
switch (value) {
case 1: return RRP_COULD_NOT_PLACE_ON_NODE;
case 2: return RRP_COULD_NOT_SCHEDULE_ON_NODE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
RejectionReasonProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public RejectionReasonProto findValueByNumber(int number) {
return RejectionReasonProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(15);
}
private static final RejectionReasonProto[] VALUES = values();
public static RejectionReasonProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private RejectionReasonProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.RejectionReasonProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ApplicationTimeoutTypeProto}
*/
public enum ApplicationTimeoutTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* APP_TIMEOUT_LIFETIME = 1;
*/
APP_TIMEOUT_LIFETIME(1),
;
/**
* APP_TIMEOUT_LIFETIME = 1;
*/
public static final int APP_TIMEOUT_LIFETIME_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ApplicationTimeoutTypeProto valueOf(int value) {
return forNumber(value);
}
public static ApplicationTimeoutTypeProto forNumber(int value) {
switch (value) {
case 1: return APP_TIMEOUT_LIFETIME;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ApplicationTimeoutTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ApplicationTimeoutTypeProto findValueByNumber(int number) {
return ApplicationTimeoutTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(16);
}
private static final ApplicationTimeoutTypeProto[] VALUES = values();
public static ApplicationTimeoutTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ApplicationTimeoutTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ApplicationTimeoutTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ApplicationAccessTypeProto}
*/
public enum ApplicationAccessTypeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* APPACCESS_VIEW_APP = 1;
*/
APPACCESS_VIEW_APP(1),
/**
* APPACCESS_MODIFY_APP = 2;
*/
APPACCESS_MODIFY_APP(2),
;
/**
* APPACCESS_VIEW_APP = 1;
*/
public static final int APPACCESS_VIEW_APP_VALUE = 1;
/**
* APPACCESS_MODIFY_APP = 2;
*/
public static final int APPACCESS_MODIFY_APP_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ApplicationAccessTypeProto valueOf(int value) {
return forNumber(value);
}
public static ApplicationAccessTypeProto forNumber(int value) {
switch (value) {
case 1: return APPACCESS_VIEW_APP;
case 2: return APPACCESS_MODIFY_APP;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ApplicationAccessTypeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ApplicationAccessTypeProto findValueByNumber(int number) {
return ApplicationAccessTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(17);
}
private static final ApplicationAccessTypeProto[] VALUES = values();
public static ApplicationAccessTypeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ApplicationAccessTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ApplicationAccessTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.QueueStateProto}
*/
public enum QueueStateProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* Q_STOPPED = 1;
*/
Q_STOPPED(1),
/**
* Q_RUNNING = 2;
*/
Q_RUNNING(2),
/**
* Q_DRAINING = 3;
*/
Q_DRAINING(3),
;
/**
* Q_STOPPED = 1;
*/
public static final int Q_STOPPED_VALUE = 1;
/**
* Q_RUNNING = 2;
*/
public static final int Q_RUNNING_VALUE = 2;
/**
* Q_DRAINING = 3;
*/
public static final int Q_DRAINING_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QueueStateProto valueOf(int value) {
return forNumber(value);
}
public static QueueStateProto forNumber(int value) {
switch (value) {
case 1: return Q_STOPPED;
case 2: return Q_RUNNING;
case 3: return Q_DRAINING;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
QueueStateProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public QueueStateProto findValueByNumber(int number) {
return QueueStateProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(18);
}
private static final QueueStateProto[] VALUES = values();
public static QueueStateProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private QueueStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.QueueStateProto)
}
/**
* Protobuf enum {@code hadoop.yarn.QueueACLProto}
*/
public enum QueueACLProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* QACL_SUBMIT_APPLICATIONS = 1;
*/
QACL_SUBMIT_APPLICATIONS(1),
/**
* QACL_ADMINISTER_QUEUE = 2;
*/
QACL_ADMINISTER_QUEUE(2),
;
/**
* QACL_SUBMIT_APPLICATIONS = 1;
*/
public static final int QACL_SUBMIT_APPLICATIONS_VALUE = 1;
/**
* QACL_ADMINISTER_QUEUE = 2;
*/
public static final int QACL_ADMINISTER_QUEUE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QueueACLProto valueOf(int value) {
return forNumber(value);
}
public static QueueACLProto forNumber(int value) {
switch (value) {
case 1: return QACL_SUBMIT_APPLICATIONS;
case 2: return QACL_ADMINISTER_QUEUE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
QueueACLProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public QueueACLProto findValueByNumber(int number) {
return QueueACLProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(19);
}
private static final QueueACLProto[] VALUES = values();
public static QueueACLProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private QueueACLProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.QueueACLProto)
}
/**
* Protobuf enum {@code hadoop.yarn.SignalContainerCommandProto}
*/
public enum SignalContainerCommandProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* OUTPUT_THREAD_DUMP = 1;
*/
OUTPUT_THREAD_DUMP(1),
/**
* GRACEFUL_SHUTDOWN = 2;
*/
GRACEFUL_SHUTDOWN(2),
/**
* FORCEFUL_SHUTDOWN = 3;
*/
FORCEFUL_SHUTDOWN(3),
;
/**
* OUTPUT_THREAD_DUMP = 1;
*/
public static final int OUTPUT_THREAD_DUMP_VALUE = 1;
/**
* GRACEFUL_SHUTDOWN = 2;
*/
public static final int GRACEFUL_SHUTDOWN_VALUE = 2;
/**
* FORCEFUL_SHUTDOWN = 3;
*/
public static final int FORCEFUL_SHUTDOWN_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SignalContainerCommandProto valueOf(int value) {
return forNumber(value);
}
public static SignalContainerCommandProto forNumber(int value) {
switch (value) {
case 1: return OUTPUT_THREAD_DUMP;
case 2: return GRACEFUL_SHUTDOWN;
case 3: return FORCEFUL_SHUTDOWN;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
SignalContainerCommandProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public SignalContainerCommandProto findValueByNumber(int number) {
return SignalContainerCommandProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(20);
}
private static final SignalContainerCommandProto[] VALUES = values();
public static SignalContainerCommandProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private SignalContainerCommandProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.SignalContainerCommandProto)
}
/**
* Protobuf enum {@code hadoop.yarn.NodeAttributeOpCodeProto}
*/
public enum NodeAttributeOpCodeProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* NO_OP = 1;
*/
NO_OP(1),
/**
* EQ = 2;
*/
EQ(2),
/**
* NE = 3;
*/
NE(3),
;
/**
* NO_OP = 1;
*/
public static final int NO_OP_VALUE = 1;
/**
* EQ = 2;
*/
public static final int EQ_VALUE = 2;
/**
* NE = 3;
*/
public static final int NE_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeAttributeOpCodeProto valueOf(int value) {
return forNumber(value);
}
public static NodeAttributeOpCodeProto forNumber(int value) {
switch (value) {
case 1: return NO_OP;
case 2: return EQ;
case 3: return NE;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
NodeAttributeOpCodeProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public NodeAttributeOpCodeProto findValueByNumber(int number) {
return NodeAttributeOpCodeProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(21);
}
private static final NodeAttributeOpCodeProto[] VALUES = values();
public static NodeAttributeOpCodeProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private NodeAttributeOpCodeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.NodeAttributeOpCodeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ReservationRequestInterpreterProto}
*/
public enum ReservationRequestInterpreterProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* R_ANY = 0;
*/
R_ANY(0),
/**
* R_ALL = 1;
*/
R_ALL(1),
/**
* R_ORDER = 2;
*/
R_ORDER(2),
/**
* R_ORDER_NO_GAP = 3;
*/
R_ORDER_NO_GAP(3),
;
/**
* R_ANY = 0;
*/
public static final int R_ANY_VALUE = 0;
/**
* R_ALL = 1;
*/
public static final int R_ALL_VALUE = 1;
/**
* R_ORDER = 2;
*/
public static final int R_ORDER_VALUE = 2;
/**
* R_ORDER_NO_GAP = 3;
*/
public static final int R_ORDER_NO_GAP_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ReservationRequestInterpreterProto valueOf(int value) {
return forNumber(value);
}
public static ReservationRequestInterpreterProto forNumber(int value) {
switch (value) {
case 0: return R_ANY;
case 1: return R_ALL;
case 2: return R_ORDER;
case 3: return R_ORDER_NO_GAP;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ReservationRequestInterpreterProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ReservationRequestInterpreterProto findValueByNumber(int number) {
return ReservationRequestInterpreterProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(22);
}
private static final ReservationRequestInterpreterProto[] VALUES = values();
public static ReservationRequestInterpreterProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ReservationRequestInterpreterProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ReservationRequestInterpreterProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ContainerExitStatusProto}
*/
public enum ContainerExitStatusProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
* INVALID = -1000;
*/
INVALID(-1000),
/**
* ABORTED = -100;
*/
ABORTED(-100),
/**
* DISKS_FAILED = -101;
*/
DISKS_FAILED(-101),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* INVALID = -1000;
*/
public static final int INVALID_VALUE = -1000;
/**
* ABORTED = -100;
*/
public static final int ABORTED_VALUE = -100;
/**
* DISKS_FAILED = -101;
*/
public static final int DISKS_FAILED_VALUE = -101;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContainerExitStatusProto valueOf(int value) {
return forNumber(value);
}
public static ContainerExitStatusProto forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case -1000: return INVALID;
case -100: return ABORTED;
case -101: return DISKS_FAILED;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ContainerExitStatusProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ContainerExitStatusProto findValueByNumber(int number) {
return ContainerExitStatusProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(23);
}
private static final ContainerExitStatusProto[] VALUES = values();
public static ContainerExitStatusProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ContainerExitStatusProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ContainerExitStatusProto)
}
/**
* Protobuf enum {@code hadoop.yarn.ContainerRetryPolicyProto}
*/
public enum ContainerRetryPolicyProto
implements org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* NEVER_RETRY = 0;
*/
NEVER_RETRY(0),
/**
* RETRY_ON_ALL_ERRORS = 1;
*/
RETRY_ON_ALL_ERRORS(1),
/**
* RETRY_ON_SPECIFIC_ERROR_CODES = 2;
*/
RETRY_ON_SPECIFIC_ERROR_CODES(2),
;
/**
* NEVER_RETRY = 0;
*/
public static final int NEVER_RETRY_VALUE = 0;
/**
* RETRY_ON_ALL_ERRORS = 1;
*/
public static final int RETRY_ON_ALL_ERRORS_VALUE = 1;
/**
* RETRY_ON_SPECIFIC_ERROR_CODES = 2;
*/
public static final int RETRY_ON_SPECIFIC_ERROR_CODES_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContainerRetryPolicyProto valueOf(int value) {
return forNumber(value);
}
public static ContainerRetryPolicyProto forNumber(int value) {
switch (value) {
case 0: return NEVER_RETRY;
case 1: return RETRY_ON_ALL_ERRORS;
case 2: return RETRY_ON_SPECIFIC_ERROR_CODES;
default: return null;
}
}
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ContainerRetryPolicyProto> internalValueMap =
new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ContainerRetryPolicyProto findValueByNumber(int number) {
return ContainerRetryPolicyProto.forNumber(number);
}
};
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor().getEnumTypes().get(24);
}
private static final ContainerRetryPolicyProto[] VALUES = values();
public static ContainerRetryPolicyProto valueOf(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.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 value;
private ContainerRetryPolicyProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ContainerRetryPolicyProto)
}
public interface SerializedExceptionProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.SerializedExceptionProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional string message = 1;
*/
boolean hasMessage();
/**
* optional string message = 1;
*/
java.lang.String getMessage();
/**
* optional string message = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getMessageBytes();
/**
* optional string trace = 2;
*/
boolean hasTrace();
/**
* optional string trace = 2;
*/
java.lang.String getTrace();
/**
* optional string trace = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTraceBytes();
/**
* optional string class_name = 3;
*/
boolean hasClassName();
/**
* optional string class_name = 3;
*/
java.lang.String getClassName();
/**
* optional string class_name = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getClassNameBytes();
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
boolean hasCause();
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto getCause();
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder getCauseOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.SerializedExceptionProto}
*/
public static final class SerializedExceptionProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.SerializedExceptionProto)
SerializedExceptionProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SerializedExceptionProto.newBuilder() to construct.
private SerializedExceptionProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SerializedExceptionProto() {
message_ = "";
trace_ = "";
className_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SerializedExceptionProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
message_ = bs;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
trace_ = bs;
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
className_ = bs;
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = cause_.toBuilder();
}
cause_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cause_);
cause_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_SerializedExceptionProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_SerializedExceptionProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder.class);
}
private int bitField0_;
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* optional string message = 1;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int TRACE_FIELD_NUMBER = 2;
private volatile java.lang.Object trace_;
/**
* optional string trace = 2;
*/
public boolean hasTrace() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string trace = 2;
*/
public java.lang.String getTrace() {
java.lang.Object ref = trace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trace_ = s;
}
return s;
}
}
/**
* optional string trace = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTraceBytes() {
java.lang.Object ref = trace_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trace_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int CLASS_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object className_;
/**
* optional string class_name = 3;
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string class_name = 3;
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
className_ = s;
}
return s;
}
}
/**
* optional string class_name = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int CAUSE_FIELD_NUMBER = 4;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto cause_;
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public boolean hasCause() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto getCause() {
return cause_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance() : cause_;
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder getCauseOrBuilder() {
return cause_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance() : cause_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, trace_);
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 3, className_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getCause());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, message_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, trace_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(3, className_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(4, getCause());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto) obj;
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) return false;
}
if (hasTrace() != other.hasTrace()) return false;
if (hasTrace()) {
if (!getTrace()
.equals(other.getTrace())) return false;
}
if (hasClassName() != other.hasClassName()) return false;
if (hasClassName()) {
if (!getClassName()
.equals(other.getClassName())) return false;
}
if (hasCause() != other.hasCause()) return false;
if (hasCause()) {
if (!getCause()
.equals(other.getCause())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasTrace()) {
hash = (37 * hash) + TRACE_FIELD_NUMBER;
hash = (53 * hash) + getTrace().hashCode();
}
if (hasClassName()) {
hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
}
if (hasCause()) {
hash = (37 * hash) + CAUSE_FIELD_NUMBER;
hash = (53 * hash) + getCause().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.SerializedExceptionProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.SerializedExceptionProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_SerializedExceptionProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_SerializedExceptionProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCauseFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
trace_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
className_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (causeBuilder_ == null) {
cause_ = null;
} else {
causeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_SerializedExceptionProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.message_ = message_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.trace_ = trace_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.className_ = className_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (causeBuilder_ == null) {
result.cause_ = cause_;
} else {
result.cause_ = causeBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance()) return this;
if (other.hasMessage()) {
bitField0_ |= 0x00000001;
message_ = other.message_;
onChanged();
}
if (other.hasTrace()) {
bitField0_ |= 0x00000002;
trace_ = other.trace_;
onChanged();
}
if (other.hasClassName()) {
bitField0_ |= 0x00000004;
className_ = other.className_;
onChanged();
}
if (other.hasCause()) {
mergeCause(other.getCause());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object message_ = "";
/**
* optional string message = 1;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string message = 1;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 1;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000001);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 1;
*/
public Builder setMessageBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
message_ = value;
onChanged();
return this;
}
private java.lang.Object trace_ = "";
/**
* optional string trace = 2;
*/
public boolean hasTrace() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string trace = 2;
*/
public java.lang.String getTrace() {
java.lang.Object ref = trace_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trace_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string trace = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTraceBytes() {
java.lang.Object ref = trace_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trace_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string trace = 2;
*/
public Builder setTrace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
trace_ = value;
onChanged();
return this;
}
/**
* optional string trace = 2;
*/
public Builder clearTrace() {
bitField0_ = (bitField0_ & ~0x00000002);
trace_ = getDefaultInstance().getTrace();
onChanged();
return this;
}
/**
* optional string trace = 2;
*/
public Builder setTraceBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
trace_ = value;
onChanged();
return this;
}
private java.lang.Object className_ = "";
/**
* optional string class_name = 3;
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string class_name = 3;
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
className_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string class_name = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string class_name = 3;
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
className_ = value;
onChanged();
return this;
}
/**
* optional string class_name = 3;
*/
public Builder clearClassName() {
bitField0_ = (bitField0_ & ~0x00000004);
className_ = getDefaultInstance().getClassName();
onChanged();
return this;
}
/**
* optional string class_name = 3;
*/
public Builder setClassNameBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
className_ = value;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto cause_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder> causeBuilder_;
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public boolean hasCause() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto getCause() {
if (causeBuilder_ == null) {
return cause_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance() : cause_;
} else {
return causeBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public Builder setCause(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto value) {
if (causeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cause_ = value;
onChanged();
} else {
causeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public Builder setCause(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder builderForValue) {
if (causeBuilder_ == null) {
cause_ = builderForValue.build();
onChanged();
} else {
causeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public Builder mergeCause(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto value) {
if (causeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
cause_ != null &&
cause_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance()) {
cause_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.newBuilder(cause_).mergeFrom(value).buildPartial();
} else {
cause_ = value;
}
onChanged();
} else {
causeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public Builder clearCause() {
if (causeBuilder_ == null) {
cause_ = null;
onChanged();
} else {
causeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder getCauseBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCauseFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder getCauseOrBuilder() {
if (causeBuilder_ != null) {
return causeBuilder_.getMessageOrBuilder();
} else {
return cause_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance() : cause_;
}
}
/**
* optional .hadoop.yarn.SerializedExceptionProto cause = 4;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder>
getCauseFieldBuilder() {
if (causeBuilder_ == null) {
causeBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProtoOrBuilder>(
getCause(),
getParentForChildren(),
isClean());
cause_ = null;
}
return causeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.SerializedExceptionProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.SerializedExceptionProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public SerializedExceptionProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new SerializedExceptionProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationIdProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ApplicationIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional int32 id = 1;
*/
boolean hasId();
/**
* optional int32 id = 1;
*/
int getId();
/**
* optional int64 cluster_timestamp = 2;
*/
boolean hasClusterTimestamp();
/**
* optional int64 cluster_timestamp = 2;
*/
long getClusterTimestamp();
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationIdProto}
*/
public static final class ApplicationIdProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ApplicationIdProto)
ApplicationIdProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationIdProto.newBuilder() to construct.
private ApplicationIdProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationIdProto() {
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationIdProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
id_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
clusterTimestamp_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional int32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
public static final int CLUSTER_TIMESTAMP_FIELD_NUMBER = 2;
private long clusterTimestamp_;
/**
* optional int64 cluster_timestamp = 2;
*/
public boolean hasClusterTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 cluster_timestamp = 2;
*/
public long getClusterTimestamp() {
return clusterTimestamp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, clusterTimestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(2, clusterTimestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasClusterTimestamp() != other.hasClusterTimestamp()) return false;
if (hasClusterTimestamp()) {
if (getClusterTimestamp()
!= other.getClusterTimestamp()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
}
if (hasClusterTimestamp()) {
hash = (37 * hash) + CLUSTER_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getClusterTimestamp());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationIdProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ApplicationIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
clusterTimestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationIdProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.clusterTimestamp_ = clusterTimestamp_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasClusterTimestamp()) {
setClusterTimestamp(other.getClusterTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int id_ ;
/**
* optional int32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional int32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional int32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
private long clusterTimestamp_ ;
/**
* optional int64 cluster_timestamp = 2;
*/
public boolean hasClusterTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 cluster_timestamp = 2;
*/
public long getClusterTimestamp() {
return clusterTimestamp_;
}
/**
* optional int64 cluster_timestamp = 2;
*/
public Builder setClusterTimestamp(long value) {
bitField0_ |= 0x00000002;
clusterTimestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 cluster_timestamp = 2;
*/
public Builder clearClusterTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
clusterTimestamp_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationIdProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationIdProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationIdProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ApplicationIdProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationAttemptIdProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ApplicationAttemptIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
boolean hasApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
/**
* optional int32 attemptId = 2;
*/
boolean hasAttemptId();
/**
* optional int32 attemptId = 2;
*/
int getAttemptId();
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationAttemptIdProto}
*/
public static final class ApplicationAttemptIdProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ApplicationAttemptIdProto)
ApplicationAttemptIdProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationAttemptIdProto.newBuilder() to construct.
private ApplicationAttemptIdProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationAttemptIdProto() {
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationAttemptIdProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
attemptId_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
public static final int ATTEMPTID_FIELD_NUMBER = 2;
private int attemptId_;
/**
* optional int32 attemptId = 2;
*/
public boolean hasAttemptId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 attemptId = 2;
*/
public int getAttemptId() {
return attemptId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, attemptId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(2, attemptId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto) obj;
if (hasApplicationId() != other.hasApplicationId()) return false;
if (hasApplicationId()) {
if (!getApplicationId()
.equals(other.getApplicationId())) return false;
}
if (hasAttemptId() != other.hasAttemptId()) return false;
if (hasAttemptId()) {
if (getAttemptId()
!= other.getAttemptId()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
if (hasAttemptId()) {
hash = (37 * hash) + ATTEMPTID_FIELD_NUMBER;
hash = (53 * hash) + getAttemptId();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationAttemptIdProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ApplicationAttemptIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = null;
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
attemptId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptIdProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.attemptId_ = attemptId_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
if (other.hasAttemptId()) {
setAttemptId(other.getAttemptId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationId_ != null &&
applicationId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = null;
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
getApplicationId(),
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
private int attemptId_ ;
/**
* optional int32 attemptId = 2;
*/
public boolean hasAttemptId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 attemptId = 2;
*/
public int getAttemptId() {
return attemptId_;
}
/**
* optional int32 attemptId = 2;
*/
public Builder setAttemptId(int value) {
bitField0_ |= 0x00000002;
attemptId_ = value;
onChanged();
return this;
}
/**
* optional int32 attemptId = 2;
*/
public Builder clearAttemptId() {
bitField0_ = (bitField0_ & ~0x00000002);
attemptId_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationAttemptIdProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationAttemptIdProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationAttemptIdProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ApplicationAttemptIdProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerIdProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ContainerIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
boolean hasAppId();
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId();
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
boolean hasAppAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder();
/**
* optional int64 id = 3;
*/
boolean hasId();
/**
* optional int64 id = 3;
*/
long getId();
}
/**
* Protobuf type {@code hadoop.yarn.ContainerIdProto}
*/
public static final class ContainerIdProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ContainerIdProto)
ContainerIdProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerIdProto.newBuilder() to construct.
private ContainerIdProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerIdProto() {
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerIdProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = appId_.toBuilder();
}
appId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appId_);
appId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = appAttemptId_.toBuilder();
}
appAttemptId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appAttemptId_);
appAttemptId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
id_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder.class);
}
private int bitField0_;
public static final int APP_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_;
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() {
return appId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : appId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() {
return appId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : appId_;
}
public static final int APP_ATTEMPT_ID_FIELD_NUMBER = 2;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public boolean hasAppAttemptId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
return appAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : appAttemptId_;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
return appAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : appAttemptId_;
}
public static final int ID_FIELD_NUMBER = 3;
private long id_;
/**
* optional int64 id = 3;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 id = 3;
*/
public long getId() {
return id_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAppId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getAppAttemptId());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getAppId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(2, getAppAttemptId());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(3, id_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto) obj;
if (hasAppId() != other.hasAppId()) return false;
if (hasAppId()) {
if (!getAppId()
.equals(other.getAppId())) return false;
}
if (hasAppAttemptId() != other.hasAppAttemptId()) return false;
if (hasAppAttemptId()) {
if (!getAppAttemptId()
.equals(other.getAppAttemptId())) return false;
}
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAppId()) {
hash = (37 * hash) + APP_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
if (hasAppAttemptId()) {
hash = (37 * hash) + APP_ATTEMPT_ID_FIELD_NUMBER;
hash = (53 * hash) + getAppAttemptId().hashCode();
}
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getId());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ContainerIdProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ContainerIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAppIdFieldBuilder();
getAppAttemptIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (appIdBuilder_ == null) {
appId_ = null;
} else {
appIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (appAttemptIdBuilder_ == null) {
appAttemptId_ = null;
} else {
appAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerIdProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (appIdBuilder_ == null) {
result.appId_ = appId_;
} else {
result.appId_ = appIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (appAttemptIdBuilder_ == null) {
result.appAttemptId_ = appAttemptId_;
} else {
result.appAttemptId_ = appAttemptIdBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) return this;
if (other.hasAppId()) {
mergeAppId(other.getAppId());
}
if (other.hasAppAttemptId()) {
mergeAppAttemptId(other.getAppAttemptId());
}
if (other.hasId()) {
setId(other.getId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto appId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> appIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getAppId() {
if (appIdBuilder_ == null) {
return appId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : appId_;
} else {
return appIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public Builder setAppId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (appIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appId_ = value;
onChanged();
} else {
appIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public Builder setAppId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (appIdBuilder_ == null) {
appId_ = builderForValue.build();
onChanged();
} else {
appIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public Builder mergeAppId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (appIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
appId_ != null &&
appId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
appId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(appId_).mergeFrom(value).buildPartial();
} else {
appId_ = value;
}
onChanged();
} else {
appIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public Builder clearAppId() {
if (appIdBuilder_ == null) {
appId_ = null;
onChanged();
} else {
appIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getAppIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAppIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getAppIdOrBuilder() {
if (appIdBuilder_ != null) {
return appIdBuilder_.getMessageOrBuilder();
} else {
return appId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : appId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto app_id = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getAppIdFieldBuilder() {
if (appIdBuilder_ == null) {
appIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
getAppId(),
getParentForChildren(),
isClean());
appId_ = null;
}
return appIdBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> appAttemptIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public boolean hasAppAttemptId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
if (appAttemptIdBuilder_ == null) {
return appAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : appAttemptId_;
} else {
return appAttemptIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public Builder setAppAttemptId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (appAttemptIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appAttemptId_ = value;
onChanged();
} else {
appAttemptIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public Builder setAppAttemptId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
if (appAttemptIdBuilder_ == null) {
appAttemptId_ = builderForValue.build();
onChanged();
} else {
appAttemptIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public Builder mergeAppAttemptId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (appAttemptIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
appAttemptId_ != null &&
appAttemptId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
appAttemptId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(appAttemptId_).mergeFrom(value).buildPartial();
} else {
appAttemptId_ = value;
}
onChanged();
} else {
appAttemptIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public Builder clearAppAttemptId() {
if (appAttemptIdBuilder_ == null) {
appAttemptId_ = null;
onChanged();
} else {
appAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getAppAttemptIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAppAttemptIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
if (appAttemptIdBuilder_ != null) {
return appAttemptIdBuilder_.getMessageOrBuilder();
} else {
return appAttemptId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : appAttemptId_;
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto app_attempt_id = 2;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>
getAppAttemptIdFieldBuilder() {
if (appAttemptIdBuilder_ == null) {
appAttemptIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
getAppAttemptId(),
getParentForChildren(),
isClean());
appAttemptId_ = null;
}
return appAttemptIdBuilder_;
}
private long id_ ;
/**
* optional int64 id = 3;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 id = 3;
*/
public long getId() {
return id_;
}
/**
* optional int64 id = 3;
*/
public Builder setId(long value) {
bitField0_ |= 0x00000004;
id_ = value;
onChanged();
return this;
}
/**
* optional int64 id = 3;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000004);
id_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ContainerIdProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerIdProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ContainerIdProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ContainerIdProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceInformationProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceInformationProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required string key = 1;
*/
boolean hasKey();
/**
* required string key = 1;
*/
java.lang.String getKey();
/**
* required string key = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes();
/**
* optional int64 value = 2;
*/
boolean hasValue();
/**
* optional int64 value = 2;
*/
long getValue();
/**
* optional string units = 3;
*/
boolean hasUnits();
/**
* optional string units = 3;
*/
java.lang.String getUnits();
/**
* optional string units = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUnitsBytes();
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
boolean hasType();
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto getType();
/**
* repeated string tags = 5;
*/
java.util.List
getTagsList();
/**
* repeated string tags = 5;
*/
int getTagsCount();
/**
* repeated string tags = 5;
*/
java.lang.String getTags(int index);
/**
* repeated string tags = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTagsBytes(int index);
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
java.util.List
getAttributesList();
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto getAttributes(int index);
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
int getAttributesCount();
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder>
getAttributesOrBuilderList();
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder getAttributesOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.ResourceInformationProto}
*/
public static final class ResourceInformationProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceInformationProto)
ResourceInformationProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceInformationProto.newBuilder() to construct.
private ResourceInformationProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceInformationProto() {
key_ = "";
units_ = "";
type_ = 0;
tags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
attributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceInformationProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
key_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
value_ = input.readInt64();
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
units_ = bs;
break;
}
case 32: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
type_ = rawValue;
}
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
tags_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
tags_.add(bs);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
attributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
attributes_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) != 0)) {
tags_ = tags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceInformationProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceInformationProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* required string key = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private long value_;
/**
* optional int64 value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 value = 2;
*/
public long getValue() {
return value_;
}
public static final int UNITS_FIELD_NUMBER = 3;
private volatile java.lang.Object units_;
/**
* optional string units = 3;
*/
public boolean hasUnits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string units = 3;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
units_ = s;
}
return s;
}
}
/**
* optional string units = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_;
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto getType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.valueOf(type_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.COUNTABLE : result;
}
public static final int TAGS_FIELD_NUMBER = 5;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList tags_;
/**
* repeated string tags = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
* repeated string tags = 5;
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated string tags = 5;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* repeated string tags = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int ATTRIBUTES_FIELD_NUMBER = 6;
private java.util.List attributes_;
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public java.util.List getAttributesList() {
return attributes_;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public int getAttributesCount() {
return attributes_.size();
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto getAttributes(int index) {
return attributes_.get(index);
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, value_);
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 3, units_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(4, type_);
}
for (int i = 0; i < tags_.size(); i++) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 5, tags_.getRaw(i));
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(6, attributes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(2, value_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(3, units_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(4, type_);
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += org.apache.hadoop.shaded.com.uteStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
for (int i = 0; i < attributes_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(6, attributes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (getValue()
!= other.getValue()) return false;
}
if (hasUnits() != other.hasUnits()) return false;
if (hasUnits()) {
if (!getUnits()
.equals(other.getUnits())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (!getAttributesList()
.equals(other.getAttributesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getValue());
}
if (hasUnits()) {
hash = (37 * hash) + UNITS_FIELD_NUMBER;
hash = (53 * hash) + getUnits().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceInformationProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceInformationProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceInformationProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceInformationProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAttributesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
units_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
tags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
attributesBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceInformationProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.units_ = units_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
if (((bitField0_ & 0x00000010) != 0)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.tags_ = tags_;
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasUnits()) {
bitField0_ |= 0x00000004;
units_ = other.units_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000020);
attributesBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string key = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* required string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder setKeyBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private long value_ ;
/**
* optional int64 value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 value = 2;
*/
public long getValue() {
return value_;
}
/**
* optional int64 value = 2;
*/
public Builder setValue(long value) {
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional int64 value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0L;
onChanged();
return this;
}
private java.lang.Object units_ = "";
/**
* optional string units = 3;
*/
public boolean hasUnits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string units = 3;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
units_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string units = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string units = 3;
*/
public Builder setUnits(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
units_ = value;
onChanged();
return this;
}
/**
* optional string units = 3;
*/
public Builder clearUnits() {
bitField0_ = (bitField0_ & ~0x00000004);
units_ = getDefaultInstance().getUnits();
onChanged();
return this;
}
/**
* optional string units = 3;
*/
public Builder setUnitsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
units_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto getType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.valueOf(type_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.COUNTABLE : result;
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
public Builder setType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 4;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList tags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
tags_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated string tags = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
* repeated string tags = 5;
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated string tags = 5;
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* repeated string tags = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
* repeated string tags = 5;
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
* repeated string tags = 5;
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
* repeated string tags = 5;
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
* repeated string tags = 5;
*/
public Builder clearTags() {
tags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* repeated string tags = 5;
*/
public Builder addTagsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000020;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder> attributesBuilder_;
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder setAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder setAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder addAttributes(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder addAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder addAttributes(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder addAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder addAllAttributes(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringStringMapProto attributes = 6;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProtoOrBuilder>(
attributes_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceInformationProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceInformationProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceInformationProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceInformationProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceTypeInfoProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceTypeInfoProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes();
/**
* optional string units = 2;
*/
boolean hasUnits();
/**
* optional string units = 2;
*/
java.lang.String getUnits();
/**
* optional string units = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUnitsBytes();
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
boolean hasType();
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto getType();
}
/**
* Protobuf type {@code hadoop.yarn.ResourceTypeInfoProto}
*/
public static final class ResourceTypeInfoProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceTypeInfoProto)
ResourceTypeInfoProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceTypeInfoProto.newBuilder() to construct.
private ResourceTypeInfoProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceTypeInfoProto() {
name_ = "";
units_ = "";
type_ = 0;
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceTypeInfoProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
units_ = bs;
break;
}
case 24: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
type_ = rawValue;
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceTypeInfoProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceTypeInfoProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int UNITS_FIELD_NUMBER = 2;
private volatile java.lang.Object units_;
/**
* optional string units = 2;
*/
public boolean hasUnits() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string units = 2;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
units_ = s;
}
return s;
}
}
/**
* optional string units = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto getType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.valueOf(type_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.COUNTABLE : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, units_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, units_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(3, type_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasUnits() != other.hasUnits()) return false;
if (hasUnits()) {
if (!getUnits()
.equals(other.getUnits())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasUnits()) {
hash = (37 * hash) + UNITS_FIELD_NUMBER;
hash = (53 * hash) + getUnits().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceTypeInfoProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceTypeInfoProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceTypeInfoProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceTypeInfoProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
units_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceTypeInfoProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.units_ = units_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasUnits()) {
bitField0_ |= 0x00000002;
units_ = other.units_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object units_ = "";
/**
* optional string units = 2;
*/
public boolean hasUnits() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string units = 2;
*/
public java.lang.String getUnits() {
java.lang.Object ref = units_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
units_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string units = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUnitsBytes() {
java.lang.Object ref = units_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
units_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string units = 2;
*/
public Builder setUnits(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
units_ = value;
onChanged();
return this;
}
/**
* optional string units = 2;
*/
public Builder clearUnits() {
bitField0_ = (bitField0_ & ~0x00000002);
units_ = getDefaultInstance().getUnits();
onChanged();
return this;
}
/**
* optional string units = 2;
*/
public Builder setUnitsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
units_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto getType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.valueOf(type_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto.COUNTABLE : result;
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
public Builder setType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypesProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ResourceTypesProto type = 3;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceTypeInfoProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceTypeInfoProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceTypeInfoProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceTypeInfoProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional int64 memory = 1;
*/
boolean hasMemory();
/**
* optional int64 memory = 1;
*/
long getMemory();
/**
* optional int32 virtual_cores = 2;
*/
boolean hasVirtualCores();
/**
* optional int32 virtual_cores = 2;
*/
int getVirtualCores();
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
java.util.List
getResourceValueMapList();
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto getResourceValueMap(int index);
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
int getResourceValueMapCount();
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder>
getResourceValueMapOrBuilderList();
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder getResourceValueMapOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.ResourceProto}
*/
public static final class ResourceProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceProto)
ResourceProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceProto.newBuilder() to construct.
private ResourceProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceProto() {
resourceValueMap_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
memory_ = input.readInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
virtualCores_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
resourceValueMap_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
resourceValueMap_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
resourceValueMap_ = java.util.Collections.unmodifiableList(resourceValueMap_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder.class);
}
private int bitField0_;
public static final int MEMORY_FIELD_NUMBER = 1;
private long memory_;
/**
* optional int64 memory = 1;
*/
public boolean hasMemory() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 memory = 1;
*/
public long getMemory() {
return memory_;
}
public static final int VIRTUAL_CORES_FIELD_NUMBER = 2;
private int virtualCores_;
/**
* optional int32 virtual_cores = 2;
*/
public boolean hasVirtualCores() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 virtual_cores = 2;
*/
public int getVirtualCores() {
return virtualCores_;
}
public static final int RESOURCE_VALUE_MAP_FIELD_NUMBER = 3;
private java.util.List resourceValueMap_;
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public java.util.List getResourceValueMapList() {
return resourceValueMap_;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder>
getResourceValueMapOrBuilderList() {
return resourceValueMap_;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public int getResourceValueMapCount() {
return resourceValueMap_.size();
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto getResourceValueMap(int index) {
return resourceValueMap_.get(index);
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder getResourceValueMapOrBuilder(
int index) {
return resourceValueMap_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getResourceValueMapCount(); i++) {
if (!getResourceValueMap(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, memory_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, virtualCores_);
}
for (int i = 0; i < resourceValueMap_.size(); i++) {
output.writeMessage(3, resourceValueMap_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(1, memory_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(2, virtualCores_);
}
for (int i = 0; i < resourceValueMap_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(3, resourceValueMap_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto) obj;
if (hasMemory() != other.hasMemory()) return false;
if (hasMemory()) {
if (getMemory()
!= other.getMemory()) return false;
}
if (hasVirtualCores() != other.hasVirtualCores()) return false;
if (hasVirtualCores()) {
if (getVirtualCores()
!= other.getVirtualCores()) return false;
}
if (!getResourceValueMapList()
.equals(other.getResourceValueMapList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMemory()) {
hash = (37 * hash) + MEMORY_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getMemory());
}
if (hasVirtualCores()) {
hash = (37 * hash) + VIRTUAL_CORES_FIELD_NUMBER;
hash = (53 * hash) + getVirtualCores();
}
if (getResourceValueMapCount() > 0) {
hash = (37 * hash) + RESOURCE_VALUE_MAP_FIELD_NUMBER;
hash = (53 * hash) + getResourceValueMapList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourceValueMapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
memory_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
virtualCores_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (resourceValueMapBuilder_ == null) {
resourceValueMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
resourceValueMapBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.memory_ = memory_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.virtualCores_ = virtualCores_;
to_bitField0_ |= 0x00000002;
}
if (resourceValueMapBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
resourceValueMap_ = java.util.Collections.unmodifiableList(resourceValueMap_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.resourceValueMap_ = resourceValueMap_;
} else {
result.resourceValueMap_ = resourceValueMapBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) return this;
if (other.hasMemory()) {
setMemory(other.getMemory());
}
if (other.hasVirtualCores()) {
setVirtualCores(other.getVirtualCores());
}
if (resourceValueMapBuilder_ == null) {
if (!other.resourceValueMap_.isEmpty()) {
if (resourceValueMap_.isEmpty()) {
resourceValueMap_ = other.resourceValueMap_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureResourceValueMapIsMutable();
resourceValueMap_.addAll(other.resourceValueMap_);
}
onChanged();
}
} else {
if (!other.resourceValueMap_.isEmpty()) {
if (resourceValueMapBuilder_.isEmpty()) {
resourceValueMapBuilder_.dispose();
resourceValueMapBuilder_ = null;
resourceValueMap_ = other.resourceValueMap_;
bitField0_ = (bitField0_ & ~0x00000004);
resourceValueMapBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceValueMapFieldBuilder() : null;
} else {
resourceValueMapBuilder_.addAllMessages(other.resourceValueMap_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getResourceValueMapCount(); i++) {
if (!getResourceValueMap(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long memory_ ;
/**
* optional int64 memory = 1;
*/
public boolean hasMemory() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 memory = 1;
*/
public long getMemory() {
return memory_;
}
/**
* optional int64 memory = 1;
*/
public Builder setMemory(long value) {
bitField0_ |= 0x00000001;
memory_ = value;
onChanged();
return this;
}
/**
* optional int64 memory = 1;
*/
public Builder clearMemory() {
bitField0_ = (bitField0_ & ~0x00000001);
memory_ = 0L;
onChanged();
return this;
}
private int virtualCores_ ;
/**
* optional int32 virtual_cores = 2;
*/
public boolean hasVirtualCores() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 virtual_cores = 2;
*/
public int getVirtualCores() {
return virtualCores_;
}
/**
* optional int32 virtual_cores = 2;
*/
public Builder setVirtualCores(int value) {
bitField0_ |= 0x00000002;
virtualCores_ = value;
onChanged();
return this;
}
/**
* optional int32 virtual_cores = 2;
*/
public Builder clearVirtualCores() {
bitField0_ = (bitField0_ & ~0x00000002);
virtualCores_ = 0;
onChanged();
return this;
}
private java.util.List resourceValueMap_ =
java.util.Collections.emptyList();
private void ensureResourceValueMapIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
resourceValueMap_ = new java.util.ArrayList(resourceValueMap_);
bitField0_ |= 0x00000004;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder> resourceValueMapBuilder_;
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public java.util.List getResourceValueMapList() {
if (resourceValueMapBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceValueMap_);
} else {
return resourceValueMapBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public int getResourceValueMapCount() {
if (resourceValueMapBuilder_ == null) {
return resourceValueMap_.size();
} else {
return resourceValueMapBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto getResourceValueMap(int index) {
if (resourceValueMapBuilder_ == null) {
return resourceValueMap_.get(index);
} else {
return resourceValueMapBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder setResourceValueMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto value) {
if (resourceValueMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceValueMapIsMutable();
resourceValueMap_.set(index, value);
onChanged();
} else {
resourceValueMapBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder setResourceValueMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder builderForValue) {
if (resourceValueMapBuilder_ == null) {
ensureResourceValueMapIsMutable();
resourceValueMap_.set(index, builderForValue.build());
onChanged();
} else {
resourceValueMapBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder addResourceValueMap(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto value) {
if (resourceValueMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceValueMapIsMutable();
resourceValueMap_.add(value);
onChanged();
} else {
resourceValueMapBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder addResourceValueMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto value) {
if (resourceValueMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceValueMapIsMutable();
resourceValueMap_.add(index, value);
onChanged();
} else {
resourceValueMapBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder addResourceValueMap(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder builderForValue) {
if (resourceValueMapBuilder_ == null) {
ensureResourceValueMapIsMutable();
resourceValueMap_.add(builderForValue.build());
onChanged();
} else {
resourceValueMapBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder addResourceValueMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder builderForValue) {
if (resourceValueMapBuilder_ == null) {
ensureResourceValueMapIsMutable();
resourceValueMap_.add(index, builderForValue.build());
onChanged();
} else {
resourceValueMapBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder addAllResourceValueMap(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto> values) {
if (resourceValueMapBuilder_ == null) {
ensureResourceValueMapIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceValueMap_);
onChanged();
} else {
resourceValueMapBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder clearResourceValueMap() {
if (resourceValueMapBuilder_ == null) {
resourceValueMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
resourceValueMapBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public Builder removeResourceValueMap(int index) {
if (resourceValueMapBuilder_ == null) {
ensureResourceValueMapIsMutable();
resourceValueMap_.remove(index);
onChanged();
} else {
resourceValueMapBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder getResourceValueMapBuilder(
int index) {
return getResourceValueMapFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder getResourceValueMapOrBuilder(
int index) {
if (resourceValueMapBuilder_ == null) {
return resourceValueMap_.get(index); } else {
return resourceValueMapBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder>
getResourceValueMapOrBuilderList() {
if (resourceValueMapBuilder_ != null) {
return resourceValueMapBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceValueMap_);
}
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder addResourceValueMapBuilder() {
return getResourceValueMapFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder addResourceValueMapBuilder(
int index) {
return getResourceValueMapFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceInformationProto resource_value_map = 3;
*/
public java.util.List
getResourceValueMapBuilderList() {
return getResourceValueMapFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder>
getResourceValueMapFieldBuilder() {
if (resourceValueMapBuilder_ == null) {
resourceValueMapBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceInformationProtoOrBuilder>(
resourceValueMap_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
resourceValueMap_ = null;
}
return resourceValueMapBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceUtilizationProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceUtilizationProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional int32 pmem = 1;
*/
boolean hasPmem();
/**
* optional int32 pmem = 1;
*/
int getPmem();
/**
* optional int32 vmem = 2;
*/
boolean hasVmem();
/**
* optional int32 vmem = 2;
*/
int getVmem();
/**
* optional float cpu = 3;
*/
boolean hasCpu();
/**
* optional float cpu = 3;
*/
float getCpu();
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
java.util.List
getCustomResourcesList();
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto getCustomResources(int index);
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
int getCustomResourcesCount();
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder>
getCustomResourcesOrBuilderList();
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder getCustomResourcesOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.ResourceUtilizationProto}
*/
public static final class ResourceUtilizationProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceUtilizationProto)
ResourceUtilizationProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceUtilizationProto.newBuilder() to construct.
private ResourceUtilizationProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceUtilizationProto() {
customResources_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceUtilizationProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
pmem_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
vmem_ = input.readInt32();
break;
}
case 29: {
bitField0_ |= 0x00000004;
cpu_ = input.readFloat();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
customResources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
customResources_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
customResources_ = java.util.Collections.unmodifiableList(customResources_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceUtilizationProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceUtilizationProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder.class);
}
private int bitField0_;
public static final int PMEM_FIELD_NUMBER = 1;
private int pmem_;
/**
* optional int32 pmem = 1;
*/
public boolean hasPmem() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 pmem = 1;
*/
public int getPmem() {
return pmem_;
}
public static final int VMEM_FIELD_NUMBER = 2;
private int vmem_;
/**
* optional int32 vmem = 2;
*/
public boolean hasVmem() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 vmem = 2;
*/
public int getVmem() {
return vmem_;
}
public static final int CPU_FIELD_NUMBER = 3;
private float cpu_;
/**
* optional float cpu = 3;
*/
public boolean hasCpu() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional float cpu = 3;
*/
public float getCpu() {
return cpu_;
}
public static final int CUSTOMRESOURCES_FIELD_NUMBER = 4;
private java.util.List customResources_;
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public java.util.List getCustomResourcesList() {
return customResources_;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder>
getCustomResourcesOrBuilderList() {
return customResources_;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public int getCustomResourcesCount() {
return customResources_.size();
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto getCustomResources(int index) {
return customResources_.get(index);
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder getCustomResourcesOrBuilder(
int index) {
return customResources_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getCustomResourcesCount(); i++) {
if (!getCustomResources(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, pmem_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, vmem_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFloat(3, cpu_);
}
for (int i = 0; i < customResources_.size(); i++) {
output.writeMessage(4, customResources_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(1, pmem_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(2, vmem_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteFloatSize(3, cpu_);
}
for (int i = 0; i < customResources_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(4, customResources_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto) obj;
if (hasPmem() != other.hasPmem()) return false;
if (hasPmem()) {
if (getPmem()
!= other.getPmem()) return false;
}
if (hasVmem() != other.hasVmem()) return false;
if (hasVmem()) {
if (getVmem()
!= other.getVmem()) return false;
}
if (hasCpu() != other.hasCpu()) return false;
if (hasCpu()) {
if (java.lang.Float.floatToIntBits(getCpu())
!= java.lang.Float.floatToIntBits(
other.getCpu())) return false;
}
if (!getCustomResourcesList()
.equals(other.getCustomResourcesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPmem()) {
hash = (37 * hash) + PMEM_FIELD_NUMBER;
hash = (53 * hash) + getPmem();
}
if (hasVmem()) {
hash = (37 * hash) + VMEM_FIELD_NUMBER;
hash = (53 * hash) + getVmem();
}
if (hasCpu()) {
hash = (37 * hash) + CPU_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getCpu());
}
if (getCustomResourcesCount() > 0) {
hash = (37 * hash) + CUSTOMRESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getCustomResourcesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceUtilizationProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceUtilizationProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceUtilizationProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceUtilizationProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCustomResourcesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
pmem_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
vmem_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
cpu_ = 0F;
bitField0_ = (bitField0_ & ~0x00000004);
if (customResourcesBuilder_ == null) {
customResources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
customResourcesBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceUtilizationProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.pmem_ = pmem_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.vmem_ = vmem_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.cpu_ = cpu_;
to_bitField0_ |= 0x00000004;
}
if (customResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
customResources_ = java.util.Collections.unmodifiableList(customResources_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.customResources_ = customResources_;
} else {
result.customResources_ = customResourcesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance()) return this;
if (other.hasPmem()) {
setPmem(other.getPmem());
}
if (other.hasVmem()) {
setVmem(other.getVmem());
}
if (other.hasCpu()) {
setCpu(other.getCpu());
}
if (customResourcesBuilder_ == null) {
if (!other.customResources_.isEmpty()) {
if (customResources_.isEmpty()) {
customResources_ = other.customResources_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCustomResourcesIsMutable();
customResources_.addAll(other.customResources_);
}
onChanged();
}
} else {
if (!other.customResources_.isEmpty()) {
if (customResourcesBuilder_.isEmpty()) {
customResourcesBuilder_.dispose();
customResourcesBuilder_ = null;
customResources_ = other.customResources_;
bitField0_ = (bitField0_ & ~0x00000008);
customResourcesBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomResourcesFieldBuilder() : null;
} else {
customResourcesBuilder_.addAllMessages(other.customResources_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getCustomResourcesCount(); i++) {
if (!getCustomResources(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int pmem_ ;
/**
* optional int32 pmem = 1;
*/
public boolean hasPmem() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 pmem = 1;
*/
public int getPmem() {
return pmem_;
}
/**
* optional int32 pmem = 1;
*/
public Builder setPmem(int value) {
bitField0_ |= 0x00000001;
pmem_ = value;
onChanged();
return this;
}
/**
* optional int32 pmem = 1;
*/
public Builder clearPmem() {
bitField0_ = (bitField0_ & ~0x00000001);
pmem_ = 0;
onChanged();
return this;
}
private int vmem_ ;
/**
* optional int32 vmem = 2;
*/
public boolean hasVmem() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 vmem = 2;
*/
public int getVmem() {
return vmem_;
}
/**
* optional int32 vmem = 2;
*/
public Builder setVmem(int value) {
bitField0_ |= 0x00000002;
vmem_ = value;
onChanged();
return this;
}
/**
* optional int32 vmem = 2;
*/
public Builder clearVmem() {
bitField0_ = (bitField0_ & ~0x00000002);
vmem_ = 0;
onChanged();
return this;
}
private float cpu_ ;
/**
* optional float cpu = 3;
*/
public boolean hasCpu() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional float cpu = 3;
*/
public float getCpu() {
return cpu_;
}
/**
* optional float cpu = 3;
*/
public Builder setCpu(float value) {
bitField0_ |= 0x00000004;
cpu_ = value;
onChanged();
return this;
}
/**
* optional float cpu = 3;
*/
public Builder clearCpu() {
bitField0_ = (bitField0_ & ~0x00000004);
cpu_ = 0F;
onChanged();
return this;
}
private java.util.List customResources_ =
java.util.Collections.emptyList();
private void ensureCustomResourcesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
customResources_ = new java.util.ArrayList(customResources_);
bitField0_ |= 0x00000008;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder> customResourcesBuilder_;
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public java.util.List getCustomResourcesList() {
if (customResourcesBuilder_ == null) {
return java.util.Collections.unmodifiableList(customResources_);
} else {
return customResourcesBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public int getCustomResourcesCount() {
if (customResourcesBuilder_ == null) {
return customResources_.size();
} else {
return customResourcesBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto getCustomResources(int index) {
if (customResourcesBuilder_ == null) {
return customResources_.get(index);
} else {
return customResourcesBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder setCustomResources(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto value) {
if (customResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomResourcesIsMutable();
customResources_.set(index, value);
onChanged();
} else {
customResourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder setCustomResources(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder builderForValue) {
if (customResourcesBuilder_ == null) {
ensureCustomResourcesIsMutable();
customResources_.set(index, builderForValue.build());
onChanged();
} else {
customResourcesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder addCustomResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto value) {
if (customResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomResourcesIsMutable();
customResources_.add(value);
onChanged();
} else {
customResourcesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder addCustomResources(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto value) {
if (customResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomResourcesIsMutable();
customResources_.add(index, value);
onChanged();
} else {
customResourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder addCustomResources(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder builderForValue) {
if (customResourcesBuilder_ == null) {
ensureCustomResourcesIsMutable();
customResources_.add(builderForValue.build());
onChanged();
} else {
customResourcesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder addCustomResources(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder builderForValue) {
if (customResourcesBuilder_ == null) {
ensureCustomResourcesIsMutable();
customResources_.add(index, builderForValue.build());
onChanged();
} else {
customResourcesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder addAllCustomResources(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto> values) {
if (customResourcesBuilder_ == null) {
ensureCustomResourcesIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, customResources_);
onChanged();
} else {
customResourcesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder clearCustomResources() {
if (customResourcesBuilder_ == null) {
customResources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
customResourcesBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public Builder removeCustomResources(int index) {
if (customResourcesBuilder_ == null) {
ensureCustomResourcesIsMutable();
customResources_.remove(index);
onChanged();
} else {
customResourcesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder getCustomResourcesBuilder(
int index) {
return getCustomResourcesFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder getCustomResourcesOrBuilder(
int index) {
if (customResourcesBuilder_ == null) {
return customResources_.get(index); } else {
return customResourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder>
getCustomResourcesOrBuilderList() {
if (customResourcesBuilder_ != null) {
return customResourcesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customResources_);
}
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder addCustomResourcesBuilder() {
return getCustomResourcesFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder addCustomResourcesBuilder(
int index) {
return getCustomResourcesFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringFloatMapProto customResources = 4;
*/
public java.util.List
getCustomResourcesBuilderList() {
return getCustomResourcesFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder>
getCustomResourcesFieldBuilder() {
if (customResourcesBuilder_ == null) {
customResourcesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder>(
customResources_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
customResources_ = null;
}
return customResourcesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceUtilizationProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceUtilizationProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceUtilizationProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceUtilizationProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceOptionProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceOptionProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
boolean hasResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder();
/**
* optional int32 over_commit_timeout = 2;
*/
boolean hasOverCommitTimeout();
/**
* optional int32 over_commit_timeout = 2;
*/
int getOverCommitTimeout();
}
/**
* Protobuf type {@code hadoop.yarn.ResourceOptionProto}
*/
public static final class ResourceOptionProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceOptionProto)
ResourceOptionProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceOptionProto.newBuilder() to construct.
private ResourceOptionProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceOptionProto() {
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceOptionProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
overCommitTimeout_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceOptionProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceOptionProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
public static final int OVER_COMMIT_TIMEOUT_FIELD_NUMBER = 2;
private int overCommitTimeout_;
/**
* optional int32 over_commit_timeout = 2;
*/
public boolean hasOverCommitTimeout() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 over_commit_timeout = 2;
*/
public int getOverCommitTimeout() {
return overCommitTimeout_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasResource()) {
if (!getResource().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getResource());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, overCommitTimeout_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getResource());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(2, overCommitTimeout_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto) obj;
if (hasResource() != other.hasResource()) return false;
if (hasResource()) {
if (!getResource()
.equals(other.getResource())) return false;
}
if (hasOverCommitTimeout() != other.hasOverCommitTimeout()) return false;
if (hasOverCommitTimeout()) {
if (getOverCommitTimeout()
!= other.getOverCommitTimeout()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
if (hasOverCommitTimeout()) {
hash = (37 * hash) + OVER_COMMIT_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getOverCommitTimeout();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceOptionProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceOptionProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceOptionProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceOptionProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resourceBuilder_ == null) {
resource_ = null;
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
overCommitTimeout_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceOptionProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.overCommitTimeout_ = overCommitTimeout_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance()) return this;
if (other.hasResource()) {
mergeResource(other.getResource());
}
if (other.hasOverCommitTimeout()) {
setOverCommitTimeout(other.getOverCommitTimeout());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasResource()) {
if (!getResource().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> resourceBuilder_;
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
if (resourceBuilder_ == null) {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public Builder setResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public Builder setResource(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public Builder mergeResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
resource_ != null &&
resource_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
resource_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(resource_).mergeFrom(value).buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = null;
onChanged();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getResource(),
getParentForChildren(),
isClean());
resource_ = null;
}
return resourceBuilder_;
}
private int overCommitTimeout_ ;
/**
* optional int32 over_commit_timeout = 2;
*/
public boolean hasOverCommitTimeout() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 over_commit_timeout = 2;
*/
public int getOverCommitTimeout() {
return overCommitTimeout_;
}
/**
* optional int32 over_commit_timeout = 2;
*/
public Builder setOverCommitTimeout(int value) {
bitField0_ |= 0x00000002;
overCommitTimeout_ = value;
onChanged();
return this;
}
/**
* optional int32 over_commit_timeout = 2;
*/
public Builder clearOverCommitTimeout() {
bitField0_ = (bitField0_ & ~0x00000002);
overCommitTimeout_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceOptionProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceOptionProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceOptionProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceOptionProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceProfileEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceProfileEntry)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes();
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
boolean hasResources();
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResources();
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourcesOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.ResourceProfileEntry}
*/
public static final class ResourceProfileEntry extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceProfileEntry)
ResourceProfileEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceProfileEntry.newBuilder() to construct.
private ResourceProfileEntry(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceProfileEntry() {
name_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceProfileEntry(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfileEntry_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfileEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int RESOURCES_FIELD_NUMBER = 2;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resources_;
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public boolean hasResources() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResources() {
return resources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resources_;
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourcesOrBuilder() {
return resources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resources_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasResources()) {
memoizedIsInitialized = 0;
return false;
}
if (!getResources().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getResources());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(2, getResources());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceProfileEntry}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceProfileEntry)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfileEntry_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfileEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourcesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfileEntry_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasResources()) {
return false;
}
if (!getResources().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resources_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> resourcesBuilder_;
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public boolean hasResources() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public Builder setResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public Builder setResources(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public Builder mergeResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourcesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
resources_ != null &&
resources_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
resources_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourcesBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resources_;
}
}
/**
* required .hadoop.yarn.ResourceProto resources = 2;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceProfileEntry)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceProfileEntry)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceProfileEntry parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceProfileEntry(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourceProfilesProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ResourceProfilesProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
java.util.List
getResourceProfilesMapList();
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getResourceProfilesMap(int index);
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
int getResourceProfilesMapCount();
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder>
getResourceProfilesMapOrBuilderList();
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder getResourceProfilesMapOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.ResourceProfilesProto}
*/
public static final class ResourceProfilesProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ResourceProfilesProto)
ResourceProfilesProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourceProfilesProto.newBuilder() to construct.
private ResourceProfilesProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourceProfilesProto() {
resourceProfilesMap_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceProfilesProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
resourceProfilesMap_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
resourceProfilesMap_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
resourceProfilesMap_ = java.util.Collections.unmodifiableList(resourceProfilesMap_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfilesProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfilesProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder.class);
}
public static final int RESOURCE_PROFILES_MAP_FIELD_NUMBER = 1;
private java.util.List resourceProfilesMap_;
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public java.util.List getResourceProfilesMapList() {
return resourceProfilesMap_;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder>
getResourceProfilesMapOrBuilderList() {
return resourceProfilesMap_;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public int getResourceProfilesMapCount() {
return resourceProfilesMap_.size();
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getResourceProfilesMap(int index) {
return resourceProfilesMap_.get(index);
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder getResourceProfilesMapOrBuilder(
int index) {
return resourceProfilesMap_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getResourceProfilesMapCount(); i++) {
if (!getResourceProfilesMap(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
for (int i = 0; i < resourceProfilesMap_.size(); i++) {
output.writeMessage(1, resourceProfilesMap_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < resourceProfilesMap_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, resourceProfilesMap_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto) obj;
if (!getResourceProfilesMapList()
.equals(other.getResourceProfilesMapList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getResourceProfilesMapCount() > 0) {
hash = (37 * hash) + RESOURCE_PROFILES_MAP_FIELD_NUMBER;
hash = (53 * hash) + getResourceProfilesMapList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ResourceProfilesProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ResourceProfilesProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfilesProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfilesProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourceProfilesMapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resourceProfilesMapBuilder_ == null) {
resourceProfilesMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resourceProfilesMapBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ResourceProfilesProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto(this);
int from_bitField0_ = bitField0_;
if (resourceProfilesMapBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
resourceProfilesMap_ = java.util.Collections.unmodifiableList(resourceProfilesMap_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.resourceProfilesMap_ = resourceProfilesMap_;
} else {
result.resourceProfilesMap_ = resourceProfilesMapBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance()) return this;
if (resourceProfilesMapBuilder_ == null) {
if (!other.resourceProfilesMap_.isEmpty()) {
if (resourceProfilesMap_.isEmpty()) {
resourceProfilesMap_ = other.resourceProfilesMap_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.addAll(other.resourceProfilesMap_);
}
onChanged();
}
} else {
if (!other.resourceProfilesMap_.isEmpty()) {
if (resourceProfilesMapBuilder_.isEmpty()) {
resourceProfilesMapBuilder_.dispose();
resourceProfilesMapBuilder_ = null;
resourceProfilesMap_ = other.resourceProfilesMap_;
bitField0_ = (bitField0_ & ~0x00000001);
resourceProfilesMapBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceProfilesMapFieldBuilder() : null;
} else {
resourceProfilesMapBuilder_.addAllMessages(other.resourceProfilesMap_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getResourceProfilesMapCount(); i++) {
if (!getResourceProfilesMap(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List resourceProfilesMap_ =
java.util.Collections.emptyList();
private void ensureResourceProfilesMapIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
resourceProfilesMap_ = new java.util.ArrayList(resourceProfilesMap_);
bitField0_ |= 0x00000001;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder> resourceProfilesMapBuilder_;
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public java.util.List getResourceProfilesMapList() {
if (resourceProfilesMapBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceProfilesMap_);
} else {
return resourceProfilesMapBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public int getResourceProfilesMapCount() {
if (resourceProfilesMapBuilder_ == null) {
return resourceProfilesMap_.size();
} else {
return resourceProfilesMapBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getResourceProfilesMap(int index) {
if (resourceProfilesMapBuilder_ == null) {
return resourceProfilesMap_.get(index);
} else {
return resourceProfilesMapBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder setResourceProfilesMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry value) {
if (resourceProfilesMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.set(index, value);
onChanged();
} else {
resourceProfilesMapBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder setResourceProfilesMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder builderForValue) {
if (resourceProfilesMapBuilder_ == null) {
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.set(index, builderForValue.build());
onChanged();
} else {
resourceProfilesMapBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder addResourceProfilesMap(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry value) {
if (resourceProfilesMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.add(value);
onChanged();
} else {
resourceProfilesMapBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder addResourceProfilesMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry value) {
if (resourceProfilesMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.add(index, value);
onChanged();
} else {
resourceProfilesMapBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder addResourceProfilesMap(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder builderForValue) {
if (resourceProfilesMapBuilder_ == null) {
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.add(builderForValue.build());
onChanged();
} else {
resourceProfilesMapBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder addResourceProfilesMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder builderForValue) {
if (resourceProfilesMapBuilder_ == null) {
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.add(index, builderForValue.build());
onChanged();
} else {
resourceProfilesMapBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder addAllResourceProfilesMap(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry> values) {
if (resourceProfilesMapBuilder_ == null) {
ensureResourceProfilesMapIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceProfilesMap_);
onChanged();
} else {
resourceProfilesMapBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder clearResourceProfilesMap() {
if (resourceProfilesMapBuilder_ == null) {
resourceProfilesMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resourceProfilesMapBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public Builder removeResourceProfilesMap(int index) {
if (resourceProfilesMapBuilder_ == null) {
ensureResourceProfilesMapIsMutable();
resourceProfilesMap_.remove(index);
onChanged();
} else {
resourceProfilesMapBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder getResourceProfilesMapBuilder(
int index) {
return getResourceProfilesMapFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder getResourceProfilesMapOrBuilder(
int index) {
if (resourceProfilesMapBuilder_ == null) {
return resourceProfilesMap_.get(index); } else {
return resourceProfilesMapBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder>
getResourceProfilesMapOrBuilderList() {
if (resourceProfilesMapBuilder_ != null) {
return resourceProfilesMapBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceProfilesMap_);
}
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder addResourceProfilesMapBuilder() {
return getResourceProfilesMapFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder addResourceProfilesMapBuilder(
int index) {
return getResourceProfilesMapFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
*/
public java.util.List
getResourceProfilesMapBuilderList() {
return getResourceProfilesMapFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder>
getResourceProfilesMapFieldBuilder() {
if (resourceProfilesMapBuilder_ == null) {
resourceProfilesMapBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntryOrBuilder>(
resourceProfilesMap_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
resourceProfilesMap_ = null;
}
return resourceProfilesMapBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ResourceProfilesProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ResourceProfilesProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ResourceProfilesProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ResourceProfilesProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeResourceMapProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.NodeResourceMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
boolean hasNodeId();
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
boolean hasResourceOption();
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto getResourceOption();
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder getResourceOptionOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.NodeResourceMapProto}
*/
public static final class NodeResourceMapProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.NodeResourceMapProto)
NodeResourceMapProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeResourceMapProto.newBuilder() to construct.
private NodeResourceMapProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeResourceMapProto() {
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeResourceMapProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = nodeId_.toBuilder();
}
nodeId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeId_);
nodeId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = resourceOption_.toBuilder();
}
resourceOption_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourceOption_);
resourceOption_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeResourceMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeResourceMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.Builder.class);
}
private int bitField0_;
public static final int NODE_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
public static final int RESOURCE_OPTION_FIELD_NUMBER = 2;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto resourceOption_;
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public boolean hasResourceOption() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto getResourceOption() {
return resourceOption_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance() : resourceOption_;
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder getResourceOptionOrBuilder() {
return resourceOption_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance() : resourceOption_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasResourceOption()) {
if (!getResourceOption().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNodeId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getResourceOption());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getNodeId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(2, getResourceOption());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto) obj;
if (hasNodeId() != other.hasNodeId()) return false;
if (hasNodeId()) {
if (!getNodeId()
.equals(other.getNodeId())) return false;
}
if (hasResourceOption() != other.hasResourceOption()) return false;
if (hasResourceOption()) {
if (!getResourceOption()
.equals(other.getResourceOption())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNodeId()) {
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
}
if (hasResourceOption()) {
hash = (37 * hash) + RESOURCE_OPTION_FIELD_NUMBER;
hash = (53 * hash) + getResourceOption().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.NodeResourceMapProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.NodeResourceMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeResourceMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeResourceMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeIdFieldBuilder();
getResourceOptionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodeIdBuilder_ == null) {
nodeId_ = null;
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (resourceOptionBuilder_ == null) {
resourceOption_ = null;
} else {
resourceOptionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeResourceMapProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (nodeIdBuilder_ == null) {
result.nodeId_ = nodeId_;
} else {
result.nodeId_ = nodeIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (resourceOptionBuilder_ == null) {
result.resourceOption_ = resourceOption_;
} else {
result.resourceOption_ = resourceOptionBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto.getDefaultInstance()) return this;
if (other.hasNodeId()) {
mergeNodeId(other.getNodeId());
}
if (other.hasResourceOption()) {
mergeResourceOption(other.getResourceOption());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasResourceOption()) {
if (!getResourceOption().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
} else {
return nodeIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public Builder setNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeId_ = value;
onChanged();
} else {
nodeIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public Builder setNodeId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder builderForValue) {
if (nodeIdBuilder_ == null) {
nodeId_ = builderForValue.build();
onChanged();
} else {
nodeIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public Builder mergeNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nodeId_ != null &&
nodeId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
nodeId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
} else {
nodeId_ = value;
}
onChanged();
} else {
nodeIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public Builder clearNodeId() {
if (nodeIdBuilder_ == null) {
nodeId_ = null;
onChanged();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
if (nodeIdBuilder_ != null) {
return nodeIdBuilder_.getMessageOrBuilder();
} else {
return nodeId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>
getNodeIdFieldBuilder() {
if (nodeIdBuilder_ == null) {
nodeIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
getNodeId(),
getParentForChildren(),
isClean());
nodeId_ = null;
}
return nodeIdBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto resourceOption_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder> resourceOptionBuilder_;
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public boolean hasResourceOption() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto getResourceOption() {
if (resourceOptionBuilder_ == null) {
return resourceOption_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance() : resourceOption_;
} else {
return resourceOptionBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public Builder setResourceOption(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto value) {
if (resourceOptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourceOption_ = value;
onChanged();
} else {
resourceOptionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public Builder setResourceOption(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder builderForValue) {
if (resourceOptionBuilder_ == null) {
resourceOption_ = builderForValue.build();
onChanged();
} else {
resourceOptionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public Builder mergeResourceOption(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto value) {
if (resourceOptionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
resourceOption_ != null &&
resourceOption_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance()) {
resourceOption_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.newBuilder(resourceOption_).mergeFrom(value).buildPartial();
} else {
resourceOption_ = value;
}
onChanged();
} else {
resourceOptionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public Builder clearResourceOption() {
if (resourceOptionBuilder_ == null) {
resourceOption_ = null;
onChanged();
} else {
resourceOptionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder getResourceOptionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getResourceOptionFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder getResourceOptionOrBuilder() {
if (resourceOptionBuilder_ != null) {
return resourceOptionBuilder_.getMessageOrBuilder();
} else {
return resourceOption_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.getDefaultInstance() : resourceOption_;
}
}
/**
* optional .hadoop.yarn.ResourceOptionProto resource_option = 2;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder>
getResourceOptionFieldBuilder() {
if (resourceOptionBuilder_ == null) {
resourceOptionBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProtoOrBuilder>(
getResourceOption(),
getParentForChildren(),
isClean());
resourceOption_ = null;
}
return resourceOptionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.NodeResourceMapProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.NodeResourceMapProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public NodeResourceMapProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new NodeResourceMapProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeResourceMapProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PriorityProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.PriorityProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional int32 priority = 1;
*/
boolean hasPriority();
/**
* optional int32 priority = 1;
*/
int getPriority();
}
/**
* Protobuf type {@code hadoop.yarn.PriorityProto}
*/
public static final class PriorityProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.PriorityProto)
PriorityProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use PriorityProto.newBuilder() to construct.
private PriorityProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PriorityProto() {
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PriorityProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
priority_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_PriorityProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_PriorityProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder.class);
}
private int bitField0_;
public static final int PRIORITY_FIELD_NUMBER = 1;
private int priority_;
/**
* optional int32 priority = 1;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 priority = 1;
*/
public int getPriority() {
return priority_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, priority_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(1, priority_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto) obj;
if (hasPriority() != other.hasPriority()) return false;
if (hasPriority()) {
if (getPriority()
!= other.getPriority()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.PriorityProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.PriorityProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_PriorityProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_PriorityProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
priority_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_PriorityProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.priority_ = priority_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) return this;
if (other.hasPriority()) {
setPriority(other.getPriority());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int priority_ ;
/**
* optional int32 priority = 1;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 priority = 1;
*/
public int getPriority() {
return priority_;
}
/**
* optional int32 priority = 1;
*/
public Builder setPriority(int value) {
bitField0_ |= 0x00000001;
priority_ = value;
onChanged();
return this;
}
/**
* optional int32 priority = 1;
*/
public Builder clearPriority() {
bitField0_ = (bitField0_ & ~0x00000001);
priority_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.PriorityProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.PriorityProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public PriorityProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new PriorityProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ContainerProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
boolean hasId();
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getId();
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getIdOrBuilder();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
boolean hasNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
/**
* optional string node_http_address = 3;
*/
boolean hasNodeHttpAddress();
/**
* optional string node_http_address = 3;
*/
java.lang.String getNodeHttpAddress();
/**
* optional string node_http_address = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeHttpAddressBytes();
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
boolean hasResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder();
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
boolean hasPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
boolean hasContainerToken();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getContainerToken();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getContainerTokenOrBuilder();
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
boolean hasExecutionType();
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType();
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
boolean hasAllocationRequestId();
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
long getAllocationRequestId();
/**
* optional int32 version = 9 [default = 0];
*/
boolean hasVersion();
/**
* optional int32 version = 9 [default = 0];
*/
int getVersion();
/**
* repeated string allocation_tags = 10;
*/
java.util.List
getAllocationTagsList();
/**
* repeated string allocation_tags = 10;
*/
int getAllocationTagsCount();
/**
* repeated string allocation_tags = 10;
*/
java.lang.String getAllocationTags(int index);
/**
* repeated string allocation_tags = 10;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAllocationTagsBytes(int index);
/**
* optional string exposed_ports = 11;
*/
boolean hasExposedPorts();
/**
* optional string exposed_ports = 11;
*/
java.lang.String getExposedPorts();
/**
* optional string exposed_ports = 11;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExposedPortsBytes();
}
/**
* Protobuf type {@code hadoop.yarn.ContainerProto}
*/
public static final class ContainerProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ContainerProto)
ContainerProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerProto.newBuilder() to construct.
private ContainerProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerProto() {
nodeHttpAddress_ = "";
executionType_ = 1;
allocationRequestId_ = -1L;
allocationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
exposedPorts_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = nodeId_.toBuilder();
}
nodeId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeId_);
nodeId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
nodeHttpAddress_ = bs;
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = priority_.toBuilder();
}
priority_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(priority_);
priority_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = containerToken_.toBuilder();
}
containerToken_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerToken_);
containerToken_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 56: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
bitField0_ |= 0x00000040;
executionType_ = rawValue;
}
break;
}
case 64: {
bitField0_ |= 0x00000080;
allocationRequestId_ = input.readInt64();
break;
}
case 72: {
bitField0_ |= 0x00000100;
version_ = input.readInt32();
break;
}
case 82: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
allocationTags_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
allocationTags_.add(bs);
break;
}
case 90: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
exposedPorts_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) != 0)) {
allocationTags_ = allocationTags_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto id_;
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getId() {
return id_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : id_;
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getIdOrBuilder() {
return id_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : id_;
}
public static final int NODEID_FIELD_NUMBER = 2;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
public static final int NODE_HTTP_ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object nodeHttpAddress_;
/**
* optional string node_http_address = 3;
*/
public boolean hasNodeHttpAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string node_http_address = 3;
*/
public java.lang.String getNodeHttpAddress() {
java.lang.Object ref = nodeHttpAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nodeHttpAddress_ = s;
}
return s;
}
}
/**
* optional string node_http_address = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeHttpAddressBytes() {
java.lang.Object ref = nodeHttpAddress_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeHttpAddress_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_FIELD_NUMBER = 4;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
public static final int PRIORITY_FIELD_NUMBER = 5;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
public static final int CONTAINER_TOKEN_FIELD_NUMBER = 6;
private org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto containerToken_;
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public boolean hasContainerToken() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getContainerToken() {
return containerToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : containerToken_;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getContainerTokenOrBuilder() {
return containerToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : containerToken_;
}
public static final int EXECUTION_TYPE_FIELD_NUMBER = 7;
private int executionType_;
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
public boolean hasExecutionType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(executionType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED : result;
}
public static final int ALLOCATION_REQUEST_ID_FIELD_NUMBER = 8;
private long allocationRequestId_;
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
public boolean hasAllocationRequestId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
public long getAllocationRequestId() {
return allocationRequestId_;
}
public static final int VERSION_FIELD_NUMBER = 9;
private int version_;
/**
* optional int32 version = 9 [default = 0];
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 version = 9 [default = 0];
*/
public int getVersion() {
return version_;
}
public static final int ALLOCATION_TAGS_FIELD_NUMBER = 10;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList allocationTags_;
/**
* repeated string allocation_tags = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getAllocationTagsList() {
return allocationTags_;
}
/**
* repeated string allocation_tags = 10;
*/
public int getAllocationTagsCount() {
return allocationTags_.size();
}
/**
* repeated string allocation_tags = 10;
*/
public java.lang.String getAllocationTags(int index) {
return allocationTags_.get(index);
}
/**
* repeated string allocation_tags = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAllocationTagsBytes(int index) {
return allocationTags_.getByteString(index);
}
public static final int EXPOSED_PORTS_FIELD_NUMBER = 11;
private volatile java.lang.Object exposedPorts_;
/**
* optional string exposed_ports = 11;
*/
public boolean hasExposedPorts() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string exposed_ports = 11;
*/
public java.lang.String getExposedPorts() {
java.lang.Object ref = exposedPorts_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
exposedPorts_ = s;
}
return s;
}
}
/**
* optional string exposed_ports = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExposedPortsBytes() {
java.lang.Object ref = exposedPorts_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exposedPorts_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasResource()) {
if (!getResource().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasContainerToken()) {
if (!getContainerToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getNodeId());
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 3, nodeHttpAddress_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getResource());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getPriority());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getContainerToken());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeEnum(7, executionType_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(8, allocationRequestId_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt32(9, version_);
}
for (int i = 0; i < allocationTags_.size(); i++) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 10, allocationTags_.getRaw(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 11, exposedPorts_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(2, getNodeId());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(3, nodeHttpAddress_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(4, getResource());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(5, getPriority());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(6, getContainerToken());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(7, executionType_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(8, allocationRequestId_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(9, version_);
}
{
int dataSize = 0;
for (int i = 0; i < allocationTags_.size(); i++) {
dataSize += org.apache.hadoop.shaded.com.uteStringSizeNoTag(allocationTags_.getRaw(i));
}
size += dataSize;
size += 1 * getAllocationTagsList().size();
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(11, exposedPorts_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId()
.equals(other.getId())) return false;
}
if (hasNodeId() != other.hasNodeId()) return false;
if (hasNodeId()) {
if (!getNodeId()
.equals(other.getNodeId())) return false;
}
if (hasNodeHttpAddress() != other.hasNodeHttpAddress()) return false;
if (hasNodeHttpAddress()) {
if (!getNodeHttpAddress()
.equals(other.getNodeHttpAddress())) return false;
}
if (hasResource() != other.hasResource()) return false;
if (hasResource()) {
if (!getResource()
.equals(other.getResource())) return false;
}
if (hasPriority() != other.hasPriority()) return false;
if (hasPriority()) {
if (!getPriority()
.equals(other.getPriority())) return false;
}
if (hasContainerToken() != other.hasContainerToken()) return false;
if (hasContainerToken()) {
if (!getContainerToken()
.equals(other.getContainerToken())) return false;
}
if (hasExecutionType() != other.hasExecutionType()) return false;
if (hasExecutionType()) {
if (executionType_ != other.executionType_) return false;
}
if (hasAllocationRequestId() != other.hasAllocationRequestId()) return false;
if (hasAllocationRequestId()) {
if (getAllocationRequestId()
!= other.getAllocationRequestId()) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (getVersion()
!= other.getVersion()) return false;
}
if (!getAllocationTagsList()
.equals(other.getAllocationTagsList())) return false;
if (hasExposedPorts() != other.hasExposedPorts()) return false;
if (hasExposedPorts()) {
if (!getExposedPorts()
.equals(other.getExposedPorts())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasNodeId()) {
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
}
if (hasNodeHttpAddress()) {
hash = (37 * hash) + NODE_HTTP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getNodeHttpAddress().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority().hashCode();
}
if (hasContainerToken()) {
hash = (37 * hash) + CONTAINER_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getContainerToken().hashCode();
}
if (hasExecutionType()) {
hash = (37 * hash) + EXECUTION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + executionType_;
}
if (hasAllocationRequestId()) {
hash = (37 * hash) + ALLOCATION_REQUEST_ID_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getAllocationRequestId());
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion();
}
if (getAllocationTagsCount() > 0) {
hash = (37 * hash) + ALLOCATION_TAGS_FIELD_NUMBER;
hash = (53 * hash) + getAllocationTagsList().hashCode();
}
if (hasExposedPorts()) {
hash = (37 * hash) + EXPOSED_PORTS_FIELD_NUMBER;
hash = (53 * hash) + getExposedPorts().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ContainerProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ContainerProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getNodeIdFieldBuilder();
getResourceFieldBuilder();
getPriorityFieldBuilder();
getContainerTokenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (nodeIdBuilder_ == null) {
nodeId_ = null;
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
nodeHttpAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (resourceBuilder_ == null) {
resource_ = null;
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (priorityBuilder_ == null) {
priority_ = null;
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (containerTokenBuilder_ == null) {
containerToken_ = null;
} else {
containerTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
executionType_ = 1;
bitField0_ = (bitField0_ & ~0x00000040);
allocationRequestId_ = -1L;
bitField0_ = (bitField0_ & ~0x00000080);
version_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
allocationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
exposedPorts_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (nodeIdBuilder_ == null) {
result.nodeId_ = nodeId_;
} else {
result.nodeId_ = nodeIdBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.nodeHttpAddress_ = nodeHttpAddress_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (priorityBuilder_ == null) {
result.priority_ = priority_;
} else {
result.priority_ = priorityBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (containerTokenBuilder_ == null) {
result.containerToken_ = containerToken_;
} else {
result.containerToken_ = containerTokenBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.executionType_ = executionType_;
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.allocationRequestId_ = allocationRequestId_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.version_ = version_;
to_bitField0_ |= 0x00000100;
}
if (((bitField0_ & 0x00000200) != 0)) {
allocationTags_ = allocationTags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.allocationTags_ = allocationTags_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.exposedPorts_ = exposedPorts_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasNodeId()) {
mergeNodeId(other.getNodeId());
}
if (other.hasNodeHttpAddress()) {
bitField0_ |= 0x00000004;
nodeHttpAddress_ = other.nodeHttpAddress_;
onChanged();
}
if (other.hasResource()) {
mergeResource(other.getResource());
}
if (other.hasPriority()) {
mergePriority(other.getPriority());
}
if (other.hasContainerToken()) {
mergeContainerToken(other.getContainerToken());
}
if (other.hasExecutionType()) {
setExecutionType(other.getExecutionType());
}
if (other.hasAllocationRequestId()) {
setAllocationRequestId(other.getAllocationRequestId());
}
if (other.hasVersion()) {
setVersion(other.getVersion());
}
if (!other.allocationTags_.isEmpty()) {
if (allocationTags_.isEmpty()) {
allocationTags_ = other.allocationTags_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureAllocationTagsIsMutable();
allocationTags_.addAll(other.allocationTags_);
}
onChanged();
}
if (other.hasExposedPorts()) {
bitField0_ |= 0x00000400;
exposedPorts_ = other.exposedPorts_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasResource()) {
if (!getResource().isInitialized()) {
return false;
}
}
if (hasContainerToken()) {
if (!getContainerToken().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto id_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> idBuilder_;
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getId() {
if (idBuilder_ == null) {
return id_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public Builder setId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public Builder setId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public Builder mergeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
id_ != null &&
id_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) {
id_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : id_;
}
}
/**
* optional .hadoop.yarn.ContainerIdProto id = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
} else {
return nodeIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public Builder setNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeId_ = value;
onChanged();
} else {
nodeIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public Builder setNodeId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder builderForValue) {
if (nodeIdBuilder_ == null) {
nodeId_ = builderForValue.build();
onChanged();
} else {
nodeIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public Builder mergeNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
nodeId_ != null &&
nodeId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
nodeId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
} else {
nodeId_ = value;
}
onChanged();
} else {
nodeIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public Builder clearNodeId() {
if (nodeIdBuilder_ == null) {
nodeId_ = null;
onChanged();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNodeIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
if (nodeIdBuilder_ != null) {
return nodeIdBuilder_.getMessageOrBuilder();
} else {
return nodeId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>
getNodeIdFieldBuilder() {
if (nodeIdBuilder_ == null) {
nodeIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
getNodeId(),
getParentForChildren(),
isClean());
nodeId_ = null;
}
return nodeIdBuilder_;
}
private java.lang.Object nodeHttpAddress_ = "";
/**
* optional string node_http_address = 3;
*/
public boolean hasNodeHttpAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string node_http_address = 3;
*/
public java.lang.String getNodeHttpAddress() {
java.lang.Object ref = nodeHttpAddress_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nodeHttpAddress_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string node_http_address = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeHttpAddressBytes() {
java.lang.Object ref = nodeHttpAddress_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeHttpAddress_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string node_http_address = 3;
*/
public Builder setNodeHttpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
nodeHttpAddress_ = value;
onChanged();
return this;
}
/**
* optional string node_http_address = 3;
*/
public Builder clearNodeHttpAddress() {
bitField0_ = (bitField0_ & ~0x00000004);
nodeHttpAddress_ = getDefaultInstance().getNodeHttpAddress();
onChanged();
return this;
}
/**
* optional string node_http_address = 3;
*/
public Builder setNodeHttpAddressBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
nodeHttpAddress_ = value;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> resourceBuilder_;
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
if (resourceBuilder_ == null) {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder setResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder setResource(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder mergeResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
resource_ != null &&
resource_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
resource_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(resource_).mergeFrom(value).buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = null;
onChanged();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getResource(),
getParentForChildren(),
isClean());
resource_ = null;
}
return resourceBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> priorityBuilder_;
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
if (priorityBuilder_ == null) {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
} else {
return priorityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public Builder setPriority(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
priority_ = value;
onChanged();
} else {
priorityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public Builder setPriority(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder builderForValue) {
if (priorityBuilder_ == null) {
priority_ = builderForValue.build();
onChanged();
} else {
priorityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public Builder mergePriority(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
priority_ != null &&
priority_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) {
priority_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder(priority_).mergeFrom(value).buildPartial();
} else {
priority_ = value;
}
onChanged();
} else {
priorityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public Builder clearPriority() {
if (priorityBuilder_ == null) {
priority_ = null;
onChanged();
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getPriorityBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getPriorityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
if (priorityBuilder_ != null) {
return priorityBuilder_.getMessageOrBuilder();
} else {
return priority_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 5;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>
getPriorityFieldBuilder() {
if (priorityBuilder_ == null) {
priorityBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>(
getPriority(),
getParentForChildren(),
isClean());
priority_ = null;
}
return priorityBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto containerToken_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> containerTokenBuilder_;
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public boolean hasContainerToken() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getContainerToken() {
if (containerTokenBuilder_ == null) {
return containerToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : containerToken_;
} else {
return containerTokenBuilder_.getMessage();
}
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public Builder setContainerToken(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (containerTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerToken_ = value;
onChanged();
} else {
containerTokenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public Builder setContainerToken(
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
if (containerTokenBuilder_ == null) {
containerToken_ = builderForValue.build();
onChanged();
} else {
containerTokenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public Builder mergeContainerToken(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (containerTokenBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
containerToken_ != null &&
containerToken_ != org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
containerToken_ =
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(containerToken_).mergeFrom(value).buildPartial();
} else {
containerToken_ = value;
}
onChanged();
} else {
containerTokenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public Builder clearContainerToken() {
if (containerTokenBuilder_ == null) {
containerToken_ = null;
onChanged();
} else {
containerTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getContainerTokenBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getContainerTokenFieldBuilder().getBuilder();
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getContainerTokenOrBuilder() {
if (containerTokenBuilder_ != null) {
return containerTokenBuilder_.getMessageOrBuilder();
} else {
return containerToken_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : containerToken_;
}
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto container_token = 6;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getContainerTokenFieldBuilder() {
if (containerTokenBuilder_ == null) {
containerTokenBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
getContainerToken(),
getParentForChildren(),
isClean());
containerToken_ = null;
}
return containerTokenBuilder_;
}
private int executionType_ = 1;
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
public boolean hasExecutionType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(executionType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED : result;
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
public Builder setExecutionType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
executionType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 7 [default = GUARANTEED];
*/
public Builder clearExecutionType() {
bitField0_ = (bitField0_ & ~0x00000040);
executionType_ = 1;
onChanged();
return this;
}
private long allocationRequestId_ = -1L;
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
public boolean hasAllocationRequestId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
public long getAllocationRequestId() {
return allocationRequestId_;
}
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
public Builder setAllocationRequestId(long value) {
bitField0_ |= 0x00000080;
allocationRequestId_ = value;
onChanged();
return this;
}
/**
* optional int64 allocation_request_id = 8 [default = -1];
*/
public Builder clearAllocationRequestId() {
bitField0_ = (bitField0_ & ~0x00000080);
allocationRequestId_ = -1L;
onChanged();
return this;
}
private int version_ ;
/**
* optional int32 version = 9 [default = 0];
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 version = 9 [default = 0];
*/
public int getVersion() {
return version_;
}
/**
* optional int32 version = 9 [default = 0];
*/
public Builder setVersion(int value) {
bitField0_ |= 0x00000100;
version_ = value;
onChanged();
return this;
}
/**
* optional int32 version = 9 [default = 0];
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000100);
version_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList allocationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
private void ensureAllocationTagsIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
allocationTags_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList(allocationTags_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated string allocation_tags = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getAllocationTagsList() {
return allocationTags_.getUnmodifiableView();
}
/**
* repeated string allocation_tags = 10;
*/
public int getAllocationTagsCount() {
return allocationTags_.size();
}
/**
* repeated string allocation_tags = 10;
*/
public java.lang.String getAllocationTags(int index) {
return allocationTags_.get(index);
}
/**
* repeated string allocation_tags = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAllocationTagsBytes(int index) {
return allocationTags_.getByteString(index);
}
/**
* repeated string allocation_tags = 10;
*/
public Builder setAllocationTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocationTagsIsMutable();
allocationTags_.set(index, value);
onChanged();
return this;
}
/**
* repeated string allocation_tags = 10;
*/
public Builder addAllocationTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocationTagsIsMutable();
allocationTags_.add(value);
onChanged();
return this;
}
/**
* repeated string allocation_tags = 10;
*/
public Builder addAllAllocationTags(
java.lang.Iterable values) {
ensureAllocationTagsIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, allocationTags_);
onChanged();
return this;
}
/**
* repeated string allocation_tags = 10;
*/
public Builder clearAllocationTags() {
allocationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* repeated string allocation_tags = 10;
*/
public Builder addAllocationTagsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocationTagsIsMutable();
allocationTags_.add(value);
onChanged();
return this;
}
private java.lang.Object exposedPorts_ = "";
/**
* optional string exposed_ports = 11;
*/
public boolean hasExposedPorts() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string exposed_ports = 11;
*/
public java.lang.String getExposedPorts() {
java.lang.Object ref = exposedPorts_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
exposedPorts_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string exposed_ports = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExposedPortsBytes() {
java.lang.Object ref = exposedPorts_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exposedPorts_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string exposed_ports = 11;
*/
public Builder setExposedPorts(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
exposedPorts_ = value;
onChanged();
return this;
}
/**
* optional string exposed_ports = 11;
*/
public Builder clearExposedPorts() {
bitField0_ = (bitField0_ & ~0x00000400);
exposedPorts_ = getDefaultInstance().getExposedPorts();
onChanged();
return this;
}
/**
* optional string exposed_ports = 11;
*/
public Builder setExposedPortsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
exposedPorts_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ContainerProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ContainerProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ContainerProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContainerReportProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ContainerReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
boolean hasContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder();
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
boolean hasResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder();
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
boolean hasNodeId();
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
boolean hasPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder();
/**
* optional int64 creation_time = 5;
*/
boolean hasCreationTime();
/**
* optional int64 creation_time = 5;
*/
long getCreationTime();
/**
* optional int64 finish_time = 6;
*/
boolean hasFinishTime();
/**
* optional int64 finish_time = 6;
*/
long getFinishTime();
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
boolean hasDiagnosticsInfo();
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
java.lang.String getDiagnosticsInfo();
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsInfoBytes();
/**
* optional string log_url = 8;
*/
boolean hasLogUrl();
/**
* optional string log_url = 8;
*/
java.lang.String getLogUrl();
/**
* optional string log_url = 8;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getLogUrlBytes();
/**
* optional int32 container_exit_status = 9;
*/
boolean hasContainerExitStatus();
/**
* optional int32 container_exit_status = 9;
*/
int getContainerExitStatus();
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
boolean hasContainerState();
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto getContainerState();
/**
* optional string node_http_address = 11;
*/
boolean hasNodeHttpAddress();
/**
* optional string node_http_address = 11;
*/
java.lang.String getNodeHttpAddress();
/**
* optional string node_http_address = 11;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeHttpAddressBytes();
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
boolean hasExecutionType();
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType();
/**
* optional string exposed_ports = 13;
*/
boolean hasExposedPorts();
/**
* optional string exposed_ports = 13;
*/
java.lang.String getExposedPorts();
/**
* optional string exposed_ports = 13;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExposedPortsBytes();
}
/**
* Protobuf type {@code hadoop.yarn.ContainerReportProto}
*/
public static final class ContainerReportProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ContainerReportProto)
ContainerReportProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContainerReportProto.newBuilder() to construct.
private ContainerReportProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerReportProto() {
diagnosticsInfo_ = "N/A";
logUrl_ = "";
containerState_ = 1;
nodeHttpAddress_ = "";
executionType_ = 1;
exposedPorts_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerReportProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = nodeId_.toBuilder();
}
nodeId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeId_);
nodeId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = priority_.toBuilder();
}
priority_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(priority_);
priority_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
bitField0_ |= 0x00000010;
creationTime_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
finishTime_ = input.readInt64();
break;
}
case 58: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
diagnosticsInfo_ = bs;
break;
}
case 66: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
logUrl_ = bs;
break;
}
case 72: {
bitField0_ |= 0x00000100;
containerExitStatus_ = input.readInt32();
break;
}
case 80: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(10, rawValue);
} else {
bitField0_ |= 0x00000200;
containerState_ = rawValue;
}
break;
}
case 90: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
nodeHttpAddress_ = bs;
break;
}
case 96: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(12, rawValue);
} else {
bitField0_ |= 0x00000800;
executionType_ = rawValue;
}
break;
}
case 106: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
exposedPorts_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.Builder.class);
}
private int bitField0_;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
return containerId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
return containerId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
}
public static final int RESOURCE_FIELD_NUMBER = 2;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
public static final int NODE_ID_FIELD_NUMBER = 3;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
public static final int PRIORITY_FIELD_NUMBER = 4;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
public static final int CREATION_TIME_FIELD_NUMBER = 5;
private long creationTime_;
/**
* optional int64 creation_time = 5;
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 creation_time = 5;
*/
public long getCreationTime() {
return creationTime_;
}
public static final int FINISH_TIME_FIELD_NUMBER = 6;
private long finishTime_;
/**
* optional int64 finish_time = 6;
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 finish_time = 6;
*/
public long getFinishTime() {
return finishTime_;
}
public static final int DIAGNOSTICS_INFO_FIELD_NUMBER = 7;
private volatile java.lang.Object diagnosticsInfo_;
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public boolean hasDiagnosticsInfo() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public java.lang.String getDiagnosticsInfo() {
java.lang.Object ref = diagnosticsInfo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnosticsInfo_ = s;
}
return s;
}
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsInfoBytes() {
java.lang.Object ref = diagnosticsInfo_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnosticsInfo_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int LOG_URL_FIELD_NUMBER = 8;
private volatile java.lang.Object logUrl_;
/**
* optional string log_url = 8;
*/
public boolean hasLogUrl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string log_url = 8;
*/
public java.lang.String getLogUrl() {
java.lang.Object ref = logUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
logUrl_ = s;
}
return s;
}
}
/**
* optional string log_url = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getLogUrlBytes() {
java.lang.Object ref = logUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int CONTAINER_EXIT_STATUS_FIELD_NUMBER = 9;
private int containerExitStatus_;
/**
* optional int32 container_exit_status = 9;
*/
public boolean hasContainerExitStatus() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 container_exit_status = 9;
*/
public int getContainerExitStatus() {
return containerExitStatus_;
}
public static final int CONTAINER_STATE_FIELD_NUMBER = 10;
private int containerState_;
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
public boolean hasContainerState() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto getContainerState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.valueOf(containerState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.C_NEW : result;
}
public static final int NODE_HTTP_ADDRESS_FIELD_NUMBER = 11;
private volatile java.lang.Object nodeHttpAddress_;
/**
* optional string node_http_address = 11;
*/
public boolean hasNodeHttpAddress() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string node_http_address = 11;
*/
public java.lang.String getNodeHttpAddress() {
java.lang.Object ref = nodeHttpAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nodeHttpAddress_ = s;
}
return s;
}
}
/**
* optional string node_http_address = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeHttpAddressBytes() {
java.lang.Object ref = nodeHttpAddress_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeHttpAddress_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int EXECUTIONTYPE_FIELD_NUMBER = 12;
private int executionType_;
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
public boolean hasExecutionType() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(executionType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED : result;
}
public static final int EXPOSED_PORTS_FIELD_NUMBER = 13;
private volatile java.lang.Object exposedPorts_;
/**
* optional string exposed_ports = 13;
*/
public boolean hasExposedPorts() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional string exposed_ports = 13;
*/
public java.lang.String getExposedPorts() {
java.lang.Object ref = exposedPorts_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
exposedPorts_ = s;
}
return s;
}
}
/**
* optional string exposed_ports = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExposedPortsBytes() {
java.lang.Object ref = exposedPorts_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exposedPorts_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasResource()) {
if (!getResource().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getContainerId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getResource());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getNodeId());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getPriority());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, creationTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(6, finishTime_);
}
if (((bitField0_ & 0x00000040) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 7, diagnosticsInfo_);
}
if (((bitField0_ & 0x00000080) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 8, logUrl_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt32(9, containerExitStatus_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeEnum(10, containerState_);
}
if (((bitField0_ & 0x00000400) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 11, nodeHttpAddress_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeEnum(12, executionType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 13, exposedPorts_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getContainerId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(2, getResource());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(3, getNodeId());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(4, getPriority());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(5, creationTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(6, finishTime_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(7, diagnosticsInfo_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(8, logUrl_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(9, containerExitStatus_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(10, containerState_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(11, nodeHttpAddress_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(12, executionType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(13, exposedPorts_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto) obj;
if (hasContainerId() != other.hasContainerId()) return false;
if (hasContainerId()) {
if (!getContainerId()
.equals(other.getContainerId())) return false;
}
if (hasResource() != other.hasResource()) return false;
if (hasResource()) {
if (!getResource()
.equals(other.getResource())) return false;
}
if (hasNodeId() != other.hasNodeId()) return false;
if (hasNodeId()) {
if (!getNodeId()
.equals(other.getNodeId())) return false;
}
if (hasPriority() != other.hasPriority()) return false;
if (hasPriority()) {
if (!getPriority()
.equals(other.getPriority())) return false;
}
if (hasCreationTime() != other.hasCreationTime()) return false;
if (hasCreationTime()) {
if (getCreationTime()
!= other.getCreationTime()) return false;
}
if (hasFinishTime() != other.hasFinishTime()) return false;
if (hasFinishTime()) {
if (getFinishTime()
!= other.getFinishTime()) return false;
}
if (hasDiagnosticsInfo() != other.hasDiagnosticsInfo()) return false;
if (hasDiagnosticsInfo()) {
if (!getDiagnosticsInfo()
.equals(other.getDiagnosticsInfo())) return false;
}
if (hasLogUrl() != other.hasLogUrl()) return false;
if (hasLogUrl()) {
if (!getLogUrl()
.equals(other.getLogUrl())) return false;
}
if (hasContainerExitStatus() != other.hasContainerExitStatus()) return false;
if (hasContainerExitStatus()) {
if (getContainerExitStatus()
!= other.getContainerExitStatus()) return false;
}
if (hasContainerState() != other.hasContainerState()) return false;
if (hasContainerState()) {
if (containerState_ != other.containerState_) return false;
}
if (hasNodeHttpAddress() != other.hasNodeHttpAddress()) return false;
if (hasNodeHttpAddress()) {
if (!getNodeHttpAddress()
.equals(other.getNodeHttpAddress())) return false;
}
if (hasExecutionType() != other.hasExecutionType()) return false;
if (hasExecutionType()) {
if (executionType_ != other.executionType_) return false;
}
if (hasExposedPorts() != other.hasExposedPorts()) return false;
if (hasExposedPorts()) {
if (!getExposedPorts()
.equals(other.getExposedPorts())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContainerId()) {
hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
if (hasNodeId()) {
hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
}
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority().hashCode();
}
if (hasCreationTime()) {
hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getCreationTime());
}
if (hasFinishTime()) {
hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getFinishTime());
}
if (hasDiagnosticsInfo()) {
hash = (37 * hash) + DIAGNOSTICS_INFO_FIELD_NUMBER;
hash = (53 * hash) + getDiagnosticsInfo().hashCode();
}
if (hasLogUrl()) {
hash = (37 * hash) + LOG_URL_FIELD_NUMBER;
hash = (53 * hash) + getLogUrl().hashCode();
}
if (hasContainerExitStatus()) {
hash = (37 * hash) + CONTAINER_EXIT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getContainerExitStatus();
}
if (hasContainerState()) {
hash = (37 * hash) + CONTAINER_STATE_FIELD_NUMBER;
hash = (53 * hash) + containerState_;
}
if (hasNodeHttpAddress()) {
hash = (37 * hash) + NODE_HTTP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getNodeHttpAddress().hashCode();
}
if (hasExecutionType()) {
hash = (37 * hash) + EXECUTIONTYPE_FIELD_NUMBER;
hash = (53 * hash) + executionType_;
}
if (hasExposedPorts()) {
hash = (37 * hash) + EXPOSED_PORTS_FIELD_NUMBER;
hash = (53 * hash) + getExposedPorts().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ContainerReportProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ContainerReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
getResourceFieldBuilder();
getNodeIdFieldBuilder();
getPriorityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = null;
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (resourceBuilder_ == null) {
resource_ = null;
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (nodeIdBuilder_ == null) {
nodeId_ = null;
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (priorityBuilder_ == null) {
priority_ = null;
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
creationTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
finishTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
diagnosticsInfo_ = "N/A";
bitField0_ = (bitField0_ & ~0x00000040);
logUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
containerExitStatus_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
containerState_ = 1;
bitField0_ = (bitField0_ & ~0x00000200);
nodeHttpAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
executionType_ = 1;
bitField0_ = (bitField0_ & ~0x00000800);
exposedPorts_ = "";
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ContainerReportProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (nodeIdBuilder_ == null) {
result.nodeId_ = nodeId_;
} else {
result.nodeId_ = nodeIdBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (priorityBuilder_ == null) {
result.priority_ = priority_;
} else {
result.priority_ = priorityBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.creationTime_ = creationTime_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.finishTime_ = finishTime_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.diagnosticsInfo_ = diagnosticsInfo_;
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.logUrl_ = logUrl_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.containerExitStatus_ = containerExitStatus_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.containerState_ = containerState_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.nodeHttpAddress_ = nodeHttpAddress_;
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000800;
}
result.executionType_ = executionType_;
if (((from_bitField0_ & 0x00001000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.exposedPorts_ = exposedPorts_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
if (other.hasResource()) {
mergeResource(other.getResource());
}
if (other.hasNodeId()) {
mergeNodeId(other.getNodeId());
}
if (other.hasPriority()) {
mergePriority(other.getPriority());
}
if (other.hasCreationTime()) {
setCreationTime(other.getCreationTime());
}
if (other.hasFinishTime()) {
setFinishTime(other.getFinishTime());
}
if (other.hasDiagnosticsInfo()) {
bitField0_ |= 0x00000040;
diagnosticsInfo_ = other.diagnosticsInfo_;
onChanged();
}
if (other.hasLogUrl()) {
bitField0_ |= 0x00000080;
logUrl_ = other.logUrl_;
onChanged();
}
if (other.hasContainerExitStatus()) {
setContainerExitStatus(other.getContainerExitStatus());
}
if (other.hasContainerState()) {
setContainerState(other.getContainerState());
}
if (other.hasNodeHttpAddress()) {
bitField0_ |= 0x00000400;
nodeHttpAddress_ = other.nodeHttpAddress_;
onChanged();
}
if (other.hasExecutionType()) {
setExecutionType(other.getExecutionType());
}
if (other.hasExposedPorts()) {
bitField0_ |= 0x00001000;
exposedPorts_ = other.exposedPorts_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasResource()) {
if (!getResource().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> containerIdBuilder_;
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public Builder setContainerId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public Builder setContainerId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public Builder mergeContainerId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
containerId_ != null &&
containerId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) {
containerId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = null;
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
}
}
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
getContainerId(),
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> resourceBuilder_;
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
if (resourceBuilder_ == null) {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public Builder setResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public Builder setResource(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public Builder mergeResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
resource_ != null &&
resource_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
resource_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(resource_).mergeFrom(value).buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = null;
onChanged();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : resource_;
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 2;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getResource(),
getParentForChildren(),
isClean());
resource_ = null;
}
return resourceBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
} else {
return nodeIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public Builder setNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeId_ = value;
onChanged();
} else {
nodeIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public Builder setNodeId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder builderForValue) {
if (nodeIdBuilder_ == null) {
nodeId_ = builderForValue.build();
onChanged();
} else {
nodeIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public Builder mergeNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
nodeId_ != null &&
nodeId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
nodeId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
} else {
nodeId_ = value;
}
onChanged();
} else {
nodeIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public Builder clearNodeId() {
if (nodeIdBuilder_ == null) {
nodeId_ = null;
onChanged();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getNodeIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
if (nodeIdBuilder_ != null) {
return nodeIdBuilder_.getMessageOrBuilder();
} else {
return nodeId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto node_id = 3;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>
getNodeIdFieldBuilder() {
if (nodeIdBuilder_ == null) {
nodeIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
getNodeId(),
getParentForChildren(),
isClean());
nodeId_ = null;
}
return nodeIdBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> priorityBuilder_;
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
if (priorityBuilder_ == null) {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
} else {
return priorityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public Builder setPriority(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
priority_ = value;
onChanged();
} else {
priorityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public Builder setPriority(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder builderForValue) {
if (priorityBuilder_ == null) {
priority_ = builderForValue.build();
onChanged();
} else {
priorityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public Builder mergePriority(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
priority_ != null &&
priority_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) {
priority_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder(priority_).mergeFrom(value).buildPartial();
} else {
priority_ = value;
}
onChanged();
} else {
priorityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public Builder clearPriority() {
if (priorityBuilder_ == null) {
priority_ = null;
onChanged();
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getPriorityBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getPriorityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
if (priorityBuilder_ != null) {
return priorityBuilder_.getMessageOrBuilder();
} else {
return priority_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 4;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>
getPriorityFieldBuilder() {
if (priorityBuilder_ == null) {
priorityBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>(
getPriority(),
getParentForChildren(),
isClean());
priority_ = null;
}
return priorityBuilder_;
}
private long creationTime_ ;
/**
* optional int64 creation_time = 5;
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 creation_time = 5;
*/
public long getCreationTime() {
return creationTime_;
}
/**
* optional int64 creation_time = 5;
*/
public Builder setCreationTime(long value) {
bitField0_ |= 0x00000010;
creationTime_ = value;
onChanged();
return this;
}
/**
* optional int64 creation_time = 5;
*/
public Builder clearCreationTime() {
bitField0_ = (bitField0_ & ~0x00000010);
creationTime_ = 0L;
onChanged();
return this;
}
private long finishTime_ ;
/**
* optional int64 finish_time = 6;
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 finish_time = 6;
*/
public long getFinishTime() {
return finishTime_;
}
/**
* optional int64 finish_time = 6;
*/
public Builder setFinishTime(long value) {
bitField0_ |= 0x00000020;
finishTime_ = value;
onChanged();
return this;
}
/**
* optional int64 finish_time = 6;
*/
public Builder clearFinishTime() {
bitField0_ = (bitField0_ & ~0x00000020);
finishTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object diagnosticsInfo_ = "N/A";
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public boolean hasDiagnosticsInfo() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public java.lang.String getDiagnosticsInfo() {
java.lang.Object ref = diagnosticsInfo_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnosticsInfo_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsInfoBytes() {
java.lang.Object ref = diagnosticsInfo_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnosticsInfo_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public Builder setDiagnosticsInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
diagnosticsInfo_ = value;
onChanged();
return this;
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public Builder clearDiagnosticsInfo() {
bitField0_ = (bitField0_ & ~0x00000040);
diagnosticsInfo_ = getDefaultInstance().getDiagnosticsInfo();
onChanged();
return this;
}
/**
* optional string diagnostics_info = 7 [default = "N/A"];
*/
public Builder setDiagnosticsInfoBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
diagnosticsInfo_ = value;
onChanged();
return this;
}
private java.lang.Object logUrl_ = "";
/**
* optional string log_url = 8;
*/
public boolean hasLogUrl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string log_url = 8;
*/
public java.lang.String getLogUrl() {
java.lang.Object ref = logUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
logUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string log_url = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getLogUrlBytes() {
java.lang.Object ref = logUrl_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string log_url = 8;
*/
public Builder setLogUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
logUrl_ = value;
onChanged();
return this;
}
/**
* optional string log_url = 8;
*/
public Builder clearLogUrl() {
bitField0_ = (bitField0_ & ~0x00000080);
logUrl_ = getDefaultInstance().getLogUrl();
onChanged();
return this;
}
/**
* optional string log_url = 8;
*/
public Builder setLogUrlBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
logUrl_ = value;
onChanged();
return this;
}
private int containerExitStatus_ ;
/**
* optional int32 container_exit_status = 9;
*/
public boolean hasContainerExitStatus() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 container_exit_status = 9;
*/
public int getContainerExitStatus() {
return containerExitStatus_;
}
/**
* optional int32 container_exit_status = 9;
*/
public Builder setContainerExitStatus(int value) {
bitField0_ |= 0x00000100;
containerExitStatus_ = value;
onChanged();
return this;
}
/**
* optional int32 container_exit_status = 9;
*/
public Builder clearContainerExitStatus() {
bitField0_ = (bitField0_ & ~0x00000100);
containerExitStatus_ = 0;
onChanged();
return this;
}
private int containerState_ = 1;
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
public boolean hasContainerState() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto getContainerState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.valueOf(containerState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto.C_NEW : result;
}
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
public Builder setContainerState(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
containerState_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ContainerStateProto container_state = 10;
*/
public Builder clearContainerState() {
bitField0_ = (bitField0_ & ~0x00000200);
containerState_ = 1;
onChanged();
return this;
}
private java.lang.Object nodeHttpAddress_ = "";
/**
* optional string node_http_address = 11;
*/
public boolean hasNodeHttpAddress() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string node_http_address = 11;
*/
public java.lang.String getNodeHttpAddress() {
java.lang.Object ref = nodeHttpAddress_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
nodeHttpAddress_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string node_http_address = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeHttpAddressBytes() {
java.lang.Object ref = nodeHttpAddress_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeHttpAddress_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string node_http_address = 11;
*/
public Builder setNodeHttpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
nodeHttpAddress_ = value;
onChanged();
return this;
}
/**
* optional string node_http_address = 11;
*/
public Builder clearNodeHttpAddress() {
bitField0_ = (bitField0_ & ~0x00000400);
nodeHttpAddress_ = getDefaultInstance().getNodeHttpAddress();
onChanged();
return this;
}
/**
* optional string node_http_address = 11;
*/
public Builder setNodeHttpAddressBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
nodeHttpAddress_ = value;
onChanged();
return this;
}
private int executionType_ = 1;
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
public boolean hasExecutionType() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(executionType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED : result;
}
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
public Builder setExecutionType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
executionType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ExecutionTypeProto executionType = 12 [default = GUARANTEED];
*/
public Builder clearExecutionType() {
bitField0_ = (bitField0_ & ~0x00000800);
executionType_ = 1;
onChanged();
return this;
}
private java.lang.Object exposedPorts_ = "";
/**
* optional string exposed_ports = 13;
*/
public boolean hasExposedPorts() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional string exposed_ports = 13;
*/
public java.lang.String getExposedPorts() {
java.lang.Object ref = exposedPorts_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
exposedPorts_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string exposed_ports = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExposedPortsBytes() {
java.lang.Object ref = exposedPorts_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
exposedPorts_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string exposed_ports = 13;
*/
public Builder setExposedPorts(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
exposedPorts_ = value;
onChanged();
return this;
}
/**
* optional string exposed_ports = 13;
*/
public Builder clearExposedPorts() {
bitField0_ = (bitField0_ & ~0x00001000);
exposedPorts_ = getDefaultInstance().getExposedPorts();
onChanged();
return this;
}
/**
* optional string exposed_ports = 13;
*/
public Builder setExposedPortsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
exposedPorts_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ContainerReportProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerReportProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ContainerReportProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ContainerReportProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface URLProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.URLProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional string scheme = 1;
*/
boolean hasScheme();
/**
* optional string scheme = 1;
*/
java.lang.String getScheme();
/**
* optional string scheme = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getSchemeBytes();
/**
* optional string host = 2;
*/
boolean hasHost();
/**
* optional string host = 2;
*/
java.lang.String getHost();
/**
* optional string host = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes();
/**
* optional int32 port = 3;
*/
boolean hasPort();
/**
* optional int32 port = 3;
*/
int getPort();
/**
* optional string file = 4;
*/
boolean hasFile();
/**
* optional string file = 4;
*/
java.lang.String getFile();
/**
* optional string file = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getFileBytes();
/**
* optional string userInfo = 5;
*/
boolean hasUserInfo();
/**
* optional string userInfo = 5;
*/
java.lang.String getUserInfo();
/**
* optional string userInfo = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUserInfoBytes();
}
/**
* Protobuf type {@code hadoop.yarn.URLProto}
*/
public static final class URLProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.URLProto)
URLProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use URLProto.newBuilder() to construct.
private URLProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private URLProto() {
scheme_ = "";
host_ = "";
file_ = "";
userInfo_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private URLProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
scheme_ = bs;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
host_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
port_ = input.readInt32();
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
file_ = bs;
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
userInfo_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_URLProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_URLProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder.class);
}
private int bitField0_;
public static final int SCHEME_FIELD_NUMBER = 1;
private volatile java.lang.Object scheme_;
/**
* optional string scheme = 1;
*/
public boolean hasScheme() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string scheme = 1;
*/
public java.lang.String getScheme() {
java.lang.Object ref = scheme_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
scheme_ = s;
}
return s;
}
}
/**
* optional string scheme = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getSchemeBytes() {
java.lang.Object ref = scheme_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scheme_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int HOST_FIELD_NUMBER = 2;
private volatile java.lang.Object host_;
/**
* optional string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* optional string host = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* optional int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 port = 3;
*/
public int getPort() {
return port_;
}
public static final int FILE_FIELD_NUMBER = 4;
private volatile java.lang.Object file_;
/**
* optional string file = 4;
*/
public boolean hasFile() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string file = 4;
*/
public java.lang.String getFile() {
java.lang.Object ref = file_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
file_ = s;
}
return s;
}
}
/**
* optional string file = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getFileBytes() {
java.lang.Object ref = file_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
file_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int USERINFO_FIELD_NUMBER = 5;
private volatile java.lang.Object userInfo_;
/**
* optional string userInfo = 5;
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string userInfo = 5;
*/
public java.lang.String getUserInfo() {
java.lang.Object ref = userInfo_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
userInfo_ = s;
}
return s;
}
}
/**
* optional string userInfo = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUserInfoBytes() {
java.lang.Object ref = userInfo_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userInfo_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, scheme_);
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, host_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, port_);
}
if (((bitField0_ & 0x00000008) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 4, file_);
}
if (((bitField0_ & 0x00000010) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 5, userInfo_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, scheme_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, host_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(3, port_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(4, file_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(5, userInfo_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto) obj;
if (hasScheme() != other.hasScheme()) return false;
if (hasScheme()) {
if (!getScheme()
.equals(other.getScheme())) return false;
}
if (hasHost() != other.hasHost()) return false;
if (hasHost()) {
if (!getHost()
.equals(other.getHost())) return false;
}
if (hasPort() != other.hasPort()) return false;
if (hasPort()) {
if (getPort()
!= other.getPort()) return false;
}
if (hasFile() != other.hasFile()) return false;
if (hasFile()) {
if (!getFile()
.equals(other.getFile())) return false;
}
if (hasUserInfo() != other.hasUserInfo()) return false;
if (hasUserInfo()) {
if (!getUserInfo()
.equals(other.getUserInfo())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasScheme()) {
hash = (37 * hash) + SCHEME_FIELD_NUMBER;
hash = (53 * hash) + getScheme().hashCode();
}
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
}
if (hasFile()) {
hash = (37 * hash) + FILE_FIELD_NUMBER;
hash = (53 * hash) + getFile().hashCode();
}
if (hasUserInfo()) {
hash = (37 * hash) + USERINFO_FIELD_NUMBER;
hash = (53 * hash) + getUserInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.URLProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.URLProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_URLProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_URLProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
scheme_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
host_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
file_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
userInfo_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_URLProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.scheme_ = scheme_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.port_ = port_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.file_ = file_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.userInfo_ = userInfo_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance()) return this;
if (other.hasScheme()) {
bitField0_ |= 0x00000001;
scheme_ = other.scheme_;
onChanged();
}
if (other.hasHost()) {
bitField0_ |= 0x00000002;
host_ = other.host_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
if (other.hasFile()) {
bitField0_ |= 0x00000008;
file_ = other.file_;
onChanged();
}
if (other.hasUserInfo()) {
bitField0_ |= 0x00000010;
userInfo_ = other.userInfo_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object scheme_ = "";
/**
* optional string scheme = 1;
*/
public boolean hasScheme() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string scheme = 1;
*/
public java.lang.String getScheme() {
java.lang.Object ref = scheme_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
scheme_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string scheme = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getSchemeBytes() {
java.lang.Object ref = scheme_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scheme_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string scheme = 1;
*/
public Builder setScheme(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
scheme_ = value;
onChanged();
return this;
}
/**
* optional string scheme = 1;
*/
public Builder clearScheme() {
bitField0_ = (bitField0_ & ~0x00000001);
scheme_ = getDefaultInstance().getScheme();
onChanged();
return this;
}
/**
* optional string scheme = 1;
*/
public Builder setSchemeBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
scheme_ = value;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* optional string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string host = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string host = 2;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
/**
* optional string host = 2;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000002);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* optional string host = 2;
*/
public Builder setHostBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
private int port_ ;
/**
* optional int32 port = 3;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 port = 3;
*/
public int getPort() {
return port_;
}
/**
* optional int32 port = 3;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000004;
port_ = value;
onChanged();
return this;
}
/**
* optional int32 port = 3;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000004);
port_ = 0;
onChanged();
return this;
}
private java.lang.Object file_ = "";
/**
* optional string file = 4;
*/
public boolean hasFile() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string file = 4;
*/
public java.lang.String getFile() {
java.lang.Object ref = file_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
file_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string file = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getFileBytes() {
java.lang.Object ref = file_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
file_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string file = 4;
*/
public Builder setFile(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
file_ = value;
onChanged();
return this;
}
/**
* optional string file = 4;
*/
public Builder clearFile() {
bitField0_ = (bitField0_ & ~0x00000008);
file_ = getDefaultInstance().getFile();
onChanged();
return this;
}
/**
* optional string file = 4;
*/
public Builder setFileBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
file_ = value;
onChanged();
return this;
}
private java.lang.Object userInfo_ = "";
/**
* optional string userInfo = 5;
*/
public boolean hasUserInfo() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string userInfo = 5;
*/
public java.lang.String getUserInfo() {
java.lang.Object ref = userInfo_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
userInfo_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string userInfo = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUserInfoBytes() {
java.lang.Object ref = userInfo_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userInfo_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string userInfo = 5;
*/
public Builder setUserInfo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
userInfo_ = value;
onChanged();
return this;
}
/**
* optional string userInfo = 5;
*/
public Builder clearUserInfo() {
bitField0_ = (bitField0_ & ~0x00000010);
userInfo_ = getDefaultInstance().getUserInfo();
onChanged();
return this;
}
/**
* optional string userInfo = 5;
*/
public Builder setUserInfoBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
userInfo_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.URLProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.URLProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public URLProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new URLProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LocalResourceProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.LocalResourceProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
boolean hasResource();
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto getResource();
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder getResourceOrBuilder();
/**
* optional int64 size = 2;
*/
boolean hasSize();
/**
* optional int64 size = 2;
*/
long getSize();
/**
* optional int64 timestamp = 3;
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 3;
*/
long getTimestamp();
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
boolean hasType();
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto getType();
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
boolean hasVisibility();
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto getVisibility();
/**
* optional string pattern = 6;
*/
boolean hasPattern();
/**
* optional string pattern = 6;
*/
java.lang.String getPattern();
/**
* optional string pattern = 6;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getPatternBytes();
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
boolean hasShouldBeUploadedToSharedCache();
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
boolean getShouldBeUploadedToSharedCache();
}
/**
* Protobuf type {@code hadoop.yarn.LocalResourceProto}
*/
public static final class LocalResourceProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.LocalResourceProto)
LocalResourceProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LocalResourceProto.newBuilder() to construct.
private LocalResourceProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LocalResourceProto() {
type_ = 1;
visibility_ = 1;
pattern_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LocalResourceProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
size_ = input.readInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
timestamp_ = input.readInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
type_ = rawValue;
}
break;
}
case 40: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
bitField0_ |= 0x00000010;
visibility_ = rawValue;
}
break;
}
case 50: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
pattern_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
shouldBeUploadedToSharedCache_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_LocalResourceProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_LocalResourceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto resource_;
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto getResource() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance() : resource_;
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder getResourceOrBuilder() {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance() : resource_;
}
public static final int SIZE_FIELD_NUMBER = 2;
private long size_;
/**
* optional int64 size = 2;
*/
public boolean hasSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 size = 2;
*/
public long getSize() {
return size_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_;
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto getType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto.valueOf(type_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto.ARCHIVE : result;
}
public static final int VISIBILITY_FIELD_NUMBER = 5;
private int visibility_;
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
public boolean hasVisibility() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto getVisibility() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto.valueOf(visibility_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto.PUBLIC : result;
}
public static final int PATTERN_FIELD_NUMBER = 6;
private volatile java.lang.Object pattern_;
/**
* optional string pattern = 6;
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string pattern = 6;
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pattern_ = s;
}
return s;
}
}
/**
* optional string pattern = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int SHOULD_BE_UPLOADED_TO_SHARED_CACHE_FIELD_NUMBER = 7;
private boolean shouldBeUploadedToSharedCache_;
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
public boolean hasShouldBeUploadedToSharedCache() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
public boolean getShouldBeUploadedToSharedCache() {
return shouldBeUploadedToSharedCache_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getResource());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, size_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(4, type_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(5, visibility_);
}
if (((bitField0_ & 0x00000020) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 6, pattern_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, shouldBeUploadedToSharedCache_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getResource());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(2, size_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(4, type_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(5, visibility_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(6, pattern_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteBoolSize(7, shouldBeUploadedToSharedCache_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto) obj;
if (hasResource() != other.hasResource()) return false;
if (hasResource()) {
if (!getResource()
.equals(other.getResource())) return false;
}
if (hasSize() != other.hasSize()) return false;
if (hasSize()) {
if (getSize()
!= other.getSize()) return false;
}
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (getTimestamp()
!= other.getTimestamp()) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasVisibility() != other.hasVisibility()) return false;
if (hasVisibility()) {
if (visibility_ != other.visibility_) return false;
}
if (hasPattern() != other.hasPattern()) return false;
if (hasPattern()) {
if (!getPattern()
.equals(other.getPattern())) return false;
}
if (hasShouldBeUploadedToSharedCache() != other.hasShouldBeUploadedToSharedCache()) return false;
if (hasShouldBeUploadedToSharedCache()) {
if (getShouldBeUploadedToSharedCache()
!= other.getShouldBeUploadedToSharedCache()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
if (hasSize()) {
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getSize());
}
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getTimestamp());
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasVisibility()) {
hash = (37 * hash) + VISIBILITY_FIELD_NUMBER;
hash = (53 * hash) + visibility_;
}
if (hasPattern()) {
hash = (37 * hash) + PATTERN_FIELD_NUMBER;
hash = (53 * hash) + getPattern().hashCode();
}
if (hasShouldBeUploadedToSharedCache()) {
hash = (37 * hash) + SHOULD_BE_UPLOADED_TO_SHARED_CACHE_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashBoolean(
getShouldBeUploadedToSharedCache());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.LocalResourceProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.LocalResourceProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_LocalResourceProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_LocalResourceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResourceFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resourceBuilder_ == null) {
resource_ = null;
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
size_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 1;
bitField0_ = (bitField0_ & ~0x00000008);
visibility_ = 1;
bitField0_ = (bitField0_ & ~0x00000010);
pattern_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
shouldBeUploadedToSharedCache_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_LocalResourceProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.size_ = size_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.visibility_ = visibility_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.pattern_ = pattern_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.shouldBeUploadedToSharedCache_ = shouldBeUploadedToSharedCache_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto.getDefaultInstance()) return this;
if (other.hasResource()) {
mergeResource(other.getResource());
}
if (other.hasSize()) {
setSize(other.getSize());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasVisibility()) {
setVisibility(other.getVisibility());
}
if (other.hasPattern()) {
bitField0_ |= 0x00000020;
pattern_ = other.pattern_;
onChanged();
}
if (other.hasShouldBeUploadedToSharedCache()) {
setShouldBeUploadedToSharedCache(other.getShouldBeUploadedToSharedCache());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto resource_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder> resourceBuilder_;
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto getResource() {
if (resourceBuilder_ == null) {
return resource_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance() : resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public Builder setResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public Builder setResource(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public Builder mergeResource(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto value) {
if (resourceBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
resource_ != null &&
resource_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance()) {
resource_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.newBuilder(resource_).mergeFrom(value).buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = null;
onChanged();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder getResourceBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.getDefaultInstance() : resource_;
}
}
/**
* optional .hadoop.yarn.URLProto resource = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.URLProtoOrBuilder>(
getResource(),
getParentForChildren(),
isClean());
resource_ = null;
}
return resourceBuilder_;
}
private long size_ ;
/**
* optional int64 size = 2;
*/
public boolean hasSize() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 size = 2;
*/
public long getSize() {
return size_;
}
/**
* optional int64 size = 2;
*/
public Builder setSize(long value) {
bitField0_ |= 0x00000002;
size_ = value;
onChanged();
return this;
}
/**
* optional int64 size = 2;
*/
public Builder clearSize() {
bitField0_ = (bitField0_ & ~0x00000002);
size_ = 0L;
onChanged();
return this;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 3;
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 timestamp = 3;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
private int type_ = 1;
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto getType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto.valueOf(type_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto.ARCHIVE : result;
}
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
public Builder setType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.LocalResourceTypeProto type = 4;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 1;
onChanged();
return this;
}
private int visibility_ = 1;
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
public boolean hasVisibility() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto getVisibility() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto.valueOf(visibility_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto.PUBLIC : result;
}
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
public Builder setVisibility(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
visibility_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.LocalResourceVisibilityProto visibility = 5;
*/
public Builder clearVisibility() {
bitField0_ = (bitField0_ & ~0x00000010);
visibility_ = 1;
onChanged();
return this;
}
private java.lang.Object pattern_ = "";
/**
* optional string pattern = 6;
*/
public boolean hasPattern() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string pattern = 6;
*/
public java.lang.String getPattern() {
java.lang.Object ref = pattern_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
pattern_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string pattern = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getPatternBytes() {
java.lang.Object ref = pattern_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pattern_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string pattern = 6;
*/
public Builder setPattern(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
pattern_ = value;
onChanged();
return this;
}
/**
* optional string pattern = 6;
*/
public Builder clearPattern() {
bitField0_ = (bitField0_ & ~0x00000020);
pattern_ = getDefaultInstance().getPattern();
onChanged();
return this;
}
/**
* optional string pattern = 6;
*/
public Builder setPatternBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
pattern_ = value;
onChanged();
return this;
}
private boolean shouldBeUploadedToSharedCache_ ;
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
public boolean hasShouldBeUploadedToSharedCache() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
public boolean getShouldBeUploadedToSharedCache() {
return shouldBeUploadedToSharedCache_;
}
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
public Builder setShouldBeUploadedToSharedCache(boolean value) {
bitField0_ |= 0x00000040;
shouldBeUploadedToSharedCache_ = value;
onChanged();
return this;
}
/**
* optional bool should_be_uploaded_to_shared_cache = 7;
*/
public Builder clearShouldBeUploadedToSharedCache() {
bitField0_ = (bitField0_ & ~0x00000040);
shouldBeUploadedToSharedCache_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.LocalResourceProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.LocalResourceProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public LocalResourceProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new LocalResourceProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringLongMapProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.StringLongMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required string key = 1;
*/
boolean hasKey();
/**
* required string key = 1;
*/
java.lang.String getKey();
/**
* required string key = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes();
/**
* required int64 value = 2;
*/
boolean hasValue();
/**
* required int64 value = 2;
*/
long getValue();
}
/**
* Protobuf type {@code hadoop.yarn.StringLongMapProto}
*/
public static final class StringLongMapProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.StringLongMapProto)
StringLongMapProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringLongMapProto.newBuilder() to construct.
private StringLongMapProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringLongMapProto() {
key_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringLongMapProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
key_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
value_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringLongMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringLongMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* required string key = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private long value_;
/**
* required int64 value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int64 value = 2;
*/
public long getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (getValue()
!= other.getValue()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getValue());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.StringLongMapProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.StringLongMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringLongMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringLongMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringLongMapProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string key = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* required string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder setKeyBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private long value_ ;
/**
* required int64 value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int64 value = 2;
*/
public long getValue() {
return value_;
}
/**
* required int64 value = 2;
*/
public Builder setValue(long value) {
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* required int64 value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.StringLongMapProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.StringLongMapProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public StringLongMapProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new StringLongMapProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StringFloatMapProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.StringFloatMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required string key = 1;
*/
boolean hasKey();
/**
* required string key = 1;
*/
java.lang.String getKey();
/**
* required string key = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes();
/**
* required float value = 2;
*/
boolean hasValue();
/**
* required float value = 2;
*/
float getValue();
}
/**
* Protobuf type {@code hadoop.yarn.StringFloatMapProto}
*/
public static final class StringFloatMapProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.StringFloatMapProto)
StringFloatMapProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringFloatMapProto.newBuilder() to construct.
private StringFloatMapProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringFloatMapProto() {
key_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringFloatMapProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
key_ = bs;
break;
}
case 21: {
bitField0_ |= 0x00000002;
value_ = input.readFloat();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringFloatMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringFloatMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* required string key = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private float value_;
/**
* required float value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required float value = 2;
*/
public float getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeFloat(2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteFloatSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (java.lang.Float.floatToIntBits(getValue())
!= java.lang.Float.floatToIntBits(
other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getValue());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.StringFloatMapProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.StringFloatMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringFloatMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringFloatMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0F;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_StringFloatMapProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto.getDefaultInstance()) return this;
if (other.hasKey()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* required string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string key = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* required string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* required string key = 1;
*/
public Builder setKeyBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private float value_ ;
/**
* required float value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required float value = 2;
*/
public float getValue() {
return value_;
}
/**
* required float value = 2;
*/
public Builder setValue(float value) {
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* required float value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = 0F;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.StringFloatMapProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.StringFloatMapProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public StringFloatMapProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new StringFloatMapProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringFloatMapProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationResourceUsageReportProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ApplicationResourceUsageReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional int32 num_used_containers = 1;
*/
boolean hasNumUsedContainers();
/**
* optional int32 num_used_containers = 1;
*/
int getNumUsedContainers();
/**
* optional int32 num_reserved_containers = 2;
*/
boolean hasNumReservedContainers();
/**
* optional int32 num_reserved_containers = 2;
*/
int getNumReservedContainers();
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
boolean hasUsedResources();
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getUsedResources();
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getUsedResourcesOrBuilder();
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
boolean hasReservedResources();
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getReservedResources();
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getReservedResourcesOrBuilder();
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
boolean hasNeededResources();
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getNeededResources();
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getNeededResourcesOrBuilder();
/**
* optional int64 memory_seconds = 6;
*/
boolean hasMemorySeconds();
/**
* optional int64 memory_seconds = 6;
*/
long getMemorySeconds();
/**
* optional int64 vcore_seconds = 7;
*/
boolean hasVcoreSeconds();
/**
* optional int64 vcore_seconds = 7;
*/
long getVcoreSeconds();
/**
* optional float queue_usage_percentage = 8;
*/
boolean hasQueueUsagePercentage();
/**
* optional float queue_usage_percentage = 8;
*/
float getQueueUsagePercentage();
/**
* optional float cluster_usage_percentage = 9;
*/
boolean hasClusterUsagePercentage();
/**
* optional float cluster_usage_percentage = 9;
*/
float getClusterUsagePercentage();
/**
* optional int64 preempted_memory_seconds = 10;
*/
boolean hasPreemptedMemorySeconds();
/**
* optional int64 preempted_memory_seconds = 10;
*/
long getPreemptedMemorySeconds();
/**
* optional int64 preempted_vcore_seconds = 11;
*/
boolean hasPreemptedVcoreSeconds();
/**
* optional int64 preempted_vcore_seconds = 11;
*/
long getPreemptedVcoreSeconds();
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
java.util.List
getApplicationResourceUsageMapList();
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getApplicationResourceUsageMap(int index);
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
int getApplicationResourceUsageMapCount();
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationResourceUsageMapOrBuilderList();
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder getApplicationResourceUsageMapOrBuilder(
int index);
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
java.util.List
getApplicationPreemptedResourceUsageMapList();
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getApplicationPreemptedResourceUsageMap(int index);
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
int getApplicationPreemptedResourceUsageMapCount();
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationPreemptedResourceUsageMapOrBuilderList();
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder getApplicationPreemptedResourceUsageMapOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationResourceUsageReportProto}
*/
public static final class ApplicationResourceUsageReportProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ApplicationResourceUsageReportProto)
ApplicationResourceUsageReportProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationResourceUsageReportProto.newBuilder() to construct.
private ApplicationResourceUsageReportProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationResourceUsageReportProto() {
applicationResourceUsageMap_ = java.util.Collections.emptyList();
applicationPreemptedResourceUsageMap_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationResourceUsageReportProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
numUsedContainers_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
numReservedContainers_ = input.readInt32();
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = usedResources_.toBuilder();
}
usedResources_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(usedResources_);
usedResources_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = reservedResources_.toBuilder();
}
reservedResources_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reservedResources_);
reservedResources_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = neededResources_.toBuilder();
}
neededResources_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(neededResources_);
neededResources_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 48: {
bitField0_ |= 0x00000020;
memorySeconds_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000040;
vcoreSeconds_ = input.readInt64();
break;
}
case 69: {
bitField0_ |= 0x00000080;
queueUsagePercentage_ = input.readFloat();
break;
}
case 77: {
bitField0_ |= 0x00000100;
clusterUsagePercentage_ = input.readFloat();
break;
}
case 80: {
bitField0_ |= 0x00000200;
preemptedMemorySeconds_ = input.readInt64();
break;
}
case 88: {
bitField0_ |= 0x00000400;
preemptedVcoreSeconds_ = input.readInt64();
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000800) != 0)) {
applicationResourceUsageMap_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
applicationResourceUsageMap_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.PARSER, extensionRegistry));
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00001000) != 0)) {
applicationPreemptedResourceUsageMap_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
applicationPreemptedResourceUsageMap_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000800) != 0)) {
applicationResourceUsageMap_ = java.util.Collections.unmodifiableList(applicationResourceUsageMap_);
}
if (((mutable_bitField0_ & 0x00001000) != 0)) {
applicationPreemptedResourceUsageMap_ = java.util.Collections.unmodifiableList(applicationPreemptedResourceUsageMap_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationResourceUsageReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationResourceUsageReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder.class);
}
private int bitField0_;
public static final int NUM_USED_CONTAINERS_FIELD_NUMBER = 1;
private int numUsedContainers_;
/**
* optional int32 num_used_containers = 1;
*/
public boolean hasNumUsedContainers() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 num_used_containers = 1;
*/
public int getNumUsedContainers() {
return numUsedContainers_;
}
public static final int NUM_RESERVED_CONTAINERS_FIELD_NUMBER = 2;
private int numReservedContainers_;
/**
* optional int32 num_reserved_containers = 2;
*/
public boolean hasNumReservedContainers() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 num_reserved_containers = 2;
*/
public int getNumReservedContainers() {
return numReservedContainers_;
}
public static final int USED_RESOURCES_FIELD_NUMBER = 3;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto usedResources_;
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public boolean hasUsedResources() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getUsedResources() {
return usedResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : usedResources_;
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getUsedResourcesOrBuilder() {
return usedResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : usedResources_;
}
public static final int RESERVED_RESOURCES_FIELD_NUMBER = 4;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto reservedResources_;
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public boolean hasReservedResources() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getReservedResources() {
return reservedResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : reservedResources_;
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getReservedResourcesOrBuilder() {
return reservedResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : reservedResources_;
}
public static final int NEEDED_RESOURCES_FIELD_NUMBER = 5;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto neededResources_;
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public boolean hasNeededResources() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getNeededResources() {
return neededResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : neededResources_;
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getNeededResourcesOrBuilder() {
return neededResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : neededResources_;
}
public static final int MEMORY_SECONDS_FIELD_NUMBER = 6;
private long memorySeconds_;
/**
* optional int64 memory_seconds = 6;
*/
public boolean hasMemorySeconds() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 memory_seconds = 6;
*/
public long getMemorySeconds() {
return memorySeconds_;
}
public static final int VCORE_SECONDS_FIELD_NUMBER = 7;
private long vcoreSeconds_;
/**
* optional int64 vcore_seconds = 7;
*/
public boolean hasVcoreSeconds() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 vcore_seconds = 7;
*/
public long getVcoreSeconds() {
return vcoreSeconds_;
}
public static final int QUEUE_USAGE_PERCENTAGE_FIELD_NUMBER = 8;
private float queueUsagePercentage_;
/**
* optional float queue_usage_percentage = 8;
*/
public boolean hasQueueUsagePercentage() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional float queue_usage_percentage = 8;
*/
public float getQueueUsagePercentage() {
return queueUsagePercentage_;
}
public static final int CLUSTER_USAGE_PERCENTAGE_FIELD_NUMBER = 9;
private float clusterUsagePercentage_;
/**
* optional float cluster_usage_percentage = 9;
*/
public boolean hasClusterUsagePercentage() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional float cluster_usage_percentage = 9;
*/
public float getClusterUsagePercentage() {
return clusterUsagePercentage_;
}
public static final int PREEMPTED_MEMORY_SECONDS_FIELD_NUMBER = 10;
private long preemptedMemorySeconds_;
/**
* optional int64 preempted_memory_seconds = 10;
*/
public boolean hasPreemptedMemorySeconds() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 preempted_memory_seconds = 10;
*/
public long getPreemptedMemorySeconds() {
return preemptedMemorySeconds_;
}
public static final int PREEMPTED_VCORE_SECONDS_FIELD_NUMBER = 11;
private long preemptedVcoreSeconds_;
/**
* optional int64 preempted_vcore_seconds = 11;
*/
public boolean hasPreemptedVcoreSeconds() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int64 preempted_vcore_seconds = 11;
*/
public long getPreemptedVcoreSeconds() {
return preemptedVcoreSeconds_;
}
public static final int APPLICATION_RESOURCE_USAGE_MAP_FIELD_NUMBER = 12;
private java.util.List applicationResourceUsageMap_;
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public java.util.List getApplicationResourceUsageMapList() {
return applicationResourceUsageMap_;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationResourceUsageMapOrBuilderList() {
return applicationResourceUsageMap_;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public int getApplicationResourceUsageMapCount() {
return applicationResourceUsageMap_.size();
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getApplicationResourceUsageMap(int index) {
return applicationResourceUsageMap_.get(index);
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder getApplicationResourceUsageMapOrBuilder(
int index) {
return applicationResourceUsageMap_.get(index);
}
public static final int APPLICATION_PREEMPTED_RESOURCE_USAGE_MAP_FIELD_NUMBER = 13;
private java.util.List applicationPreemptedResourceUsageMap_;
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public java.util.List getApplicationPreemptedResourceUsageMapList() {
return applicationPreemptedResourceUsageMap_;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationPreemptedResourceUsageMapOrBuilderList() {
return applicationPreemptedResourceUsageMap_;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public int getApplicationPreemptedResourceUsageMapCount() {
return applicationPreemptedResourceUsageMap_.size();
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getApplicationPreemptedResourceUsageMap(int index) {
return applicationPreemptedResourceUsageMap_.get(index);
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder getApplicationPreemptedResourceUsageMapOrBuilder(
int index) {
return applicationPreemptedResourceUsageMap_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasUsedResources()) {
if (!getUsedResources().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasReservedResources()) {
if (!getReservedResources().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasNeededResources()) {
if (!getNeededResources().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getApplicationResourceUsageMapCount(); i++) {
if (!getApplicationResourceUsageMap(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getApplicationPreemptedResourceUsageMapCount(); i++) {
if (!getApplicationPreemptedResourceUsageMap(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, numUsedContainers_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, numReservedContainers_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getUsedResources());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getReservedResources());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getNeededResources());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(6, memorySeconds_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(7, vcoreSeconds_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeFloat(8, queueUsagePercentage_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeFloat(9, clusterUsagePercentage_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(10, preemptedMemorySeconds_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt64(11, preemptedVcoreSeconds_);
}
for (int i = 0; i < applicationResourceUsageMap_.size(); i++) {
output.writeMessage(12, applicationResourceUsageMap_.get(i));
}
for (int i = 0; i < applicationPreemptedResourceUsageMap_.size(); i++) {
output.writeMessage(13, applicationPreemptedResourceUsageMap_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(1, numUsedContainers_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(2, numReservedContainers_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(3, getUsedResources());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(4, getReservedResources());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(5, getNeededResources());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(6, memorySeconds_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(7, vcoreSeconds_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteFloatSize(8, queueUsagePercentage_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteFloatSize(9, clusterUsagePercentage_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(10, preemptedMemorySeconds_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(11, preemptedVcoreSeconds_);
}
for (int i = 0; i < applicationResourceUsageMap_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(12, applicationResourceUsageMap_.get(i));
}
for (int i = 0; i < applicationPreemptedResourceUsageMap_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(13, applicationPreemptedResourceUsageMap_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto) obj;
if (hasNumUsedContainers() != other.hasNumUsedContainers()) return false;
if (hasNumUsedContainers()) {
if (getNumUsedContainers()
!= other.getNumUsedContainers()) return false;
}
if (hasNumReservedContainers() != other.hasNumReservedContainers()) return false;
if (hasNumReservedContainers()) {
if (getNumReservedContainers()
!= other.getNumReservedContainers()) return false;
}
if (hasUsedResources() != other.hasUsedResources()) return false;
if (hasUsedResources()) {
if (!getUsedResources()
.equals(other.getUsedResources())) return false;
}
if (hasReservedResources() != other.hasReservedResources()) return false;
if (hasReservedResources()) {
if (!getReservedResources()
.equals(other.getReservedResources())) return false;
}
if (hasNeededResources() != other.hasNeededResources()) return false;
if (hasNeededResources()) {
if (!getNeededResources()
.equals(other.getNeededResources())) return false;
}
if (hasMemorySeconds() != other.hasMemorySeconds()) return false;
if (hasMemorySeconds()) {
if (getMemorySeconds()
!= other.getMemorySeconds()) return false;
}
if (hasVcoreSeconds() != other.hasVcoreSeconds()) return false;
if (hasVcoreSeconds()) {
if (getVcoreSeconds()
!= other.getVcoreSeconds()) return false;
}
if (hasQueueUsagePercentage() != other.hasQueueUsagePercentage()) return false;
if (hasQueueUsagePercentage()) {
if (java.lang.Float.floatToIntBits(getQueueUsagePercentage())
!= java.lang.Float.floatToIntBits(
other.getQueueUsagePercentage())) return false;
}
if (hasClusterUsagePercentage() != other.hasClusterUsagePercentage()) return false;
if (hasClusterUsagePercentage()) {
if (java.lang.Float.floatToIntBits(getClusterUsagePercentage())
!= java.lang.Float.floatToIntBits(
other.getClusterUsagePercentage())) return false;
}
if (hasPreemptedMemorySeconds() != other.hasPreemptedMemorySeconds()) return false;
if (hasPreemptedMemorySeconds()) {
if (getPreemptedMemorySeconds()
!= other.getPreemptedMemorySeconds()) return false;
}
if (hasPreemptedVcoreSeconds() != other.hasPreemptedVcoreSeconds()) return false;
if (hasPreemptedVcoreSeconds()) {
if (getPreemptedVcoreSeconds()
!= other.getPreemptedVcoreSeconds()) return false;
}
if (!getApplicationResourceUsageMapList()
.equals(other.getApplicationResourceUsageMapList())) return false;
if (!getApplicationPreemptedResourceUsageMapList()
.equals(other.getApplicationPreemptedResourceUsageMapList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNumUsedContainers()) {
hash = (37 * hash) + NUM_USED_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getNumUsedContainers();
}
if (hasNumReservedContainers()) {
hash = (37 * hash) + NUM_RESERVED_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getNumReservedContainers();
}
if (hasUsedResources()) {
hash = (37 * hash) + USED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getUsedResources().hashCode();
}
if (hasReservedResources()) {
hash = (37 * hash) + RESERVED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getReservedResources().hashCode();
}
if (hasNeededResources()) {
hash = (37 * hash) + NEEDED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getNeededResources().hashCode();
}
if (hasMemorySeconds()) {
hash = (37 * hash) + MEMORY_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getMemorySeconds());
}
if (hasVcoreSeconds()) {
hash = (37 * hash) + VCORE_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getVcoreSeconds());
}
if (hasQueueUsagePercentage()) {
hash = (37 * hash) + QUEUE_USAGE_PERCENTAGE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getQueueUsagePercentage());
}
if (hasClusterUsagePercentage()) {
hash = (37 * hash) + CLUSTER_USAGE_PERCENTAGE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getClusterUsagePercentage());
}
if (hasPreemptedMemorySeconds()) {
hash = (37 * hash) + PREEMPTED_MEMORY_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getPreemptedMemorySeconds());
}
if (hasPreemptedVcoreSeconds()) {
hash = (37 * hash) + PREEMPTED_VCORE_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getPreemptedVcoreSeconds());
}
if (getApplicationResourceUsageMapCount() > 0) {
hash = (37 * hash) + APPLICATION_RESOURCE_USAGE_MAP_FIELD_NUMBER;
hash = (53 * hash) + getApplicationResourceUsageMapList().hashCode();
}
if (getApplicationPreemptedResourceUsageMapCount() > 0) {
hash = (37 * hash) + APPLICATION_PREEMPTED_RESOURCE_USAGE_MAP_FIELD_NUMBER;
hash = (53 * hash) + getApplicationPreemptedResourceUsageMapList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationResourceUsageReportProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ApplicationResourceUsageReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationResourceUsageReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationResourceUsageReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUsedResourcesFieldBuilder();
getReservedResourcesFieldBuilder();
getNeededResourcesFieldBuilder();
getApplicationResourceUsageMapFieldBuilder();
getApplicationPreemptedResourceUsageMapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
numUsedContainers_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
numReservedContainers_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (usedResourcesBuilder_ == null) {
usedResources_ = null;
} else {
usedResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (reservedResourcesBuilder_ == null) {
reservedResources_ = null;
} else {
reservedResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (neededResourcesBuilder_ == null) {
neededResources_ = null;
} else {
neededResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
memorySeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
vcoreSeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
queueUsagePercentage_ = 0F;
bitField0_ = (bitField0_ & ~0x00000080);
clusterUsagePercentage_ = 0F;
bitField0_ = (bitField0_ & ~0x00000100);
preemptedMemorySeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
preemptedVcoreSeconds_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
if (applicationResourceUsageMapBuilder_ == null) {
applicationResourceUsageMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
} else {
applicationResourceUsageMapBuilder_.clear();
}
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
applicationPreemptedResourceUsageMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
} else {
applicationPreemptedResourceUsageMapBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationResourceUsageReportProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.numUsedContainers_ = numUsedContainers_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.numReservedContainers_ = numReservedContainers_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (usedResourcesBuilder_ == null) {
result.usedResources_ = usedResources_;
} else {
result.usedResources_ = usedResourcesBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (reservedResourcesBuilder_ == null) {
result.reservedResources_ = reservedResources_;
} else {
result.reservedResources_ = reservedResourcesBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (neededResourcesBuilder_ == null) {
result.neededResources_ = neededResources_;
} else {
result.neededResources_ = neededResourcesBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.memorySeconds_ = memorySeconds_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.vcoreSeconds_ = vcoreSeconds_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.queueUsagePercentage_ = queueUsagePercentage_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.clusterUsagePercentage_ = clusterUsagePercentage_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.preemptedMemorySeconds_ = preemptedMemorySeconds_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.preemptedVcoreSeconds_ = preemptedVcoreSeconds_;
to_bitField0_ |= 0x00000400;
}
if (applicationResourceUsageMapBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
applicationResourceUsageMap_ = java.util.Collections.unmodifiableList(applicationResourceUsageMap_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.applicationResourceUsageMap_ = applicationResourceUsageMap_;
} else {
result.applicationResourceUsageMap_ = applicationResourceUsageMapBuilder_.build();
}
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
applicationPreemptedResourceUsageMap_ = java.util.Collections.unmodifiableList(applicationPreemptedResourceUsageMap_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.applicationPreemptedResourceUsageMap_ = applicationPreemptedResourceUsageMap_;
} else {
result.applicationPreemptedResourceUsageMap_ = applicationPreemptedResourceUsageMapBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance()) return this;
if (other.hasNumUsedContainers()) {
setNumUsedContainers(other.getNumUsedContainers());
}
if (other.hasNumReservedContainers()) {
setNumReservedContainers(other.getNumReservedContainers());
}
if (other.hasUsedResources()) {
mergeUsedResources(other.getUsedResources());
}
if (other.hasReservedResources()) {
mergeReservedResources(other.getReservedResources());
}
if (other.hasNeededResources()) {
mergeNeededResources(other.getNeededResources());
}
if (other.hasMemorySeconds()) {
setMemorySeconds(other.getMemorySeconds());
}
if (other.hasVcoreSeconds()) {
setVcoreSeconds(other.getVcoreSeconds());
}
if (other.hasQueueUsagePercentage()) {
setQueueUsagePercentage(other.getQueueUsagePercentage());
}
if (other.hasClusterUsagePercentage()) {
setClusterUsagePercentage(other.getClusterUsagePercentage());
}
if (other.hasPreemptedMemorySeconds()) {
setPreemptedMemorySeconds(other.getPreemptedMemorySeconds());
}
if (other.hasPreemptedVcoreSeconds()) {
setPreemptedVcoreSeconds(other.getPreemptedVcoreSeconds());
}
if (applicationResourceUsageMapBuilder_ == null) {
if (!other.applicationResourceUsageMap_.isEmpty()) {
if (applicationResourceUsageMap_.isEmpty()) {
applicationResourceUsageMap_ = other.applicationResourceUsageMap_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.addAll(other.applicationResourceUsageMap_);
}
onChanged();
}
} else {
if (!other.applicationResourceUsageMap_.isEmpty()) {
if (applicationResourceUsageMapBuilder_.isEmpty()) {
applicationResourceUsageMapBuilder_.dispose();
applicationResourceUsageMapBuilder_ = null;
applicationResourceUsageMap_ = other.applicationResourceUsageMap_;
bitField0_ = (bitField0_ & ~0x00000800);
applicationResourceUsageMapBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getApplicationResourceUsageMapFieldBuilder() : null;
} else {
applicationResourceUsageMapBuilder_.addAllMessages(other.applicationResourceUsageMap_);
}
}
}
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
if (!other.applicationPreemptedResourceUsageMap_.isEmpty()) {
if (applicationPreemptedResourceUsageMap_.isEmpty()) {
applicationPreemptedResourceUsageMap_ = other.applicationPreemptedResourceUsageMap_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.addAll(other.applicationPreemptedResourceUsageMap_);
}
onChanged();
}
} else {
if (!other.applicationPreemptedResourceUsageMap_.isEmpty()) {
if (applicationPreemptedResourceUsageMapBuilder_.isEmpty()) {
applicationPreemptedResourceUsageMapBuilder_.dispose();
applicationPreemptedResourceUsageMapBuilder_ = null;
applicationPreemptedResourceUsageMap_ = other.applicationPreemptedResourceUsageMap_;
bitField0_ = (bitField0_ & ~0x00001000);
applicationPreemptedResourceUsageMapBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getApplicationPreemptedResourceUsageMapFieldBuilder() : null;
} else {
applicationPreemptedResourceUsageMapBuilder_.addAllMessages(other.applicationPreemptedResourceUsageMap_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasUsedResources()) {
if (!getUsedResources().isInitialized()) {
return false;
}
}
if (hasReservedResources()) {
if (!getReservedResources().isInitialized()) {
return false;
}
}
if (hasNeededResources()) {
if (!getNeededResources().isInitialized()) {
return false;
}
}
for (int i = 0; i < getApplicationResourceUsageMapCount(); i++) {
if (!getApplicationResourceUsageMap(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getApplicationPreemptedResourceUsageMapCount(); i++) {
if (!getApplicationPreemptedResourceUsageMap(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int numUsedContainers_ ;
/**
* optional int32 num_used_containers = 1;
*/
public boolean hasNumUsedContainers() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 num_used_containers = 1;
*/
public int getNumUsedContainers() {
return numUsedContainers_;
}
/**
* optional int32 num_used_containers = 1;
*/
public Builder setNumUsedContainers(int value) {
bitField0_ |= 0x00000001;
numUsedContainers_ = value;
onChanged();
return this;
}
/**
* optional int32 num_used_containers = 1;
*/
public Builder clearNumUsedContainers() {
bitField0_ = (bitField0_ & ~0x00000001);
numUsedContainers_ = 0;
onChanged();
return this;
}
private int numReservedContainers_ ;
/**
* optional int32 num_reserved_containers = 2;
*/
public boolean hasNumReservedContainers() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 num_reserved_containers = 2;
*/
public int getNumReservedContainers() {
return numReservedContainers_;
}
/**
* optional int32 num_reserved_containers = 2;
*/
public Builder setNumReservedContainers(int value) {
bitField0_ |= 0x00000002;
numReservedContainers_ = value;
onChanged();
return this;
}
/**
* optional int32 num_reserved_containers = 2;
*/
public Builder clearNumReservedContainers() {
bitField0_ = (bitField0_ & ~0x00000002);
numReservedContainers_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto usedResources_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> usedResourcesBuilder_;
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public boolean hasUsedResources() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getUsedResources() {
if (usedResourcesBuilder_ == null) {
return usedResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : usedResources_;
} else {
return usedResourcesBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public Builder setUsedResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (usedResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
usedResources_ = value;
onChanged();
} else {
usedResourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public Builder setUsedResources(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (usedResourcesBuilder_ == null) {
usedResources_ = builderForValue.build();
onChanged();
} else {
usedResourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public Builder mergeUsedResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (usedResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
usedResources_ != null &&
usedResources_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
usedResources_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(usedResources_).mergeFrom(value).buildPartial();
} else {
usedResources_ = value;
}
onChanged();
} else {
usedResourcesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public Builder clearUsedResources() {
if (usedResourcesBuilder_ == null) {
usedResources_ = null;
onChanged();
} else {
usedResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getUsedResourcesBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getUsedResourcesFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getUsedResourcesOrBuilder() {
if (usedResourcesBuilder_ != null) {
return usedResourcesBuilder_.getMessageOrBuilder();
} else {
return usedResources_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : usedResources_;
}
}
/**
* optional .hadoop.yarn.ResourceProto used_resources = 3;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getUsedResourcesFieldBuilder() {
if (usedResourcesBuilder_ == null) {
usedResourcesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getUsedResources(),
getParentForChildren(),
isClean());
usedResources_ = null;
}
return usedResourcesBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto reservedResources_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> reservedResourcesBuilder_;
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public boolean hasReservedResources() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getReservedResources() {
if (reservedResourcesBuilder_ == null) {
return reservedResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : reservedResources_;
} else {
return reservedResourcesBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public Builder setReservedResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (reservedResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reservedResources_ = value;
onChanged();
} else {
reservedResourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public Builder setReservedResources(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (reservedResourcesBuilder_ == null) {
reservedResources_ = builderForValue.build();
onChanged();
} else {
reservedResourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public Builder mergeReservedResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (reservedResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
reservedResources_ != null &&
reservedResources_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
reservedResources_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(reservedResources_).mergeFrom(value).buildPartial();
} else {
reservedResources_ = value;
}
onChanged();
} else {
reservedResourcesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public Builder clearReservedResources() {
if (reservedResourcesBuilder_ == null) {
reservedResources_ = null;
onChanged();
} else {
reservedResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getReservedResourcesBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getReservedResourcesFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getReservedResourcesOrBuilder() {
if (reservedResourcesBuilder_ != null) {
return reservedResourcesBuilder_.getMessageOrBuilder();
} else {
return reservedResources_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : reservedResources_;
}
}
/**
* optional .hadoop.yarn.ResourceProto reserved_resources = 4;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getReservedResourcesFieldBuilder() {
if (reservedResourcesBuilder_ == null) {
reservedResourcesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getReservedResources(),
getParentForChildren(),
isClean());
reservedResources_ = null;
}
return reservedResourcesBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto neededResources_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> neededResourcesBuilder_;
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public boolean hasNeededResources() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getNeededResources() {
if (neededResourcesBuilder_ == null) {
return neededResources_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : neededResources_;
} else {
return neededResourcesBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public Builder setNeededResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (neededResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
neededResources_ = value;
onChanged();
} else {
neededResourcesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public Builder setNeededResources(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (neededResourcesBuilder_ == null) {
neededResources_ = builderForValue.build();
onChanged();
} else {
neededResourcesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public Builder mergeNeededResources(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (neededResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
neededResources_ != null &&
neededResources_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
neededResources_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(neededResources_).mergeFrom(value).buildPartial();
} else {
neededResources_ = value;
}
onChanged();
} else {
neededResourcesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public Builder clearNeededResources() {
if (neededResourcesBuilder_ == null) {
neededResources_ = null;
onChanged();
} else {
neededResourcesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getNeededResourcesBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getNeededResourcesFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getNeededResourcesOrBuilder() {
if (neededResourcesBuilder_ != null) {
return neededResourcesBuilder_.getMessageOrBuilder();
} else {
return neededResources_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : neededResources_;
}
}
/**
* optional .hadoop.yarn.ResourceProto needed_resources = 5;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getNeededResourcesFieldBuilder() {
if (neededResourcesBuilder_ == null) {
neededResourcesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getNeededResources(),
getParentForChildren(),
isClean());
neededResources_ = null;
}
return neededResourcesBuilder_;
}
private long memorySeconds_ ;
/**
* optional int64 memory_seconds = 6;
*/
public boolean hasMemorySeconds() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 memory_seconds = 6;
*/
public long getMemorySeconds() {
return memorySeconds_;
}
/**
* optional int64 memory_seconds = 6;
*/
public Builder setMemorySeconds(long value) {
bitField0_ |= 0x00000020;
memorySeconds_ = value;
onChanged();
return this;
}
/**
* optional int64 memory_seconds = 6;
*/
public Builder clearMemorySeconds() {
bitField0_ = (bitField0_ & ~0x00000020);
memorySeconds_ = 0L;
onChanged();
return this;
}
private long vcoreSeconds_ ;
/**
* optional int64 vcore_seconds = 7;
*/
public boolean hasVcoreSeconds() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 vcore_seconds = 7;
*/
public long getVcoreSeconds() {
return vcoreSeconds_;
}
/**
* optional int64 vcore_seconds = 7;
*/
public Builder setVcoreSeconds(long value) {
bitField0_ |= 0x00000040;
vcoreSeconds_ = value;
onChanged();
return this;
}
/**
* optional int64 vcore_seconds = 7;
*/
public Builder clearVcoreSeconds() {
bitField0_ = (bitField0_ & ~0x00000040);
vcoreSeconds_ = 0L;
onChanged();
return this;
}
private float queueUsagePercentage_ ;
/**
* optional float queue_usage_percentage = 8;
*/
public boolean hasQueueUsagePercentage() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional float queue_usage_percentage = 8;
*/
public float getQueueUsagePercentage() {
return queueUsagePercentage_;
}
/**
* optional float queue_usage_percentage = 8;
*/
public Builder setQueueUsagePercentage(float value) {
bitField0_ |= 0x00000080;
queueUsagePercentage_ = value;
onChanged();
return this;
}
/**
* optional float queue_usage_percentage = 8;
*/
public Builder clearQueueUsagePercentage() {
bitField0_ = (bitField0_ & ~0x00000080);
queueUsagePercentage_ = 0F;
onChanged();
return this;
}
private float clusterUsagePercentage_ ;
/**
* optional float cluster_usage_percentage = 9;
*/
public boolean hasClusterUsagePercentage() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional float cluster_usage_percentage = 9;
*/
public float getClusterUsagePercentage() {
return clusterUsagePercentage_;
}
/**
* optional float cluster_usage_percentage = 9;
*/
public Builder setClusterUsagePercentage(float value) {
bitField0_ |= 0x00000100;
clusterUsagePercentage_ = value;
onChanged();
return this;
}
/**
* optional float cluster_usage_percentage = 9;
*/
public Builder clearClusterUsagePercentage() {
bitField0_ = (bitField0_ & ~0x00000100);
clusterUsagePercentage_ = 0F;
onChanged();
return this;
}
private long preemptedMemorySeconds_ ;
/**
* optional int64 preempted_memory_seconds = 10;
*/
public boolean hasPreemptedMemorySeconds() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 preempted_memory_seconds = 10;
*/
public long getPreemptedMemorySeconds() {
return preemptedMemorySeconds_;
}
/**
* optional int64 preempted_memory_seconds = 10;
*/
public Builder setPreemptedMemorySeconds(long value) {
bitField0_ |= 0x00000200;
preemptedMemorySeconds_ = value;
onChanged();
return this;
}
/**
* optional int64 preempted_memory_seconds = 10;
*/
public Builder clearPreemptedMemorySeconds() {
bitField0_ = (bitField0_ & ~0x00000200);
preemptedMemorySeconds_ = 0L;
onChanged();
return this;
}
private long preemptedVcoreSeconds_ ;
/**
* optional int64 preempted_vcore_seconds = 11;
*/
public boolean hasPreemptedVcoreSeconds() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int64 preempted_vcore_seconds = 11;
*/
public long getPreemptedVcoreSeconds() {
return preemptedVcoreSeconds_;
}
/**
* optional int64 preempted_vcore_seconds = 11;
*/
public Builder setPreemptedVcoreSeconds(long value) {
bitField0_ |= 0x00000400;
preemptedVcoreSeconds_ = value;
onChanged();
return this;
}
/**
* optional int64 preempted_vcore_seconds = 11;
*/
public Builder clearPreemptedVcoreSeconds() {
bitField0_ = (bitField0_ & ~0x00000400);
preemptedVcoreSeconds_ = 0L;
onChanged();
return this;
}
private java.util.List applicationResourceUsageMap_ =
java.util.Collections.emptyList();
private void ensureApplicationResourceUsageMapIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
applicationResourceUsageMap_ = new java.util.ArrayList(applicationResourceUsageMap_);
bitField0_ |= 0x00000800;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder> applicationResourceUsageMapBuilder_;
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public java.util.List getApplicationResourceUsageMapList() {
if (applicationResourceUsageMapBuilder_ == null) {
return java.util.Collections.unmodifiableList(applicationResourceUsageMap_);
} else {
return applicationResourceUsageMapBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public int getApplicationResourceUsageMapCount() {
if (applicationResourceUsageMapBuilder_ == null) {
return applicationResourceUsageMap_.size();
} else {
return applicationResourceUsageMapBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getApplicationResourceUsageMap(int index) {
if (applicationResourceUsageMapBuilder_ == null) {
return applicationResourceUsageMap_.get(index);
} else {
return applicationResourceUsageMapBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder setApplicationResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.set(index, value);
onChanged();
} else {
applicationResourceUsageMapBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder setApplicationResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder builderForValue) {
if (applicationResourceUsageMapBuilder_ == null) {
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.set(index, builderForValue.build());
onChanged();
} else {
applicationResourceUsageMapBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder addApplicationResourceUsageMap(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.add(value);
onChanged();
} else {
applicationResourceUsageMapBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder addApplicationResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.add(index, value);
onChanged();
} else {
applicationResourceUsageMapBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder addApplicationResourceUsageMap(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder builderForValue) {
if (applicationResourceUsageMapBuilder_ == null) {
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.add(builderForValue.build());
onChanged();
} else {
applicationResourceUsageMapBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder addApplicationResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder builderForValue) {
if (applicationResourceUsageMapBuilder_ == null) {
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.add(index, builderForValue.build());
onChanged();
} else {
applicationResourceUsageMapBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder addAllApplicationResourceUsageMap(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto> values) {
if (applicationResourceUsageMapBuilder_ == null) {
ensureApplicationResourceUsageMapIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, applicationResourceUsageMap_);
onChanged();
} else {
applicationResourceUsageMapBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder clearApplicationResourceUsageMap() {
if (applicationResourceUsageMapBuilder_ == null) {
applicationResourceUsageMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
applicationResourceUsageMapBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public Builder removeApplicationResourceUsageMap(int index) {
if (applicationResourceUsageMapBuilder_ == null) {
ensureApplicationResourceUsageMapIsMutable();
applicationResourceUsageMap_.remove(index);
onChanged();
} else {
applicationResourceUsageMapBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder getApplicationResourceUsageMapBuilder(
int index) {
return getApplicationResourceUsageMapFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder getApplicationResourceUsageMapOrBuilder(
int index) {
if (applicationResourceUsageMapBuilder_ == null) {
return applicationResourceUsageMap_.get(index); } else {
return applicationResourceUsageMapBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationResourceUsageMapOrBuilderList() {
if (applicationResourceUsageMapBuilder_ != null) {
return applicationResourceUsageMapBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(applicationResourceUsageMap_);
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder addApplicationResourceUsageMapBuilder() {
return getApplicationResourceUsageMapFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder addApplicationResourceUsageMapBuilder(
int index) {
return getApplicationResourceUsageMapFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_resource_usage_map = 12;
*/
public java.util.List
getApplicationResourceUsageMapBuilderList() {
return getApplicationResourceUsageMapFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationResourceUsageMapFieldBuilder() {
if (applicationResourceUsageMapBuilder_ == null) {
applicationResourceUsageMapBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>(
applicationResourceUsageMap_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
applicationResourceUsageMap_ = null;
}
return applicationResourceUsageMapBuilder_;
}
private java.util.List applicationPreemptedResourceUsageMap_ =
java.util.Collections.emptyList();
private void ensureApplicationPreemptedResourceUsageMapIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
applicationPreemptedResourceUsageMap_ = new java.util.ArrayList(applicationPreemptedResourceUsageMap_);
bitField0_ |= 0x00001000;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder> applicationPreemptedResourceUsageMapBuilder_;
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public java.util.List getApplicationPreemptedResourceUsageMapList() {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
return java.util.Collections.unmodifiableList(applicationPreemptedResourceUsageMap_);
} else {
return applicationPreemptedResourceUsageMapBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public int getApplicationPreemptedResourceUsageMapCount() {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
return applicationPreemptedResourceUsageMap_.size();
} else {
return applicationPreemptedResourceUsageMapBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto getApplicationPreemptedResourceUsageMap(int index) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
return applicationPreemptedResourceUsageMap_.get(index);
} else {
return applicationPreemptedResourceUsageMapBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder setApplicationPreemptedResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.set(index, value);
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder setApplicationPreemptedResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder builderForValue) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.set(index, builderForValue.build());
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder addApplicationPreemptedResourceUsageMap(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.add(value);
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder addApplicationPreemptedResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto value) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.add(index, value);
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder addApplicationPreemptedResourceUsageMap(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder builderForValue) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.add(builderForValue.build());
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder addApplicationPreemptedResourceUsageMap(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder builderForValue) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.add(index, builderForValue.build());
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder addAllApplicationPreemptedResourceUsageMap(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto> values) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
ensureApplicationPreemptedResourceUsageMapIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, applicationPreemptedResourceUsageMap_);
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder clearApplicationPreemptedResourceUsageMap() {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
applicationPreemptedResourceUsageMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public Builder removeApplicationPreemptedResourceUsageMap(int index) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
ensureApplicationPreemptedResourceUsageMapIsMutable();
applicationPreemptedResourceUsageMap_.remove(index);
onChanged();
} else {
applicationPreemptedResourceUsageMapBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder getApplicationPreemptedResourceUsageMapBuilder(
int index) {
return getApplicationPreemptedResourceUsageMapFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder getApplicationPreemptedResourceUsageMapOrBuilder(
int index) {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
return applicationPreemptedResourceUsageMap_.get(index); } else {
return applicationPreemptedResourceUsageMapBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationPreemptedResourceUsageMapOrBuilderList() {
if (applicationPreemptedResourceUsageMapBuilder_ != null) {
return applicationPreemptedResourceUsageMapBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(applicationPreemptedResourceUsageMap_);
}
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder addApplicationPreemptedResourceUsageMapBuilder() {
return getApplicationPreemptedResourceUsageMapFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder addApplicationPreemptedResourceUsageMapBuilder(
int index) {
return getApplicationPreemptedResourceUsageMapFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
*/
public java.util.List
getApplicationPreemptedResourceUsageMapBuilderList() {
return getApplicationPreemptedResourceUsageMapFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>
getApplicationPreemptedResourceUsageMapFieldBuilder() {
if (applicationPreemptedResourceUsageMapBuilder_ == null) {
applicationPreemptedResourceUsageMapBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.StringLongMapProtoOrBuilder>(
applicationPreemptedResourceUsageMap_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
applicationPreemptedResourceUsageMap_ = null;
}
return applicationPreemptedResourceUsageMapBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationResourceUsageReportProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationResourceUsageReportProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationResourceUsageReportProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ApplicationResourceUsageReportProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationReportProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ApplicationReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
boolean hasApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
/**
* optional string user = 2;
*/
boolean hasUser();
/**
* optional string user = 2;
*/
java.lang.String getUser();
/**
* optional string user = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUserBytes();
/**
* optional string queue = 3;
*/
boolean hasQueue();
/**
* optional string queue = 3;
*/
java.lang.String getQueue();
/**
* optional string queue = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getQueueBytes();
/**
* optional string name = 4;
*/
boolean hasName();
/**
* optional string name = 4;
*/
java.lang.String getName();
/**
* optional string name = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes();
/**
* optional string host = 5;
*/
boolean hasHost();
/**
* optional string host = 5;
*/
java.lang.String getHost();
/**
* optional string host = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes();
/**
* optional int32 rpc_port = 6;
*/
boolean hasRpcPort();
/**
* optional int32 rpc_port = 6;
*/
int getRpcPort();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
boolean hasClientToAmToken();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getClientToAmToken();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getClientToAmTokenOrBuilder();
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
boolean hasYarnApplicationState();
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto getYarnApplicationState();
/**
* optional string trackingUrl = 9;
*/
boolean hasTrackingUrl();
/**
* optional string trackingUrl = 9;
*/
java.lang.String getTrackingUrl();
/**
* optional string trackingUrl = 9;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes();
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
boolean hasDiagnostics();
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
java.lang.String getDiagnostics();
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes();
/**
* optional int64 startTime = 11;
*/
boolean hasStartTime();
/**
* optional int64 startTime = 11;
*/
long getStartTime();
/**
* optional int64 finishTime = 12;
*/
boolean hasFinishTime();
/**
* optional int64 finishTime = 12;
*/
long getFinishTime();
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
boolean hasFinalApplicationStatus();
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus();
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
boolean hasAppResourceUsage();
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto getAppResourceUsage();
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder getAppResourceUsageOrBuilder();
/**
* optional string originalTrackingUrl = 15;
*/
boolean hasOriginalTrackingUrl();
/**
* optional string originalTrackingUrl = 15;
*/
java.lang.String getOriginalTrackingUrl();
/**
* optional string originalTrackingUrl = 15;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getOriginalTrackingUrlBytes();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
boolean hasCurrentApplicationAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getCurrentApplicationAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getCurrentApplicationAttemptIdOrBuilder();
/**
* optional float progress = 17;
*/
boolean hasProgress();
/**
* optional float progress = 17;
*/
float getProgress();
/**
* optional string applicationType = 18;
*/
boolean hasApplicationType();
/**
* optional string applicationType = 18;
*/
java.lang.String getApplicationType();
/**
* optional string applicationType = 18;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getApplicationTypeBytes();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
boolean hasAmRmToken();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken();
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder();
/**
* repeated string applicationTags = 20;
*/
java.util.List
getApplicationTagsList();
/**
* repeated string applicationTags = 20;
*/
int getApplicationTagsCount();
/**
* repeated string applicationTags = 20;
*/
java.lang.String getApplicationTags(int index);
/**
* repeated string applicationTags = 20;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getApplicationTagsBytes(int index);
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
boolean hasLogAggregationStatus();
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto getLogAggregationStatus();
/**
* optional bool unmanaged_application = 22 [default = false];
*/
boolean hasUnmanagedApplication();
/**
* optional bool unmanaged_application = 22 [default = false];
*/
boolean getUnmanagedApplication();
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
boolean hasPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder();
/**
* optional string appNodeLabelExpression = 24;
*/
boolean hasAppNodeLabelExpression();
/**
* optional string appNodeLabelExpression = 24;
*/
java.lang.String getAppNodeLabelExpression();
/**
* optional string appNodeLabelExpression = 24;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAppNodeLabelExpressionBytes();
/**
* optional string amNodeLabelExpression = 25;
*/
boolean hasAmNodeLabelExpression();
/**
* optional string amNodeLabelExpression = 25;
*/
java.lang.String getAmNodeLabelExpression();
/**
* optional string amNodeLabelExpression = 25;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAmNodeLabelExpressionBytes();
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
java.util.List
getAppTimeoutsList();
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto getAppTimeouts(int index);
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
int getAppTimeoutsCount();
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder>
getAppTimeoutsOrBuilderList();
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder getAppTimeoutsOrBuilder(
int index);
/**
* optional int64 launchTime = 27;
*/
boolean hasLaunchTime();
/**
* optional int64 launchTime = 27;
*/
long getLaunchTime();
/**
* optional int64 submitTime = 28;
*/
boolean hasSubmitTime();
/**
* optional int64 submitTime = 28;
*/
long getSubmitTime();
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationReportProto}
*/
public static final class ApplicationReportProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ApplicationReportProto)
ApplicationReportProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationReportProto.newBuilder() to construct.
private ApplicationReportProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationReportProto() {
user_ = "";
queue_ = "";
name_ = "";
host_ = "";
yarnApplicationState_ = 1;
trackingUrl_ = "";
diagnostics_ = "N/A";
finalApplicationStatus_ = 0;
originalTrackingUrl_ = "";
applicationType_ = "";
applicationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
logAggregationStatus_ = 1;
appNodeLabelExpression_ = "";
amNodeLabelExpression_ = "";
appTimeouts_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationReportProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
user_ = bs;
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
queue_ = bs;
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
name_ = bs;
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
host_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
rpcPort_ = input.readInt32();
break;
}
case 58: {
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = clientToAmToken_.toBuilder();
}
clientToAmToken_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clientToAmToken_);
clientToAmToken_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 64: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(8, rawValue);
} else {
bitField0_ |= 0x00000080;
yarnApplicationState_ = rawValue;
}
break;
}
case 74: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
trackingUrl_ = bs;
break;
}
case 82: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
diagnostics_ = bs;
break;
}
case 88: {
bitField0_ |= 0x00000400;
startTime_ = input.readInt64();
break;
}
case 96: {
bitField0_ |= 0x00000800;
finishTime_ = input.readInt64();
break;
}
case 104: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(13, rawValue);
} else {
bitField0_ |= 0x00001000;
finalApplicationStatus_ = rawValue;
}
break;
}
case 114: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder subBuilder = null;
if (((bitField0_ & 0x00002000) != 0)) {
subBuilder = appResourceUsage_.toBuilder();
}
appResourceUsage_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appResourceUsage_);
appResourceUsage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00002000;
break;
}
case 122: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00004000;
originalTrackingUrl_ = bs;
break;
}
case 130: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00008000) != 0)) {
subBuilder = currentApplicationAttemptId_.toBuilder();
}
currentApplicationAttemptId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(currentApplicationAttemptId_);
currentApplicationAttemptId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00008000;
break;
}
case 141: {
bitField0_ |= 0x00010000;
progress_ = input.readFloat();
break;
}
case 146: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00020000;
applicationType_ = bs;
break;
}
case 154: {
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00040000) != 0)) {
subBuilder = amRmToken_.toBuilder();
}
amRmToken_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(amRmToken_);
amRmToken_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00040000;
break;
}
case 162: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00080000) != 0)) {
applicationTags_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00080000;
}
applicationTags_.add(bs);
break;
}
case 168: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(21, rawValue);
} else {
bitField0_ |= 0x00080000;
logAggregationStatus_ = rawValue;
}
break;
}
case 176: {
bitField0_ |= 0x00100000;
unmanagedApplication_ = input.readBool();
break;
}
case 186: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null;
if (((bitField0_ & 0x00200000) != 0)) {
subBuilder = priority_.toBuilder();
}
priority_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(priority_);
priority_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00200000;
break;
}
case 194: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00400000;
appNodeLabelExpression_ = bs;
break;
}
case 202: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00800000;
amNodeLabelExpression_ = bs;
break;
}
case 210: {
if (!((mutable_bitField0_ & 0x02000000) != 0)) {
appTimeouts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x02000000;
}
appTimeouts_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.PARSER, extensionRegistry));
break;
}
case 216: {
bitField0_ |= 0x01000000;
launchTime_ = input.readInt64();
break;
}
case 224: {
bitField0_ |= 0x02000000;
submitTime_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00080000) != 0)) {
applicationTags_ = applicationTags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x02000000) != 0)) {
appTimeouts_ = java.util.Collections.unmodifiableList(appTimeouts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATIONID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
public static final int USER_FIELD_NUMBER = 2;
private volatile java.lang.Object user_;
/**
* optional string user = 2;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string user = 2;
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
user_ = s;
}
return s;
}
}
/**
* optional string user = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int QUEUE_FIELD_NUMBER = 3;
private volatile java.lang.Object queue_;
/**
* optional string queue = 3;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string queue = 3;
*/
public java.lang.String getQueue() {
java.lang.Object ref = queue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
queue_ = s;
}
return s;
}
}
/**
* optional string queue = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getQueueBytes() {
java.lang.Object ref = queue_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queue_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
* optional string name = 4;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string name = 4;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int HOST_FIELD_NUMBER = 5;
private volatile java.lang.Object host_;
/**
* optional string host = 5;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string host = 5;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* optional string host = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int RPC_PORT_FIELD_NUMBER = 6;
private int rpcPort_;
/**
* optional int32 rpc_port = 6;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 rpc_port = 6;
*/
public int getRpcPort() {
return rpcPort_;
}
public static final int CLIENT_TO_AM_TOKEN_FIELD_NUMBER = 7;
private org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto clientToAmToken_;
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public boolean hasClientToAmToken() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getClientToAmToken() {
return clientToAmToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : clientToAmToken_;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getClientToAmTokenOrBuilder() {
return clientToAmToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : clientToAmToken_;
}
public static final int YARN_APPLICATION_STATE_FIELD_NUMBER = 8;
private int yarnApplicationState_;
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
public boolean hasYarnApplicationState() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto getYarnApplicationState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.valueOf(yarnApplicationState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.NEW : result;
}
public static final int TRACKINGURL_FIELD_NUMBER = 9;
private volatile java.lang.Object trackingUrl_;
/**
* optional string trackingUrl = 9;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string trackingUrl = 9;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string trackingUrl = 9;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int DIAGNOSTICS_FIELD_NUMBER = 10;
private volatile java.lang.Object diagnostics_;
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string diagnostics = 10 [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 {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
}
}
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int STARTTIME_FIELD_NUMBER = 11;
private long startTime_;
/**
* optional int64 startTime = 11;
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int64 startTime = 11;
*/
public long getStartTime() {
return startTime_;
}
public static final int FINISHTIME_FIELD_NUMBER = 12;
private long finishTime_;
/**
* optional int64 finishTime = 12;
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int64 finishTime = 12;
*/
public long getFinishTime() {
return finishTime_;
}
public static final int FINAL_APPLICATION_STATUS_FIELD_NUMBER = 13;
private int finalApplicationStatus_;
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
public boolean hasFinalApplicationStatus() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(finalApplicationStatus_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED : result;
}
public static final int APP_RESOURCE_USAGE_FIELD_NUMBER = 14;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto appResourceUsage_;
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public boolean hasAppResourceUsage() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto getAppResourceUsage() {
return appResourceUsage_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance() : appResourceUsage_;
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder getAppResourceUsageOrBuilder() {
return appResourceUsage_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance() : appResourceUsage_;
}
public static final int ORIGINALTRACKINGURL_FIELD_NUMBER = 15;
private volatile java.lang.Object originalTrackingUrl_;
/**
* optional string originalTrackingUrl = 15;
*/
public boolean hasOriginalTrackingUrl() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional string originalTrackingUrl = 15;
*/
public java.lang.String getOriginalTrackingUrl() {
java.lang.Object ref = originalTrackingUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
originalTrackingUrl_ = s;
}
return s;
}
}
/**
* optional string originalTrackingUrl = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getOriginalTrackingUrlBytes() {
java.lang.Object ref = originalTrackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalTrackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int CURRENTAPPLICATIONATTEMPTID_FIELD_NUMBER = 16;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto currentApplicationAttemptId_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public boolean hasCurrentApplicationAttemptId() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getCurrentApplicationAttemptId() {
return currentApplicationAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : currentApplicationAttemptId_;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getCurrentApplicationAttemptIdOrBuilder() {
return currentApplicationAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : currentApplicationAttemptId_;
}
public static final int PROGRESS_FIELD_NUMBER = 17;
private float progress_;
/**
* optional float progress = 17;
*/
public boolean hasProgress() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional float progress = 17;
*/
public float getProgress() {
return progress_;
}
public static final int APPLICATIONTYPE_FIELD_NUMBER = 18;
private volatile java.lang.Object applicationType_;
/**
* optional string applicationType = 18;
*/
public boolean hasApplicationType() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional string applicationType = 18;
*/
public java.lang.String getApplicationType() {
java.lang.Object ref = applicationType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
applicationType_ = s;
}
return s;
}
}
/**
* optional string applicationType = 18;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getApplicationTypeBytes() {
java.lang.Object ref = applicationType_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
applicationType_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int AM_RM_TOKEN_FIELD_NUMBER = 19;
private org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto amRmToken_;
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public boolean hasAmRmToken() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken() {
return amRmToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder() {
return amRmToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
}
public static final int APPLICATIONTAGS_FIELD_NUMBER = 20;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList applicationTags_;
/**
* repeated string applicationTags = 20;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getApplicationTagsList() {
return applicationTags_;
}
/**
* repeated string applicationTags = 20;
*/
public int getApplicationTagsCount() {
return applicationTags_.size();
}
/**
* repeated string applicationTags = 20;
*/
public java.lang.String getApplicationTags(int index) {
return applicationTags_.get(index);
}
/**
* repeated string applicationTags = 20;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getApplicationTagsBytes(int index) {
return applicationTags_.getByteString(index);
}
public static final int LOG_AGGREGATION_STATUS_FIELD_NUMBER = 21;
private int logAggregationStatus_;
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
public boolean hasLogAggregationStatus() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto getLogAggregationStatus() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.valueOf(logAggregationStatus_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.LOG_DISABLED : result;
}
public static final int UNMANAGED_APPLICATION_FIELD_NUMBER = 22;
private boolean unmanagedApplication_;
/**
* optional bool unmanaged_application = 22 [default = false];
*/
public boolean hasUnmanagedApplication() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
* optional bool unmanaged_application = 22 [default = false];
*/
public boolean getUnmanagedApplication() {
return unmanagedApplication_;
}
public static final int PRIORITY_FIELD_NUMBER = 23;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
public static final int APPNODELABELEXPRESSION_FIELD_NUMBER = 24;
private volatile java.lang.Object appNodeLabelExpression_;
/**
* optional string appNodeLabelExpression = 24;
*/
public boolean hasAppNodeLabelExpression() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* optional string appNodeLabelExpression = 24;
*/
public java.lang.String getAppNodeLabelExpression() {
java.lang.Object ref = appNodeLabelExpression_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
appNodeLabelExpression_ = s;
}
return s;
}
}
/**
* optional string appNodeLabelExpression = 24;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAppNodeLabelExpressionBytes() {
java.lang.Object ref = appNodeLabelExpression_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appNodeLabelExpression_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int AMNODELABELEXPRESSION_FIELD_NUMBER = 25;
private volatile java.lang.Object amNodeLabelExpression_;
/**
* optional string amNodeLabelExpression = 25;
*/
public boolean hasAmNodeLabelExpression() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
* optional string amNodeLabelExpression = 25;
*/
public java.lang.String getAmNodeLabelExpression() {
java.lang.Object ref = amNodeLabelExpression_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
amNodeLabelExpression_ = s;
}
return s;
}
}
/**
* optional string amNodeLabelExpression = 25;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAmNodeLabelExpressionBytes() {
java.lang.Object ref = amNodeLabelExpression_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
amNodeLabelExpression_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int APPTIMEOUTS_FIELD_NUMBER = 26;
private java.util.List appTimeouts_;
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public java.util.List getAppTimeoutsList() {
return appTimeouts_;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder>
getAppTimeoutsOrBuilderList() {
return appTimeouts_;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public int getAppTimeoutsCount() {
return appTimeouts_.size();
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto getAppTimeouts(int index) {
return appTimeouts_.get(index);
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder getAppTimeoutsOrBuilder(
int index) {
return appTimeouts_.get(index);
}
public static final int LAUNCHTIME_FIELD_NUMBER = 27;
private long launchTime_;
/**
* optional int64 launchTime = 27;
*/
public boolean hasLaunchTime() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
* optional int64 launchTime = 27;
*/
public long getLaunchTime() {
return launchTime_;
}
public static final int SUBMITTIME_FIELD_NUMBER = 28;
private long submitTime_;
/**
* optional int64 submitTime = 28;
*/
public boolean hasSubmitTime() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
* optional int64 submitTime = 28;
*/
public long getSubmitTime() {
return submitTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasClientToAmToken()) {
if (!getClientToAmToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAppResourceUsage()) {
if (!getAppResourceUsage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAmRmToken()) {
if (!getAmRmToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getAppTimeoutsCount(); i++) {
if (!getAppTimeouts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, user_);
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 3, queue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 4, name_);
}
if (((bitField0_ & 0x00000010) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 5, host_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(6, rpcPort_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getClientToAmToken());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeEnum(8, yarnApplicationState_);
}
if (((bitField0_ & 0x00000100) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 9, trackingUrl_);
}
if (((bitField0_ & 0x00000200) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 10, diagnostics_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt64(11, startTime_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt64(12, finishTime_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeEnum(13, finalApplicationStatus_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeMessage(14, getAppResourceUsage());
}
if (((bitField0_ & 0x00004000) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 15, originalTrackingUrl_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(16, getCurrentApplicationAttemptId());
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeFloat(17, progress_);
}
if (((bitField0_ & 0x00020000) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 18, applicationType_);
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeMessage(19, getAmRmToken());
}
for (int i = 0; i < applicationTags_.size(); i++) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 20, applicationTags_.getRaw(i));
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeEnum(21, logAggregationStatus_);
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeBool(22, unmanagedApplication_);
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeMessage(23, getPriority());
}
if (((bitField0_ & 0x00400000) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 24, appNodeLabelExpression_);
}
if (((bitField0_ & 0x00800000) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 25, amNodeLabelExpression_);
}
for (int i = 0; i < appTimeouts_.size(); i++) {
output.writeMessage(26, appTimeouts_.get(i));
}
if (((bitField0_ & 0x01000000) != 0)) {
output.writeInt64(27, launchTime_);
}
if (((bitField0_ & 0x02000000) != 0)) {
output.writeInt64(28, submitTime_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, user_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(3, queue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(4, name_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(5, host_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(6, rpcPort_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(7, getClientToAmToken());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(8, yarnApplicationState_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(9, trackingUrl_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(10, diagnostics_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(11, startTime_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(12, finishTime_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(13, finalApplicationStatus_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(14, getAppResourceUsage());
}
if (((bitField0_ & 0x00004000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(15, originalTrackingUrl_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(16, getCurrentApplicationAttemptId());
}
if (((bitField0_ & 0x00010000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteFloatSize(17, progress_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(18, applicationType_);
}
if (((bitField0_ & 0x00040000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(19, getAmRmToken());
}
{
int dataSize = 0;
for (int i = 0; i < applicationTags_.size(); i++) {
dataSize += org.apache.hadoop.shaded.com.uteStringSizeNoTag(applicationTags_.getRaw(i));
}
size += dataSize;
size += 2 * getApplicationTagsList().size();
}
if (((bitField0_ & 0x00080000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(21, logAggregationStatus_);
}
if (((bitField0_ & 0x00100000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteBoolSize(22, unmanagedApplication_);
}
if (((bitField0_ & 0x00200000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(23, getPriority());
}
if (((bitField0_ & 0x00400000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(24, appNodeLabelExpression_);
}
if (((bitField0_ & 0x00800000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(25, amNodeLabelExpression_);
}
for (int i = 0; i < appTimeouts_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(26, appTimeouts_.get(i));
}
if (((bitField0_ & 0x01000000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(27, launchTime_);
}
if (((bitField0_ & 0x02000000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(28, submitTime_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto) obj;
if (hasApplicationId() != other.hasApplicationId()) return false;
if (hasApplicationId()) {
if (!getApplicationId()
.equals(other.getApplicationId())) return false;
}
if (hasUser() != other.hasUser()) return false;
if (hasUser()) {
if (!getUser()
.equals(other.getUser())) return false;
}
if (hasQueue() != other.hasQueue()) return false;
if (hasQueue()) {
if (!getQueue()
.equals(other.getQueue())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasHost() != other.hasHost()) return false;
if (hasHost()) {
if (!getHost()
.equals(other.getHost())) return false;
}
if (hasRpcPort() != other.hasRpcPort()) return false;
if (hasRpcPort()) {
if (getRpcPort()
!= other.getRpcPort()) return false;
}
if (hasClientToAmToken() != other.hasClientToAmToken()) return false;
if (hasClientToAmToken()) {
if (!getClientToAmToken()
.equals(other.getClientToAmToken())) return false;
}
if (hasYarnApplicationState() != other.hasYarnApplicationState()) return false;
if (hasYarnApplicationState()) {
if (yarnApplicationState_ != other.yarnApplicationState_) return false;
}
if (hasTrackingUrl() != other.hasTrackingUrl()) return false;
if (hasTrackingUrl()) {
if (!getTrackingUrl()
.equals(other.getTrackingUrl())) return false;
}
if (hasDiagnostics() != other.hasDiagnostics()) return false;
if (hasDiagnostics()) {
if (!getDiagnostics()
.equals(other.getDiagnostics())) return false;
}
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (getStartTime()
!= other.getStartTime()) return false;
}
if (hasFinishTime() != other.hasFinishTime()) return false;
if (hasFinishTime()) {
if (getFinishTime()
!= other.getFinishTime()) return false;
}
if (hasFinalApplicationStatus() != other.hasFinalApplicationStatus()) return false;
if (hasFinalApplicationStatus()) {
if (finalApplicationStatus_ != other.finalApplicationStatus_) return false;
}
if (hasAppResourceUsage() != other.hasAppResourceUsage()) return false;
if (hasAppResourceUsage()) {
if (!getAppResourceUsage()
.equals(other.getAppResourceUsage())) return false;
}
if (hasOriginalTrackingUrl() != other.hasOriginalTrackingUrl()) return false;
if (hasOriginalTrackingUrl()) {
if (!getOriginalTrackingUrl()
.equals(other.getOriginalTrackingUrl())) return false;
}
if (hasCurrentApplicationAttemptId() != other.hasCurrentApplicationAttemptId()) return false;
if (hasCurrentApplicationAttemptId()) {
if (!getCurrentApplicationAttemptId()
.equals(other.getCurrentApplicationAttemptId())) return false;
}
if (hasProgress() != other.hasProgress()) return false;
if (hasProgress()) {
if (java.lang.Float.floatToIntBits(getProgress())
!= java.lang.Float.floatToIntBits(
other.getProgress())) return false;
}
if (hasApplicationType() != other.hasApplicationType()) return false;
if (hasApplicationType()) {
if (!getApplicationType()
.equals(other.getApplicationType())) return false;
}
if (hasAmRmToken() != other.hasAmRmToken()) return false;
if (hasAmRmToken()) {
if (!getAmRmToken()
.equals(other.getAmRmToken())) return false;
}
if (!getApplicationTagsList()
.equals(other.getApplicationTagsList())) return false;
if (hasLogAggregationStatus() != other.hasLogAggregationStatus()) return false;
if (hasLogAggregationStatus()) {
if (logAggregationStatus_ != other.logAggregationStatus_) return false;
}
if (hasUnmanagedApplication() != other.hasUnmanagedApplication()) return false;
if (hasUnmanagedApplication()) {
if (getUnmanagedApplication()
!= other.getUnmanagedApplication()) return false;
}
if (hasPriority() != other.hasPriority()) return false;
if (hasPriority()) {
if (!getPriority()
.equals(other.getPriority())) return false;
}
if (hasAppNodeLabelExpression() != other.hasAppNodeLabelExpression()) return false;
if (hasAppNodeLabelExpression()) {
if (!getAppNodeLabelExpression()
.equals(other.getAppNodeLabelExpression())) return false;
}
if (hasAmNodeLabelExpression() != other.hasAmNodeLabelExpression()) return false;
if (hasAmNodeLabelExpression()) {
if (!getAmNodeLabelExpression()
.equals(other.getAmNodeLabelExpression())) return false;
}
if (!getAppTimeoutsList()
.equals(other.getAppTimeoutsList())) return false;
if (hasLaunchTime() != other.hasLaunchTime()) return false;
if (hasLaunchTime()) {
if (getLaunchTime()
!= other.getLaunchTime()) return false;
}
if (hasSubmitTime() != other.hasSubmitTime()) return false;
if (hasSubmitTime()) {
if (getSubmitTime()
!= other.getSubmitTime()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATIONID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
if (hasUser()) {
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
}
if (hasQueue()) {
hash = (37 * hash) + QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getQueue().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasRpcPort()) {
hash = (37 * hash) + RPC_PORT_FIELD_NUMBER;
hash = (53 * hash) + getRpcPort();
}
if (hasClientToAmToken()) {
hash = (37 * hash) + CLIENT_TO_AM_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getClientToAmToken().hashCode();
}
if (hasYarnApplicationState()) {
hash = (37 * hash) + YARN_APPLICATION_STATE_FIELD_NUMBER;
hash = (53 * hash) + yarnApplicationState_;
}
if (hasTrackingUrl()) {
hash = (37 * hash) + TRACKINGURL_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrl().hashCode();
}
if (hasDiagnostics()) {
hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER;
hash = (53 * hash) + getDiagnostics().hashCode();
}
if (hasStartTime()) {
hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getStartTime());
}
if (hasFinishTime()) {
hash = (37 * hash) + FINISHTIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getFinishTime());
}
if (hasFinalApplicationStatus()) {
hash = (37 * hash) + FINAL_APPLICATION_STATUS_FIELD_NUMBER;
hash = (53 * hash) + finalApplicationStatus_;
}
if (hasAppResourceUsage()) {
hash = (37 * hash) + APP_RESOURCE_USAGE_FIELD_NUMBER;
hash = (53 * hash) + getAppResourceUsage().hashCode();
}
if (hasOriginalTrackingUrl()) {
hash = (37 * hash) + ORIGINALTRACKINGURL_FIELD_NUMBER;
hash = (53 * hash) + getOriginalTrackingUrl().hashCode();
}
if (hasCurrentApplicationAttemptId()) {
hash = (37 * hash) + CURRENTAPPLICATIONATTEMPTID_FIELD_NUMBER;
hash = (53 * hash) + getCurrentApplicationAttemptId().hashCode();
}
if (hasProgress()) {
hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getProgress());
}
if (hasApplicationType()) {
hash = (37 * hash) + APPLICATIONTYPE_FIELD_NUMBER;
hash = (53 * hash) + getApplicationType().hashCode();
}
if (hasAmRmToken()) {
hash = (37 * hash) + AM_RM_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getAmRmToken().hashCode();
}
if (getApplicationTagsCount() > 0) {
hash = (37 * hash) + APPLICATIONTAGS_FIELD_NUMBER;
hash = (53 * hash) + getApplicationTagsList().hashCode();
}
if (hasLogAggregationStatus()) {
hash = (37 * hash) + LOG_AGGREGATION_STATUS_FIELD_NUMBER;
hash = (53 * hash) + logAggregationStatus_;
}
if (hasUnmanagedApplication()) {
hash = (37 * hash) + UNMANAGED_APPLICATION_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashBoolean(
getUnmanagedApplication());
}
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority().hashCode();
}
if (hasAppNodeLabelExpression()) {
hash = (37 * hash) + APPNODELABELEXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getAppNodeLabelExpression().hashCode();
}
if (hasAmNodeLabelExpression()) {
hash = (37 * hash) + AMNODELABELEXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getAmNodeLabelExpression().hashCode();
}
if (getAppTimeoutsCount() > 0) {
hash = (37 * hash) + APPTIMEOUTS_FIELD_NUMBER;
hash = (53 * hash) + getAppTimeoutsList().hashCode();
}
if (hasLaunchTime()) {
hash = (37 * hash) + LAUNCHTIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getLaunchTime());
}
if (hasSubmitTime()) {
hash = (37 * hash) + SUBMITTIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getSubmitTime());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationReportProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ApplicationReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
getClientToAmTokenFieldBuilder();
getAppResourceUsageFieldBuilder();
getCurrentApplicationAttemptIdFieldBuilder();
getAmRmTokenFieldBuilder();
getPriorityFieldBuilder();
getAppTimeoutsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = null;
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
user_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
queue_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
host_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
rpcPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
if (clientToAmTokenBuilder_ == null) {
clientToAmToken_ = null;
} else {
clientToAmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
yarnApplicationState_ = 1;
bitField0_ = (bitField0_ & ~0x00000080);
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
diagnostics_ = "N/A";
bitField0_ = (bitField0_ & ~0x00000200);
startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
finishTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
finalApplicationStatus_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
if (appResourceUsageBuilder_ == null) {
appResourceUsage_ = null;
} else {
appResourceUsageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
originalTrackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00004000);
if (currentApplicationAttemptIdBuilder_ == null) {
currentApplicationAttemptId_ = null;
} else {
currentApplicationAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
progress_ = 0F;
bitField0_ = (bitField0_ & ~0x00010000);
applicationType_ = "";
bitField0_ = (bitField0_ & ~0x00020000);
if (amRmTokenBuilder_ == null) {
amRmToken_ = null;
} else {
amRmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
applicationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00080000);
logAggregationStatus_ = 1;
bitField0_ = (bitField0_ & ~0x00100000);
unmanagedApplication_ = false;
bitField0_ = (bitField0_ & ~0x00200000);
if (priorityBuilder_ == null) {
priority_ = null;
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00400000);
appNodeLabelExpression_ = "";
bitField0_ = (bitField0_ & ~0x00800000);
amNodeLabelExpression_ = "";
bitField0_ = (bitField0_ & ~0x01000000);
if (appTimeoutsBuilder_ == null) {
appTimeouts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x02000000);
} else {
appTimeoutsBuilder_.clear();
}
launchTime_ = 0L;
bitField0_ = (bitField0_ & ~0x04000000);
submitTime_ = 0L;
bitField0_ = (bitField0_ & ~0x08000000);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationReportProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.user_ = user_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.queue_ = queue_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.rpcPort_ = rpcPort_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
if (clientToAmTokenBuilder_ == null) {
result.clientToAmToken_ = clientToAmToken_;
} else {
result.clientToAmToken_ = clientToAmTokenBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.yarnApplicationState_ = yarnApplicationState_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.trackingUrl_ = trackingUrl_;
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.diagnostics_ = diagnostics_;
if (((from_bitField0_ & 0x00000400) != 0)) {
result.startTime_ = startTime_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.finishTime_ = finishTime_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.finalApplicationStatus_ = finalApplicationStatus_;
if (((from_bitField0_ & 0x00002000) != 0)) {
if (appResourceUsageBuilder_ == null) {
result.appResourceUsage_ = appResourceUsage_;
} else {
result.appResourceUsage_ = appResourceUsageBuilder_.build();
}
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
to_bitField0_ |= 0x00004000;
}
result.originalTrackingUrl_ = originalTrackingUrl_;
if (((from_bitField0_ & 0x00008000) != 0)) {
if (currentApplicationAttemptIdBuilder_ == null) {
result.currentApplicationAttemptId_ = currentApplicationAttemptId_;
} else {
result.currentApplicationAttemptId_ = currentApplicationAttemptIdBuilder_.build();
}
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.progress_ = progress_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
to_bitField0_ |= 0x00020000;
}
result.applicationType_ = applicationType_;
if (((from_bitField0_ & 0x00040000) != 0)) {
if (amRmTokenBuilder_ == null) {
result.amRmToken_ = amRmToken_;
} else {
result.amRmToken_ = amRmTokenBuilder_.build();
}
to_bitField0_ |= 0x00040000;
}
if (((bitField0_ & 0x00080000) != 0)) {
applicationTags_ = applicationTags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00080000);
}
result.applicationTags_ = applicationTags_;
if (((from_bitField0_ & 0x00100000) != 0)) {
to_bitField0_ |= 0x00080000;
}
result.logAggregationStatus_ = logAggregationStatus_;
if (((from_bitField0_ & 0x00200000) != 0)) {
result.unmanagedApplication_ = unmanagedApplication_;
to_bitField0_ |= 0x00100000;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
if (priorityBuilder_ == null) {
result.priority_ = priority_;
} else {
result.priority_ = priorityBuilder_.build();
}
to_bitField0_ |= 0x00200000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
to_bitField0_ |= 0x00400000;
}
result.appNodeLabelExpression_ = appNodeLabelExpression_;
if (((from_bitField0_ & 0x01000000) != 0)) {
to_bitField0_ |= 0x00800000;
}
result.amNodeLabelExpression_ = amNodeLabelExpression_;
if (appTimeoutsBuilder_ == null) {
if (((bitField0_ & 0x02000000) != 0)) {
appTimeouts_ = java.util.Collections.unmodifiableList(appTimeouts_);
bitField0_ = (bitField0_ & ~0x02000000);
}
result.appTimeouts_ = appTimeouts_;
} else {
result.appTimeouts_ = appTimeoutsBuilder_.build();
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.launchTime_ = launchTime_;
to_bitField0_ |= 0x01000000;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.submitTime_ = submitTime_;
to_bitField0_ |= 0x02000000;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
if (other.hasUser()) {
bitField0_ |= 0x00000002;
user_ = other.user_;
onChanged();
}
if (other.hasQueue()) {
bitField0_ |= 0x00000004;
queue_ = other.queue_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000008;
name_ = other.name_;
onChanged();
}
if (other.hasHost()) {
bitField0_ |= 0x00000010;
host_ = other.host_;
onChanged();
}
if (other.hasRpcPort()) {
setRpcPort(other.getRpcPort());
}
if (other.hasClientToAmToken()) {
mergeClientToAmToken(other.getClientToAmToken());
}
if (other.hasYarnApplicationState()) {
setYarnApplicationState(other.getYarnApplicationState());
}
if (other.hasTrackingUrl()) {
bitField0_ |= 0x00000100;
trackingUrl_ = other.trackingUrl_;
onChanged();
}
if (other.hasDiagnostics()) {
bitField0_ |= 0x00000200;
diagnostics_ = other.diagnostics_;
onChanged();
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (other.hasFinishTime()) {
setFinishTime(other.getFinishTime());
}
if (other.hasFinalApplicationStatus()) {
setFinalApplicationStatus(other.getFinalApplicationStatus());
}
if (other.hasAppResourceUsage()) {
mergeAppResourceUsage(other.getAppResourceUsage());
}
if (other.hasOriginalTrackingUrl()) {
bitField0_ |= 0x00004000;
originalTrackingUrl_ = other.originalTrackingUrl_;
onChanged();
}
if (other.hasCurrentApplicationAttemptId()) {
mergeCurrentApplicationAttemptId(other.getCurrentApplicationAttemptId());
}
if (other.hasProgress()) {
setProgress(other.getProgress());
}
if (other.hasApplicationType()) {
bitField0_ |= 0x00020000;
applicationType_ = other.applicationType_;
onChanged();
}
if (other.hasAmRmToken()) {
mergeAmRmToken(other.getAmRmToken());
}
if (!other.applicationTags_.isEmpty()) {
if (applicationTags_.isEmpty()) {
applicationTags_ = other.applicationTags_;
bitField0_ = (bitField0_ & ~0x00080000);
} else {
ensureApplicationTagsIsMutable();
applicationTags_.addAll(other.applicationTags_);
}
onChanged();
}
if (other.hasLogAggregationStatus()) {
setLogAggregationStatus(other.getLogAggregationStatus());
}
if (other.hasUnmanagedApplication()) {
setUnmanagedApplication(other.getUnmanagedApplication());
}
if (other.hasPriority()) {
mergePriority(other.getPriority());
}
if (other.hasAppNodeLabelExpression()) {
bitField0_ |= 0x00800000;
appNodeLabelExpression_ = other.appNodeLabelExpression_;
onChanged();
}
if (other.hasAmNodeLabelExpression()) {
bitField0_ |= 0x01000000;
amNodeLabelExpression_ = other.amNodeLabelExpression_;
onChanged();
}
if (appTimeoutsBuilder_ == null) {
if (!other.appTimeouts_.isEmpty()) {
if (appTimeouts_.isEmpty()) {
appTimeouts_ = other.appTimeouts_;
bitField0_ = (bitField0_ & ~0x02000000);
} else {
ensureAppTimeoutsIsMutable();
appTimeouts_.addAll(other.appTimeouts_);
}
onChanged();
}
} else {
if (!other.appTimeouts_.isEmpty()) {
if (appTimeoutsBuilder_.isEmpty()) {
appTimeoutsBuilder_.dispose();
appTimeoutsBuilder_ = null;
appTimeouts_ = other.appTimeouts_;
bitField0_ = (bitField0_ & ~0x02000000);
appTimeoutsBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAppTimeoutsFieldBuilder() : null;
} else {
appTimeoutsBuilder_.addAllMessages(other.appTimeouts_);
}
}
}
if (other.hasLaunchTime()) {
setLaunchTime(other.getLaunchTime());
}
if (other.hasSubmitTime()) {
setSubmitTime(other.getSubmitTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasClientToAmToken()) {
if (!getClientToAmToken().isInitialized()) {
return false;
}
}
if (hasAppResourceUsage()) {
if (!getAppResourceUsage().isInitialized()) {
return false;
}
}
if (hasAmRmToken()) {
if (!getAmRmToken().isInitialized()) {
return false;
}
}
for (int i = 0; i < getAppTimeoutsCount(); i++) {
if (!getAppTimeouts(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public Builder setApplicationId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationId_ != null &&
applicationId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = null;
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto applicationId = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
getApplicationId(),
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
private java.lang.Object user_ = "";
/**
* optional string user = 2;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string user = 2;
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
user_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string user = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string user = 2;
*/
public Builder setUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
user_ = value;
onChanged();
return this;
}
/**
* optional string user = 2;
*/
public Builder clearUser() {
bitField0_ = (bitField0_ & ~0x00000002);
user_ = getDefaultInstance().getUser();
onChanged();
return this;
}
/**
* optional string user = 2;
*/
public Builder setUserBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
user_ = value;
onChanged();
return this;
}
private java.lang.Object queue_ = "";
/**
* optional string queue = 3;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string queue = 3;
*/
public java.lang.String getQueue() {
java.lang.Object ref = queue_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
queue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string queue = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getQueueBytes() {
java.lang.Object ref = queue_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queue_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string queue = 3;
*/
public Builder setQueue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
queue_ = value;
onChanged();
return this;
}
/**
* optional string queue = 3;
*/
public Builder clearQueue() {
bitField0_ = (bitField0_ & ~0x00000004);
queue_ = getDefaultInstance().getQueue();
onChanged();
return this;
}
/**
* optional string queue = 3;
*/
public Builder setQueueBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
queue_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 4;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string name = 4;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string name = 4;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 4;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000008);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 4;
*/
public Builder setNameBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
name_ = value;
onChanged();
return this;
}
private java.lang.Object host_ = "";
/**
* optional string host = 5;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string host = 5;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string host = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string host = 5;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
host_ = value;
onChanged();
return this;
}
/**
* optional string host = 5;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000010);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* optional string host = 5;
*/
public Builder setHostBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
host_ = value;
onChanged();
return this;
}
private int rpcPort_ ;
/**
* optional int32 rpc_port = 6;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 rpc_port = 6;
*/
public int getRpcPort() {
return rpcPort_;
}
/**
* optional int32 rpc_port = 6;
*/
public Builder setRpcPort(int value) {
bitField0_ |= 0x00000020;
rpcPort_ = value;
onChanged();
return this;
}
/**
* optional int32 rpc_port = 6;
*/
public Builder clearRpcPort() {
bitField0_ = (bitField0_ & ~0x00000020);
rpcPort_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto clientToAmToken_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> clientToAmTokenBuilder_;
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public boolean hasClientToAmToken() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getClientToAmToken() {
if (clientToAmTokenBuilder_ == null) {
return clientToAmToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : clientToAmToken_;
} else {
return clientToAmTokenBuilder_.getMessage();
}
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public Builder setClientToAmToken(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (clientToAmTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clientToAmToken_ = value;
onChanged();
} else {
clientToAmTokenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public Builder setClientToAmToken(
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
if (clientToAmTokenBuilder_ == null) {
clientToAmToken_ = builderForValue.build();
onChanged();
} else {
clientToAmTokenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public Builder mergeClientToAmToken(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (clientToAmTokenBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
clientToAmToken_ != null &&
clientToAmToken_ != org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
clientToAmToken_ =
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(clientToAmToken_).mergeFrom(value).buildPartial();
} else {
clientToAmToken_ = value;
}
onChanged();
} else {
clientToAmTokenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public Builder clearClientToAmToken() {
if (clientToAmTokenBuilder_ == null) {
clientToAmToken_ = null;
onChanged();
} else {
clientToAmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getClientToAmTokenBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getClientToAmTokenFieldBuilder().getBuilder();
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getClientToAmTokenOrBuilder() {
if (clientToAmTokenBuilder_ != null) {
return clientToAmTokenBuilder_.getMessageOrBuilder();
} else {
return clientToAmToken_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : clientToAmToken_;
}
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto client_to_am_token = 7;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getClientToAmTokenFieldBuilder() {
if (clientToAmTokenBuilder_ == null) {
clientToAmTokenBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
getClientToAmToken(),
getParentForChildren(),
isClean());
clientToAmToken_ = null;
}
return clientToAmTokenBuilder_;
}
private int yarnApplicationState_ = 1;
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
public boolean hasYarnApplicationState() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto getYarnApplicationState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.valueOf(yarnApplicationState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.NEW : result;
}
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
public Builder setYarnApplicationState(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
yarnApplicationState_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.YarnApplicationStateProto yarn_application_state = 8;
*/
public Builder clearYarnApplicationState() {
bitField0_ = (bitField0_ & ~0x00000080);
yarnApplicationState_ = 1;
onChanged();
return this;
}
private java.lang.Object trackingUrl_ = "";
/**
* optional string trackingUrl = 9;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string trackingUrl = 9;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string trackingUrl = 9;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string trackingUrl = 9;
*/
public Builder setTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
trackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string trackingUrl = 9;
*/
public Builder clearTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00000100);
trackingUrl_ = getDefaultInstance().getTrackingUrl();
onChanged();
return this;
}
/**
* optional string trackingUrl = 9;
*/
public Builder setTrackingUrlBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
trackingUrl_ = value;
onChanged();
return this;
}
private java.lang.Object diagnostics_ = "N/A";
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public java.lang.String getDiagnostics() {
java.lang.Object ref = diagnostics_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public Builder setDiagnostics(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
diagnostics_ = value;
onChanged();
return this;
}
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public Builder clearDiagnostics() {
bitField0_ = (bitField0_ & ~0x00000200);
diagnostics_ = getDefaultInstance().getDiagnostics();
onChanged();
return this;
}
/**
* optional string diagnostics = 10 [default = "N/A"];
*/
public Builder setDiagnosticsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
diagnostics_ = value;
onChanged();
return this;
}
private long startTime_ ;
/**
* optional int64 startTime = 11;
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int64 startTime = 11;
*/
public long getStartTime() {
return startTime_;
}
/**
* optional int64 startTime = 11;
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000400;
startTime_ = value;
onChanged();
return this;
}
/**
* optional int64 startTime = 11;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000400);
startTime_ = 0L;
onChanged();
return this;
}
private long finishTime_ ;
/**
* optional int64 finishTime = 12;
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int64 finishTime = 12;
*/
public long getFinishTime() {
return finishTime_;
}
/**
* optional int64 finishTime = 12;
*/
public Builder setFinishTime(long value) {
bitField0_ |= 0x00000800;
finishTime_ = value;
onChanged();
return this;
}
/**
* optional int64 finishTime = 12;
*/
public Builder clearFinishTime() {
bitField0_ = (bitField0_ & ~0x00000800);
finishTime_ = 0L;
onChanged();
return this;
}
private int finalApplicationStatus_ = 0;
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
public boolean hasFinalApplicationStatus() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(finalApplicationStatus_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED : result;
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
public Builder setFinalApplicationStatus(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00001000;
finalApplicationStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 13;
*/
public Builder clearFinalApplicationStatus() {
bitField0_ = (bitField0_ & ~0x00001000);
finalApplicationStatus_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto appResourceUsage_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder> appResourceUsageBuilder_;
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public boolean hasAppResourceUsage() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto getAppResourceUsage() {
if (appResourceUsageBuilder_ == null) {
return appResourceUsage_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance() : appResourceUsage_;
} else {
return appResourceUsageBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public Builder setAppResourceUsage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto value) {
if (appResourceUsageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appResourceUsage_ = value;
onChanged();
} else {
appResourceUsageBuilder_.setMessage(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public Builder setAppResourceUsage(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder builderForValue) {
if (appResourceUsageBuilder_ == null) {
appResourceUsage_ = builderForValue.build();
onChanged();
} else {
appResourceUsageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public Builder mergeAppResourceUsage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto value) {
if (appResourceUsageBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0) &&
appResourceUsage_ != null &&
appResourceUsage_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance()) {
appResourceUsage_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.newBuilder(appResourceUsage_).mergeFrom(value).buildPartial();
} else {
appResourceUsage_ = value;
}
onChanged();
} else {
appResourceUsageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00002000;
return this;
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public Builder clearAppResourceUsage() {
if (appResourceUsageBuilder_ == null) {
appResourceUsage_ = null;
onChanged();
} else {
appResourceUsageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder getAppResourceUsageBuilder() {
bitField0_ |= 0x00002000;
onChanged();
return getAppResourceUsageFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder getAppResourceUsageOrBuilder() {
if (appResourceUsageBuilder_ != null) {
return appResourceUsageBuilder_.getMessageOrBuilder();
} else {
return appResourceUsage_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.getDefaultInstance() : appResourceUsage_;
}
}
/**
* optional .hadoop.yarn.ApplicationResourceUsageReportProto app_resource_Usage = 14;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder>
getAppResourceUsageFieldBuilder() {
if (appResourceUsageBuilder_ == null) {
appResourceUsageBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProtoOrBuilder>(
getAppResourceUsage(),
getParentForChildren(),
isClean());
appResourceUsage_ = null;
}
return appResourceUsageBuilder_;
}
private java.lang.Object originalTrackingUrl_ = "";
/**
* optional string originalTrackingUrl = 15;
*/
public boolean hasOriginalTrackingUrl() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional string originalTrackingUrl = 15;
*/
public java.lang.String getOriginalTrackingUrl() {
java.lang.Object ref = originalTrackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
originalTrackingUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string originalTrackingUrl = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getOriginalTrackingUrlBytes() {
java.lang.Object ref = originalTrackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalTrackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string originalTrackingUrl = 15;
*/
public Builder setOriginalTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
originalTrackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string originalTrackingUrl = 15;
*/
public Builder clearOriginalTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00004000);
originalTrackingUrl_ = getDefaultInstance().getOriginalTrackingUrl();
onChanged();
return this;
}
/**
* optional string originalTrackingUrl = 15;
*/
public Builder setOriginalTrackingUrlBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
originalTrackingUrl_ = value;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto currentApplicationAttemptId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> currentApplicationAttemptIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public boolean hasCurrentApplicationAttemptId() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getCurrentApplicationAttemptId() {
if (currentApplicationAttemptIdBuilder_ == null) {
return currentApplicationAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : currentApplicationAttemptId_;
} else {
return currentApplicationAttemptIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public Builder setCurrentApplicationAttemptId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (currentApplicationAttemptIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentApplicationAttemptId_ = value;
onChanged();
} else {
currentApplicationAttemptIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public Builder setCurrentApplicationAttemptId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
if (currentApplicationAttemptIdBuilder_ == null) {
currentApplicationAttemptId_ = builderForValue.build();
onChanged();
} else {
currentApplicationAttemptIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public Builder mergeCurrentApplicationAttemptId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (currentApplicationAttemptIdBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
currentApplicationAttemptId_ != null &&
currentApplicationAttemptId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
currentApplicationAttemptId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(currentApplicationAttemptId_).mergeFrom(value).buildPartial();
} else {
currentApplicationAttemptId_ = value;
}
onChanged();
} else {
currentApplicationAttemptIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public Builder clearCurrentApplicationAttemptId() {
if (currentApplicationAttemptIdBuilder_ == null) {
currentApplicationAttemptId_ = null;
onChanged();
} else {
currentApplicationAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getCurrentApplicationAttemptIdBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getCurrentApplicationAttemptIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getCurrentApplicationAttemptIdOrBuilder() {
if (currentApplicationAttemptIdBuilder_ != null) {
return currentApplicationAttemptIdBuilder_.getMessageOrBuilder();
} else {
return currentApplicationAttemptId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : currentApplicationAttemptId_;
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto currentApplicationAttemptId = 16;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>
getCurrentApplicationAttemptIdFieldBuilder() {
if (currentApplicationAttemptIdBuilder_ == null) {
currentApplicationAttemptIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
getCurrentApplicationAttemptId(),
getParentForChildren(),
isClean());
currentApplicationAttemptId_ = null;
}
return currentApplicationAttemptIdBuilder_;
}
private float progress_ ;
/**
* optional float progress = 17;
*/
public boolean hasProgress() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional float progress = 17;
*/
public float getProgress() {
return progress_;
}
/**
* optional float progress = 17;
*/
public Builder setProgress(float value) {
bitField0_ |= 0x00010000;
progress_ = value;
onChanged();
return this;
}
/**
* optional float progress = 17;
*/
public Builder clearProgress() {
bitField0_ = (bitField0_ & ~0x00010000);
progress_ = 0F;
onChanged();
return this;
}
private java.lang.Object applicationType_ = "";
/**
* optional string applicationType = 18;
*/
public boolean hasApplicationType() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional string applicationType = 18;
*/
public java.lang.String getApplicationType() {
java.lang.Object ref = applicationType_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
applicationType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string applicationType = 18;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getApplicationTypeBytes() {
java.lang.Object ref = applicationType_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
applicationType_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string applicationType = 18;
*/
public Builder setApplicationType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
applicationType_ = value;
onChanged();
return this;
}
/**
* optional string applicationType = 18;
*/
public Builder clearApplicationType() {
bitField0_ = (bitField0_ & ~0x00020000);
applicationType_ = getDefaultInstance().getApplicationType();
onChanged();
return this;
}
/**
* optional string applicationType = 18;
*/
public Builder setApplicationTypeBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
applicationType_ = value;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto amRmToken_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> amRmTokenBuilder_;
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public boolean hasAmRmToken() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken() {
if (amRmTokenBuilder_ == null) {
return amRmToken_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
} else {
return amRmTokenBuilder_.getMessage();
}
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public Builder setAmRmToken(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (amRmTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
amRmToken_ = value;
onChanged();
} else {
amRmTokenBuilder_.setMessage(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public Builder setAmRmToken(
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
if (amRmTokenBuilder_ == null) {
amRmToken_ = builderForValue.build();
onChanged();
} else {
amRmTokenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public Builder mergeAmRmToken(org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (amRmTokenBuilder_ == null) {
if (((bitField0_ & 0x00040000) != 0) &&
amRmToken_ != null &&
amRmToken_ != org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
amRmToken_ =
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(amRmToken_).mergeFrom(value).buildPartial();
} else {
amRmToken_ = value;
}
onChanged();
} else {
amRmTokenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00040000;
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public Builder clearAmRmToken() {
if (amRmTokenBuilder_ == null) {
amRmToken_ = null;
onChanged();
} else {
amRmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00040000);
return this;
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getAmRmTokenBuilder() {
bitField0_ |= 0x00040000;
onChanged();
return getAmRmTokenFieldBuilder().getBuilder();
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder() {
if (amRmTokenBuilder_ != null) {
return amRmTokenBuilder_.getMessageOrBuilder();
} else {
return amRmToken_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
}
}
/**
* optional .hadoop.org.apache.hadoop.shaded.com.on.TokenProto am_rm_token = 19;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getAmRmTokenFieldBuilder() {
if (amRmTokenBuilder_ == null) {
amRmTokenBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
getAmRmToken(),
getParentForChildren(),
isClean());
amRmToken_ = null;
}
return amRmTokenBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList applicationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
private void ensureApplicationTagsIsMutable() {
if (!((bitField0_ & 0x00080000) != 0)) {
applicationTags_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList(applicationTags_);
bitField0_ |= 0x00080000;
}
}
/**
* repeated string applicationTags = 20;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getApplicationTagsList() {
return applicationTags_.getUnmodifiableView();
}
/**
* repeated string applicationTags = 20;
*/
public int getApplicationTagsCount() {
return applicationTags_.size();
}
/**
* repeated string applicationTags = 20;
*/
public java.lang.String getApplicationTags(int index) {
return applicationTags_.get(index);
}
/**
* repeated string applicationTags = 20;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getApplicationTagsBytes(int index) {
return applicationTags_.getByteString(index);
}
/**
* repeated string applicationTags = 20;
*/
public Builder setApplicationTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTagsIsMutable();
applicationTags_.set(index, value);
onChanged();
return this;
}
/**
* repeated string applicationTags = 20;
*/
public Builder addApplicationTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTagsIsMutable();
applicationTags_.add(value);
onChanged();
return this;
}
/**
* repeated string applicationTags = 20;
*/
public Builder addAllApplicationTags(
java.lang.Iterable values) {
ensureApplicationTagsIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, applicationTags_);
onChanged();
return this;
}
/**
* repeated string applicationTags = 20;
*/
public Builder clearApplicationTags() {
applicationTags_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
return this;
}
/**
* repeated string applicationTags = 20;
*/
public Builder addApplicationTagsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTagsIsMutable();
applicationTags_.add(value);
onChanged();
return this;
}
private int logAggregationStatus_ = 1;
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
public boolean hasLogAggregationStatus() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto getLogAggregationStatus() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.valueOf(logAggregationStatus_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto.LOG_DISABLED : result;
}
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
public Builder setLogAggregationStatus(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationStatusProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00100000;
logAggregationStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.LogAggregationStatusProto log_aggregation_status = 21;
*/
public Builder clearLogAggregationStatus() {
bitField0_ = (bitField0_ & ~0x00100000);
logAggregationStatus_ = 1;
onChanged();
return this;
}
private boolean unmanagedApplication_ ;
/**
* optional bool unmanaged_application = 22 [default = false];
*/
public boolean hasUnmanagedApplication() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* optional bool unmanaged_application = 22 [default = false];
*/
public boolean getUnmanagedApplication() {
return unmanagedApplication_;
}
/**
* optional bool unmanaged_application = 22 [default = false];
*/
public Builder setUnmanagedApplication(boolean value) {
bitField0_ |= 0x00200000;
unmanagedApplication_ = value;
onChanged();
return this;
}
/**
* optional bool unmanaged_application = 22 [default = false];
*/
public Builder clearUnmanagedApplication() {
bitField0_ = (bitField0_ & ~0x00200000);
unmanagedApplication_ = false;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> priorityBuilder_;
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
if (priorityBuilder_ == null) {
return priority_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
} else {
return priorityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public Builder setPriority(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
priority_ = value;
onChanged();
} else {
priorityBuilder_.setMessage(value);
}
bitField0_ |= 0x00400000;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public Builder setPriority(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder builderForValue) {
if (priorityBuilder_ == null) {
priority_ = builderForValue.build();
onChanged();
} else {
priorityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00400000;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public Builder mergePriority(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (((bitField0_ & 0x00400000) != 0) &&
priority_ != null &&
priority_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) {
priority_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder(priority_).mergeFrom(value).buildPartial();
} else {
priority_ = value;
}
onChanged();
} else {
priorityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00400000;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public Builder clearPriority() {
if (priorityBuilder_ == null) {
priority_ = null;
onChanged();
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00400000);
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getPriorityBuilder() {
bitField0_ |= 0x00400000;
onChanged();
return getPriorityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
if (priorityBuilder_ != null) {
return priorityBuilder_.getMessageOrBuilder();
} else {
return priority_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : priority_;
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 23;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>
getPriorityFieldBuilder() {
if (priorityBuilder_ == null) {
priorityBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>(
getPriority(),
getParentForChildren(),
isClean());
priority_ = null;
}
return priorityBuilder_;
}
private java.lang.Object appNodeLabelExpression_ = "";
/**
* optional string appNodeLabelExpression = 24;
*/
public boolean hasAppNodeLabelExpression() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
* optional string appNodeLabelExpression = 24;
*/
public java.lang.String getAppNodeLabelExpression() {
java.lang.Object ref = appNodeLabelExpression_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
appNodeLabelExpression_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string appNodeLabelExpression = 24;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAppNodeLabelExpressionBytes() {
java.lang.Object ref = appNodeLabelExpression_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appNodeLabelExpression_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string appNodeLabelExpression = 24;
*/
public Builder setAppNodeLabelExpression(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00800000;
appNodeLabelExpression_ = value;
onChanged();
return this;
}
/**
* optional string appNodeLabelExpression = 24;
*/
public Builder clearAppNodeLabelExpression() {
bitField0_ = (bitField0_ & ~0x00800000);
appNodeLabelExpression_ = getDefaultInstance().getAppNodeLabelExpression();
onChanged();
return this;
}
/**
* optional string appNodeLabelExpression = 24;
*/
public Builder setAppNodeLabelExpressionBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00800000;
appNodeLabelExpression_ = value;
onChanged();
return this;
}
private java.lang.Object amNodeLabelExpression_ = "";
/**
* optional string amNodeLabelExpression = 25;
*/
public boolean hasAmNodeLabelExpression() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
* optional string amNodeLabelExpression = 25;
*/
public java.lang.String getAmNodeLabelExpression() {
java.lang.Object ref = amNodeLabelExpression_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
amNodeLabelExpression_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string amNodeLabelExpression = 25;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getAmNodeLabelExpressionBytes() {
java.lang.Object ref = amNodeLabelExpression_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
amNodeLabelExpression_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string amNodeLabelExpression = 25;
*/
public Builder setAmNodeLabelExpression(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x01000000;
amNodeLabelExpression_ = value;
onChanged();
return this;
}
/**
* optional string amNodeLabelExpression = 25;
*/
public Builder clearAmNodeLabelExpression() {
bitField0_ = (bitField0_ & ~0x01000000);
amNodeLabelExpression_ = getDefaultInstance().getAmNodeLabelExpression();
onChanged();
return this;
}
/**
* optional string amNodeLabelExpression = 25;
*/
public Builder setAmNodeLabelExpressionBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x01000000;
amNodeLabelExpression_ = value;
onChanged();
return this;
}
private java.util.List appTimeouts_ =
java.util.Collections.emptyList();
private void ensureAppTimeoutsIsMutable() {
if (!((bitField0_ & 0x02000000) != 0)) {
appTimeouts_ = new java.util.ArrayList(appTimeouts_);
bitField0_ |= 0x02000000;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder> appTimeoutsBuilder_;
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public java.util.List getAppTimeoutsList() {
if (appTimeoutsBuilder_ == null) {
return java.util.Collections.unmodifiableList(appTimeouts_);
} else {
return appTimeoutsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public int getAppTimeoutsCount() {
if (appTimeoutsBuilder_ == null) {
return appTimeouts_.size();
} else {
return appTimeoutsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto getAppTimeouts(int index) {
if (appTimeoutsBuilder_ == null) {
return appTimeouts_.get(index);
} else {
return appTimeoutsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder setAppTimeouts(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto value) {
if (appTimeoutsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAppTimeoutsIsMutable();
appTimeouts_.set(index, value);
onChanged();
} else {
appTimeoutsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder setAppTimeouts(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder builderForValue) {
if (appTimeoutsBuilder_ == null) {
ensureAppTimeoutsIsMutable();
appTimeouts_.set(index, builderForValue.build());
onChanged();
} else {
appTimeoutsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder addAppTimeouts(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto value) {
if (appTimeoutsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAppTimeoutsIsMutable();
appTimeouts_.add(value);
onChanged();
} else {
appTimeoutsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder addAppTimeouts(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto value) {
if (appTimeoutsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAppTimeoutsIsMutable();
appTimeouts_.add(index, value);
onChanged();
} else {
appTimeoutsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder addAppTimeouts(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder builderForValue) {
if (appTimeoutsBuilder_ == null) {
ensureAppTimeoutsIsMutable();
appTimeouts_.add(builderForValue.build());
onChanged();
} else {
appTimeoutsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder addAppTimeouts(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder builderForValue) {
if (appTimeoutsBuilder_ == null) {
ensureAppTimeoutsIsMutable();
appTimeouts_.add(index, builderForValue.build());
onChanged();
} else {
appTimeoutsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder addAllAppTimeouts(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto> values) {
if (appTimeoutsBuilder_ == null) {
ensureAppTimeoutsIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, appTimeouts_);
onChanged();
} else {
appTimeoutsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder clearAppTimeouts() {
if (appTimeoutsBuilder_ == null) {
appTimeouts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x02000000);
onChanged();
} else {
appTimeoutsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public Builder removeAppTimeouts(int index) {
if (appTimeoutsBuilder_ == null) {
ensureAppTimeoutsIsMutable();
appTimeouts_.remove(index);
onChanged();
} else {
appTimeoutsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder getAppTimeoutsBuilder(
int index) {
return getAppTimeoutsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder getAppTimeoutsOrBuilder(
int index) {
if (appTimeoutsBuilder_ == null) {
return appTimeouts_.get(index); } else {
return appTimeoutsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder>
getAppTimeoutsOrBuilderList() {
if (appTimeoutsBuilder_ != null) {
return appTimeoutsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(appTimeouts_);
}
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder addAppTimeoutsBuilder() {
return getAppTimeoutsFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder addAppTimeoutsBuilder(
int index) {
return getAppTimeoutsFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.AppTimeoutsMapProto appTimeouts = 26;
*/
public java.util.List
getAppTimeoutsBuilderList() {
return getAppTimeoutsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder>
getAppTimeoutsFieldBuilder() {
if (appTimeoutsBuilder_ == null) {
appTimeoutsBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder>(
appTimeouts_,
((bitField0_ & 0x02000000) != 0),
getParentForChildren(),
isClean());
appTimeouts_ = null;
}
return appTimeoutsBuilder_;
}
private long launchTime_ ;
/**
* optional int64 launchTime = 27;
*/
public boolean hasLaunchTime() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
* optional int64 launchTime = 27;
*/
public long getLaunchTime() {
return launchTime_;
}
/**
* optional int64 launchTime = 27;
*/
public Builder setLaunchTime(long value) {
bitField0_ |= 0x04000000;
launchTime_ = value;
onChanged();
return this;
}
/**
* optional int64 launchTime = 27;
*/
public Builder clearLaunchTime() {
bitField0_ = (bitField0_ & ~0x04000000);
launchTime_ = 0L;
onChanged();
return this;
}
private long submitTime_ ;
/**
* optional int64 submitTime = 28;
*/
public boolean hasSubmitTime() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
* optional int64 submitTime = 28;
*/
public long getSubmitTime() {
return submitTime_;
}
/**
* optional int64 submitTime = 28;
*/
public Builder setSubmitTime(long value) {
bitField0_ |= 0x08000000;
submitTime_ = value;
onChanged();
return this;
}
/**
* optional int64 submitTime = 28;
*/
public Builder clearSubmitTime() {
bitField0_ = (bitField0_ & ~0x08000000);
submitTime_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationReportProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationReportProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationReportProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ApplicationReportProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AppTimeoutsMapProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.AppTimeoutsMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
boolean hasApplicationTimeoutType();
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto getApplicationTimeoutType();
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
boolean hasApplicationTimeout();
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto getApplicationTimeout();
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder getApplicationTimeoutOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.AppTimeoutsMapProto}
*/
public static final class AppTimeoutsMapProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.AppTimeoutsMapProto)
AppTimeoutsMapProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AppTimeoutsMapProto.newBuilder() to construct.
private AppTimeoutsMapProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AppTimeoutsMapProto() {
applicationTimeoutType_ = 1;
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AppTimeoutsMapProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
applicationTimeoutType_ = rawValue;
}
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = applicationTimeout_.toBuilder();
}
applicationTimeout_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationTimeout_);
applicationTimeout_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_AppTimeoutsMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_AppTimeoutsMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_TIMEOUT_TYPE_FIELD_NUMBER = 1;
private int applicationTimeoutType_;
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public boolean hasApplicationTimeoutType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto getApplicationTimeoutType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.valueOf(applicationTimeoutType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.APP_TIMEOUT_LIFETIME : result;
}
public static final int APPLICATION_TIMEOUT_FIELD_NUMBER = 2;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto applicationTimeout_;
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public boolean hasApplicationTimeout() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto getApplicationTimeout() {
return applicationTimeout_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance() : applicationTimeout_;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder getApplicationTimeoutOrBuilder() {
return applicationTimeout_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance() : applicationTimeout_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasApplicationTimeout()) {
if (!getApplicationTimeout().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, applicationTimeoutType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getApplicationTimeout());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(1, applicationTimeoutType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(2, getApplicationTimeout());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto) obj;
if (hasApplicationTimeoutType() != other.hasApplicationTimeoutType()) return false;
if (hasApplicationTimeoutType()) {
if (applicationTimeoutType_ != other.applicationTimeoutType_) return false;
}
if (hasApplicationTimeout() != other.hasApplicationTimeout()) return false;
if (hasApplicationTimeout()) {
if (!getApplicationTimeout()
.equals(other.getApplicationTimeout())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasApplicationTimeoutType()) {
hash = (37 * hash) + APPLICATION_TIMEOUT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + applicationTimeoutType_;
}
if (hasApplicationTimeout()) {
hash = (37 * hash) + APPLICATION_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getApplicationTimeout().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.AppTimeoutsMapProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.AppTimeoutsMapProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_AppTimeoutsMapProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_AppTimeoutsMapProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationTimeoutFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
applicationTimeoutType_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
if (applicationTimeoutBuilder_ == null) {
applicationTimeout_ = null;
} else {
applicationTimeoutBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_AppTimeoutsMapProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.applicationTimeoutType_ = applicationTimeoutType_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (applicationTimeoutBuilder_ == null) {
result.applicationTimeout_ = applicationTimeout_;
} else {
result.applicationTimeout_ = applicationTimeoutBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto.getDefaultInstance()) return this;
if (other.hasApplicationTimeoutType()) {
setApplicationTimeoutType(other.getApplicationTimeoutType());
}
if (other.hasApplicationTimeout()) {
mergeApplicationTimeout(other.getApplicationTimeout());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasApplicationTimeout()) {
if (!getApplicationTimeout().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int applicationTimeoutType_ = 1;
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public boolean hasApplicationTimeoutType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto getApplicationTimeoutType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.valueOf(applicationTimeoutType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.APP_TIMEOUT_LIFETIME : result;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public Builder setApplicationTimeoutType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
applicationTimeoutType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public Builder clearApplicationTimeoutType() {
bitField0_ = (bitField0_ & ~0x00000001);
applicationTimeoutType_ = 1;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto applicationTimeout_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder> applicationTimeoutBuilder_;
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public boolean hasApplicationTimeout() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto getApplicationTimeout() {
if (applicationTimeoutBuilder_ == null) {
return applicationTimeout_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance() : applicationTimeout_;
} else {
return applicationTimeoutBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public Builder setApplicationTimeout(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto value) {
if (applicationTimeoutBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationTimeout_ = value;
onChanged();
} else {
applicationTimeoutBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public Builder setApplicationTimeout(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder builderForValue) {
if (applicationTimeoutBuilder_ == null) {
applicationTimeout_ = builderForValue.build();
onChanged();
} else {
applicationTimeoutBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public Builder mergeApplicationTimeout(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto value) {
if (applicationTimeoutBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
applicationTimeout_ != null &&
applicationTimeout_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance()) {
applicationTimeout_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.newBuilder(applicationTimeout_).mergeFrom(value).buildPartial();
} else {
applicationTimeout_ = value;
}
onChanged();
} else {
applicationTimeoutBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public Builder clearApplicationTimeout() {
if (applicationTimeoutBuilder_ == null) {
applicationTimeout_ = null;
onChanged();
} else {
applicationTimeoutBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder getApplicationTimeoutBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getApplicationTimeoutFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder getApplicationTimeoutOrBuilder() {
if (applicationTimeoutBuilder_ != null) {
return applicationTimeoutBuilder_.getMessageOrBuilder();
} else {
return applicationTimeout_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance() : applicationTimeout_;
}
}
/**
* optional .hadoop.yarn.ApplicationTimeoutProto application_timeout = 2;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder>
getApplicationTimeoutFieldBuilder() {
if (applicationTimeoutBuilder_ == null) {
applicationTimeoutBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder>(
getApplicationTimeout(),
getParentForChildren(),
isClean());
applicationTimeout_ = null;
}
return applicationTimeoutBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.AppTimeoutsMapProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.AppTimeoutsMapProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public AppTimeoutsMapProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new AppTimeoutsMapProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationTimeoutProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ApplicationTimeoutProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
boolean hasApplicationTimeoutType();
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto getApplicationTimeoutType();
/**
* optional string expire_time = 2;
*/
boolean hasExpireTime();
/**
* optional string expire_time = 2;
*/
java.lang.String getExpireTime();
/**
* optional string expire_time = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExpireTimeBytes();
/**
* optional int64 remaining_time = 3;
*/
boolean hasRemainingTime();
/**
* optional int64 remaining_time = 3;
*/
long getRemainingTime();
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationTimeoutProto}
*/
public static final class ApplicationTimeoutProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ApplicationTimeoutProto)
ApplicationTimeoutProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationTimeoutProto.newBuilder() to construct.
private ApplicationTimeoutProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationTimeoutProto() {
applicationTimeoutType_ = 1;
expireTime_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationTimeoutProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
applicationTimeoutType_ = rawValue;
}
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
expireTime_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
remainingTime_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationTimeoutProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationTimeoutProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_TIMEOUT_TYPE_FIELD_NUMBER = 1;
private int applicationTimeoutType_;
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public boolean hasApplicationTimeoutType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto getApplicationTimeoutType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.valueOf(applicationTimeoutType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.APP_TIMEOUT_LIFETIME : result;
}
public static final int EXPIRE_TIME_FIELD_NUMBER = 2;
private volatile java.lang.Object expireTime_;
/**
* optional string expire_time = 2;
*/
public boolean hasExpireTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string expire_time = 2;
*/
public java.lang.String getExpireTime() {
java.lang.Object ref = expireTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
expireTime_ = s;
}
return s;
}
}
/**
* optional string expire_time = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExpireTimeBytes() {
java.lang.Object ref = expireTime_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expireTime_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int REMAINING_TIME_FIELD_NUMBER = 3;
private long remainingTime_;
/**
* optional int64 remaining_time = 3;
*/
public boolean hasRemainingTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 remaining_time = 3;
*/
public long getRemainingTime() {
return remainingTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasApplicationTimeoutType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, applicationTimeoutType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, expireTime_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, remainingTime_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(1, applicationTimeoutType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, expireTime_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(3, remainingTime_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto) obj;
if (hasApplicationTimeoutType() != other.hasApplicationTimeoutType()) return false;
if (hasApplicationTimeoutType()) {
if (applicationTimeoutType_ != other.applicationTimeoutType_) return false;
}
if (hasExpireTime() != other.hasExpireTime()) return false;
if (hasExpireTime()) {
if (!getExpireTime()
.equals(other.getExpireTime())) return false;
}
if (hasRemainingTime() != other.hasRemainingTime()) return false;
if (hasRemainingTime()) {
if (getRemainingTime()
!= other.getRemainingTime()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasApplicationTimeoutType()) {
hash = (37 * hash) + APPLICATION_TIMEOUT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + applicationTimeoutType_;
}
if (hasExpireTime()) {
hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getExpireTime().hashCode();
}
if (hasRemainingTime()) {
hash = (37 * hash) + REMAINING_TIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getRemainingTime());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationTimeoutProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ApplicationTimeoutProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationTimeoutProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationTimeoutProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
applicationTimeoutType_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
expireTime_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
remainingTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationTimeoutProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.applicationTimeoutType_ = applicationTimeoutType_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.expireTime_ = expireTime_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.remainingTime_ = remainingTime_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto.getDefaultInstance()) return this;
if (other.hasApplicationTimeoutType()) {
setApplicationTimeoutType(other.getApplicationTimeoutType());
}
if (other.hasExpireTime()) {
bitField0_ |= 0x00000002;
expireTime_ = other.expireTime_;
onChanged();
}
if (other.hasRemainingTime()) {
setRemainingTime(other.getRemainingTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasApplicationTimeoutType()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int applicationTimeoutType_ = 1;
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public boolean hasApplicationTimeoutType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto getApplicationTimeoutType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.valueOf(applicationTimeoutType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto.APP_TIMEOUT_LIFETIME : result;
}
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public Builder setApplicationTimeoutType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
applicationTimeoutType_ = value.getNumber();
onChanged();
return this;
}
/**
* required .hadoop.yarn.ApplicationTimeoutTypeProto application_timeout_type = 1;
*/
public Builder clearApplicationTimeoutType() {
bitField0_ = (bitField0_ & ~0x00000001);
applicationTimeoutType_ = 1;
onChanged();
return this;
}
private java.lang.Object expireTime_ = "";
/**
* optional string expire_time = 2;
*/
public boolean hasExpireTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string expire_time = 2;
*/
public java.lang.String getExpireTime() {
java.lang.Object ref = expireTime_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
expireTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string expire_time = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getExpireTimeBytes() {
java.lang.Object ref = expireTime_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expireTime_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string expire_time = 2;
*/
public Builder setExpireTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
expireTime_ = value;
onChanged();
return this;
}
/**
* optional string expire_time = 2;
*/
public Builder clearExpireTime() {
bitField0_ = (bitField0_ & ~0x00000002);
expireTime_ = getDefaultInstance().getExpireTime();
onChanged();
return this;
}
/**
* optional string expire_time = 2;
*/
public Builder setExpireTimeBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
expireTime_ = value;
onChanged();
return this;
}
private long remainingTime_ ;
/**
* optional int64 remaining_time = 3;
*/
public boolean hasRemainingTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 remaining_time = 3;
*/
public long getRemainingTime() {
return remainingTime_;
}
/**
* optional int64 remaining_time = 3;
*/
public Builder setRemainingTime(long value) {
bitField0_ |= 0x00000004;
remainingTime_ = value;
onChanged();
return this;
}
/**
* optional int64 remaining_time = 3;
*/
public Builder clearRemainingTime() {
bitField0_ = (bitField0_ & ~0x00000004);
remainingTime_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationTimeoutProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationTimeoutProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationTimeoutProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ApplicationTimeoutProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ApplicationAttemptReportProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.ApplicationAttemptReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
boolean hasApplicationAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getApplicationAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getApplicationAttemptIdOrBuilder();
/**
* optional string host = 2;
*/
boolean hasHost();
/**
* optional string host = 2;
*/
java.lang.String getHost();
/**
* optional string host = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes();
/**
* optional int32 rpc_port = 3;
*/
boolean hasRpcPort();
/**
* optional int32 rpc_port = 3;
*/
int getRpcPort();
/**
* optional string tracking_url = 4;
*/
boolean hasTrackingUrl();
/**
* optional string tracking_url = 4;
*/
java.lang.String getTrackingUrl();
/**
* optional string tracking_url = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes();
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
boolean hasDiagnostics();
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
java.lang.String getDiagnostics();
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes();
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
boolean hasYarnApplicationAttemptState();
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto getYarnApplicationAttemptState();
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
boolean hasAmContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getAmContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getAmContainerIdOrBuilder();
/**
* optional string original_tracking_url = 8;
*/
boolean hasOriginalTrackingUrl();
/**
* optional string original_tracking_url = 8;
*/
java.lang.String getOriginalTrackingUrl();
/**
* optional string original_tracking_url = 8;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getOriginalTrackingUrlBytes();
/**
* optional int64 startTime = 9;
*/
boolean hasStartTime();
/**
* optional int64 startTime = 9;
*/
long getStartTime();
/**
* optional int64 finishTime = 10;
*/
boolean hasFinishTime();
/**
* optional int64 finishTime = 10;
*/
long getFinishTime();
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationAttemptReportProto}
*/
public static final class ApplicationAttemptReportProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.ApplicationAttemptReportProto)
ApplicationAttemptReportProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApplicationAttemptReportProto.newBuilder() to construct.
private ApplicationAttemptReportProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApplicationAttemptReportProto() {
host_ = "";
trackingUrl_ = "";
diagnostics_ = "N/A";
yarnApplicationAttemptState_ = 1;
originalTrackingUrl_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationAttemptReportProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationAttemptId_.toBuilder();
}
applicationAttemptId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationAttemptId_);
applicationAttemptId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
host_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
rpcPort_ = input.readInt32();
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
trackingUrl_ = bs;
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
diagnostics_ = bs;
break;
}
case 48: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
bitField0_ |= 0x00000020;
yarnApplicationAttemptState_ = rawValue;
}
break;
}
case 58: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = amContainerId_.toBuilder();
}
amContainerId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(amContainerId_);
amContainerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
originalTrackingUrl_ = bs;
break;
}
case 72: {
bitField0_ |= 0x00000100;
startTime_ = input.readInt64();
break;
}
case 80: {
bitField0_ |= 0x00000200;
finishTime_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_ATTEMPT_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto applicationAttemptId_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public boolean hasApplicationAttemptId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getApplicationAttemptId() {
return applicationAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getApplicationAttemptIdOrBuilder() {
return applicationAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
}
public static final int HOST_FIELD_NUMBER = 2;
private volatile java.lang.Object host_;
/**
* optional string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* optional string host = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int RPC_PORT_FIELD_NUMBER = 3;
private int rpcPort_;
/**
* optional int32 rpc_port = 3;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 rpc_port = 3;
*/
public int getRpcPort() {
return rpcPort_;
}
public static final int TRACKING_URL_FIELD_NUMBER = 4;
private volatile java.lang.Object trackingUrl_;
/**
* optional string tracking_url = 4;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string tracking_url = 4;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string tracking_url = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int DIAGNOSTICS_FIELD_NUMBER = 5;
private volatile java.lang.Object diagnostics_;
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public java.lang.String getDiagnostics() {
java.lang.Object ref = diagnostics_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
}
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int YARN_APPLICATION_ATTEMPT_STATE_FIELD_NUMBER = 6;
private int yarnApplicationAttemptState_;
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
public boolean hasYarnApplicationAttemptState() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto getYarnApplicationAttemptState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto.valueOf(yarnApplicationAttemptState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto.APP_ATTEMPT_NEW : result;
}
public static final int AM_CONTAINER_ID_FIELD_NUMBER = 7;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto amContainerId_;
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public boolean hasAmContainerId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getAmContainerId() {
return amContainerId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : amContainerId_;
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getAmContainerIdOrBuilder() {
return amContainerId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : amContainerId_;
}
public static final int ORIGINAL_TRACKING_URL_FIELD_NUMBER = 8;
private volatile java.lang.Object originalTrackingUrl_;
/**
* optional string original_tracking_url = 8;
*/
public boolean hasOriginalTrackingUrl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string original_tracking_url = 8;
*/
public java.lang.String getOriginalTrackingUrl() {
java.lang.Object ref = originalTrackingUrl_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
originalTrackingUrl_ = s;
}
return s;
}
}
/**
* optional string original_tracking_url = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getOriginalTrackingUrlBytes() {
java.lang.Object ref = originalTrackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalTrackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int STARTTIME_FIELD_NUMBER = 9;
private long startTime_;
/**
* optional int64 startTime = 9;
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 startTime = 9;
*/
public long getStartTime() {
return startTime_;
}
public static final int FINISHTIME_FIELD_NUMBER = 10;
private long finishTime_;
/**
* optional int64 finishTime = 10;
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 finishTime = 10;
*/
public long getFinishTime() {
return finishTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationAttemptId());
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, host_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, rpcPort_);
}
if (((bitField0_ & 0x00000008) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 4, trackingUrl_);
}
if (((bitField0_ & 0x00000010) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 5, diagnostics_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeEnum(6, yarnApplicationAttemptState_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getAmContainerId());
}
if (((bitField0_ & 0x00000080) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 8, originalTrackingUrl_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(9, startTime_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt64(10, finishTime_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getApplicationAttemptId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, host_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(3, rpcPort_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(4, trackingUrl_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(5, diagnostics_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(6, yarnApplicationAttemptState_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(7, getAmContainerId());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(8, originalTrackingUrl_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(9, startTime_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(10, finishTime_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto) obj;
if (hasApplicationAttemptId() != other.hasApplicationAttemptId()) return false;
if (hasApplicationAttemptId()) {
if (!getApplicationAttemptId()
.equals(other.getApplicationAttemptId())) return false;
}
if (hasHost() != other.hasHost()) return false;
if (hasHost()) {
if (!getHost()
.equals(other.getHost())) return false;
}
if (hasRpcPort() != other.hasRpcPort()) return false;
if (hasRpcPort()) {
if (getRpcPort()
!= other.getRpcPort()) return false;
}
if (hasTrackingUrl() != other.hasTrackingUrl()) return false;
if (hasTrackingUrl()) {
if (!getTrackingUrl()
.equals(other.getTrackingUrl())) return false;
}
if (hasDiagnostics() != other.hasDiagnostics()) return false;
if (hasDiagnostics()) {
if (!getDiagnostics()
.equals(other.getDiagnostics())) return false;
}
if (hasYarnApplicationAttemptState() != other.hasYarnApplicationAttemptState()) return false;
if (hasYarnApplicationAttemptState()) {
if (yarnApplicationAttemptState_ != other.yarnApplicationAttemptState_) return false;
}
if (hasAmContainerId() != other.hasAmContainerId()) return false;
if (hasAmContainerId()) {
if (!getAmContainerId()
.equals(other.getAmContainerId())) return false;
}
if (hasOriginalTrackingUrl() != other.hasOriginalTrackingUrl()) return false;
if (hasOriginalTrackingUrl()) {
if (!getOriginalTrackingUrl()
.equals(other.getOriginalTrackingUrl())) return false;
}
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (getStartTime()
!= other.getStartTime()) return false;
}
if (hasFinishTime() != other.hasFinishTime()) return false;
if (hasFinishTime()) {
if (getFinishTime()
!= other.getFinishTime()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasApplicationAttemptId()) {
hash = (37 * hash) + APPLICATION_ATTEMPT_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationAttemptId().hashCode();
}
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasRpcPort()) {
hash = (37 * hash) + RPC_PORT_FIELD_NUMBER;
hash = (53 * hash) + getRpcPort();
}
if (hasTrackingUrl()) {
hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrl().hashCode();
}
if (hasDiagnostics()) {
hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER;
hash = (53 * hash) + getDiagnostics().hashCode();
}
if (hasYarnApplicationAttemptState()) {
hash = (37 * hash) + YARN_APPLICATION_ATTEMPT_STATE_FIELD_NUMBER;
hash = (53 * hash) + yarnApplicationAttemptState_;
}
if (hasAmContainerId()) {
hash = (37 * hash) + AM_CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getAmContainerId().hashCode();
}
if (hasOriginalTrackingUrl()) {
hash = (37 * hash) + ORIGINAL_TRACKING_URL_FIELD_NUMBER;
hash = (53 * hash) + getOriginalTrackingUrl().hashCode();
}
if (hasStartTime()) {
hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getStartTime());
}
if (hasFinishTime()) {
hash = (37 * hash) + FINISHTIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getFinishTime());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.ApplicationAttemptReportProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.ApplicationAttemptReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationAttemptIdFieldBuilder();
getAmContainerIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationAttemptIdBuilder_ == null) {
applicationAttemptId_ = null;
} else {
applicationAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
host_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
rpcPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
diagnostics_ = "N/A";
bitField0_ = (bitField0_ & ~0x00000010);
yarnApplicationAttemptState_ = 1;
bitField0_ = (bitField0_ & ~0x00000020);
if (amContainerIdBuilder_ == null) {
amContainerId_ = null;
} else {
amContainerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
originalTrackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
startTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
finishTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_ApplicationAttemptReportProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (applicationAttemptIdBuilder_ == null) {
result.applicationAttemptId_ = applicationAttemptId_;
} else {
result.applicationAttemptId_ = applicationAttemptIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rpcPort_ = rpcPort_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.trackingUrl_ = trackingUrl_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.diagnostics_ = diagnostics_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.yarnApplicationAttemptState_ = yarnApplicationAttemptState_;
if (((from_bitField0_ & 0x00000040) != 0)) {
if (amContainerIdBuilder_ == null) {
result.amContainerId_ = amContainerId_;
} else {
result.amContainerId_ = amContainerIdBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.originalTrackingUrl_ = originalTrackingUrl_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.startTime_ = startTime_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.finishTime_ = finishTime_;
to_bitField0_ |= 0x00000200;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto.getDefaultInstance()) return this;
if (other.hasApplicationAttemptId()) {
mergeApplicationAttemptId(other.getApplicationAttemptId());
}
if (other.hasHost()) {
bitField0_ |= 0x00000002;
host_ = other.host_;
onChanged();
}
if (other.hasRpcPort()) {
setRpcPort(other.getRpcPort());
}
if (other.hasTrackingUrl()) {
bitField0_ |= 0x00000008;
trackingUrl_ = other.trackingUrl_;
onChanged();
}
if (other.hasDiagnostics()) {
bitField0_ |= 0x00000010;
diagnostics_ = other.diagnostics_;
onChanged();
}
if (other.hasYarnApplicationAttemptState()) {
setYarnApplicationAttemptState(other.getYarnApplicationAttemptState());
}
if (other.hasAmContainerId()) {
mergeAmContainerId(other.getAmContainerId());
}
if (other.hasOriginalTrackingUrl()) {
bitField0_ |= 0x00000080;
originalTrackingUrl_ = other.originalTrackingUrl_;
onChanged();
}
if (other.hasStartTime()) {
setStartTime(other.getStartTime());
}
if (other.hasFinishTime()) {
setFinishTime(other.getFinishTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto applicationAttemptId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> applicationAttemptIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public boolean hasApplicationAttemptId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getApplicationAttemptId() {
if (applicationAttemptIdBuilder_ == null) {
return applicationAttemptId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
} else {
return applicationAttemptIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public Builder setApplicationAttemptId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (applicationAttemptIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationAttemptId_ = value;
onChanged();
} else {
applicationAttemptIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public Builder setApplicationAttemptId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
if (applicationAttemptIdBuilder_ == null) {
applicationAttemptId_ = builderForValue.build();
onChanged();
} else {
applicationAttemptIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public Builder mergeApplicationAttemptId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (applicationAttemptIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationAttemptId_ != null &&
applicationAttemptId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
applicationAttemptId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(applicationAttemptId_).mergeFrom(value).buildPartial();
} else {
applicationAttemptId_ = value;
}
onChanged();
} else {
applicationAttemptIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public Builder clearApplicationAttemptId() {
if (applicationAttemptIdBuilder_ == null) {
applicationAttemptId_ = null;
onChanged();
} else {
applicationAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getApplicationAttemptIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationAttemptIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getApplicationAttemptIdOrBuilder() {
if (applicationAttemptIdBuilder_ != null) {
return applicationAttemptIdBuilder_.getMessageOrBuilder();
} else {
return applicationAttemptId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>
getApplicationAttemptIdFieldBuilder() {
if (applicationAttemptIdBuilder_ == null) {
applicationAttemptIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
getApplicationAttemptId(),
getParentForChildren(),
isClean());
applicationAttemptId_ = null;
}
return applicationAttemptIdBuilder_;
}
private java.lang.Object host_ = "";
/**
* optional string host = 2;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string host = 2;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string host = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string host = 2;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
/**
* optional string host = 2;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000002);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* optional string host = 2;
*/
public Builder setHostBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
host_ = value;
onChanged();
return this;
}
private int rpcPort_ ;
/**
* optional int32 rpc_port = 3;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 rpc_port = 3;
*/
public int getRpcPort() {
return rpcPort_;
}
/**
* optional int32 rpc_port = 3;
*/
public Builder setRpcPort(int value) {
bitField0_ |= 0x00000004;
rpcPort_ = value;
onChanged();
return this;
}
/**
* optional int32 rpc_port = 3;
*/
public Builder clearRpcPort() {
bitField0_ = (bitField0_ & ~0x00000004);
rpcPort_ = 0;
onChanged();
return this;
}
private java.lang.Object trackingUrl_ = "";
/**
* optional string tracking_url = 4;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string tracking_url = 4;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string tracking_url = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string tracking_url = 4;
*/
public Builder setTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
trackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string tracking_url = 4;
*/
public Builder clearTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00000008);
trackingUrl_ = getDefaultInstance().getTrackingUrl();
onChanged();
return this;
}
/**
* optional string tracking_url = 4;
*/
public Builder setTrackingUrlBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
trackingUrl_ = value;
onChanged();
return this;
}
private java.lang.Object diagnostics_ = "N/A";
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public java.lang.String getDiagnostics() {
java.lang.Object ref = diagnostics_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public Builder setDiagnostics(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
diagnostics_ = value;
onChanged();
return this;
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public Builder clearDiagnostics() {
bitField0_ = (bitField0_ & ~0x00000010);
diagnostics_ = getDefaultInstance().getDiagnostics();
onChanged();
return this;
}
/**
* optional string diagnostics = 5 [default = "N/A"];
*/
public Builder setDiagnosticsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
diagnostics_ = value;
onChanged();
return this;
}
private int yarnApplicationAttemptState_ = 1;
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
public boolean hasYarnApplicationAttemptState() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto getYarnApplicationAttemptState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto.valueOf(yarnApplicationAttemptState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto.APP_ATTEMPT_NEW : result;
}
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
public Builder setYarnApplicationAttemptState(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
yarnApplicationAttemptState_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.YarnApplicationAttemptStateProto yarn_application_attempt_state = 6;
*/
public Builder clearYarnApplicationAttemptState() {
bitField0_ = (bitField0_ & ~0x00000020);
yarnApplicationAttemptState_ = 1;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto amContainerId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> amContainerIdBuilder_;
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public boolean hasAmContainerId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getAmContainerId() {
if (amContainerIdBuilder_ == null) {
return amContainerId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : amContainerId_;
} else {
return amContainerIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public Builder setAmContainerId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (amContainerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
amContainerId_ = value;
onChanged();
} else {
amContainerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public Builder setAmContainerId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (amContainerIdBuilder_ == null) {
amContainerId_ = builderForValue.build();
onChanged();
} else {
amContainerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public Builder mergeAmContainerId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (amContainerIdBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
amContainerId_ != null &&
amContainerId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) {
amContainerId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(amContainerId_).mergeFrom(value).buildPartial();
} else {
amContainerId_ = value;
}
onChanged();
} else {
amContainerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public Builder clearAmContainerId() {
if (amContainerIdBuilder_ == null) {
amContainerId_ = null;
onChanged();
} else {
amContainerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getAmContainerIdBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getAmContainerIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getAmContainerIdOrBuilder() {
if (amContainerIdBuilder_ != null) {
return amContainerIdBuilder_.getMessageOrBuilder();
} else {
return amContainerId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : amContainerId_;
}
}
/**
* optional .hadoop.yarn.ContainerIdProto am_container_id = 7;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getAmContainerIdFieldBuilder() {
if (amContainerIdBuilder_ == null) {
amContainerIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
getAmContainerId(),
getParentForChildren(),
isClean());
amContainerId_ = null;
}
return amContainerIdBuilder_;
}
private java.lang.Object originalTrackingUrl_ = "";
/**
* optional string original_tracking_url = 8;
*/
public boolean hasOriginalTrackingUrl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string original_tracking_url = 8;
*/
public java.lang.String getOriginalTrackingUrl() {
java.lang.Object ref = originalTrackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
originalTrackingUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string original_tracking_url = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getOriginalTrackingUrlBytes() {
java.lang.Object ref = originalTrackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
originalTrackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string original_tracking_url = 8;
*/
public Builder setOriginalTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
originalTrackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string original_tracking_url = 8;
*/
public Builder clearOriginalTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00000080);
originalTrackingUrl_ = getDefaultInstance().getOriginalTrackingUrl();
onChanged();
return this;
}
/**
* optional string original_tracking_url = 8;
*/
public Builder setOriginalTrackingUrlBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
originalTrackingUrl_ = value;
onChanged();
return this;
}
private long startTime_ ;
/**
* optional int64 startTime = 9;
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 startTime = 9;
*/
public long getStartTime() {
return startTime_;
}
/**
* optional int64 startTime = 9;
*/
public Builder setStartTime(long value) {
bitField0_ |= 0x00000100;
startTime_ = value;
onChanged();
return this;
}
/**
* optional int64 startTime = 9;
*/
public Builder clearStartTime() {
bitField0_ = (bitField0_ & ~0x00000100);
startTime_ = 0L;
onChanged();
return this;
}
private long finishTime_ ;
/**
* optional int64 finishTime = 10;
*/
public boolean hasFinishTime() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int64 finishTime = 10;
*/
public long getFinishTime() {
return finishTime_;
}
/**
* optional int64 finishTime = 10;
*/
public Builder setFinishTime(long value) {
bitField0_ |= 0x00000200;
finishTime_ = value;
onChanged();
return this;
}
/**
* optional int64 finishTime = 10;
*/
public Builder clearFinishTime() {
bitField0_ = (bitField0_ & ~0x00000200);
finishTime_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ApplicationAttemptReportProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ApplicationAttemptReportProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public ApplicationAttemptReportProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new ApplicationAttemptReportProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptReportProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeIdProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.NodeIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional string host = 1;
*/
boolean hasHost();
/**
* optional string host = 1;
*/
java.lang.String getHost();
/**
* optional string host = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes();
/**
* optional int32 port = 2;
*/
boolean hasPort();
/**
* optional int32 port = 2;
*/
int getPort();
}
/**
* Protobuf type {@code hadoop.yarn.NodeIdProto}
*/
public static final class NodeIdProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.NodeIdProto)
NodeIdProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeIdProto.newBuilder() to construct.
private NodeIdProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeIdProto() {
host_ = "";
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeIdProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
host_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
port_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder.class);
}
private int bitField0_;
public static final int HOST_FIELD_NUMBER = 1;
private volatile java.lang.Object host_;
/**
* optional string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* optional string host = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private int port_;
/**
* optional int32 port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 port = 2;
*/
public int getPort() {
return port_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, host_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, port_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(1, host_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(2, port_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto) obj;
if (hasHost() != other.hasHost()) return false;
if (hasHost()) {
if (!getHost()
.equals(other.getHost())) return false;
}
if (hasPort() != other.hasPort()) return false;
if (hasPort()) {
if (getPort()
!= other.getPort()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHost()) {
hash = (37 * hash) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
}
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.NodeIdProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.NodeIdProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeIdProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
host_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
port_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeIdProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.port_ = port_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) return this;
if (other.hasHost()) {
bitField0_ |= 0x00000001;
host_ = other.host_;
onChanged();
}
if (other.hasPort()) {
setPort(other.getPort());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object host_ = "";
/**
* optional string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string host = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string host = 1;
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
/**
* optional string host = 1;
*/
public Builder clearHost() {
bitField0_ = (bitField0_ & ~0x00000001);
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
* optional string host = 1;
*/
public Builder setHostBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
private int port_ ;
/**
* optional int32 port = 2;
*/
public boolean hasPort() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 port = 2;
*/
public int getPort() {
return port_;
}
/**
* optional int32 port = 2;
*/
public Builder setPort(int value) {
bitField0_ |= 0x00000002;
port_ = value;
onChanged();
return this;
}
/**
* optional int32 port = 2;
*/
public Builder clearPort() {
bitField0_ = (bitField0_ & ~0x00000002);
port_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.NodeIdProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.NodeIdProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public NodeIdProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new NodeIdProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeReportProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.NodeReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
boolean hasNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
/**
* optional string httpAddress = 2;
*/
boolean hasHttpAddress();
/**
* optional string httpAddress = 2;
*/
java.lang.String getHttpAddress();
/**
* optional string httpAddress = 2;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHttpAddressBytes();
/**
* optional string rackName = 3;
*/
boolean hasRackName();
/**
* optional string rackName = 3;
*/
java.lang.String getRackName();
/**
* optional string rackName = 3;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getRackNameBytes();
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
boolean hasUsed();
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getUsed();
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getUsedOrBuilder();
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
boolean hasCapability();
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getCapability();
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder();
/**
* optional int32 numContainers = 6;
*/
boolean hasNumContainers();
/**
* optional int32 numContainers = 6;
*/
int getNumContainers();
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
boolean hasNodeState();
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto getNodeState();
/**
* optional string health_report = 8;
*/
boolean hasHealthReport();
/**
* optional string health_report = 8;
*/
java.lang.String getHealthReport();
/**
* optional string health_report = 8;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHealthReportBytes();
/**
* optional int64 last_health_report_time = 9;
*/
boolean hasLastHealthReportTime();
/**
* optional int64 last_health_report_time = 9;
*/
long getLastHealthReportTime();
/**
* repeated string node_labels = 10;
*/
java.util.List
getNodeLabelsList();
/**
* repeated string node_labels = 10;
*/
int getNodeLabelsCount();
/**
* repeated string node_labels = 10;
*/
java.lang.String getNodeLabels(int index);
/**
* repeated string node_labels = 10;
*/
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeLabelsBytes(int index);
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
boolean hasContainersUtilization();
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getContainersUtilization();
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder getContainersUtilizationOrBuilder();
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
boolean hasNodeUtilization();
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getNodeUtilization();
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder getNodeUtilizationOrBuilder();
/**
* optional uint32 decommissioning_timeout = 13;
*/
boolean hasDecommissioningTimeout();
/**
* optional uint32 decommissioning_timeout = 13;
*/
int getDecommissioningTimeout();
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
boolean hasNodeUpdateType();
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto getNodeUpdateType();
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
java.util.List
getNodeAttributesList();
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto getNodeAttributes(int index);
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
int getNodeAttributesCount();
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder>
getNodeAttributesOrBuilderList();
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder getNodeAttributesOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.NodeReportProto}
*/
public static final class NodeReportProto extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.NodeReportProto)
NodeReportProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeReportProto.newBuilder() to construct.
private NodeReportProto(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeReportProto() {
httpAddress_ = "";
rackName_ = "";
nodeState_ = 1;
healthReport_ = "";
nodeLabels_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
nodeUpdateType_ = 0;
nodeAttributes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeReportProto(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = nodeId_.toBuilder();
}
nodeId_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeId_);
nodeId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
httpAddress_ = bs;
break;
}
case 26: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
rackName_ = bs;
break;
}
case 34: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = used_.toBuilder();
}
used_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(used_);
used_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = capability_.toBuilder();
}
capability_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(capability_);
capability_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 48: {
bitField0_ |= 0x00000020;
numContainers_ = input.readInt32();
break;
}
case 56: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
bitField0_ |= 0x00000040;
nodeState_ = rawValue;
}
break;
}
case 66: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
healthReport_ = bs;
break;
}
case 72: {
bitField0_ |= 0x00000100;
lastHealthReportTime_ = input.readInt64();
break;
}
case 82: {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
nodeLabels_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
nodeLabels_.add(bs);
break;
}
case 90: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) != 0)) {
subBuilder = containersUtilization_.toBuilder();
}
containersUtilization_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containersUtilization_);
containersUtilization_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 98: {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) != 0)) {
subBuilder = nodeUtilization_.toBuilder();
}
nodeUtilization_ = input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeUtilization_);
nodeUtilization_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 104: {
bitField0_ |= 0x00000800;
decommissioningTimeout_ = input.readUInt32();
break;
}
case 112: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto value = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(14, rawValue);
} else {
bitField0_ |= 0x00001000;
nodeUpdateType_ = rawValue;
}
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00004000) != 0)) {
nodeAttributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
nodeAttributes_.add(
input.readMessage(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.org.apache.hadoop.shaded.io.IOException e) {
throw new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) != 0)) {
nodeLabels_ = nodeLabels_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00004000) != 0)) {
nodeAttributes_ = java.util.Collections.unmodifiableList(nodeAttributes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder.class);
}
private int bitField0_;
public static final int NODEID_FIELD_NUMBER = 1;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
public static final int HTTPADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object httpAddress_;
/**
* optional string httpAddress = 2;
*/
public boolean hasHttpAddress() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string httpAddress = 2;
*/
public java.lang.String getHttpAddress() {
java.lang.Object ref = httpAddress_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
httpAddress_ = s;
}
return s;
}
}
/**
* optional string httpAddress = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHttpAddressBytes() {
java.lang.Object ref = httpAddress_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpAddress_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int RACKNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object rackName_;
/**
* optional string rackName = 3;
*/
public boolean hasRackName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string rackName = 3;
*/
public java.lang.String getRackName() {
java.lang.Object ref = rackName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
rackName_ = s;
}
return s;
}
}
/**
* optional string rackName = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getRackNameBytes() {
java.lang.Object ref = rackName_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rackName_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int USED_FIELD_NUMBER = 4;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto used_;
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public boolean hasUsed() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getUsed() {
return used_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : used_;
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getUsedOrBuilder() {
return used_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : used_;
}
public static final int CAPABILITY_FIELD_NUMBER = 5;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto capability_;
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public boolean hasCapability() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getCapability() {
return capability_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder() {
return capability_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
}
public static final int NUMCONTAINERS_FIELD_NUMBER = 6;
private int numContainers_;
/**
* optional int32 numContainers = 6;
*/
public boolean hasNumContainers() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 numContainers = 6;
*/
public int getNumContainers() {
return numContainers_;
}
public static final int NODE_STATE_FIELD_NUMBER = 7;
private int nodeState_;
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
public boolean hasNodeState() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto getNodeState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.valueOf(nodeState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.NS_NEW : result;
}
public static final int HEALTH_REPORT_FIELD_NUMBER = 8;
private volatile java.lang.Object healthReport_;
/**
* optional string health_report = 8;
*/
public boolean hasHealthReport() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string health_report = 8;
*/
public java.lang.String getHealthReport() {
java.lang.Object ref = healthReport_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
healthReport_ = s;
}
return s;
}
}
/**
* optional string health_report = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHealthReportBytes() {
java.lang.Object ref = healthReport_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
healthReport_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int LAST_HEALTH_REPORT_TIME_FIELD_NUMBER = 9;
private long lastHealthReportTime_;
/**
* optional int64 last_health_report_time = 9;
*/
public boolean hasLastHealthReportTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 last_health_report_time = 9;
*/
public long getLastHealthReportTime() {
return lastHealthReportTime_;
}
public static final int NODE_LABELS_FIELD_NUMBER = 10;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList nodeLabels_;
/**
* repeated string node_labels = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getNodeLabelsList() {
return nodeLabels_;
}
/**
* repeated string node_labels = 10;
*/
public int getNodeLabelsCount() {
return nodeLabels_.size();
}
/**
* repeated string node_labels = 10;
*/
public java.lang.String getNodeLabels(int index) {
return nodeLabels_.get(index);
}
/**
* repeated string node_labels = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeLabelsBytes(int index) {
return nodeLabels_.getByteString(index);
}
public static final int CONTAINERS_UTILIZATION_FIELD_NUMBER = 11;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto containersUtilization_;
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public boolean hasContainersUtilization() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getContainersUtilization() {
return containersUtilization_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : containersUtilization_;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder getContainersUtilizationOrBuilder() {
return containersUtilization_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : containersUtilization_;
}
public static final int NODE_UTILIZATION_FIELD_NUMBER = 12;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto nodeUtilization_;
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public boolean hasNodeUtilization() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getNodeUtilization() {
return nodeUtilization_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : nodeUtilization_;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder getNodeUtilizationOrBuilder() {
return nodeUtilization_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : nodeUtilization_;
}
public static final int DECOMMISSIONING_TIMEOUT_FIELD_NUMBER = 13;
private int decommissioningTimeout_;
/**
* optional uint32 decommissioning_timeout = 13;
*/
public boolean hasDecommissioningTimeout() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint32 decommissioning_timeout = 13;
*/
public int getDecommissioningTimeout() {
return decommissioningTimeout_;
}
public static final int NODE_UPDATE_TYPE_FIELD_NUMBER = 14;
private int nodeUpdateType_;
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
public boolean hasNodeUpdateType() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto getNodeUpdateType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto.valueOf(nodeUpdateType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto.NODE_USABLE : result;
}
public static final int NODE_ATTRIBUTES_FIELD_NUMBER = 15;
private java.util.List nodeAttributes_;
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public java.util.List getNodeAttributesList() {
return nodeAttributes_;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder>
getNodeAttributesOrBuilderList() {
return nodeAttributes_;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public int getNodeAttributesCount() {
return nodeAttributes_.size();
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto getNodeAttributes(int index) {
return nodeAttributes_.get(index);
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder getNodeAttributesOrBuilder(
int index) {
return nodeAttributes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasUsed()) {
if (!getUsed().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCapability()) {
if (!getCapability().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasContainersUtilization()) {
if (!getContainersUtilization().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasNodeUtilization()) {
if (!getNodeUtilization().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getNodeAttributesCount(); i++) {
if (!getNodeAttributes(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.org.apache.hadoop.shaded.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNodeId());
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, httpAddress_);
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 3, rackName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getUsed());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getCapability());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(6, numContainers_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeEnum(7, nodeState_);
}
if (((bitField0_ & 0x00000080) != 0)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 8, healthReport_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt64(9, lastHealthReportTime_);
}
for (int i = 0; i < nodeLabels_.size(); i++) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 10, nodeLabels_.getRaw(i));
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(11, getContainersUtilization());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(12, getNodeUtilization());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeUInt32(13, decommissioningTimeout_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeEnum(14, nodeUpdateType_);
}
for (int i = 0; i < nodeAttributes_.size(); i++) {
output.writeMessage(15, nodeAttributes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(1, getNodeId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(2, httpAddress_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(3, rackName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(4, getUsed());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(5, getCapability());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt32Size(6, numContainers_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(7, nodeState_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.org.apache.hadoop.shaded.com.uteStringSize(8, healthReport_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteInt64Size(9, lastHealthReportTime_);
}
{
int dataSize = 0;
for (int i = 0; i < nodeLabels_.size(); i++) {
dataSize += org.apache.hadoop.shaded.com.uteStringSizeNoTag(nodeLabels_.getRaw(i));
}
size += dataSize;
size += 1 * getNodeLabelsList().size();
}
if (((bitField0_ & 0x00000200) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(11, getContainersUtilization());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(12, getNodeUtilization());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteUInt32Size(13, decommissioningTimeout_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteEnumSize(14, nodeUpdateType_);
}
for (int i = 0; i < nodeAttributes_.size(); i++) {
size += org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.org.apache.hadoop.shaded.com.uteMessageSize(15, nodeAttributes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto)) {
return super.equals(obj);
}
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto other = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto) obj;
if (hasNodeId() != other.hasNodeId()) return false;
if (hasNodeId()) {
if (!getNodeId()
.equals(other.getNodeId())) return false;
}
if (hasHttpAddress() != other.hasHttpAddress()) return false;
if (hasHttpAddress()) {
if (!getHttpAddress()
.equals(other.getHttpAddress())) return false;
}
if (hasRackName() != other.hasRackName()) return false;
if (hasRackName()) {
if (!getRackName()
.equals(other.getRackName())) return false;
}
if (hasUsed() != other.hasUsed()) return false;
if (hasUsed()) {
if (!getUsed()
.equals(other.getUsed())) return false;
}
if (hasCapability() != other.hasCapability()) return false;
if (hasCapability()) {
if (!getCapability()
.equals(other.getCapability())) return false;
}
if (hasNumContainers() != other.hasNumContainers()) return false;
if (hasNumContainers()) {
if (getNumContainers()
!= other.getNumContainers()) return false;
}
if (hasNodeState() != other.hasNodeState()) return false;
if (hasNodeState()) {
if (nodeState_ != other.nodeState_) return false;
}
if (hasHealthReport() != other.hasHealthReport()) return false;
if (hasHealthReport()) {
if (!getHealthReport()
.equals(other.getHealthReport())) return false;
}
if (hasLastHealthReportTime() != other.hasLastHealthReportTime()) return false;
if (hasLastHealthReportTime()) {
if (getLastHealthReportTime()
!= other.getLastHealthReportTime()) return false;
}
if (!getNodeLabelsList()
.equals(other.getNodeLabelsList())) return false;
if (hasContainersUtilization() != other.hasContainersUtilization()) return false;
if (hasContainersUtilization()) {
if (!getContainersUtilization()
.equals(other.getContainersUtilization())) return false;
}
if (hasNodeUtilization() != other.hasNodeUtilization()) return false;
if (hasNodeUtilization()) {
if (!getNodeUtilization()
.equals(other.getNodeUtilization())) return false;
}
if (hasDecommissioningTimeout() != other.hasDecommissioningTimeout()) return false;
if (hasDecommissioningTimeout()) {
if (getDecommissioningTimeout()
!= other.getDecommissioningTimeout()) return false;
}
if (hasNodeUpdateType() != other.hasNodeUpdateType()) return false;
if (hasNodeUpdateType()) {
if (nodeUpdateType_ != other.nodeUpdateType_) return false;
}
if (!getNodeAttributesList()
.equals(other.getNodeAttributesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNodeId()) {
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
}
if (hasHttpAddress()) {
hash = (37 * hash) + HTTPADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getHttpAddress().hashCode();
}
if (hasRackName()) {
hash = (37 * hash) + RACKNAME_FIELD_NUMBER;
hash = (53 * hash) + getRackName().hashCode();
}
if (hasUsed()) {
hash = (37 * hash) + USED_FIELD_NUMBER;
hash = (53 * hash) + getUsed().hashCode();
}
if (hasCapability()) {
hash = (37 * hash) + CAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getCapability().hashCode();
}
if (hasNumContainers()) {
hash = (37 * hash) + NUMCONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getNumContainers();
}
if (hasNodeState()) {
hash = (37 * hash) + NODE_STATE_FIELD_NUMBER;
hash = (53 * hash) + nodeState_;
}
if (hasHealthReport()) {
hash = (37 * hash) + HEALTH_REPORT_FIELD_NUMBER;
hash = (53 * hash) + getHealthReport().hashCode();
}
if (hasLastHealthReportTime()) {
hash = (37 * hash) + LAST_HEALTH_REPORT_TIME_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Internal.hashLong(
getLastHealthReportTime());
}
if (getNodeLabelsCount() > 0) {
hash = (37 * hash) + NODE_LABELS_FIELD_NUMBER;
hash = (53 * hash) + getNodeLabelsList().hashCode();
}
if (hasContainersUtilization()) {
hash = (37 * hash) + CONTAINERS_UTILIZATION_FIELD_NUMBER;
hash = (53 * hash) + getContainersUtilization().hashCode();
}
if (hasNodeUtilization()) {
hash = (37 * hash) + NODE_UTILIZATION_FIELD_NUMBER;
hash = (53 * hash) + getNodeUtilization().hashCode();
}
if (hasDecommissioningTimeout()) {
hash = (37 * hash) + DECOMMISSIONING_TIMEOUT_FIELD_NUMBER;
hash = (53 * hash) + getDecommissioningTimeout();
}
if (hasNodeUpdateType()) {
hash = (37 * hash) + NODE_UPDATE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + nodeUpdateType_;
}
if (getNodeAttributesCount() > 0) {
hash = (37 * hash) + NODE_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getNodeAttributesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(byte[] data)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
byte[] data,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseDelimitedFrom(java.org.apache.hadoop.shaded.io.InputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseDelimitedFrom(
java.org.apache.hadoop.shaded.io.InputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parseFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
return org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.NodeReportProto}
*/
public static final class Builder extends
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.NodeReportProto)
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder {
public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeReportProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeReportProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.class, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder.class);
}
// Construct using org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeIdFieldBuilder();
getUsedFieldBuilder();
getCapabilityFieldBuilder();
getContainersUtilizationFieldBuilder();
getNodeUtilizationFieldBuilder();
getNodeAttributesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodeIdBuilder_ == null) {
nodeId_ = null;
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
httpAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
rackName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (usedBuilder_ == null) {
used_ = null;
} else {
usedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (capabilityBuilder_ == null) {
capability_ = null;
} else {
capabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
numContainers_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
nodeState_ = 1;
bitField0_ = (bitField0_ & ~0x00000040);
healthReport_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
lastHealthReportTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
nodeLabels_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
if (containersUtilizationBuilder_ == null) {
containersUtilization_ = null;
} else {
containersUtilizationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (nodeUtilizationBuilder_ == null) {
nodeUtilization_ = null;
} else {
nodeUtilizationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
decommissioningTimeout_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
nodeUpdateType_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
if (nodeAttributesBuilder_ == null) {
nodeAttributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
} else {
nodeAttributesBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.internal_static_hadoop_yarn_NodeReportProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getDefaultInstanceForType() {
return org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto build() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto buildPartial() {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto result = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (nodeIdBuilder_ == null) {
result.nodeId_ = nodeId_;
} else {
result.nodeId_ = nodeIdBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.httpAddress_ = httpAddress_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.rackName_ = rackName_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (usedBuilder_ == null) {
result.used_ = used_;
} else {
result.used_ = usedBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (capabilityBuilder_ == null) {
result.capability_ = capability_;
} else {
result.capability_ = capabilityBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.numContainers_ = numContainers_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.nodeState_ = nodeState_;
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.healthReport_ = healthReport_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.lastHealthReportTime_ = lastHealthReportTime_;
to_bitField0_ |= 0x00000100;
}
if (((bitField0_ & 0x00000200) != 0)) {
nodeLabels_ = nodeLabels_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.nodeLabels_ = nodeLabels_;
if (((from_bitField0_ & 0x00000400) != 0)) {
if (containersUtilizationBuilder_ == null) {
result.containersUtilization_ = containersUtilization_;
} else {
result.containersUtilization_ = containersUtilizationBuilder_.build();
}
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
if (nodeUtilizationBuilder_ == null) {
result.nodeUtilization_ = nodeUtilization_;
} else {
result.nodeUtilization_ = nodeUtilizationBuilder_.build();
}
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.decommissioningTimeout_ = decommissioningTimeout_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.nodeUpdateType_ = nodeUpdateType_;
if (nodeAttributesBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0)) {
nodeAttributes_ = java.util.Collections.unmodifiableList(nodeAttributes_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.nodeAttributes_ = nodeAttributes_;
} else {
result.nodeAttributes_ = nodeAttributesBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto) {
return mergeFrom((org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto other) {
if (other == org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.getDefaultInstance()) return this;
if (other.hasNodeId()) {
mergeNodeId(other.getNodeId());
}
if (other.hasHttpAddress()) {
bitField0_ |= 0x00000002;
httpAddress_ = other.httpAddress_;
onChanged();
}
if (other.hasRackName()) {
bitField0_ |= 0x00000004;
rackName_ = other.rackName_;
onChanged();
}
if (other.hasUsed()) {
mergeUsed(other.getUsed());
}
if (other.hasCapability()) {
mergeCapability(other.getCapability());
}
if (other.hasNumContainers()) {
setNumContainers(other.getNumContainers());
}
if (other.hasNodeState()) {
setNodeState(other.getNodeState());
}
if (other.hasHealthReport()) {
bitField0_ |= 0x00000080;
healthReport_ = other.healthReport_;
onChanged();
}
if (other.hasLastHealthReportTime()) {
setLastHealthReportTime(other.getLastHealthReportTime());
}
if (!other.nodeLabels_.isEmpty()) {
if (nodeLabels_.isEmpty()) {
nodeLabels_ = other.nodeLabels_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureNodeLabelsIsMutable();
nodeLabels_.addAll(other.nodeLabels_);
}
onChanged();
}
if (other.hasContainersUtilization()) {
mergeContainersUtilization(other.getContainersUtilization());
}
if (other.hasNodeUtilization()) {
mergeNodeUtilization(other.getNodeUtilization());
}
if (other.hasDecommissioningTimeout()) {
setDecommissioningTimeout(other.getDecommissioningTimeout());
}
if (other.hasNodeUpdateType()) {
setNodeUpdateType(other.getNodeUpdateType());
}
if (nodeAttributesBuilder_ == null) {
if (!other.nodeAttributes_.isEmpty()) {
if (nodeAttributes_.isEmpty()) {
nodeAttributes_ = other.nodeAttributes_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureNodeAttributesIsMutable();
nodeAttributes_.addAll(other.nodeAttributes_);
}
onChanged();
}
} else {
if (!other.nodeAttributes_.isEmpty()) {
if (nodeAttributesBuilder_.isEmpty()) {
nodeAttributesBuilder_.dispose();
nodeAttributesBuilder_ = null;
nodeAttributes_ = other.nodeAttributes_;
bitField0_ = (bitField0_ & ~0x00004000);
nodeAttributesBuilder_ =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNodeAttributesFieldBuilder() : null;
} else {
nodeAttributesBuilder_.addAllMessages(other.nodeAttributes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasUsed()) {
if (!getUsed().isInitialized()) {
return false;
}
}
if (hasCapability()) {
if (!getCapability().isInitialized()) {
return false;
}
}
if (hasContainersUtilization()) {
if (!getContainersUtilization().isInitialized()) {
return false;
}
}
if (hasNodeUtilization()) {
if (!getNodeUtilization().isInitialized()) {
return false;
}
}
for (int i = 0; i < getNodeAttributesCount(); i++) {
if (!getNodeAttributes(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.org.apache.hadoop.shaded.io.IOException {
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return nodeId_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
} else {
return nodeIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public Builder setNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeId_ = value;
onChanged();
} else {
nodeIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public Builder setNodeId(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder builderForValue) {
if (nodeIdBuilder_ == null) {
nodeId_ = builderForValue.build();
onChanged();
} else {
nodeIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public Builder mergeNodeId(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nodeId_ != null &&
nodeId_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
nodeId_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
} else {
nodeId_ = value;
}
onChanged();
} else {
nodeIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public Builder clearNodeId() {
if (nodeIdBuilder_ == null) {
nodeId_ = null;
onChanged();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
if (nodeIdBuilder_ != null) {
return nodeIdBuilder_.getMessageOrBuilder();
} else {
return nodeId_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>
getNodeIdFieldBuilder() {
if (nodeIdBuilder_ == null) {
nodeIdBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
getNodeId(),
getParentForChildren(),
isClean());
nodeId_ = null;
}
return nodeIdBuilder_;
}
private java.lang.Object httpAddress_ = "";
/**
* optional string httpAddress = 2;
*/
public boolean hasHttpAddress() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string httpAddress = 2;
*/
public java.lang.String getHttpAddress() {
java.lang.Object ref = httpAddress_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
httpAddress_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string httpAddress = 2;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHttpAddressBytes() {
java.lang.Object ref = httpAddress_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpAddress_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string httpAddress = 2;
*/
public Builder setHttpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
httpAddress_ = value;
onChanged();
return this;
}
/**
* optional string httpAddress = 2;
*/
public Builder clearHttpAddress() {
bitField0_ = (bitField0_ & ~0x00000002);
httpAddress_ = getDefaultInstance().getHttpAddress();
onChanged();
return this;
}
/**
* optional string httpAddress = 2;
*/
public Builder setHttpAddressBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
httpAddress_ = value;
onChanged();
return this;
}
private java.lang.Object rackName_ = "";
/**
* optional string rackName = 3;
*/
public boolean hasRackName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string rackName = 3;
*/
public java.lang.String getRackName() {
java.lang.Object ref = rackName_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
rackName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string rackName = 3;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getRackNameBytes() {
java.lang.Object ref = rackName_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rackName_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string rackName = 3;
*/
public Builder setRackName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
rackName_ = value;
onChanged();
return this;
}
/**
* optional string rackName = 3;
*/
public Builder clearRackName() {
bitField0_ = (bitField0_ & ~0x00000004);
rackName_ = getDefaultInstance().getRackName();
onChanged();
return this;
}
/**
* optional string rackName = 3;
*/
public Builder setRackNameBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
rackName_ = value;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto used_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> usedBuilder_;
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public boolean hasUsed() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getUsed() {
if (usedBuilder_ == null) {
return used_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : used_;
} else {
return usedBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public Builder setUsed(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (usedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
used_ = value;
onChanged();
} else {
usedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public Builder setUsed(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (usedBuilder_ == null) {
used_ = builderForValue.build();
onChanged();
} else {
usedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public Builder mergeUsed(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (usedBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
used_ != null &&
used_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
used_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(used_).mergeFrom(value).buildPartial();
} else {
used_ = value;
}
onChanged();
} else {
usedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public Builder clearUsed() {
if (usedBuilder_ == null) {
used_ = null;
onChanged();
} else {
usedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getUsedBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getUsedFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getUsedOrBuilder() {
if (usedBuilder_ != null) {
return usedBuilder_.getMessageOrBuilder();
} else {
return used_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : used_;
}
}
/**
* optional .hadoop.yarn.ResourceProto used = 4;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getUsedFieldBuilder() {
if (usedBuilder_ == null) {
usedBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getUsed(),
getParentForChildren(),
isClean());
used_ = null;
}
return usedBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto capability_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> capabilityBuilder_;
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public boolean hasCapability() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getCapability() {
if (capabilityBuilder_ == null) {
return capability_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
} else {
return capabilityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public Builder setCapability(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (capabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
capability_ = value;
onChanged();
} else {
capabilityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public Builder setCapability(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (capabilityBuilder_ == null) {
capability_ = builderForValue.build();
onChanged();
} else {
capabilityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public Builder mergeCapability(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (capabilityBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
capability_ != null &&
capability_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
capability_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(capability_).mergeFrom(value).buildPartial();
} else {
capability_ = value;
}
onChanged();
} else {
capabilityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public Builder clearCapability() {
if (capabilityBuilder_ == null) {
capability_ = null;
onChanged();
} else {
capabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getCapabilityBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCapabilityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder() {
if (capabilityBuilder_ != null) {
return capabilityBuilder_.getMessageOrBuilder();
} else {
return capability_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
}
}
/**
* optional .hadoop.yarn.ResourceProto capability = 5;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getCapabilityFieldBuilder() {
if (capabilityBuilder_ == null) {
capabilityBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getCapability(),
getParentForChildren(),
isClean());
capability_ = null;
}
return capabilityBuilder_;
}
private int numContainers_ ;
/**
* optional int32 numContainers = 6;
*/
public boolean hasNumContainers() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 numContainers = 6;
*/
public int getNumContainers() {
return numContainers_;
}
/**
* optional int32 numContainers = 6;
*/
public Builder setNumContainers(int value) {
bitField0_ |= 0x00000020;
numContainers_ = value;
onChanged();
return this;
}
/**
* optional int32 numContainers = 6;
*/
public Builder clearNumContainers() {
bitField0_ = (bitField0_ & ~0x00000020);
numContainers_ = 0;
onChanged();
return this;
}
private int nodeState_ = 1;
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
public boolean hasNodeState() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto getNodeState() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.valueOf(nodeState_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.NS_NEW : result;
}
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
public Builder setNodeState(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
nodeState_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.NodeStateProto node_state = 7;
*/
public Builder clearNodeState() {
bitField0_ = (bitField0_ & ~0x00000040);
nodeState_ = 1;
onChanged();
return this;
}
private java.lang.Object healthReport_ = "";
/**
* optional string health_report = 8;
*/
public boolean hasHealthReport() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string health_report = 8;
*/
public java.lang.String getHealthReport() {
java.lang.Object ref = healthReport_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
healthReport_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string health_report = 8;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getHealthReportBytes() {
java.lang.Object ref = healthReport_;
if (ref instanceof String) {
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
healthReport_ = b;
return b;
} else {
return (org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string health_report = 8;
*/
public Builder setHealthReport(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
healthReport_ = value;
onChanged();
return this;
}
/**
* optional string health_report = 8;
*/
public Builder clearHealthReport() {
bitField0_ = (bitField0_ & ~0x00000080);
healthReport_ = getDefaultInstance().getHealthReport();
onChanged();
return this;
}
/**
* optional string health_report = 8;
*/
public Builder setHealthReportBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
healthReport_ = value;
onChanged();
return this;
}
private long lastHealthReportTime_ ;
/**
* optional int64 last_health_report_time = 9;
*/
public boolean hasLastHealthReportTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int64 last_health_report_time = 9;
*/
public long getLastHealthReportTime() {
return lastHealthReportTime_;
}
/**
* optional int64 last_health_report_time = 9;
*/
public Builder setLastHealthReportTime(long value) {
bitField0_ |= 0x00000100;
lastHealthReportTime_ = value;
onChanged();
return this;
}
/**
* optional int64 last_health_report_time = 9;
*/
public Builder clearLastHealthReportTime() {
bitField0_ = (bitField0_ & ~0x00000100);
lastHealthReportTime_ = 0L;
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringList nodeLabels_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
private void ensureNodeLabelsIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
nodeLabels_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList(nodeLabels_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated string node_labels = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ProtocolStringList
getNodeLabelsList() {
return nodeLabels_.getUnmodifiableView();
}
/**
* repeated string node_labels = 10;
*/
public int getNodeLabelsCount() {
return nodeLabels_.size();
}
/**
* repeated string node_labels = 10;
*/
public java.lang.String getNodeLabels(int index) {
return nodeLabels_.get(index);
}
/**
* repeated string node_labels = 10;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString
getNodeLabelsBytes(int index) {
return nodeLabels_.getByteString(index);
}
/**
* repeated string node_labels = 10;
*/
public Builder setNodeLabels(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeLabelsIsMutable();
nodeLabels_.set(index, value);
onChanged();
return this;
}
/**
* repeated string node_labels = 10;
*/
public Builder addNodeLabels(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeLabelsIsMutable();
nodeLabels_.add(value);
onChanged();
return this;
}
/**
* repeated string node_labels = 10;
*/
public Builder addAllNodeLabels(
java.lang.Iterable values) {
ensureNodeLabelsIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeLabels_);
onChanged();
return this;
}
/**
* repeated string node_labels = 10;
*/
public Builder clearNodeLabels() {
nodeLabels_ = org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* repeated string node_labels = 10;
*/
public Builder addNodeLabelsBytes(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeLabelsIsMutable();
nodeLabels_.add(value);
onChanged();
return this;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto containersUtilization_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder> containersUtilizationBuilder_;
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public boolean hasContainersUtilization() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getContainersUtilization() {
if (containersUtilizationBuilder_ == null) {
return containersUtilization_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : containersUtilization_;
} else {
return containersUtilizationBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public Builder setContainersUtilization(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto value) {
if (containersUtilizationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containersUtilization_ = value;
onChanged();
} else {
containersUtilizationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public Builder setContainersUtilization(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder builderForValue) {
if (containersUtilizationBuilder_ == null) {
containersUtilization_ = builderForValue.build();
onChanged();
} else {
containersUtilizationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public Builder mergeContainersUtilization(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto value) {
if (containersUtilizationBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
containersUtilization_ != null &&
containersUtilization_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance()) {
containersUtilization_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.newBuilder(containersUtilization_).mergeFrom(value).buildPartial();
} else {
containersUtilization_ = value;
}
onChanged();
} else {
containersUtilizationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public Builder clearContainersUtilization() {
if (containersUtilizationBuilder_ == null) {
containersUtilization_ = null;
onChanged();
} else {
containersUtilizationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder getContainersUtilizationBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getContainersUtilizationFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder getContainersUtilizationOrBuilder() {
if (containersUtilizationBuilder_ != null) {
return containersUtilizationBuilder_.getMessageOrBuilder();
} else {
return containersUtilization_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : containersUtilization_;
}
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto containers_utilization = 11;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder>
getContainersUtilizationFieldBuilder() {
if (containersUtilizationBuilder_ == null) {
containersUtilizationBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder>(
getContainersUtilization(),
getParentForChildren(),
isClean());
containersUtilization_ = null;
}
return containersUtilizationBuilder_;
}
private org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto nodeUtilization_;
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder> nodeUtilizationBuilder_;
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public boolean hasNodeUtilization() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto getNodeUtilization() {
if (nodeUtilizationBuilder_ == null) {
return nodeUtilization_ == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : nodeUtilization_;
} else {
return nodeUtilizationBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public Builder setNodeUtilization(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto value) {
if (nodeUtilizationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeUtilization_ = value;
onChanged();
} else {
nodeUtilizationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public Builder setNodeUtilization(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder builderForValue) {
if (nodeUtilizationBuilder_ == null) {
nodeUtilization_ = builderForValue.build();
onChanged();
} else {
nodeUtilizationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public Builder mergeNodeUtilization(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto value) {
if (nodeUtilizationBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
nodeUtilization_ != null &&
nodeUtilization_ != org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance()) {
nodeUtilization_ =
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.newBuilder(nodeUtilization_).mergeFrom(value).buildPartial();
} else {
nodeUtilization_ = value;
}
onChanged();
} else {
nodeUtilizationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public Builder clearNodeUtilization() {
if (nodeUtilizationBuilder_ == null) {
nodeUtilization_ = null;
onChanged();
} else {
nodeUtilizationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder getNodeUtilizationBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getNodeUtilizationFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder getNodeUtilizationOrBuilder() {
if (nodeUtilizationBuilder_ != null) {
return nodeUtilizationBuilder_.getMessageOrBuilder();
} else {
return nodeUtilization_ == null ?
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.getDefaultInstance() : nodeUtilization_;
}
}
/**
* optional .hadoop.yarn.ResourceUtilizationProto node_utilization = 12;
*/
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder>
getNodeUtilizationFieldBuilder() {
if (nodeUtilizationBuilder_ == null) {
nodeUtilizationBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.ResourceUtilizationProtoOrBuilder>(
getNodeUtilization(),
getParentForChildren(),
isClean());
nodeUtilization_ = null;
}
return nodeUtilizationBuilder_;
}
private int decommissioningTimeout_ ;
/**
* optional uint32 decommissioning_timeout = 13;
*/
public boolean hasDecommissioningTimeout() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional uint32 decommissioning_timeout = 13;
*/
public int getDecommissioningTimeout() {
return decommissioningTimeout_;
}
/**
* optional uint32 decommissioning_timeout = 13;
*/
public Builder setDecommissioningTimeout(int value) {
bitField0_ |= 0x00001000;
decommissioningTimeout_ = value;
onChanged();
return this;
}
/**
* optional uint32 decommissioning_timeout = 13;
*/
public Builder clearDecommissioningTimeout() {
bitField0_ = (bitField0_ & ~0x00001000);
decommissioningTimeout_ = 0;
onChanged();
return this;
}
private int nodeUpdateType_ = 0;
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
public boolean hasNodeUpdateType() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto getNodeUpdateType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto result = org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto.valueOf(nodeUpdateType_);
return result == null ? org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto.NODE_USABLE : result;
}
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
public Builder setNodeUpdateType(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeUpdateTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
nodeUpdateType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.NodeUpdateTypeProto node_update_type = 14;
*/
public Builder clearNodeUpdateType() {
bitField0_ = (bitField0_ & ~0x00002000);
nodeUpdateType_ = 0;
onChanged();
return this;
}
private java.util.List nodeAttributes_ =
java.util.Collections.emptyList();
private void ensureNodeAttributesIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
nodeAttributes_ = new java.util.ArrayList(nodeAttributes_);
bitField0_ |= 0x00004000;
}
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder> nodeAttributesBuilder_;
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public java.util.List getNodeAttributesList() {
if (nodeAttributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeAttributes_);
} else {
return nodeAttributesBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public int getNodeAttributesCount() {
if (nodeAttributesBuilder_ == null) {
return nodeAttributes_.size();
} else {
return nodeAttributesBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto getNodeAttributes(int index) {
if (nodeAttributesBuilder_ == null) {
return nodeAttributes_.get(index);
} else {
return nodeAttributesBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder setNodeAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto value) {
if (nodeAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeAttributesIsMutable();
nodeAttributes_.set(index, value);
onChanged();
} else {
nodeAttributesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder setNodeAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder builderForValue) {
if (nodeAttributesBuilder_ == null) {
ensureNodeAttributesIsMutable();
nodeAttributes_.set(index, builderForValue.build());
onChanged();
} else {
nodeAttributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder addNodeAttributes(org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto value) {
if (nodeAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeAttributesIsMutable();
nodeAttributes_.add(value);
onChanged();
} else {
nodeAttributesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder addNodeAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto value) {
if (nodeAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeAttributesIsMutable();
nodeAttributes_.add(index, value);
onChanged();
} else {
nodeAttributesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder addNodeAttributes(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder builderForValue) {
if (nodeAttributesBuilder_ == null) {
ensureNodeAttributesIsMutable();
nodeAttributes_.add(builderForValue.build());
onChanged();
} else {
nodeAttributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder addNodeAttributes(
int index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder builderForValue) {
if (nodeAttributesBuilder_ == null) {
ensureNodeAttributesIsMutable();
nodeAttributes_.add(index, builderForValue.build());
onChanged();
} else {
nodeAttributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder addAllNodeAttributes(
java.lang.Iterable extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto> values) {
if (nodeAttributesBuilder_ == null) {
ensureNodeAttributesIsMutable();
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, nodeAttributes_);
onChanged();
} else {
nodeAttributesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder clearNodeAttributes() {
if (nodeAttributesBuilder_ == null) {
nodeAttributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
} else {
nodeAttributesBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public Builder removeNodeAttributes(int index) {
if (nodeAttributesBuilder_ == null) {
ensureNodeAttributesIsMutable();
nodeAttributes_.remove(index);
onChanged();
} else {
nodeAttributesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder getNodeAttributesBuilder(
int index) {
return getNodeAttributesFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder getNodeAttributesOrBuilder(
int index) {
if (nodeAttributesBuilder_ == null) {
return nodeAttributes_.get(index); } else {
return nodeAttributesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public java.util.List extends org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder>
getNodeAttributesOrBuilderList() {
if (nodeAttributesBuilder_ != null) {
return nodeAttributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeAttributes_);
}
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder addNodeAttributesBuilder() {
return getNodeAttributesFieldBuilder().addBuilder(
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder addNodeAttributesBuilder(
int index) {
return getNodeAttributesFieldBuilder().addBuilder(
index, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NodeAttributeProto node_attributes = 15;
*/
public java.util.List
getNodeAttributesBuilderList() {
return getNodeAttributesFieldBuilder().getBuilderList();
}
private org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder>
getNodeAttributesFieldBuilder() {
if (nodeAttributesBuilder_ == null) {
nodeAttributesBuilder_ = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProto.Builder, org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeAttributeProtoOrBuilder>(
nodeAttributes_,
((bitField0_ & 0x00004000) != 0),
getParentForChildren(),
isClean());
nodeAttributes_ = null;
}
return nodeAttributesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.NodeReportProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.NodeReportProto)
private static final org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto();
}
public static org.apache.hadoop.shaded.org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public NodeReportProto parsePartialFrom(
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new NodeReportProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.shaded.org.apache.hadoop.thirdparty.protobuf.Parser