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.YarnServiceProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yarn_service_protos.proto
package org.apache.hadoop.yarn.proto;
public final class YarnServiceProtos {
private YarnServiceProtos() {}
public static void registerAllExtensions(
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code hadoop.yarn.ContainerUpdateTypeProto}
*/
public enum ContainerUpdateTypeProto
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* INCREASE_RESOURCE = 0;
*/
INCREASE_RESOURCE(0),
/**
* DECREASE_RESOURCE = 1;
*/
DECREASE_RESOURCE(1),
/**
* PROMOTE_EXECUTION_TYPE = 2;
*/
PROMOTE_EXECUTION_TYPE(2),
/**
* DEMOTE_EXECUTION_TYPE = 3;
*/
DEMOTE_EXECUTION_TYPE(3),
;
/**
* INCREASE_RESOURCE = 0;
*/
public static final int INCREASE_RESOURCE_VALUE = 0;
/**
* DECREASE_RESOURCE = 1;
*/
public static final int DECREASE_RESOURCE_VALUE = 1;
/**
* PROMOTE_EXECUTION_TYPE = 2;
*/
public static final int PROMOTE_EXECUTION_TYPE_VALUE = 2;
/**
* DEMOTE_EXECUTION_TYPE = 3;
*/
public static final int DEMOTE_EXECUTION_TYPE_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContainerUpdateTypeProto valueOf(int value) {
return forNumber(value);
}
public static ContainerUpdateTypeProto forNumber(int value) {
switch (value) {
case 0: return INCREASE_RESOURCE;
case 1: return DECREASE_RESOURCE;
case 2: return PROMOTE_EXECUTION_TYPE;
case 3: return DEMOTE_EXECUTION_TYPE;
default: return null;
}
}
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ContainerUpdateTypeProto> internalValueMap =
new org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ContainerUpdateTypeProto findValueByNumber(int number) {
return ContainerUpdateTypeProto.forNumber(number);
}
};
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor().getEnumTypes().get(0);
}
private static final ContainerUpdateTypeProto[] VALUES = values();
public static ContainerUpdateTypeProto valueOf(
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 ContainerUpdateTypeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ContainerUpdateTypeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.SchedulerResourceTypes}
*/
public enum SchedulerResourceTypes
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* MEMORY = 0;
*/
MEMORY(0),
/**
* CPU = 1;
*/
CPU(1),
;
/**
* MEMORY = 0;
*/
public static final int MEMORY_VALUE = 0;
/**
* CPU = 1;
*/
public static final int CPU_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SchedulerResourceTypes valueOf(int value) {
return forNumber(value);
}
public static SchedulerResourceTypes forNumber(int value) {
switch (value) {
case 0: return MEMORY;
case 1: return CPU;
default: return null;
}
}
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
SchedulerResourceTypes> internalValueMap =
new org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public SchedulerResourceTypes findValueByNumber(int number) {
return SchedulerResourceTypes.forNumber(number);
}
};
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor().getEnumTypes().get(1);
}
private static final SchedulerResourceTypes[] VALUES = values();
public static SchedulerResourceTypes valueOf(
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 SchedulerResourceTypes(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.SchedulerResourceTypes)
}
/**
* Protobuf enum {@code hadoop.yarn.ApplicationsRequestScopeProto}
*/
public enum ApplicationsRequestScopeProto
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* ALL = 0;
*/
ALL(0),
/**
* VIEWABLE = 1;
*/
VIEWABLE(1),
/**
* OWN = 2;
*/
OWN(2),
;
/**
* ALL = 0;
*/
public static final int ALL_VALUE = 0;
/**
* VIEWABLE = 1;
*/
public static final int VIEWABLE_VALUE = 1;
/**
* OWN = 2;
*/
public static final int OWN_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ApplicationsRequestScopeProto valueOf(int value) {
return forNumber(value);
}
public static ApplicationsRequestScopeProto forNumber(int value) {
switch (value) {
case 0: return ALL;
case 1: return VIEWABLE;
case 2: return OWN;
default: return null;
}
}
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
ApplicationsRequestScopeProto> internalValueMap =
new org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public ApplicationsRequestScopeProto findValueByNumber(int number) {
return ApplicationsRequestScopeProto.forNumber(number);
}
};
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor().getEnumTypes().get(2);
}
private static final ApplicationsRequestScopeProto[] VALUES = values();
public static ApplicationsRequestScopeProto valueOf(
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 ApplicationsRequestScopeProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ApplicationsRequestScopeProto)
}
/**
* Protobuf enum {@code hadoop.yarn.LocalizationStateProto}
*/
public enum LocalizationStateProto
implements org.apache.hadoop.thirdparty.protobuf.ProtocolMessageEnum {
/**
* L_PENDING = 1;
*/
L_PENDING(1),
/**
* L_COMPLETED = 2;
*/
L_COMPLETED(2),
/**
* L_FAILED = 3;
*/
L_FAILED(3),
;
/**
* L_PENDING = 1;
*/
public static final int L_PENDING_VALUE = 1;
/**
* L_COMPLETED = 2;
*/
public static final int L_COMPLETED_VALUE = 2;
/**
* L_FAILED = 3;
*/
public static final int L_FAILED_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LocalizationStateProto valueOf(int value) {
return forNumber(value);
}
public static LocalizationStateProto forNumber(int value) {
switch (value) {
case 1: return L_PENDING;
case 2: return L_COMPLETED;
case 3: return L_FAILED;
default: return null;
}
}
public static org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap<
LocalizationStateProto> internalValueMap =
new org.apache.hadoop.thirdparty.protobuf.Internal.EnumLiteMap() {
public LocalizationStateProto findValueByNumber(int number) {
return LocalizationStateProto.forNumber(number);
}
};
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor().getEnumTypes().get(3);
}
private static final LocalizationStateProto[] VALUES = values();
public static LocalizationStateProto valueOf(
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 LocalizationStateProto(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.LocalizationStateProto)
}
public interface RegisterApplicationMasterRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.RegisterApplicationMasterRequestProto)
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.thirdparty.protobuf.ByteString
getHostBytes();
/**
* optional int32 rpc_port = 2;
*/
boolean hasRpcPort();
/**
* optional int32 rpc_port = 2;
*/
int getRpcPort();
/**
* optional string tracking_url = 3;
*/
boolean hasTrackingUrl();
/**
* optional string tracking_url = 3;
*/
java.lang.String getTrackingUrl();
/**
* optional string tracking_url = 3;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes();
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
java.util.List
getPlacementConstraintsList();
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto getPlacementConstraints(int index);
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
int getPlacementConstraintsCount();
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
java.util.List
getPlacementConstraintsOrBuilderList();
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProtoOrBuilder getPlacementConstraintsOrBuilder(
int index);
}
/**
*
*////////////////////////////////////////////////////
* ///// AM_RM_Protocol ///////////////////////////////
* ////////////////////////////////////////////////////
*
*
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterRequestProto}
*/
public static final class RegisterApplicationMasterRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.RegisterApplicationMasterRequestProto)
RegisterApplicationMasterRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterApplicationMasterRequestProto.newBuilder() to construct.
private RegisterApplicationMasterRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RegisterApplicationMasterRequestProto() {
host_ = "";
trackingUrl_ = "";
placementConstraints_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterApplicationMasterRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
host_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000002;
rpcPort_ = input.readInt32();
break;
}
case 26: {
org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
trackingUrl_ = bs;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
placementConstraints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
placementConstraints_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
placementConstraints_ = java.util.Collections.unmodifiableList(placementConstraints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.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.thirdparty.protobuf.ByteString bs =
(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.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int RPC_PORT_FIELD_NUMBER = 2;
private int rpcPort_;
/**
* optional int32 rpc_port = 2;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 rpc_port = 2;
*/
public int getRpcPort() {
return rpcPort_;
}
public static final int TRACKING_URL_FIELD_NUMBER = 3;
private volatile java.lang.Object trackingUrl_;
/**
* optional string tracking_url = 3;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string tracking_url = 3;
*/
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.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string tracking_url = 3;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int PLACEMENT_CONSTRAINTS_FIELD_NUMBER = 4;
private java.util.List placementConstraints_;
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public java.util.List getPlacementConstraintsList() {
return placementConstraints_;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public java.util.List
getPlacementConstraintsOrBuilderList() {
return placementConstraints_;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public int getPlacementConstraintsCount() {
return placementConstraints_.size();
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto getPlacementConstraints(int index) {
return placementConstraints_.get(index);
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProtoOrBuilder getPlacementConstraintsOrBuilder(
int index) {
return placementConstraints_.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 < getPlacementConstraintsCount(); i++) {
if (!getPlacementConstraints(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, host_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, rpcPort_);
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 3, trackingUrl_);
}
for (int i = 0; i < placementConstraints_.size(); i++) {
output.writeMessage(4, placementConstraints_.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.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(1, host_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeInt32Size(2, rpcPort_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(3, trackingUrl_);
}
for (int i = 0; i < placementConstraints_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(4, placementConstraints_.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.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto) obj;
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 (!getPlacementConstraintsList()
.equals(other.getPlacementConstraintsList())) 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 (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 (getPlacementConstraintsCount() > 0) {
hash = (37 * hash) + PLACEMENT_CONSTRAINTS_FIELD_NUMBER;
hash = (53 * hash) + getPlacementConstraintsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*////////////////////////////////////////////////////
* ///// AM_RM_Protocol ///////////////////////////////
* ////////////////////////////////////////////////////
*
*
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.RegisterApplicationMasterRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPlacementConstraintsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
host_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
rpcPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (placementConstraintsBuilder_ == null) {
placementConstraints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
placementConstraintsBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto(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.rpcPort_ = rpcPort_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.trackingUrl_ = trackingUrl_;
if (placementConstraintsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
placementConstraints_ = java.util.Collections.unmodifiableList(placementConstraints_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.placementConstraints_ = placementConstraints_;
} else {
result.placementConstraints_ = placementConstraintsBuilder_.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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.getDefaultInstance()) return this;
if (other.hasHost()) {
bitField0_ |= 0x00000001;
host_ = other.host_;
onChanged();
}
if (other.hasRpcPort()) {
setRpcPort(other.getRpcPort());
}
if (other.hasTrackingUrl()) {
bitField0_ |= 0x00000004;
trackingUrl_ = other.trackingUrl_;
onChanged();
}
if (placementConstraintsBuilder_ == null) {
if (!other.placementConstraints_.isEmpty()) {
if (placementConstraints_.isEmpty()) {
placementConstraints_ = other.placementConstraints_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePlacementConstraintsIsMutable();
placementConstraints_.addAll(other.placementConstraints_);
}
onChanged();
}
} else {
if (!other.placementConstraints_.isEmpty()) {
if (placementConstraintsBuilder_.isEmpty()) {
placementConstraintsBuilder_.dispose();
placementConstraintsBuilder_ = null;
placementConstraints_ = other.placementConstraints_;
bitField0_ = (bitField0_ & ~0x00000008);
placementConstraintsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPlacementConstraintsFieldBuilder() : null;
} else {
placementConstraintsBuilder_.addAllMessages(other.placementConstraints_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getPlacementConstraintsCount(); i++) {
if (!getPlacementConstraints(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto) 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.thirdparty.protobuf.ByteString bs =
(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.thirdparty.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (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.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
private int rpcPort_ ;
/**
* optional int32 rpc_port = 2;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 rpc_port = 2;
*/
public int getRpcPort() {
return rpcPort_;
}
/**
* optional int32 rpc_port = 2;
*/
public Builder setRpcPort(int value) {
bitField0_ |= 0x00000002;
rpcPort_ = value;
onChanged();
return this;
}
/**
* optional int32 rpc_port = 2;
*/
public Builder clearRpcPort() {
bitField0_ = (bitField0_ & ~0x00000002);
rpcPort_ = 0;
onChanged();
return this;
}
private java.lang.Object trackingUrl_ = "";
/**
* optional string tracking_url = 3;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string tracking_url = 3;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(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 = 3;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string tracking_url = 3;
*/
public Builder setTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
trackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string tracking_url = 3;
*/
public Builder clearTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00000004);
trackingUrl_ = getDefaultInstance().getTrackingUrl();
onChanged();
return this;
}
/**
* optional string tracking_url = 3;
*/
public Builder setTrackingUrlBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
trackingUrl_ = value;
onChanged();
return this;
}
private java.util.List placementConstraints_ =
java.util.Collections.emptyList();
private void ensurePlacementConstraintsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
placementConstraints_ = new java.util.ArrayList(placementConstraints_);
bitField0_ |= 0x00000008;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProtoOrBuilder> placementConstraintsBuilder_;
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public java.util.List getPlacementConstraintsList() {
if (placementConstraintsBuilder_ == null) {
return java.util.Collections.unmodifiableList(placementConstraints_);
} else {
return placementConstraintsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public int getPlacementConstraintsCount() {
if (placementConstraintsBuilder_ == null) {
return placementConstraints_.size();
} else {
return placementConstraintsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto getPlacementConstraints(int index) {
if (placementConstraintsBuilder_ == null) {
return placementConstraints_.get(index);
} else {
return placementConstraintsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder setPlacementConstraints(
int index, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto value) {
if (placementConstraintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlacementConstraintsIsMutable();
placementConstraints_.set(index, value);
onChanged();
} else {
placementConstraintsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder setPlacementConstraints(
int index, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder builderForValue) {
if (placementConstraintsBuilder_ == null) {
ensurePlacementConstraintsIsMutable();
placementConstraints_.set(index, builderForValue.build());
onChanged();
} else {
placementConstraintsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder addPlacementConstraints(org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto value) {
if (placementConstraintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlacementConstraintsIsMutable();
placementConstraints_.add(value);
onChanged();
} else {
placementConstraintsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder addPlacementConstraints(
int index, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto value) {
if (placementConstraintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePlacementConstraintsIsMutable();
placementConstraints_.add(index, value);
onChanged();
} else {
placementConstraintsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder addPlacementConstraints(
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder builderForValue) {
if (placementConstraintsBuilder_ == null) {
ensurePlacementConstraintsIsMutable();
placementConstraints_.add(builderForValue.build());
onChanged();
} else {
placementConstraintsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder addPlacementConstraints(
int index, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder builderForValue) {
if (placementConstraintsBuilder_ == null) {
ensurePlacementConstraintsIsMutable();
placementConstraints_.add(index, builderForValue.build());
onChanged();
} else {
placementConstraintsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder addAllPlacementConstraints(
java.lang.Iterable values) {
if (placementConstraintsBuilder_ == null) {
ensurePlacementConstraintsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, placementConstraints_);
onChanged();
} else {
placementConstraintsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder clearPlacementConstraints() {
if (placementConstraintsBuilder_ == null) {
placementConstraints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
placementConstraintsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public Builder removePlacementConstraints(int index) {
if (placementConstraintsBuilder_ == null) {
ensurePlacementConstraintsIsMutable();
placementConstraints_.remove(index);
onChanged();
} else {
placementConstraintsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder getPlacementConstraintsBuilder(
int index) {
return getPlacementConstraintsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProtoOrBuilder getPlacementConstraintsOrBuilder(
int index) {
if (placementConstraintsBuilder_ == null) {
return placementConstraints_.get(index); } else {
return placementConstraintsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public java.util.List
getPlacementConstraintsOrBuilderList() {
if (placementConstraintsBuilder_ != null) {
return placementConstraintsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(placementConstraints_);
}
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder addPlacementConstraintsBuilder() {
return getPlacementConstraintsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder addPlacementConstraintsBuilder(
int index) {
return getPlacementConstraintsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.PlacementConstraintMapEntryProto placement_constraints = 4;
*/
public java.util.List
getPlacementConstraintsBuilderList() {
return getPlacementConstraintsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProtoOrBuilder>
getPlacementConstraintsFieldBuilder() {
if (placementConstraintsBuilder_ == null) {
placementConstraintsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintMapEntryProtoOrBuilder>(
placementConstraints_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
placementConstraints_ = null;
}
return placementConstraintsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.RegisterApplicationMasterRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.RegisterApplicationMasterRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public RegisterApplicationMasterRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new RegisterApplicationMasterRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RegisterApplicationMasterResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.RegisterApplicationMasterResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
boolean hasMaximumCapability();
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability();
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder();
/**
* optional bytes client_to_am_token_master_key = 2;
*/
boolean hasClientToAmTokenMasterKey();
/**
* optional bytes client_to_am_token_master_key = 2;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString getClientToAmTokenMasterKey();
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
java.util.List
getApplicationACLsList();
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto getApplicationACLs(int index);
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
int getApplicationACLsCount();
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
java.util.List
getApplicationACLsOrBuilderList();
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder getApplicationACLsOrBuilder(
int index);
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
java.util.List
getContainersFromPreviousAttemptsList();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersFromPreviousAttempts(int index);
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
int getContainersFromPreviousAttemptsCount();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
java.util.List
getContainersFromPreviousAttemptsOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index);
/**
* optional string queue = 5;
*/
boolean hasQueue();
/**
* optional string queue = 5;
*/
java.lang.String getQueue();
/**
* optional string queue = 5;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getQueueBytes();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
java.util.List
getNmTokensFromPreviousAttemptsList();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getNmTokensFromPreviousAttempts(int index);
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
int getNmTokensFromPreviousAttemptsCount();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
java.util.List
getNmTokensFromPreviousAttemptsOrBuilderList();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensFromPreviousAttemptsOrBuilder(
int index);
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
java.util.List getSchedulerResourceTypesList();
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
int getSchedulerResourceTypesCount();
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes getSchedulerResourceTypes(int index);
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
boolean hasResourceProfiles();
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto getResourceProfiles();
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder getResourceProfilesOrBuilder();
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
java.util.List
getResourceTypesList();
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto getResourceTypes(int index);
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
int getResourceTypesCount();
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
java.util.List
getResourceTypesOrBuilderList();
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder getResourceTypesOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterResponseProto}
*/
public static final class RegisterApplicationMasterResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.RegisterApplicationMasterResponseProto)
RegisterApplicationMasterResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegisterApplicationMasterResponseProto.newBuilder() to construct.
private RegisterApplicationMasterResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RegisterApplicationMasterResponseProto() {
clientToAmTokenMasterKey_ = org.apache.hadoop.thirdparty.protobuf.ByteString.EMPTY;
applicationACLs_ = java.util.Collections.emptyList();
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
queue_ = "";
nmTokensFromPreviousAttempts_ = java.util.Collections.emptyList();
schedulerResourceTypes_ = java.util.Collections.emptyList();
resourceTypes_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterApplicationMasterResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = maximumCapability_.toBuilder();
}
maximumCapability_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maximumCapability_);
maximumCapability_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
clientToAmTokenMasterKey_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
applicationACLs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
applicationACLs_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
containersFromPreviousAttempts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
containersFromPreviousAttempts_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry));
break;
}
case 42: {
org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
queue_ = bs;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
nmTokensFromPreviousAttempts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
nmTokensFromPreviousAttempts_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.PARSER, extensionRegistry));
break;
}
case 56: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes value = org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
schedulerResourceTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
schedulerResourceTypes_.add(rawValue);
}
break;
}
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes value = org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
schedulerResourceTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
schedulerResourceTypes_.add(rawValue);
}
}
input.popLimit(oldLimit);
break;
}
case 66: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = resourceProfiles_.toBuilder();
}
resourceProfiles_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourceProfiles_);
resourceProfiles_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
resourceTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
resourceTypes_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
applicationACLs_ = java.util.Collections.unmodifiableList(applicationACLs_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
containersFromPreviousAttempts_ = java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
nmTokensFromPreviousAttempts_ = java.util.Collections.unmodifiableList(nmTokensFromPreviousAttempts_);
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
schedulerResourceTypes_ = java.util.Collections.unmodifiableList(schedulerResourceTypes_);
}
if (((mutable_bitField0_ & 0x00000100) != 0)) {
resourceTypes_ = java.util.Collections.unmodifiableList(resourceTypes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder.class);
}
private int bitField0_;
public static final int MAXIMUMCAPABILITY_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maximumCapability_;
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
return maximumCapability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
return maximumCapability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
}
public static final int CLIENT_TO_AM_TOKEN_MASTER_KEY_FIELD_NUMBER = 2;
private org.apache.hadoop.thirdparty.protobuf.ByteString clientToAmTokenMasterKey_;
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public boolean hasClientToAmTokenMasterKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString getClientToAmTokenMasterKey() {
return clientToAmTokenMasterKey_;
}
public static final int APPLICATION_ACLS_FIELD_NUMBER = 3;
private java.util.List applicationACLs_;
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public java.util.List getApplicationACLsList() {
return applicationACLs_;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public java.util.List
getApplicationACLsOrBuilderList() {
return applicationACLs_;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public int getApplicationACLsCount() {
return applicationACLs_.size();
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto getApplicationACLs(int index) {
return applicationACLs_.get(index);
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder getApplicationACLsOrBuilder(
int index) {
return applicationACLs_.get(index);
}
public static final int CONTAINERS_FROM_PREVIOUS_ATTEMPTS_FIELD_NUMBER = 4;
private java.util.List containersFromPreviousAttempts_;
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public java.util.List getContainersFromPreviousAttemptsList() {
return containersFromPreviousAttempts_;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public java.util.List
getContainersFromPreviousAttemptsOrBuilderList() {
return containersFromPreviousAttempts_;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public int getContainersFromPreviousAttemptsCount() {
return containersFromPreviousAttempts_.size();
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersFromPreviousAttempts(int index) {
return containersFromPreviousAttempts_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index) {
return containersFromPreviousAttempts_.get(index);
}
public static final int QUEUE_FIELD_NUMBER = 5;
private volatile java.lang.Object queue_;
/**
* optional string queue = 5;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string queue = 5;
*/
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.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
queue_ = s;
}
return s;
}
}
/**
* optional string queue = 5;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getQueueBytes() {
java.lang.Object ref = queue_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queue_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int NM_TOKENS_FROM_PREVIOUS_ATTEMPTS_FIELD_NUMBER = 6;
private java.util.List nmTokensFromPreviousAttempts_;
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public java.util.List getNmTokensFromPreviousAttemptsList() {
return nmTokensFromPreviousAttempts_;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public java.util.List
getNmTokensFromPreviousAttemptsOrBuilderList() {
return nmTokensFromPreviousAttempts_;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public int getNmTokensFromPreviousAttemptsCount() {
return nmTokensFromPreviousAttempts_.size();
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getNmTokensFromPreviousAttempts(int index) {
return nmTokensFromPreviousAttempts_.get(index);
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensFromPreviousAttemptsOrBuilder(
int index) {
return nmTokensFromPreviousAttempts_.get(index);
}
public static final int SCHEDULER_RESOURCE_TYPES_FIELD_NUMBER = 7;
private java.util.List schedulerResourceTypes_;
private static final org.apache.hadoop.thirdparty.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes> schedulerResourceTypes_converter_ =
new org.apache.hadoop.thirdparty.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes>() {
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes result = org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes.valueOf(from);
return result == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes.MEMORY : result;
}
};
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public java.util.List getSchedulerResourceTypesList() {
return new org.apache.hadoop.thirdparty.protobuf.Internal.ListAdapter<
java.lang.Integer, org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes>(schedulerResourceTypes_, schedulerResourceTypes_converter_);
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public int getSchedulerResourceTypesCount() {
return schedulerResourceTypes_.size();
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes getSchedulerResourceTypes(int index) {
return schedulerResourceTypes_converter_.convert(schedulerResourceTypes_.get(index));
}
public static final int RESOURCE_PROFILES_FIELD_NUMBER = 8;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto resourceProfiles_;
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public boolean hasResourceProfiles() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto getResourceProfiles() {
return resourceProfiles_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance() : resourceProfiles_;
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder getResourceProfilesOrBuilder() {
return resourceProfiles_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance() : resourceProfiles_;
}
public static final int RESOURCE_TYPES_FIELD_NUMBER = 9;
private java.util.List resourceTypes_;
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public java.util.List getResourceTypesList() {
return resourceTypes_;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public java.util.List
getResourceTypesOrBuilderList() {
return resourceTypes_;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public int getResourceTypesCount() {
return resourceTypes_.size();
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto getResourceTypes(int index) {
return resourceTypes_.get(index);
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder getResourceTypesOrBuilder(
int index) {
return resourceTypes_.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 (hasMaximumCapability()) {
if (!getMaximumCapability().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getContainersFromPreviousAttemptsCount(); i++) {
if (!getContainersFromPreviousAttempts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getNmTokensFromPreviousAttemptsCount(); i++) {
if (!getNmTokensFromPreviousAttempts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasResourceProfiles()) {
if (!getResourceProfiles().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getResourceTypesCount(); i++) {
if (!getResourceTypes(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMaximumCapability());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, clientToAmTokenMasterKey_);
}
for (int i = 0; i < applicationACLs_.size(); i++) {
output.writeMessage(3, applicationACLs_.get(i));
}
for (int i = 0; i < containersFromPreviousAttempts_.size(); i++) {
output.writeMessage(4, containersFromPreviousAttempts_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 5, queue_);
}
for (int i = 0; i < nmTokensFromPreviousAttempts_.size(); i++) {
output.writeMessage(6, nmTokensFromPreviousAttempts_.get(i));
}
for (int i = 0; i < schedulerResourceTypes_.size(); i++) {
output.writeEnum(7, schedulerResourceTypes_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getResourceProfiles());
}
for (int i = 0; i < resourceTypes_.size(); i++) {
output.writeMessage(9, resourceTypes_.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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getMaximumCapability());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeBytesSize(2, clientToAmTokenMasterKey_);
}
for (int i = 0; i < applicationACLs_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(3, applicationACLs_.get(i));
}
for (int i = 0; i < containersFromPreviousAttempts_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(4, containersFromPreviousAttempts_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(5, queue_);
}
for (int i = 0; i < nmTokensFromPreviousAttempts_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(6, nmTokensFromPreviousAttempts_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < schedulerResourceTypes_.size(); i++) {
dataSize += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeEnumSizeNoTag(schedulerResourceTypes_.get(i));
}
size += dataSize;
size += 1 * schedulerResourceTypes_.size();
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(8, getResourceProfiles());
}
for (int i = 0; i < resourceTypes_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(9, resourceTypes_.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.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto) obj;
if (hasMaximumCapability() != other.hasMaximumCapability()) return false;
if (hasMaximumCapability()) {
if (!getMaximumCapability()
.equals(other.getMaximumCapability())) return false;
}
if (hasClientToAmTokenMasterKey() != other.hasClientToAmTokenMasterKey()) return false;
if (hasClientToAmTokenMasterKey()) {
if (!getClientToAmTokenMasterKey()
.equals(other.getClientToAmTokenMasterKey())) return false;
}
if (!getApplicationACLsList()
.equals(other.getApplicationACLsList())) return false;
if (!getContainersFromPreviousAttemptsList()
.equals(other.getContainersFromPreviousAttemptsList())) return false;
if (hasQueue() != other.hasQueue()) return false;
if (hasQueue()) {
if (!getQueue()
.equals(other.getQueue())) return false;
}
if (!getNmTokensFromPreviousAttemptsList()
.equals(other.getNmTokensFromPreviousAttemptsList())) return false;
if (!schedulerResourceTypes_.equals(other.schedulerResourceTypes_)) return false;
if (hasResourceProfiles() != other.hasResourceProfiles()) return false;
if (hasResourceProfiles()) {
if (!getResourceProfiles()
.equals(other.getResourceProfiles())) return false;
}
if (!getResourceTypesList()
.equals(other.getResourceTypesList())) 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 (hasMaximumCapability()) {
hash = (37 * hash) + MAXIMUMCAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getMaximumCapability().hashCode();
}
if (hasClientToAmTokenMasterKey()) {
hash = (37 * hash) + CLIENT_TO_AM_TOKEN_MASTER_KEY_FIELD_NUMBER;
hash = (53 * hash) + getClientToAmTokenMasterKey().hashCode();
}
if (getApplicationACLsCount() > 0) {
hash = (37 * hash) + APPLICATION_ACLS_FIELD_NUMBER;
hash = (53 * hash) + getApplicationACLsList().hashCode();
}
if (getContainersFromPreviousAttemptsCount() > 0) {
hash = (37 * hash) + CONTAINERS_FROM_PREVIOUS_ATTEMPTS_FIELD_NUMBER;
hash = (53 * hash) + getContainersFromPreviousAttemptsList().hashCode();
}
if (hasQueue()) {
hash = (37 * hash) + QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getQueue().hashCode();
}
if (getNmTokensFromPreviousAttemptsCount() > 0) {
hash = (37 * hash) + NM_TOKENS_FROM_PREVIOUS_ATTEMPTS_FIELD_NUMBER;
hash = (53 * hash) + getNmTokensFromPreviousAttemptsList().hashCode();
}
if (getSchedulerResourceTypesCount() > 0) {
hash = (37 * hash) + SCHEDULER_RESOURCE_TYPES_FIELD_NUMBER;
hash = (53 * hash) + schedulerResourceTypes_.hashCode();
}
if (hasResourceProfiles()) {
hash = (37 * hash) + RESOURCE_PROFILES_FIELD_NUMBER;
hash = (53 * hash) + getResourceProfiles().hashCode();
}
if (getResourceTypesCount() > 0) {
hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getResourceTypesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.RegisterApplicationMasterResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMaximumCapabilityFieldBuilder();
getApplicationACLsFieldBuilder();
getContainersFromPreviousAttemptsFieldBuilder();
getNmTokensFromPreviousAttemptsFieldBuilder();
getResourceProfilesFieldBuilder();
getResourceTypesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = null;
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
clientToAmTokenMasterKey_ = org.apache.hadoop.thirdparty.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (applicationACLsBuilder_ == null) {
applicationACLs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
applicationACLsBuilder_.clear();
}
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
containersFromPreviousAttemptsBuilder_.clear();
}
queue_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
nmTokensFromPreviousAttempts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
nmTokensFromPreviousAttemptsBuilder_.clear();
}
schedulerResourceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
if (resourceProfilesBuilder_ == null) {
resourceProfiles_ = null;
} else {
resourceProfilesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (resourceTypesBuilder_ == null) {
resourceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
resourceTypesBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (maximumCapabilityBuilder_ == null) {
result.maximumCapability_ = maximumCapability_;
} else {
result.maximumCapability_ = maximumCapabilityBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.clientToAmTokenMasterKey_ = clientToAmTokenMasterKey_;
if (applicationACLsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
applicationACLs_ = java.util.Collections.unmodifiableList(applicationACLs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.applicationACLs_ = applicationACLs_;
} else {
result.applicationACLs_ = applicationACLsBuilder_.build();
}
if (containersFromPreviousAttemptsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
containersFromPreviousAttempts_ = java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.containersFromPreviousAttempts_ = containersFromPreviousAttempts_;
} else {
result.containersFromPreviousAttempts_ = containersFromPreviousAttemptsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.queue_ = queue_;
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
nmTokensFromPreviousAttempts_ = java.util.Collections.unmodifiableList(nmTokensFromPreviousAttempts_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.nmTokensFromPreviousAttempts_ = nmTokensFromPreviousAttempts_;
} else {
result.nmTokensFromPreviousAttempts_ = nmTokensFromPreviousAttemptsBuilder_.build();
}
if (((bitField0_ & 0x00000040) != 0)) {
schedulerResourceTypes_ = java.util.Collections.unmodifiableList(schedulerResourceTypes_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.schedulerResourceTypes_ = schedulerResourceTypes_;
if (((from_bitField0_ & 0x00000080) != 0)) {
if (resourceProfilesBuilder_ == null) {
result.resourceProfiles_ = resourceProfiles_;
} else {
result.resourceProfiles_ = resourceProfilesBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (resourceTypesBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
resourceTypes_ = java.util.Collections.unmodifiableList(resourceTypes_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.resourceTypes_ = resourceTypes_;
} else {
result.resourceTypes_ = resourceTypesBuilder_.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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance()) return this;
if (other.hasMaximumCapability()) {
mergeMaximumCapability(other.getMaximumCapability());
}
if (other.hasClientToAmTokenMasterKey()) {
setClientToAmTokenMasterKey(other.getClientToAmTokenMasterKey());
}
if (applicationACLsBuilder_ == null) {
if (!other.applicationACLs_.isEmpty()) {
if (applicationACLs_.isEmpty()) {
applicationACLs_ = other.applicationACLs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureApplicationACLsIsMutable();
applicationACLs_.addAll(other.applicationACLs_);
}
onChanged();
}
} else {
if (!other.applicationACLs_.isEmpty()) {
if (applicationACLsBuilder_.isEmpty()) {
applicationACLsBuilder_.dispose();
applicationACLsBuilder_ = null;
applicationACLs_ = other.applicationACLs_;
bitField0_ = (bitField0_ & ~0x00000004);
applicationACLsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getApplicationACLsFieldBuilder() : null;
} else {
applicationACLsBuilder_.addAllMessages(other.applicationACLs_);
}
}
}
if (containersFromPreviousAttemptsBuilder_ == null) {
if (!other.containersFromPreviousAttempts_.isEmpty()) {
if (containersFromPreviousAttempts_.isEmpty()) {
containersFromPreviousAttempts_ = other.containersFromPreviousAttempts_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.addAll(other.containersFromPreviousAttempts_);
}
onChanged();
}
} else {
if (!other.containersFromPreviousAttempts_.isEmpty()) {
if (containersFromPreviousAttemptsBuilder_.isEmpty()) {
containersFromPreviousAttemptsBuilder_.dispose();
containersFromPreviousAttemptsBuilder_ = null;
containersFromPreviousAttempts_ = other.containersFromPreviousAttempts_;
bitField0_ = (bitField0_ & ~0x00000008);
containersFromPreviousAttemptsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContainersFromPreviousAttemptsFieldBuilder() : null;
} else {
containersFromPreviousAttemptsBuilder_.addAllMessages(other.containersFromPreviousAttempts_);
}
}
}
if (other.hasQueue()) {
bitField0_ |= 0x00000010;
queue_ = other.queue_;
onChanged();
}
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
if (!other.nmTokensFromPreviousAttempts_.isEmpty()) {
if (nmTokensFromPreviousAttempts_.isEmpty()) {
nmTokensFromPreviousAttempts_ = other.nmTokensFromPreviousAttempts_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.addAll(other.nmTokensFromPreviousAttempts_);
}
onChanged();
}
} else {
if (!other.nmTokensFromPreviousAttempts_.isEmpty()) {
if (nmTokensFromPreviousAttemptsBuilder_.isEmpty()) {
nmTokensFromPreviousAttemptsBuilder_.dispose();
nmTokensFromPreviousAttemptsBuilder_ = null;
nmTokensFromPreviousAttempts_ = other.nmTokensFromPreviousAttempts_;
bitField0_ = (bitField0_ & ~0x00000020);
nmTokensFromPreviousAttemptsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNmTokensFromPreviousAttemptsFieldBuilder() : null;
} else {
nmTokensFromPreviousAttemptsBuilder_.addAllMessages(other.nmTokensFromPreviousAttempts_);
}
}
}
if (!other.schedulerResourceTypes_.isEmpty()) {
if (schedulerResourceTypes_.isEmpty()) {
schedulerResourceTypes_ = other.schedulerResourceTypes_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSchedulerResourceTypesIsMutable();
schedulerResourceTypes_.addAll(other.schedulerResourceTypes_);
}
onChanged();
}
if (other.hasResourceProfiles()) {
mergeResourceProfiles(other.getResourceProfiles());
}
if (resourceTypesBuilder_ == null) {
if (!other.resourceTypes_.isEmpty()) {
if (resourceTypes_.isEmpty()) {
resourceTypes_ = other.resourceTypes_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureResourceTypesIsMutable();
resourceTypes_.addAll(other.resourceTypes_);
}
onChanged();
}
} else {
if (!other.resourceTypes_.isEmpty()) {
if (resourceTypesBuilder_.isEmpty()) {
resourceTypesBuilder_.dispose();
resourceTypesBuilder_ = null;
resourceTypes_ = other.resourceTypes_;
bitField0_ = (bitField0_ & ~0x00000100);
resourceTypesBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResourceTypesFieldBuilder() : null;
} else {
resourceTypesBuilder_.addAllMessages(other.resourceTypes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasMaximumCapability()) {
if (!getMaximumCapability().isInitialized()) {
return false;
}
}
for (int i = 0; i < getContainersFromPreviousAttemptsCount(); i++) {
if (!getContainersFromPreviousAttempts(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getNmTokensFromPreviousAttemptsCount(); i++) {
if (!getNmTokensFromPreviousAttempts(i).isInitialized()) {
return false;
}
}
if (hasResourceProfiles()) {
if (!getResourceProfiles().isInitialized()) {
return false;
}
}
for (int i = 0; i < getResourceTypesCount(); i++) {
if (!getResourceTypes(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maximumCapability_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> maximumCapabilityBuilder_;
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
return maximumCapability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
} else {
return maximumCapabilityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public Builder setMaximumCapability(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (maximumCapabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maximumCapability_ = value;
onChanged();
} else {
maximumCapabilityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public Builder setMaximumCapability(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = builderForValue.build();
onChanged();
} else {
maximumCapabilityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public Builder mergeMaximumCapability(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (maximumCapabilityBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
maximumCapability_ != null &&
maximumCapability_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
maximumCapability_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(maximumCapability_).mergeFrom(value).buildPartial();
} else {
maximumCapability_ = value;
}
onChanged();
} else {
maximumCapabilityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public Builder clearMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = null;
onChanged();
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getMaximumCapabilityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMaximumCapabilityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
if (maximumCapabilityBuilder_ != null) {
return maximumCapabilityBuilder_.getMessageOrBuilder();
} else {
return maximumCapability_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
}
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getMaximumCapabilityFieldBuilder() {
if (maximumCapabilityBuilder_ == null) {
maximumCapabilityBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getMaximumCapability(),
getParentForChildren(),
isClean());
maximumCapability_ = null;
}
return maximumCapabilityBuilder_;
}
private org.apache.hadoop.thirdparty.protobuf.ByteString clientToAmTokenMasterKey_ = org.apache.hadoop.thirdparty.protobuf.ByteString.EMPTY;
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public boolean hasClientToAmTokenMasterKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString getClientToAmTokenMasterKey() {
return clientToAmTokenMasterKey_;
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public Builder setClientToAmTokenMasterKey(org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
clientToAmTokenMasterKey_ = value;
onChanged();
return this;
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public Builder clearClientToAmTokenMasterKey() {
bitField0_ = (bitField0_ & ~0x00000002);
clientToAmTokenMasterKey_ = getDefaultInstance().getClientToAmTokenMasterKey();
onChanged();
return this;
}
private java.util.List applicationACLs_ =
java.util.Collections.emptyList();
private void ensureApplicationACLsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
applicationACLs_ = new java.util.ArrayList(applicationACLs_);
bitField0_ |= 0x00000004;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder> applicationACLsBuilder_;
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public java.util.List getApplicationACLsList() {
if (applicationACLsBuilder_ == null) {
return java.util.Collections.unmodifiableList(applicationACLs_);
} else {
return applicationACLsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public int getApplicationACLsCount() {
if (applicationACLsBuilder_ == null) {
return applicationACLs_.size();
} else {
return applicationACLsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto getApplicationACLs(int index) {
if (applicationACLsBuilder_ == null) {
return applicationACLs_.get(index);
} else {
return applicationACLsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder setApplicationACLs(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto value) {
if (applicationACLsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationACLsIsMutable();
applicationACLs_.set(index, value);
onChanged();
} else {
applicationACLsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder setApplicationACLs(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder builderForValue) {
if (applicationACLsBuilder_ == null) {
ensureApplicationACLsIsMutable();
applicationACLs_.set(index, builderForValue.build());
onChanged();
} else {
applicationACLsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder addApplicationACLs(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto value) {
if (applicationACLsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationACLsIsMutable();
applicationACLs_.add(value);
onChanged();
} else {
applicationACLsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder addApplicationACLs(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto value) {
if (applicationACLsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationACLsIsMutable();
applicationACLs_.add(index, value);
onChanged();
} else {
applicationACLsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder addApplicationACLs(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder builderForValue) {
if (applicationACLsBuilder_ == null) {
ensureApplicationACLsIsMutable();
applicationACLs_.add(builderForValue.build());
onChanged();
} else {
applicationACLsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder addApplicationACLs(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder builderForValue) {
if (applicationACLsBuilder_ == null) {
ensureApplicationACLsIsMutable();
applicationACLs_.add(index, builderForValue.build());
onChanged();
} else {
applicationACLsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder addAllApplicationACLs(
java.lang.Iterable values) {
if (applicationACLsBuilder_ == null) {
ensureApplicationACLsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, applicationACLs_);
onChanged();
} else {
applicationACLsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder clearApplicationACLs() {
if (applicationACLsBuilder_ == null) {
applicationACLs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
applicationACLsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public Builder removeApplicationACLs(int index) {
if (applicationACLsBuilder_ == null) {
ensureApplicationACLsIsMutable();
applicationACLs_.remove(index);
onChanged();
} else {
applicationACLsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder getApplicationACLsBuilder(
int index) {
return getApplicationACLsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder getApplicationACLsOrBuilder(
int index) {
if (applicationACLsBuilder_ == null) {
return applicationACLs_.get(index); } else {
return applicationACLsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public java.util.List
getApplicationACLsOrBuilderList() {
if (applicationACLsBuilder_ != null) {
return applicationACLsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(applicationACLs_);
}
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder addApplicationACLsBuilder() {
return getApplicationACLsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder addApplicationACLsBuilder(
int index) {
return getApplicationACLsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
public java.util.List
getApplicationACLsBuilderList() {
return getApplicationACLsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder>
getApplicationACLsFieldBuilder() {
if (applicationACLsBuilder_ == null) {
applicationACLsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder>(
applicationACLs_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
applicationACLs_ = null;
}
return applicationACLsBuilder_;
}
private java.util.List containersFromPreviousAttempts_ =
java.util.Collections.emptyList();
private void ensureContainersFromPreviousAttemptsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
containersFromPreviousAttempts_ = new java.util.ArrayList(containersFromPreviousAttempts_);
bitField0_ |= 0x00000008;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> containersFromPreviousAttemptsBuilder_;
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public java.util.List getContainersFromPreviousAttemptsList() {
if (containersFromPreviousAttemptsBuilder_ == null) {
return java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
} else {
return containersFromPreviousAttemptsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public int getContainersFromPreviousAttemptsCount() {
if (containersFromPreviousAttemptsBuilder_ == null) {
return containersFromPreviousAttempts_.size();
} else {
return containersFromPreviousAttemptsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersFromPreviousAttempts(int index) {
if (containersFromPreviousAttemptsBuilder_ == null) {
return containersFromPreviousAttempts_.get(index);
} else {
return containersFromPreviousAttemptsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder setContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containersFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.set(index, value);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder setContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.set(index, builderForValue.build());
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder addContainersFromPreviousAttempts(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containersFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(value);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder addContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containersFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(index, value);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder addContainersFromPreviousAttempts(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(builderForValue.build());
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder addContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(index, builderForValue.build());
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder addAllContainersFromPreviousAttempts(
java.lang.Iterable values) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, containersFromPreviousAttempts_);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder clearContainersFromPreviousAttempts() {
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public Builder removeContainersFromPreviousAttempts(int index) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.remove(index);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getContainersFromPreviousAttemptsBuilder(
int index) {
return getContainersFromPreviousAttemptsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index) {
if (containersFromPreviousAttemptsBuilder_ == null) {
return containersFromPreviousAttempts_.get(index); } else {
return containersFromPreviousAttemptsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public java.util.List
getContainersFromPreviousAttemptsOrBuilderList() {
if (containersFromPreviousAttemptsBuilder_ != null) {
return containersFromPreviousAttemptsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersFromPreviousAttemptsBuilder() {
return getContainersFromPreviousAttemptsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersFromPreviousAttemptsBuilder(
int index) {
return getContainersFromPreviousAttemptsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
public java.util.List
getContainersFromPreviousAttemptsBuilderList() {
return getContainersFromPreviousAttemptsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getContainersFromPreviousAttemptsFieldBuilder() {
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttemptsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
containersFromPreviousAttempts_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
containersFromPreviousAttempts_ = null;
}
return containersFromPreviousAttemptsBuilder_;
}
private java.lang.Object queue_ = "";
/**
* optional string queue = 5;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string queue = 5;
*/
public java.lang.String getQueue() {
java.lang.Object ref = queue_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(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 = 5;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getQueueBytes() {
java.lang.Object ref = queue_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queue_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string queue = 5;
*/
public Builder setQueue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
queue_ = value;
onChanged();
return this;
}
/**
* optional string queue = 5;
*/
public Builder clearQueue() {
bitField0_ = (bitField0_ & ~0x00000010);
queue_ = getDefaultInstance().getQueue();
onChanged();
return this;
}
/**
* optional string queue = 5;
*/
public Builder setQueueBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
queue_ = value;
onChanged();
return this;
}
private java.util.List nmTokensFromPreviousAttempts_ =
java.util.Collections.emptyList();
private void ensureNmTokensFromPreviousAttemptsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
nmTokensFromPreviousAttempts_ = new java.util.ArrayList(nmTokensFromPreviousAttempts_);
bitField0_ |= 0x00000020;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder> nmTokensFromPreviousAttemptsBuilder_;
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public java.util.List getNmTokensFromPreviousAttemptsList() {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
return java.util.Collections.unmodifiableList(nmTokensFromPreviousAttempts_);
} else {
return nmTokensFromPreviousAttemptsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public int getNmTokensFromPreviousAttemptsCount() {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
return nmTokensFromPreviousAttempts_.size();
} else {
return nmTokensFromPreviousAttemptsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getNmTokensFromPreviousAttempts(int index) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
return nmTokensFromPreviousAttempts_.get(index);
} else {
return nmTokensFromPreviousAttemptsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder setNmTokensFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto value) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.set(index, value);
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder setNmTokensFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder builderForValue) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.set(index, builderForValue.build());
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder addNmTokensFromPreviousAttempts(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto value) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.add(value);
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder addNmTokensFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto value) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.add(index, value);
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder addNmTokensFromPreviousAttempts(
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder builderForValue) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.add(builderForValue.build());
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder addNmTokensFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder builderForValue) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.add(index, builderForValue.build());
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder addAllNmTokensFromPreviousAttempts(
java.lang.Iterable values) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
ensureNmTokensFromPreviousAttemptsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, nmTokensFromPreviousAttempts_);
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder clearNmTokensFromPreviousAttempts() {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
nmTokensFromPreviousAttempts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public Builder removeNmTokensFromPreviousAttempts(int index) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
ensureNmTokensFromPreviousAttemptsIsMutable();
nmTokensFromPreviousAttempts_.remove(index);
onChanged();
} else {
nmTokensFromPreviousAttemptsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder getNmTokensFromPreviousAttemptsBuilder(
int index) {
return getNmTokensFromPreviousAttemptsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensFromPreviousAttemptsOrBuilder(
int index) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
return nmTokensFromPreviousAttempts_.get(index); } else {
return nmTokensFromPreviousAttemptsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public java.util.List
getNmTokensFromPreviousAttemptsOrBuilderList() {
if (nmTokensFromPreviousAttemptsBuilder_ != null) {
return nmTokensFromPreviousAttemptsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nmTokensFromPreviousAttempts_);
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder addNmTokensFromPreviousAttemptsBuilder() {
return getNmTokensFromPreviousAttemptsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder addNmTokensFromPreviousAttemptsBuilder(
int index) {
return getNmTokensFromPreviousAttemptsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
*/
public java.util.List
getNmTokensFromPreviousAttemptsBuilderList() {
return getNmTokensFromPreviousAttemptsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
getNmTokensFromPreviousAttemptsFieldBuilder() {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
nmTokensFromPreviousAttemptsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>(
nmTokensFromPreviousAttempts_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
nmTokensFromPreviousAttempts_ = null;
}
return nmTokensFromPreviousAttemptsBuilder_;
}
private java.util.List schedulerResourceTypes_ =
java.util.Collections.emptyList();
private void ensureSchedulerResourceTypesIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
schedulerResourceTypes_ = new java.util.ArrayList(schedulerResourceTypes_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public java.util.List getSchedulerResourceTypesList() {
return new org.apache.hadoop.thirdparty.protobuf.Internal.ListAdapter<
java.lang.Integer, org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes>(schedulerResourceTypes_, schedulerResourceTypes_converter_);
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public int getSchedulerResourceTypesCount() {
return schedulerResourceTypes_.size();
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes getSchedulerResourceTypes(int index) {
return schedulerResourceTypes_converter_.convert(schedulerResourceTypes_.get(index));
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public Builder setSchedulerResourceTypes(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes value) {
if (value == null) {
throw new NullPointerException();
}
ensureSchedulerResourceTypesIsMutable();
schedulerResourceTypes_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public Builder addSchedulerResourceTypes(org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes value) {
if (value == null) {
throw new NullPointerException();
}
ensureSchedulerResourceTypesIsMutable();
schedulerResourceTypes_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public Builder addAllSchedulerResourceTypes(
java.lang.Iterable values) {
ensureSchedulerResourceTypesIsMutable();
for (org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes value : values) {
schedulerResourceTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public Builder clearSchedulerResourceTypes() {
schedulerResourceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto resourceProfiles_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder> resourceProfilesBuilder_;
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public boolean hasResourceProfiles() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto getResourceProfiles() {
if (resourceProfilesBuilder_ == null) {
return resourceProfiles_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance() : resourceProfiles_;
} else {
return resourceProfilesBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public Builder setResourceProfiles(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto value) {
if (resourceProfilesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourceProfiles_ = value;
onChanged();
} else {
resourceProfilesBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public Builder setResourceProfiles(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder builderForValue) {
if (resourceProfilesBuilder_ == null) {
resourceProfiles_ = builderForValue.build();
onChanged();
} else {
resourceProfilesBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public Builder mergeResourceProfiles(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto value) {
if (resourceProfilesBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
resourceProfiles_ != null &&
resourceProfiles_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance()) {
resourceProfiles_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.newBuilder(resourceProfiles_).mergeFrom(value).buildPartial();
} else {
resourceProfiles_ = value;
}
onChanged();
} else {
resourceProfilesBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public Builder clearResourceProfiles() {
if (resourceProfilesBuilder_ == null) {
resourceProfiles_ = null;
onChanged();
} else {
resourceProfilesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder getResourceProfilesBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getResourceProfilesFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder getResourceProfilesOrBuilder() {
if (resourceProfilesBuilder_ != null) {
return resourceProfilesBuilder_.getMessageOrBuilder();
} else {
return resourceProfiles_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.getDefaultInstance() : resourceProfiles_;
}
}
/**
* optional .hadoop.yarn.ResourceProfilesProto resource_profiles = 8;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder>
getResourceProfilesFieldBuilder() {
if (resourceProfilesBuilder_ == null) {
resourceProfilesBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfilesProtoOrBuilder>(
getResourceProfiles(),
getParentForChildren(),
isClean());
resourceProfiles_ = null;
}
return resourceProfilesBuilder_;
}
private java.util.List resourceTypes_ =
java.util.Collections.emptyList();
private void ensureResourceTypesIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
resourceTypes_ = new java.util.ArrayList(resourceTypes_);
bitField0_ |= 0x00000100;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder> resourceTypesBuilder_;
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public java.util.List getResourceTypesList() {
if (resourceTypesBuilder_ == null) {
return java.util.Collections.unmodifiableList(resourceTypes_);
} else {
return resourceTypesBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public int getResourceTypesCount() {
if (resourceTypesBuilder_ == null) {
return resourceTypes_.size();
} else {
return resourceTypesBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto getResourceTypes(int index) {
if (resourceTypesBuilder_ == null) {
return resourceTypes_.get(index);
} else {
return resourceTypesBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder setResourceTypes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto value) {
if (resourceTypesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceTypesIsMutable();
resourceTypes_.set(index, value);
onChanged();
} else {
resourceTypesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder setResourceTypes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder builderForValue) {
if (resourceTypesBuilder_ == null) {
ensureResourceTypesIsMutable();
resourceTypes_.set(index, builderForValue.build());
onChanged();
} else {
resourceTypesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder addResourceTypes(org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto value) {
if (resourceTypesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceTypesIsMutable();
resourceTypes_.add(value);
onChanged();
} else {
resourceTypesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder addResourceTypes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto value) {
if (resourceTypesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourceTypesIsMutable();
resourceTypes_.add(index, value);
onChanged();
} else {
resourceTypesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder addResourceTypes(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder builderForValue) {
if (resourceTypesBuilder_ == null) {
ensureResourceTypesIsMutable();
resourceTypes_.add(builderForValue.build());
onChanged();
} else {
resourceTypesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder addResourceTypes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder builderForValue) {
if (resourceTypesBuilder_ == null) {
ensureResourceTypesIsMutable();
resourceTypes_.add(index, builderForValue.build());
onChanged();
} else {
resourceTypesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder addAllResourceTypes(
java.lang.Iterable values) {
if (resourceTypesBuilder_ == null) {
ensureResourceTypesIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, resourceTypes_);
onChanged();
} else {
resourceTypesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder clearResourceTypes() {
if (resourceTypesBuilder_ == null) {
resourceTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
resourceTypesBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public Builder removeResourceTypes(int index) {
if (resourceTypesBuilder_ == null) {
ensureResourceTypesIsMutable();
resourceTypes_.remove(index);
onChanged();
} else {
resourceTypesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder getResourceTypesBuilder(
int index) {
return getResourceTypesFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder getResourceTypesOrBuilder(
int index) {
if (resourceTypesBuilder_ == null) {
return resourceTypes_.get(index); } else {
return resourceTypesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public java.util.List
getResourceTypesOrBuilderList() {
if (resourceTypesBuilder_ != null) {
return resourceTypesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resourceTypes_);
}
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder addResourceTypesBuilder() {
return getResourceTypesFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder addResourceTypesBuilder(
int index) {
return getResourceTypesFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceTypeInfoProto resource_types = 9;
*/
public java.util.List
getResourceTypesBuilderList() {
return getResourceTypesFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder>
getResourceTypesFieldBuilder() {
if (resourceTypesBuilder_ == null) {
resourceTypesBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceTypeInfoProtoOrBuilder>(
resourceTypes_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
resourceTypes_ = null;
}
return resourceTypesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.RegisterApplicationMasterResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.RegisterApplicationMasterResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public RegisterApplicationMasterResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new RegisterApplicationMasterResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FinishApplicationMasterRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.FinishApplicationMasterRequestProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional string diagnostics = 1;
*/
boolean hasDiagnostics();
/**
* optional string diagnostics = 1;
*/
java.lang.String getDiagnostics();
/**
* optional string diagnostics = 1;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes();
/**
* optional string tracking_url = 2;
*/
boolean hasTrackingUrl();
/**
* optional string tracking_url = 2;
*/
java.lang.String getTrackingUrl();
/**
* optional string tracking_url = 2;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes();
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
boolean hasFinalApplicationStatus();
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus();
}
/**
* Protobuf type {@code hadoop.yarn.FinishApplicationMasterRequestProto}
*/
public static final class FinishApplicationMasterRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.FinishApplicationMasterRequestProto)
FinishApplicationMasterRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FinishApplicationMasterRequestProto.newBuilder() to construct.
private FinishApplicationMasterRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FinishApplicationMasterRequestProto() {
diagnostics_ = "";
trackingUrl_ = "";
finalApplicationStatus_ = 0;
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FinishApplicationMasterRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
diagnostics_ = bs;
break;
}
case 18: {
org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
trackingUrl_ = bs;
break;
}
case 24: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
finalApplicationStatus_ = rawValue;
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.Builder.class);
}
private int bitField0_;
public static final int DIAGNOSTICS_FIELD_NUMBER = 1;
private volatile java.lang.Object diagnostics_;
/**
* optional string diagnostics = 1;
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string diagnostics = 1;
*/
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.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
}
}
/**
* optional string diagnostics = 1;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int TRACKING_URL_FIELD_NUMBER = 2;
private volatile java.lang.Object trackingUrl_;
/**
* optional string tracking_url = 2;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string tracking_url = 2;
*/
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.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string tracking_url = 2;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int FINAL_APPLICATION_STATUS_FIELD_NUMBER = 3;
private int finalApplicationStatus_;
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public boolean hasFinalApplicationStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto result = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(finalApplicationStatus_);
return result == null ? org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED : 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;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, diagnostics_);
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, trackingUrl_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, finalApplicationStatus_);
}
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.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(1, diagnostics_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(2, trackingUrl_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeEnumSize(3, finalApplicationStatus_);
}
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.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto) obj;
if (hasDiagnostics() != other.hasDiagnostics()) return false;
if (hasDiagnostics()) {
if (!getDiagnostics()
.equals(other.getDiagnostics())) return false;
}
if (hasTrackingUrl() != other.hasTrackingUrl()) return false;
if (hasTrackingUrl()) {
if (!getTrackingUrl()
.equals(other.getTrackingUrl())) return false;
}
if (hasFinalApplicationStatus() != other.hasFinalApplicationStatus()) return false;
if (hasFinalApplicationStatus()) {
if (finalApplicationStatus_ != other.finalApplicationStatus_) 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 (hasDiagnostics()) {
hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER;
hash = (53 * hash) + getDiagnostics().hashCode();
}
if (hasTrackingUrl()) {
hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrl().hashCode();
}
if (hasFinalApplicationStatus()) {
hash = (37 * hash) + FINAL_APPLICATION_STATUS_FIELD_NUMBER;
hash = (53 * hash) + finalApplicationStatus_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.FinishApplicationMasterRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.FinishApplicationMasterRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
diagnostics_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
finalApplicationStatus_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.diagnostics_ = diagnostics_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.trackingUrl_ = trackingUrl_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.finalApplicationStatus_ = finalApplicationStatus_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.getDefaultInstance()) return this;
if (other.hasDiagnostics()) {
bitField0_ |= 0x00000001;
diagnostics_ = other.diagnostics_;
onChanged();
}
if (other.hasTrackingUrl()) {
bitField0_ |= 0x00000002;
trackingUrl_ = other.trackingUrl_;
onChanged();
}
if (other.hasFinalApplicationStatus()) {
setFinalApplicationStatus(other.getFinalApplicationStatus());
}
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object diagnostics_ = "";
/**
* optional string diagnostics = 1;
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string diagnostics = 1;
*/
public java.lang.String getDiagnostics() {
java.lang.Object ref = diagnostics_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(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 = 1;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string diagnostics = 1;
*/
public Builder setDiagnostics(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
diagnostics_ = value;
onChanged();
return this;
}
/**
* optional string diagnostics = 1;
*/
public Builder clearDiagnostics() {
bitField0_ = (bitField0_ & ~0x00000001);
diagnostics_ = getDefaultInstance().getDiagnostics();
onChanged();
return this;
}
/**
* optional string diagnostics = 1;
*/
public Builder setDiagnosticsBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
diagnostics_ = value;
onChanged();
return this;
}
private java.lang.Object trackingUrl_ = "";
/**
* optional string tracking_url = 2;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string tracking_url = 2;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(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 = 2;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string tracking_url = 2;
*/
public Builder setTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
trackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string tracking_url = 2;
*/
public Builder clearTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00000002);
trackingUrl_ = getDefaultInstance().getTrackingUrl();
onChanged();
return this;
}
/**
* optional string tracking_url = 2;
*/
public Builder setTrackingUrlBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
trackingUrl_ = value;
onChanged();
return this;
}
private int finalApplicationStatus_ = 0;
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public boolean hasFinalApplicationStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto result = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(finalApplicationStatus_);
return result == null ? org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED : result;
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public Builder setFinalApplicationStatus(org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
finalApplicationStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public Builder clearFinalApplicationStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
finalApplicationStatus_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.FinishApplicationMasterRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.FinishApplicationMasterRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public FinishApplicationMasterRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new FinishApplicationMasterRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FinishApplicationMasterResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.FinishApplicationMasterResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional bool isUnregistered = 1 [default = false];
*/
boolean hasIsUnregistered();
/**
* optional bool isUnregistered = 1 [default = false];
*/
boolean getIsUnregistered();
}
/**
* Protobuf type {@code hadoop.yarn.FinishApplicationMasterResponseProto}
*/
public static final class FinishApplicationMasterResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.FinishApplicationMasterResponseProto)
FinishApplicationMasterResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FinishApplicationMasterResponseProto.newBuilder() to construct.
private FinishApplicationMasterResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FinishApplicationMasterResponseProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FinishApplicationMasterResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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;
isUnregistered_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.Builder.class);
}
private int bitField0_;
public static final int ISUNREGISTERED_FIELD_NUMBER = 1;
private boolean isUnregistered_;
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean hasIsUnregistered() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean getIsUnregistered() {
return isUnregistered_;
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, isUnregistered_);
}
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.thirdparty.protobuf.CodedOutputStream
.computeBoolSize(1, isUnregistered_);
}
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.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto) obj;
if (hasIsUnregistered() != other.hasIsUnregistered()) return false;
if (hasIsUnregistered()) {
if (getIsUnregistered()
!= other.getIsUnregistered()) 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 (hasIsUnregistered()) {
hash = (37 * hash) + ISUNREGISTERED_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.thirdparty.protobuf.Internal.hashBoolean(
getIsUnregistered());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.FinishApplicationMasterResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.FinishApplicationMasterResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isUnregistered_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.isUnregistered_ = isUnregistered_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.getDefaultInstance()) return this;
if (other.hasIsUnregistered()) {
setIsUnregistered(other.getIsUnregistered());
}
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean isUnregistered_ ;
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean hasIsUnregistered() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean getIsUnregistered() {
return isUnregistered_;
}
/**
* optional bool isUnregistered = 1 [default = false];
*/
public Builder setIsUnregistered(boolean value) {
bitField0_ |= 0x00000001;
isUnregistered_ = value;
onChanged();
return this;
}
/**
* optional bool isUnregistered = 1 [default = false];
*/
public Builder clearIsUnregistered() {
bitField0_ = (bitField0_ & ~0x00000001);
isUnregistered_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.FinishApplicationMasterResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.FinishApplicationMasterResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public FinishApplicationMasterResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new FinishApplicationMasterResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateContainerRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.UpdateContainerRequestProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required int32 container_version = 1;
*/
boolean hasContainerVersion();
/**
* required int32 container_version = 1;
*/
int getContainerVersion();
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
boolean hasContainerId();
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId();
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder();
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
boolean hasUpdateType();
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto getUpdateType();
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
boolean hasCapability();
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getCapability();
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder();
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
boolean hasExecutionType();
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType();
}
/**
* Protobuf type {@code hadoop.yarn.UpdateContainerRequestProto}
*/
public static final class UpdateContainerRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.UpdateContainerRequestProto)
UpdateContainerRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateContainerRequestProto.newBuilder() to construct.
private UpdateContainerRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private UpdateContainerRequestProto() {
updateType_ = 0;
executionType_ = 1;
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateContainerRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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;
containerVersion_ = input.readInt32();
break;
}
case 18: {
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto value = org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
updateType_ = rawValue;
}
break;
}
case 34: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = capability_.toBuilder();
}
capability_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(capability_);
capability_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
bitField0_ |= 0x00000010;
executionType_ = rawValue;
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder.class);
}
private int bitField0_;
public static final int CONTAINER_VERSION_FIELD_NUMBER = 1;
private int containerVersion_;
/**
* required int32 container_version = 1;
*/
public boolean hasContainerVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 container_version = 1;
*/
public int getContainerVersion() {
return containerVersion_;
}
public static final int CONTAINER_ID_FIELD_NUMBER = 2;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
return containerId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
return containerId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
}
public static final int UPDATE_TYPE_FIELD_NUMBER = 3;
private int updateType_;
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
public boolean hasUpdateType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto getUpdateType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto result = org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.valueOf(updateType_);
return result == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.INCREASE_RESOURCE : result;
}
public static final int CAPABILITY_FIELD_NUMBER = 4;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto capability_;
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public boolean hasCapability() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getCapability() {
return capability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder() {
return capability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
}
public static final int EXECUTION_TYPE_FIELD_NUMBER = 5;
private int executionType_;
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
public boolean hasExecutionType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto result = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(executionType_);
return result == null ? org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED : 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 (!hasContainerVersion()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasContainerId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasUpdateType()) {
memoizedIsInitialized = 0;
return false;
}
if (hasCapability()) {
if (!getCapability().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(1, containerVersion_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getContainerId());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, updateType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getCapability());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(5, executionType_);
}
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.thirdparty.protobuf.CodedOutputStream
.computeInt32Size(1, containerVersion_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(2, getContainerId());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeEnumSize(3, updateType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(4, getCapability());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeEnumSize(5, executionType_);
}
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.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto) obj;
if (hasContainerVersion() != other.hasContainerVersion()) return false;
if (hasContainerVersion()) {
if (getContainerVersion()
!= other.getContainerVersion()) return false;
}
if (hasContainerId() != other.hasContainerId()) return false;
if (hasContainerId()) {
if (!getContainerId()
.equals(other.getContainerId())) return false;
}
if (hasUpdateType() != other.hasUpdateType()) return false;
if (hasUpdateType()) {
if (updateType_ != other.updateType_) return false;
}
if (hasCapability() != other.hasCapability()) return false;
if (hasCapability()) {
if (!getCapability()
.equals(other.getCapability())) return false;
}
if (hasExecutionType() != other.hasExecutionType()) return false;
if (hasExecutionType()) {
if (executionType_ != other.executionType_) 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 (hasContainerVersion()) {
hash = (37 * hash) + CONTAINER_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getContainerVersion();
}
if (hasContainerId()) {
hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
}
if (hasUpdateType()) {
hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + updateType_;
}
if (hasCapability()) {
hash = (37 * hash) + CAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getCapability().hashCode();
}
if (hasExecutionType()) {
hash = (37 * hash) + EXECUTION_TYPE_FIELD_NUMBER;
hash = (53 * hash) + executionType_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.UpdateContainerRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.UpdateContainerRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
getCapabilityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
containerVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (containerIdBuilder_ == null) {
containerId_ = null;
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
updateType_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (capabilityBuilder_ == null) {
capability_ = null;
} else {
capabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
executionType_ = 1;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.containerVersion_ = containerVersion_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.updateType_ = updateType_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (capabilityBuilder_ == null) {
result.capability_ = capability_;
} else {
result.capability_ = capabilityBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.executionType_ = executionType_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance()) return this;
if (other.hasContainerVersion()) {
setContainerVersion(other.getContainerVersion());
}
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
if (other.hasUpdateType()) {
setUpdateType(other.getUpdateType());
}
if (other.hasCapability()) {
mergeCapability(other.getCapability());
}
if (other.hasExecutionType()) {
setExecutionType(other.getExecutionType());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasContainerVersion()) {
return false;
}
if (!hasContainerId()) {
return false;
}
if (!hasUpdateType()) {
return false;
}
if (hasCapability()) {
if (!getCapability().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int containerVersion_ ;
/**
* required int32 container_version = 1;
*/
public boolean hasContainerVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 container_version = 1;
*/
public int getContainerVersion() {
return containerVersion_;
}
/**
* required int32 container_version = 1;
*/
public Builder setContainerVersion(int value) {
bitField0_ |= 0x00000001;
containerVersion_ = value;
onChanged();
return this;
}
/**
* required int32 container_version = 1;
*/
public Builder clearContainerVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
containerVersion_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> containerIdBuilder_;
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public Builder setContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public Builder setContainerId(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public Builder mergeContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
containerId_ != null &&
containerId_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) {
containerId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = null;
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance() : containerId_;
}
}
/**
* required .hadoop.yarn.ContainerIdProto container_id = 2;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
getContainerId(),
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
private int updateType_ = 0;
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
public boolean hasUpdateType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto getUpdateType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto result = org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.valueOf(updateType_);
return result == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.INCREASE_RESOURCE : result;
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
public Builder setUpdateType(org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
updateType_ = value.getNumber();
onChanged();
return this;
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 3;
*/
public Builder clearUpdateType() {
bitField0_ = (bitField0_ & ~0x00000004);
updateType_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto capability_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> capabilityBuilder_;
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public boolean hasCapability() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getCapability() {
if (capabilityBuilder_ == null) {
return capability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
} else {
return capabilityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public Builder setCapability(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_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public Builder setCapability(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (capabilityBuilder_ == null) {
capability_ = builderForValue.build();
onChanged();
} else {
capabilityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public Builder mergeCapability(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (capabilityBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
capability_ != null &&
capability_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
capability_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(capability_).mergeFrom(value).buildPartial();
} else {
capability_ = value;
}
onChanged();
} else {
capabilityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public Builder clearCapability() {
if (capabilityBuilder_ == null) {
capability_ = null;
onChanged();
} else {
capabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getCapabilityBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCapabilityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getCapabilityOrBuilder() {
if (capabilityBuilder_ != null) {
return capabilityBuilder_.getMessageOrBuilder();
} else {
return capability_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : capability_;
}
}
/**
* optional .hadoop.yarn.ResourceProto capability = 4;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getCapabilityFieldBuilder() {
if (capabilityBuilder_ == null) {
capabilityBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getCapability(),
getParentForChildren(),
isClean());
capability_ = null;
}
return capabilityBuilder_;
}
private int executionType_ = 1;
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
public boolean hasExecutionType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto getExecutionType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto result = org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.valueOf(executionType_);
return result == null ? org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto.GUARANTEED : result;
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
public Builder setExecutionType(org.apache.hadoop.yarn.proto.YarnProtos.ExecutionTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
executionType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ExecutionTypeProto execution_type = 5;
*/
public Builder clearExecutionType() {
bitField0_ = (bitField0_ & ~0x00000010);
executionType_ = 1;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.UpdateContainerRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.UpdateContainerRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public UpdateContainerRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new UpdateContainerRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateContainerErrorProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.UpdateContainerErrorProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional string reason = 1;
*/
boolean hasReason();
/**
* optional string reason = 1;
*/
java.lang.String getReason();
/**
* optional string reason = 1;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getReasonBytes();
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
boolean hasUpdateRequest();
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getUpdateRequest();
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder getUpdateRequestOrBuilder();
/**
* optional int32 current_container_version = 3;
*/
boolean hasCurrentContainerVersion();
/**
* optional int32 current_container_version = 3;
*/
int getCurrentContainerVersion();
}
/**
* Protobuf type {@code hadoop.yarn.UpdateContainerErrorProto}
*/
public static final class UpdateContainerErrorProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.UpdateContainerErrorProto)
UpdateContainerErrorProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateContainerErrorProto.newBuilder() to construct.
private UpdateContainerErrorProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private UpdateContainerErrorProto() {
reason_ = "";
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateContainerErrorProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
reason_ = bs;
break;
}
case 18: {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = updateRequest_.toBuilder();
}
updateRequest_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateRequest_);
updateRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
currentContainerVersion_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerErrorProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerErrorProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder.class);
}
private int bitField0_;
public static final int REASON_FIELD_NUMBER = 1;
private volatile java.lang.Object reason_;
/**
* optional string reason = 1;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string reason = 1;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
reason_ = s;
}
return s;
}
}
/**
* optional string reason = 1;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
public static final int UPDATE_REQUEST_FIELD_NUMBER = 2;
private org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto updateRequest_;
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public boolean hasUpdateRequest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getUpdateRequest() {
return updateRequest_ == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance() : updateRequest_;
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder getUpdateRequestOrBuilder() {
return updateRequest_ == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance() : updateRequest_;
}
public static final int CURRENT_CONTAINER_VERSION_FIELD_NUMBER = 3;
private int currentContainerVersion_;
/**
* optional int32 current_container_version = 3;
*/
public boolean hasCurrentContainerVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 current_container_version = 3;
*/
public int getCurrentContainerVersion() {
return currentContainerVersion_;
}
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 (hasUpdateRequest()) {
if (!getUpdateRequest().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 1, reason_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getUpdateRequest());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, currentContainerVersion_);
}
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.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(1, reason_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateRequest());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeInt32Size(3, currentContainerVersion_);
}
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.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto) obj;
if (hasReason() != other.hasReason()) return false;
if (hasReason()) {
if (!getReason()
.equals(other.getReason())) return false;
}
if (hasUpdateRequest() != other.hasUpdateRequest()) return false;
if (hasUpdateRequest()) {
if (!getUpdateRequest()
.equals(other.getUpdateRequest())) return false;
}
if (hasCurrentContainerVersion() != other.hasCurrentContainerVersion()) return false;
if (hasCurrentContainerVersion()) {
if (getCurrentContainerVersion()
!= other.getCurrentContainerVersion()) 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 (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasUpdateRequest()) {
hash = (37 * hash) + UPDATE_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getUpdateRequest().hashCode();
}
if (hasCurrentContainerVersion()) {
hash = (37 * hash) + CURRENT_CONTAINER_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getCurrentContainerVersion();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.UpdateContainerErrorProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.UpdateContainerErrorProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerErrorProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerErrorProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUpdateRequestFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
reason_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (updateRequestBuilder_ == null) {
updateRequest_ = null;
} else {
updateRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
currentContainerVersion_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdateContainerErrorProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.reason_ = reason_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (updateRequestBuilder_ == null) {
result.updateRequest_ = updateRequest_;
} else {
result.updateRequest_ = updateRequestBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.currentContainerVersion_ = currentContainerVersion_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.getDefaultInstance()) return this;
if (other.hasReason()) {
bitField0_ |= 0x00000001;
reason_ = other.reason_;
onChanged();
}
if (other.hasUpdateRequest()) {
mergeUpdateRequest(other.getUpdateRequest());
}
if (other.hasCurrentContainerVersion()) {
setCurrentContainerVersion(other.getCurrentContainerVersion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasUpdateRequest()) {
if (!getUpdateRequest().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object reason_ = "";
/**
* optional string reason = 1;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string reason = 1;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
reason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string reason = 1;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string reason = 1;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
reason_ = value;
onChanged();
return this;
}
/**
* optional string reason = 1;
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000001);
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* optional string reason = 1;
*/
public Builder setReasonBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
reason_ = value;
onChanged();
return this;
}
private org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto updateRequest_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder> updateRequestBuilder_;
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public boolean hasUpdateRequest() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getUpdateRequest() {
if (updateRequestBuilder_ == null) {
return updateRequest_ == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance() : updateRequest_;
} else {
return updateRequestBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public Builder setUpdateRequest(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto value) {
if (updateRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateRequest_ = value;
onChanged();
} else {
updateRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public Builder setUpdateRequest(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder builderForValue) {
if (updateRequestBuilder_ == null) {
updateRequest_ = builderForValue.build();
onChanged();
} else {
updateRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public Builder mergeUpdateRequest(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto value) {
if (updateRequestBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
updateRequest_ != null &&
updateRequest_ != org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance()) {
updateRequest_ =
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.newBuilder(updateRequest_).mergeFrom(value).buildPartial();
} else {
updateRequest_ = value;
}
onChanged();
} else {
updateRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public Builder clearUpdateRequest() {
if (updateRequestBuilder_ == null) {
updateRequest_ = null;
onChanged();
} else {
updateRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder getUpdateRequestBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getUpdateRequestFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder getUpdateRequestOrBuilder() {
if (updateRequestBuilder_ != null) {
return updateRequestBuilder_.getMessageOrBuilder();
} else {
return updateRequest_ == null ?
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance() : updateRequest_;
}
}
/**
* optional .hadoop.yarn.UpdateContainerRequestProto update_request = 2;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder>
getUpdateRequestFieldBuilder() {
if (updateRequestBuilder_ == null) {
updateRequestBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder>(
getUpdateRequest(),
getParentForChildren(),
isClean());
updateRequest_ = null;
}
return updateRequestBuilder_;
}
private int currentContainerVersion_ ;
/**
* optional int32 current_container_version = 3;
*/
public boolean hasCurrentContainerVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 current_container_version = 3;
*/
public int getCurrentContainerVersion() {
return currentContainerVersion_;
}
/**
* optional int32 current_container_version = 3;
*/
public Builder setCurrentContainerVersion(int value) {
bitField0_ |= 0x00000004;
currentContainerVersion_ = value;
onChanged();
return this;
}
/**
* optional int32 current_container_version = 3;
*/
public Builder clearCurrentContainerVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
currentContainerVersion_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.UpdateContainerErrorProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.UpdateContainerErrorProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public UpdateContainerErrorProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new UpdateContainerErrorProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AllocateRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.AllocateRequestProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
java.util.List
getAskList();
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto getAsk(int index);
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
int getAskCount();
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
java.util.List
getAskOrBuilderList();
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder getAskOrBuilder(
int index);
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
java.util.List
getReleaseList();
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getRelease(int index);
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
int getReleaseCount();
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
java.util.List
getReleaseOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getReleaseOrBuilder(
int index);
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
boolean hasBlacklistRequest();
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto getBlacklistRequest();
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder getBlacklistRequestOrBuilder();
/**
* optional int32 response_id = 4;
*/
boolean hasResponseId();
/**
* optional int32 response_id = 4;
*/
int getResponseId();
/**
* optional float progress = 5;
*/
boolean hasProgress();
/**
* optional float progress = 5;
*/
float getProgress();
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
java.util.List
getUpdateRequestsList();
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getUpdateRequests(int index);
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
int getUpdateRequestsCount();
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
java.util.List
getUpdateRequestsOrBuilderList();
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder getUpdateRequestsOrBuilder(
int index);
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
java.util.List
getSchedulingRequestsList();
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto getSchedulingRequests(int index);
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
int getSchedulingRequestsCount();
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
java.util.List
getSchedulingRequestsOrBuilderList();
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProtoOrBuilder getSchedulingRequestsOrBuilder(
int index);
/**
* optional string tracking_url = 11;
*/
boolean hasTrackingUrl();
/**
* optional string tracking_url = 11;
*/
java.lang.String getTrackingUrl();
/**
* optional string tracking_url = 11;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes();
}
/**
* Protobuf type {@code hadoop.yarn.AllocateRequestProto}
*/
public static final class AllocateRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.AllocateRequestProto)
AllocateRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AllocateRequestProto.newBuilder() to construct.
private AllocateRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private AllocateRequestProto() {
ask_ = java.util.Collections.emptyList();
release_ = java.util.Collections.emptyList();
updateRequests_ = java.util.Collections.emptyList();
schedulingRequests_ = java.util.Collections.emptyList();
trackingUrl_ = "";
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AllocateRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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)) {
ask_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
ask_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
release_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
release_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry));
break;
}
case 26: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = blacklistRequest_.toBuilder();
}
blacklistRequest_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blacklistRequest_);
blacklistRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 32: {
bitField0_ |= 0x00000002;
responseId_ = input.readInt32();
break;
}
case 45: {
bitField0_ |= 0x00000004;
progress_ = input.readFloat();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
updateRequests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
updateRequests_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.PARSER, extensionRegistry));
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
schedulingRequests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
schedulingRequests_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.PARSER, extensionRegistry));
break;
}
case 90: {
org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
trackingUrl_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
ask_ = java.util.Collections.unmodifiableList(ask_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
release_ = java.util.Collections.unmodifiableList(release_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
updateRequests_ = java.util.Collections.unmodifiableList(updateRequests_);
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
schedulingRequests_ = java.util.Collections.unmodifiableList(schedulingRequests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder.class);
}
private int bitField0_;
public static final int ASK_FIELD_NUMBER = 1;
private java.util.List ask_;
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public java.util.List getAskList() {
return ask_;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public java.util.List
getAskOrBuilderList() {
return ask_;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public int getAskCount() {
return ask_.size();
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto getAsk(int index) {
return ask_.get(index);
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder getAskOrBuilder(
int index) {
return ask_.get(index);
}
public static final int RELEASE_FIELD_NUMBER = 2;
private java.util.List release_;
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public java.util.List getReleaseList() {
return release_;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public java.util.List
getReleaseOrBuilderList() {
return release_;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public int getReleaseCount() {
return release_.size();
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getRelease(int index) {
return release_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getReleaseOrBuilder(
int index) {
return release_.get(index);
}
public static final int BLACKLIST_REQUEST_FIELD_NUMBER = 3;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto blacklistRequest_;
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public boolean hasBlacklistRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto getBlacklistRequest() {
return blacklistRequest_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance() : blacklistRequest_;
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder getBlacklistRequestOrBuilder() {
return blacklistRequest_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance() : blacklistRequest_;
}
public static final int RESPONSE_ID_FIELD_NUMBER = 4;
private int responseId_;
/**
* optional int32 response_id = 4;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 response_id = 4;
*/
public int getResponseId() {
return responseId_;
}
public static final int PROGRESS_FIELD_NUMBER = 5;
private float progress_;
/**
* optional float progress = 5;
*/
public boolean hasProgress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional float progress = 5;
*/
public float getProgress() {
return progress_;
}
public static final int UPDATE_REQUESTS_FIELD_NUMBER = 7;
private java.util.List updateRequests_;
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public java.util.List getUpdateRequestsList() {
return updateRequests_;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public java.util.List
getUpdateRequestsOrBuilderList() {
return updateRequests_;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public int getUpdateRequestsCount() {
return updateRequests_.size();
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getUpdateRequests(int index) {
return updateRequests_.get(index);
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder getUpdateRequestsOrBuilder(
int index) {
return updateRequests_.get(index);
}
public static final int SCHEDULING_REQUESTS_FIELD_NUMBER = 10;
private java.util.List schedulingRequests_;
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public java.util.List getSchedulingRequestsList() {
return schedulingRequests_;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public java.util.List
getSchedulingRequestsOrBuilderList() {
return schedulingRequests_;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public int getSchedulingRequestsCount() {
return schedulingRequests_.size();
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto getSchedulingRequests(int index) {
return schedulingRequests_.get(index);
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProtoOrBuilder getSchedulingRequestsOrBuilder(
int index) {
return schedulingRequests_.get(index);
}
public static final int TRACKING_URL_FIELD_NUMBER = 11;
private volatile java.lang.Object trackingUrl_;
/**
* optional string tracking_url = 11;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string tracking_url = 11;
*/
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.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string tracking_url = 11;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (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;
for (int i = 0; i < getAskCount(); i++) {
if (!getAsk(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getUpdateRequestsCount(); i++) {
if (!getUpdateRequests(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getSchedulingRequestsCount(); i++) {
if (!getSchedulingRequests(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < ask_.size(); i++) {
output.writeMessage(1, ask_.get(i));
}
for (int i = 0; i < release_.size(); i++) {
output.writeMessage(2, release_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getBlacklistRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(4, responseId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeFloat(5, progress_);
}
for (int i = 0; i < updateRequests_.size(); i++) {
output.writeMessage(7, updateRequests_.get(i));
}
for (int i = 0; i < schedulingRequests_.size(); i++) {
output.writeMessage(10, schedulingRequests_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 11, trackingUrl_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ask_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, ask_.get(i));
}
for (int i = 0; i < release_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(2, release_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(3, getBlacklistRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeInt32Size(4, responseId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeFloatSize(5, progress_);
}
for (int i = 0; i < updateRequests_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(7, updateRequests_.get(i));
}
for (int i = 0; i < schedulingRequests_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(10, schedulingRequests_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(11, trackingUrl_);
}
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.yarn.proto.YarnServiceProtos.AllocateRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto) obj;
if (!getAskList()
.equals(other.getAskList())) return false;
if (!getReleaseList()
.equals(other.getReleaseList())) return false;
if (hasBlacklistRequest() != other.hasBlacklistRequest()) return false;
if (hasBlacklistRequest()) {
if (!getBlacklistRequest()
.equals(other.getBlacklistRequest())) return false;
}
if (hasResponseId() != other.hasResponseId()) return false;
if (hasResponseId()) {
if (getResponseId()
!= other.getResponseId()) 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 (!getUpdateRequestsList()
.equals(other.getUpdateRequestsList())) return false;
if (!getSchedulingRequestsList()
.equals(other.getSchedulingRequestsList())) return false;
if (hasTrackingUrl() != other.hasTrackingUrl()) return false;
if (hasTrackingUrl()) {
if (!getTrackingUrl()
.equals(other.getTrackingUrl())) 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 (getAskCount() > 0) {
hash = (37 * hash) + ASK_FIELD_NUMBER;
hash = (53 * hash) + getAskList().hashCode();
}
if (getReleaseCount() > 0) {
hash = (37 * hash) + RELEASE_FIELD_NUMBER;
hash = (53 * hash) + getReleaseList().hashCode();
}
if (hasBlacklistRequest()) {
hash = (37 * hash) + BLACKLIST_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBlacklistRequest().hashCode();
}
if (hasResponseId()) {
hash = (37 * hash) + RESPONSE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResponseId();
}
if (hasProgress()) {
hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getProgress());
}
if (getUpdateRequestsCount() > 0) {
hash = (37 * hash) + UPDATE_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getUpdateRequestsList().hashCode();
}
if (getSchedulingRequestsCount() > 0) {
hash = (37 * hash) + SCHEDULING_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getSchedulingRequestsList().hashCode();
}
if (hasTrackingUrl()) {
hash = (37 * hash) + TRACKING_URL_FIELD_NUMBER;
hash = (53 * hash) + getTrackingUrl().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.AllocateRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.AllocateRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.AllocateRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAskFieldBuilder();
getReleaseFieldBuilder();
getBlacklistRequestFieldBuilder();
getUpdateRequestsFieldBuilder();
getSchedulingRequestsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (askBuilder_ == null) {
ask_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
askBuilder_.clear();
}
if (releaseBuilder_ == null) {
release_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
releaseBuilder_.clear();
}
if (blacklistRequestBuilder_ == null) {
blacklistRequest_ = null;
} else {
blacklistRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
responseId_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
progress_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
if (updateRequestsBuilder_ == null) {
updateRequests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
updateRequestsBuilder_.clear();
}
if (schedulingRequestsBuilder_ == null) {
schedulingRequests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
schedulingRequestsBuilder_.clear();
}
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (askBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
ask_ = java.util.Collections.unmodifiableList(ask_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ask_ = ask_;
} else {
result.ask_ = askBuilder_.build();
}
if (releaseBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
release_ = java.util.Collections.unmodifiableList(release_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.release_ = release_;
} else {
result.release_ = releaseBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (blacklistRequestBuilder_ == null) {
result.blacklistRequest_ = blacklistRequest_;
} else {
result.blacklistRequest_ = blacklistRequestBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.responseId_ = responseId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.progress_ = progress_;
to_bitField0_ |= 0x00000004;
}
if (updateRequestsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
updateRequests_ = java.util.Collections.unmodifiableList(updateRequests_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.updateRequests_ = updateRequests_;
} else {
result.updateRequests_ = updateRequestsBuilder_.build();
}
if (schedulingRequestsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
schedulingRequests_ = java.util.Collections.unmodifiableList(schedulingRequests_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.schedulingRequests_ = schedulingRequests_;
} else {
result.schedulingRequests_ = schedulingRequestsBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.trackingUrl_ = trackingUrl_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance()) return this;
if (askBuilder_ == null) {
if (!other.ask_.isEmpty()) {
if (ask_.isEmpty()) {
ask_ = other.ask_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAskIsMutable();
ask_.addAll(other.ask_);
}
onChanged();
}
} else {
if (!other.ask_.isEmpty()) {
if (askBuilder_.isEmpty()) {
askBuilder_.dispose();
askBuilder_ = null;
ask_ = other.ask_;
bitField0_ = (bitField0_ & ~0x00000001);
askBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAskFieldBuilder() : null;
} else {
askBuilder_.addAllMessages(other.ask_);
}
}
}
if (releaseBuilder_ == null) {
if (!other.release_.isEmpty()) {
if (release_.isEmpty()) {
release_ = other.release_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureReleaseIsMutable();
release_.addAll(other.release_);
}
onChanged();
}
} else {
if (!other.release_.isEmpty()) {
if (releaseBuilder_.isEmpty()) {
releaseBuilder_.dispose();
releaseBuilder_ = null;
release_ = other.release_;
bitField0_ = (bitField0_ & ~0x00000002);
releaseBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getReleaseFieldBuilder() : null;
} else {
releaseBuilder_.addAllMessages(other.release_);
}
}
}
if (other.hasBlacklistRequest()) {
mergeBlacklistRequest(other.getBlacklistRequest());
}
if (other.hasResponseId()) {
setResponseId(other.getResponseId());
}
if (other.hasProgress()) {
setProgress(other.getProgress());
}
if (updateRequestsBuilder_ == null) {
if (!other.updateRequests_.isEmpty()) {
if (updateRequests_.isEmpty()) {
updateRequests_ = other.updateRequests_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureUpdateRequestsIsMutable();
updateRequests_.addAll(other.updateRequests_);
}
onChanged();
}
} else {
if (!other.updateRequests_.isEmpty()) {
if (updateRequestsBuilder_.isEmpty()) {
updateRequestsBuilder_.dispose();
updateRequestsBuilder_ = null;
updateRequests_ = other.updateRequests_;
bitField0_ = (bitField0_ & ~0x00000020);
updateRequestsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUpdateRequestsFieldBuilder() : null;
} else {
updateRequestsBuilder_.addAllMessages(other.updateRequests_);
}
}
}
if (schedulingRequestsBuilder_ == null) {
if (!other.schedulingRequests_.isEmpty()) {
if (schedulingRequests_.isEmpty()) {
schedulingRequests_ = other.schedulingRequests_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSchedulingRequestsIsMutable();
schedulingRequests_.addAll(other.schedulingRequests_);
}
onChanged();
}
} else {
if (!other.schedulingRequests_.isEmpty()) {
if (schedulingRequestsBuilder_.isEmpty()) {
schedulingRequestsBuilder_.dispose();
schedulingRequestsBuilder_ = null;
schedulingRequests_ = other.schedulingRequests_;
bitField0_ = (bitField0_ & ~0x00000040);
schedulingRequestsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSchedulingRequestsFieldBuilder() : null;
} else {
schedulingRequestsBuilder_.addAllMessages(other.schedulingRequests_);
}
}
}
if (other.hasTrackingUrl()) {
bitField0_ |= 0x00000080;
trackingUrl_ = other.trackingUrl_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAskCount(); i++) {
if (!getAsk(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getUpdateRequestsCount(); i++) {
if (!getUpdateRequests(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getSchedulingRequestsCount(); i++) {
if (!getSchedulingRequests(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List ask_ =
java.util.Collections.emptyList();
private void ensureAskIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
ask_ = new java.util.ArrayList(ask_);
bitField0_ |= 0x00000001;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder> askBuilder_;
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public java.util.List getAskList() {
if (askBuilder_ == null) {
return java.util.Collections.unmodifiableList(ask_);
} else {
return askBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public int getAskCount() {
if (askBuilder_ == null) {
return ask_.size();
} else {
return askBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto getAsk(int index) {
if (askBuilder_ == null) {
return ask_.get(index);
} else {
return askBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder setAsk(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto value) {
if (askBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAskIsMutable();
ask_.set(index, value);
onChanged();
} else {
askBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder setAsk(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder builderForValue) {
if (askBuilder_ == null) {
ensureAskIsMutable();
ask_.set(index, builderForValue.build());
onChanged();
} else {
askBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder addAsk(org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto value) {
if (askBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAskIsMutable();
ask_.add(value);
onChanged();
} else {
askBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder addAsk(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto value) {
if (askBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAskIsMutable();
ask_.add(index, value);
onChanged();
} else {
askBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder addAsk(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder builderForValue) {
if (askBuilder_ == null) {
ensureAskIsMutable();
ask_.add(builderForValue.build());
onChanged();
} else {
askBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder addAsk(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder builderForValue) {
if (askBuilder_ == null) {
ensureAskIsMutable();
ask_.add(index, builderForValue.build());
onChanged();
} else {
askBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder addAllAsk(
java.lang.Iterable values) {
if (askBuilder_ == null) {
ensureAskIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, ask_);
onChanged();
} else {
askBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder clearAsk() {
if (askBuilder_ == null) {
ask_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
askBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public Builder removeAsk(int index) {
if (askBuilder_ == null) {
ensureAskIsMutable();
ask_.remove(index);
onChanged();
} else {
askBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder getAskBuilder(
int index) {
return getAskFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder getAskOrBuilder(
int index) {
if (askBuilder_ == null) {
return ask_.get(index); } else {
return askBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public java.util.List
getAskOrBuilderList() {
if (askBuilder_ != null) {
return askBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(ask_);
}
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder addAskBuilder() {
return getAskFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder addAskBuilder(
int index) {
return getAskFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
public java.util.List
getAskBuilderList() {
return getAskFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder>
getAskFieldBuilder() {
if (askBuilder_ == null) {
askBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder>(
ask_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
ask_ = null;
}
return askBuilder_;
}
private java.util.List release_ =
java.util.Collections.emptyList();
private void ensureReleaseIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
release_ = new java.util.ArrayList(release_);
bitField0_ |= 0x00000002;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> releaseBuilder_;
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public java.util.List getReleaseList() {
if (releaseBuilder_ == null) {
return java.util.Collections.unmodifiableList(release_);
} else {
return releaseBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public int getReleaseCount() {
if (releaseBuilder_ == null) {
return release_.size();
} else {
return releaseBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getRelease(int index) {
if (releaseBuilder_ == null) {
return release_.get(index);
} else {
return releaseBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder setRelease(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (releaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReleaseIsMutable();
release_.set(index, value);
onChanged();
} else {
releaseBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder setRelease(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (releaseBuilder_ == null) {
ensureReleaseIsMutable();
release_.set(index, builderForValue.build());
onChanged();
} else {
releaseBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder addRelease(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (releaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReleaseIsMutable();
release_.add(value);
onChanged();
} else {
releaseBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder addRelease(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (releaseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureReleaseIsMutable();
release_.add(index, value);
onChanged();
} else {
releaseBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder addRelease(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (releaseBuilder_ == null) {
ensureReleaseIsMutable();
release_.add(builderForValue.build());
onChanged();
} else {
releaseBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder addRelease(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (releaseBuilder_ == null) {
ensureReleaseIsMutable();
release_.add(index, builderForValue.build());
onChanged();
} else {
releaseBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder addAllRelease(
java.lang.Iterable values) {
if (releaseBuilder_ == null) {
ensureReleaseIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, release_);
onChanged();
} else {
releaseBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder clearRelease() {
if (releaseBuilder_ == null) {
release_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
releaseBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public Builder removeRelease(int index) {
if (releaseBuilder_ == null) {
ensureReleaseIsMutable();
release_.remove(index);
onChanged();
} else {
releaseBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getReleaseBuilder(
int index) {
return getReleaseFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getReleaseOrBuilder(
int index) {
if (releaseBuilder_ == null) {
return release_.get(index); } else {
return releaseBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public java.util.List
getReleaseOrBuilderList() {
if (releaseBuilder_ != null) {
return releaseBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(release_);
}
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder addReleaseBuilder() {
return getReleaseFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder addReleaseBuilder(
int index) {
return getReleaseFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
public java.util.List
getReleaseBuilderList() {
return getReleaseFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getReleaseFieldBuilder() {
if (releaseBuilder_ == null) {
releaseBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
release_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
release_ = null;
}
return releaseBuilder_;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto blacklistRequest_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder> blacklistRequestBuilder_;
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public boolean hasBlacklistRequest() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto getBlacklistRequest() {
if (blacklistRequestBuilder_ == null) {
return blacklistRequest_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance() : blacklistRequest_;
} else {
return blacklistRequestBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public Builder setBlacklistRequest(org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto value) {
if (blacklistRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blacklistRequest_ = value;
onChanged();
} else {
blacklistRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public Builder setBlacklistRequest(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder builderForValue) {
if (blacklistRequestBuilder_ == null) {
blacklistRequest_ = builderForValue.build();
onChanged();
} else {
blacklistRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public Builder mergeBlacklistRequest(org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto value) {
if (blacklistRequestBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
blacklistRequest_ != null &&
blacklistRequest_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance()) {
blacklistRequest_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.newBuilder(blacklistRequest_).mergeFrom(value).buildPartial();
} else {
blacklistRequest_ = value;
}
onChanged();
} else {
blacklistRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public Builder clearBlacklistRequest() {
if (blacklistRequestBuilder_ == null) {
blacklistRequest_ = null;
onChanged();
} else {
blacklistRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder getBlacklistRequestBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getBlacklistRequestFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder getBlacklistRequestOrBuilder() {
if (blacklistRequestBuilder_ != null) {
return blacklistRequestBuilder_.getMessageOrBuilder();
} else {
return blacklistRequest_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance() : blacklistRequest_;
}
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder>
getBlacklistRequestFieldBuilder() {
if (blacklistRequestBuilder_ == null) {
blacklistRequestBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder>(
getBlacklistRequest(),
getParentForChildren(),
isClean());
blacklistRequest_ = null;
}
return blacklistRequestBuilder_;
}
private int responseId_ ;
/**
* optional int32 response_id = 4;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 response_id = 4;
*/
public int getResponseId() {
return responseId_;
}
/**
* optional int32 response_id = 4;
*/
public Builder setResponseId(int value) {
bitField0_ |= 0x00000008;
responseId_ = value;
onChanged();
return this;
}
/**
* optional int32 response_id = 4;
*/
public Builder clearResponseId() {
bitField0_ = (bitField0_ & ~0x00000008);
responseId_ = 0;
onChanged();
return this;
}
private float progress_ ;
/**
* optional float progress = 5;
*/
public boolean hasProgress() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional float progress = 5;
*/
public float getProgress() {
return progress_;
}
/**
* optional float progress = 5;
*/
public Builder setProgress(float value) {
bitField0_ |= 0x00000010;
progress_ = value;
onChanged();
return this;
}
/**
* optional float progress = 5;
*/
public Builder clearProgress() {
bitField0_ = (bitField0_ & ~0x00000010);
progress_ = 0F;
onChanged();
return this;
}
private java.util.List updateRequests_ =
java.util.Collections.emptyList();
private void ensureUpdateRequestsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
updateRequests_ = new java.util.ArrayList(updateRequests_);
bitField0_ |= 0x00000020;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder> updateRequestsBuilder_;
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public java.util.List getUpdateRequestsList() {
if (updateRequestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(updateRequests_);
} else {
return updateRequestsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public int getUpdateRequestsCount() {
if (updateRequestsBuilder_ == null) {
return updateRequests_.size();
} else {
return updateRequestsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto getUpdateRequests(int index) {
if (updateRequestsBuilder_ == null) {
return updateRequests_.get(index);
} else {
return updateRequestsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder setUpdateRequests(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto value) {
if (updateRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdateRequestsIsMutable();
updateRequests_.set(index, value);
onChanged();
} else {
updateRequestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder setUpdateRequests(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder builderForValue) {
if (updateRequestsBuilder_ == null) {
ensureUpdateRequestsIsMutable();
updateRequests_.set(index, builderForValue.build());
onChanged();
} else {
updateRequestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder addUpdateRequests(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto value) {
if (updateRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdateRequestsIsMutable();
updateRequests_.add(value);
onChanged();
} else {
updateRequestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder addUpdateRequests(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto value) {
if (updateRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdateRequestsIsMutable();
updateRequests_.add(index, value);
onChanged();
} else {
updateRequestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder addUpdateRequests(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder builderForValue) {
if (updateRequestsBuilder_ == null) {
ensureUpdateRequestsIsMutable();
updateRequests_.add(builderForValue.build());
onChanged();
} else {
updateRequestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder addUpdateRequests(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder builderForValue) {
if (updateRequestsBuilder_ == null) {
ensureUpdateRequestsIsMutable();
updateRequests_.add(index, builderForValue.build());
onChanged();
} else {
updateRequestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder addAllUpdateRequests(
java.lang.Iterable values) {
if (updateRequestsBuilder_ == null) {
ensureUpdateRequestsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, updateRequests_);
onChanged();
} else {
updateRequestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder clearUpdateRequests() {
if (updateRequestsBuilder_ == null) {
updateRequests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
updateRequestsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public Builder removeUpdateRequests(int index) {
if (updateRequestsBuilder_ == null) {
ensureUpdateRequestsIsMutable();
updateRequests_.remove(index);
onChanged();
} else {
updateRequestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder getUpdateRequestsBuilder(
int index) {
return getUpdateRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder getUpdateRequestsOrBuilder(
int index) {
if (updateRequestsBuilder_ == null) {
return updateRequests_.get(index); } else {
return updateRequestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public java.util.List
getUpdateRequestsOrBuilderList() {
if (updateRequestsBuilder_ != null) {
return updateRequestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(updateRequests_);
}
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder addUpdateRequestsBuilder() {
return getUpdateRequestsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder addUpdateRequestsBuilder(
int index) {
return getUpdateRequestsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.UpdateContainerRequestProto update_requests = 7;
*/
public java.util.List
getUpdateRequestsBuilderList() {
return getUpdateRequestsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder>
getUpdateRequestsFieldBuilder() {
if (updateRequestsBuilder_ == null) {
updateRequestsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProtoOrBuilder>(
updateRequests_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
updateRequests_ = null;
}
return updateRequestsBuilder_;
}
private java.util.List schedulingRequests_ =
java.util.Collections.emptyList();
private void ensureSchedulingRequestsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
schedulingRequests_ = new java.util.ArrayList(schedulingRequests_);
bitField0_ |= 0x00000040;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProtoOrBuilder> schedulingRequestsBuilder_;
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public java.util.List getSchedulingRequestsList() {
if (schedulingRequestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(schedulingRequests_);
} else {
return schedulingRequestsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public int getSchedulingRequestsCount() {
if (schedulingRequestsBuilder_ == null) {
return schedulingRequests_.size();
} else {
return schedulingRequestsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto getSchedulingRequests(int index) {
if (schedulingRequestsBuilder_ == null) {
return schedulingRequests_.get(index);
} else {
return schedulingRequestsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder setSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto value) {
if (schedulingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSchedulingRequestsIsMutable();
schedulingRequests_.set(index, value);
onChanged();
} else {
schedulingRequestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder setSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder builderForValue) {
if (schedulingRequestsBuilder_ == null) {
ensureSchedulingRequestsIsMutable();
schedulingRequests_.set(index, builderForValue.build());
onChanged();
} else {
schedulingRequestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder addSchedulingRequests(org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto value) {
if (schedulingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSchedulingRequestsIsMutable();
schedulingRequests_.add(value);
onChanged();
} else {
schedulingRequestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder addSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto value) {
if (schedulingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSchedulingRequestsIsMutable();
schedulingRequests_.add(index, value);
onChanged();
} else {
schedulingRequestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder addSchedulingRequests(
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder builderForValue) {
if (schedulingRequestsBuilder_ == null) {
ensureSchedulingRequestsIsMutable();
schedulingRequests_.add(builderForValue.build());
onChanged();
} else {
schedulingRequestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder addSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder builderForValue) {
if (schedulingRequestsBuilder_ == null) {
ensureSchedulingRequestsIsMutable();
schedulingRequests_.add(index, builderForValue.build());
onChanged();
} else {
schedulingRequestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder addAllSchedulingRequests(
java.lang.Iterable values) {
if (schedulingRequestsBuilder_ == null) {
ensureSchedulingRequestsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, schedulingRequests_);
onChanged();
} else {
schedulingRequestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder clearSchedulingRequests() {
if (schedulingRequestsBuilder_ == null) {
schedulingRequests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
schedulingRequestsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public Builder removeSchedulingRequests(int index) {
if (schedulingRequestsBuilder_ == null) {
ensureSchedulingRequestsIsMutable();
schedulingRequests_.remove(index);
onChanged();
} else {
schedulingRequestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder getSchedulingRequestsBuilder(
int index) {
return getSchedulingRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProtoOrBuilder getSchedulingRequestsOrBuilder(
int index) {
if (schedulingRequestsBuilder_ == null) {
return schedulingRequests_.get(index); } else {
return schedulingRequestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public java.util.List
getSchedulingRequestsOrBuilderList() {
if (schedulingRequestsBuilder_ != null) {
return schedulingRequestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(schedulingRequests_);
}
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder addSchedulingRequestsBuilder() {
return getSchedulingRequestsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder addSchedulingRequestsBuilder(
int index) {
return getSchedulingRequestsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.SchedulingRequestProto scheduling_requests = 10;
*/
public java.util.List
getSchedulingRequestsBuilderList() {
return getSchedulingRequestsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProtoOrBuilder>
getSchedulingRequestsFieldBuilder() {
if (schedulingRequestsBuilder_ == null) {
schedulingRequestsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.SchedulingRequestProtoOrBuilder>(
schedulingRequests_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
schedulingRequests_ = null;
}
return schedulingRequestsBuilder_;
}
private java.lang.Object trackingUrl_ = "";
/**
* optional string tracking_url = 11;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string tracking_url = 11;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(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 = 11;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string tracking_url = 11;
*/
public Builder setTrackingUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
trackingUrl_ = value;
onChanged();
return this;
}
/**
* optional string tracking_url = 11;
*/
public Builder clearTrackingUrl() {
bitField0_ = (bitField0_ & ~0x00000080);
trackingUrl_ = getDefaultInstance().getTrackingUrl();
onChanged();
return this;
}
/**
* optional string tracking_url = 11;
*/
public Builder setTrackingUrlBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
trackingUrl_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.AllocateRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.AllocateRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public AllocateRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new AllocateRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NMTokenProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.NMTokenProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
boolean hasNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
/**
* optional .hadoop.common.TokenProto token = 2;
*/
boolean hasToken();
/**
* optional .hadoop.common.TokenProto token = 2;
*/
org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken();
/**
* optional .hadoop.common.TokenProto token = 2;
*/
org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.NMTokenProto}
*/
public static final class NMTokenProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.NMTokenProto)
NMTokenProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NMTokenProto.newBuilder() to construct.
private NMTokenProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NMTokenProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NMTokenProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = nodeId_.toBuilder();
}
nodeId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeId_);
nodeId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = token_.toBuilder();
}
token_ = input.readMessage(org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(token_);
token_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder.class);
}
private int bitField0_;
public static final int NODEID_FIELD_NUMBER = 1;
private 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.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
public static final int TOKEN_FIELD_NUMBER = 2;
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_;
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
return token_ == null ? org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : token_;
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
return token_ == null ? org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : token_;
}
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 (hasToken()) {
if (!getToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNodeId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getToken());
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getNodeId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(2, getToken());
}
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.yarn.proto.YarnServiceProtos.NMTokenProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto) obj;
if (hasNodeId() != other.hasNodeId()) return false;
if (hasNodeId()) {
if (!getNodeId()
.equals(other.getNodeId())) return false;
}
if (hasToken() != other.hasToken()) return false;
if (hasToken()) {
if (!getToken()
.equals(other.getToken())) 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 (hasToken()) {
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.NMTokenProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.NMTokenProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.NMTokenProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeIdFieldBuilder();
getTokenFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (nodeIdBuilder_ == null) {
nodeId_ = null;
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (tokenBuilder_ == null) {
token_ = null;
} else {
tokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto(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 (tokenBuilder_ == null) {
result.token_ = token_;
} else {
result.token_ = tokenBuilder_.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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance()) return this;
if (other.hasNodeId()) {
mergeNodeId(other.getNodeId());
}
if (other.hasToken()) {
mergeToken(other.getToken());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasToken()) {
if (!getToken().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return nodeId_ == null ? 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.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.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.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nodeId_ != null &&
nodeId_ != org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
nodeId_ =
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
} else {
nodeId_ = value;
}
onChanged();
} else {
nodeIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto 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.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
if (nodeIdBuilder_ != null) {
return nodeIdBuilder_.getMessageOrBuilder();
} else {
return nodeId_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance() : nodeId_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>
getNodeIdFieldBuilder() {
if (nodeIdBuilder_ == null) {
nodeIdBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
getNodeId(),
getParentForChildren(),
isClean());
nodeId_ = null;
}
return nodeIdBuilder_;
}
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> tokenBuilder_;
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
if (tokenBuilder_ == null) {
return token_ == null ? org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : token_;
} else {
return tokenBuilder_.getMessage();
}
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public Builder setToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (tokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
token_ = value;
onChanged();
} else {
tokenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public Builder setToken(
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
if (tokenBuilder_ == null) {
token_ = builderForValue.build();
onChanged();
} else {
tokenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public Builder mergeToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (tokenBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
token_ != null &&
token_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
token_ =
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(token_).mergeFrom(value).buildPartial();
} else {
token_ = value;
}
onChanged();
} else {
tokenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public Builder clearToken() {
if (tokenBuilder_ == null) {
token_ = null;
onChanged();
} else {
tokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getTokenBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTokenFieldBuilder().getBuilder();
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
if (tokenBuilder_ != null) {
return tokenBuilder_.getMessageOrBuilder();
} else {
return token_ == null ?
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : token_;
}
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getTokenFieldBuilder() {
if (tokenBuilder_ == null) {
tokenBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
getToken(),
getParentForChildren(),
isClean());
token_ = null;
}
return tokenBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.NMTokenProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.NMTokenProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public NMTokenProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new NMTokenProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdatedContainerProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.UpdatedContainerProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
boolean hasUpdateType();
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto getUpdateType();
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
boolean hasContainer();
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainer();
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainerOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.UpdatedContainerProto}
*/
public static final class UpdatedContainerProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.UpdatedContainerProto)
UpdatedContainerProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdatedContainerProto.newBuilder() to construct.
private UpdatedContainerProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private UpdatedContainerProto() {
updateType_ = 0;
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdatedContainerProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto value = org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
updateType_ = rawValue;
}
break;
}
case 18: {
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = container_.toBuilder();
}
container_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(container_);
container_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdatedContainerProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdatedContainerProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder.class);
}
private int bitField0_;
public static final int UPDATE_TYPE_FIELD_NUMBER = 1;
private int updateType_;
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
public boolean hasUpdateType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto getUpdateType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto result = org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.valueOf(updateType_);
return result == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.INCREASE_RESOURCE : result;
}
public static final int CONTAINER_FIELD_NUMBER = 2;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto container_;
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public boolean hasContainer() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainer() {
return container_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance() : container_;
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainerOrBuilder() {
return container_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance() : container_;
}
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 (!hasUpdateType()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasContainer()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContainer().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, updateType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getContainer());
}
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.thirdparty.protobuf.CodedOutputStream
.computeEnumSize(1, updateType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(2, getContainer());
}
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.yarn.proto.YarnServiceProtos.UpdatedContainerProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto) obj;
if (hasUpdateType() != other.hasUpdateType()) return false;
if (hasUpdateType()) {
if (updateType_ != other.updateType_) return false;
}
if (hasContainer() != other.hasContainer()) return false;
if (hasContainer()) {
if (!getContainer()
.equals(other.getContainer())) 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 (hasUpdateType()) {
hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + updateType_;
}
if (hasContainer()) {
hash = (37 * hash) + CONTAINER_FIELD_NUMBER;
hash = (53 * hash) + getContainer().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.UpdatedContainerProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.UpdatedContainerProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.UpdatedContainerProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdatedContainerProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdatedContainerProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContainerFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
updateType_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (containerBuilder_ == null) {
container_ = null;
} else {
containerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_UpdatedContainerProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.updateType_ = updateType_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (containerBuilder_ == null) {
result.container_ = container_;
} else {
result.container_ = containerBuilder_.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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.getDefaultInstance()) return this;
if (other.hasUpdateType()) {
setUpdateType(other.getUpdateType());
}
if (other.hasContainer()) {
mergeContainer(other.getContainer());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasUpdateType()) {
return false;
}
if (!hasContainer()) {
return false;
}
if (!getContainer().isInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int updateType_ = 0;
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
public boolean hasUpdateType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto getUpdateType() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto result = org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.valueOf(updateType_);
return result == null ? org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto.INCREASE_RESOURCE : result;
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
public Builder setUpdateType(org.apache.hadoop.yarn.proto.YarnServiceProtos.ContainerUpdateTypeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
updateType_ = value.getNumber();
onChanged();
return this;
}
/**
* required .hadoop.yarn.ContainerUpdateTypeProto update_type = 1;
*/
public Builder clearUpdateType() {
bitField0_ = (bitField0_ & ~0x00000001);
updateType_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto container_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> containerBuilder_;
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public boolean hasContainer() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainer() {
if (containerBuilder_ == null) {
return container_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance() : container_;
} else {
return containerBuilder_.getMessage();
}
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public Builder setContainer(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
container_ = value;
onChanged();
} else {
containerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public Builder setContainer(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containerBuilder_ == null) {
container_ = builderForValue.build();
onChanged();
} else {
containerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public Builder mergeContainer(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containerBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
container_ != null &&
container_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance()) {
container_ =
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.newBuilder(container_).mergeFrom(value).buildPartial();
} else {
container_ = value;
}
onChanged();
} else {
containerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public Builder clearContainer() {
if (containerBuilder_ == null) {
container_ = null;
onChanged();
} else {
containerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getContainerBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getContainerFieldBuilder().getBuilder();
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainerOrBuilder() {
if (containerBuilder_ != null) {
return containerBuilder_.getMessageOrBuilder();
} else {
return container_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance() : container_;
}
}
/**
* required .hadoop.yarn.ContainerProto container = 2;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getContainerFieldBuilder() {
if (containerBuilder_ == null) {
containerBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
getContainer(),
getParentForChildren(),
isClean());
container_ = null;
}
return containerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.UpdatedContainerProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.UpdatedContainerProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public UpdatedContainerProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new UpdatedContainerProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AllocateResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.AllocateResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
boolean hasAMCommand();
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto getAMCommand();
/**
* optional int32 response_id = 2;
*/
boolean hasResponseId();
/**
* optional int32 response_id = 2;
*/
int getResponseId();
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
java.util.List
getAllocatedContainersList();
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getAllocatedContainers(int index);
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
int getAllocatedContainersCount();
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
java.util.List
getAllocatedContainersOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getAllocatedContainersOrBuilder(
int index);
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
java.util.List
getCompletedContainerStatusesList();
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto getCompletedContainerStatuses(int index);
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
int getCompletedContainerStatusesCount();
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
java.util.List
getCompletedContainerStatusesOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder getCompletedContainerStatusesOrBuilder(
int index);
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
boolean hasLimit();
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getLimit();
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getLimitOrBuilder();
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
java.util.List
getUpdatedNodesList();
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getUpdatedNodes(int index);
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
int getUpdatedNodesCount();
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
java.util.List
getUpdatedNodesOrBuilderList();
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getUpdatedNodesOrBuilder(
int index);
/**
* optional int32 num_cluster_nodes = 7;
*/
boolean hasNumClusterNodes();
/**
* optional int32 num_cluster_nodes = 7;
*/
int getNumClusterNodes();
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
boolean hasPreempt();
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto getPreempt();
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder getPreemptOrBuilder();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
java.util.List
getNmTokensList();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getNmTokens(int index);
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
int getNmTokensCount();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
java.util.List
getNmTokensOrBuilderList();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensOrBuilder(
int index);
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
boolean hasAmRmToken();
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken();
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder();
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
boolean hasApplicationPriority();
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getApplicationPriority();
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getApplicationPriorityOrBuilder();
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
boolean hasCollectorInfo();
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto getCollectorInfo();
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProtoOrBuilder getCollectorInfoOrBuilder();
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
java.util.List
getUpdateErrorsList();
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto getUpdateErrors(int index);
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
int getUpdateErrorsCount();
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
java.util.List
getUpdateErrorsOrBuilderList();
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder getUpdateErrorsOrBuilder(
int index);
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
java.util.List
getUpdatedContainersList();
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto getUpdatedContainers(int index);
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
int getUpdatedContainersCount();
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
java.util.List
getUpdatedContainersOrBuilderList();
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder getUpdatedContainersOrBuilder(
int index);
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
java.util.List
getContainersFromPreviousAttemptsList();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersFromPreviousAttempts(int index);
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
int getContainersFromPreviousAttemptsCount();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
java.util.List
getContainersFromPreviousAttemptsOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index);
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
java.util.List
getRejectedSchedulingRequestsList();
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto getRejectedSchedulingRequests(int index);
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
int getRejectedSchedulingRequestsCount();
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
java.util.List
getRejectedSchedulingRequestsOrBuilderList();
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProtoOrBuilder getRejectedSchedulingRequestsOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.AllocateResponseProto}
*/
public static final class AllocateResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.AllocateResponseProto)
AllocateResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AllocateResponseProto.newBuilder() to construct.
private AllocateResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private AllocateResponseProto() {
aMCommand_ = 1;
allocatedContainers_ = java.util.Collections.emptyList();
completedContainerStatuses_ = java.util.Collections.emptyList();
updatedNodes_ = java.util.Collections.emptyList();
nmTokens_ = java.util.Collections.emptyList();
updateErrors_ = java.util.Collections.emptyList();
updatedContainers_ = java.util.Collections.emptyList();
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
rejectedSchedulingRequests_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AllocateResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.AMCommandProto value = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
aMCommand_ = rawValue;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
responseId_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
allocatedContainers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
allocatedContainers_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
completedContainerStatuses_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
completedContainerStatuses_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.PARSER, extensionRegistry));
break;
}
case 42: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = limit_.toBuilder();
}
limit_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(limit_);
limit_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
updatedNodes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
updatedNodes_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.PARSER, extensionRegistry));
break;
}
case 56: {
bitField0_ |= 0x00000008;
numClusterNodes_ = input.readInt32();
break;
}
case 66: {
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = preempt_.toBuilder();
}
preempt_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(preempt_);
preempt_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
nmTokens_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
nmTokens_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.PARSER, extensionRegistry));
break;
}
case 98: {
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = amRmToken_.toBuilder();
}
amRmToken_ = input.readMessage(org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(amRmToken_);
amRmToken_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 106: {
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = applicationPriority_.toBuilder();
}
applicationPriority_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationPriority_);
applicationPriority_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 114: {
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) != 0)) {
subBuilder = collectorInfo_.toBuilder();
}
collectorInfo_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collectorInfo_);
collectorInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00001000) != 0)) {
updateErrors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
updateErrors_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.PARSER, extensionRegistry));
break;
}
case 130: {
if (!((mutable_bitField0_ & 0x00002000) != 0)) {
updatedContainers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00002000;
}
updatedContainers_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.PARSER, extensionRegistry));
break;
}
case 138: {
if (!((mutable_bitField0_ & 0x00004000) != 0)) {
containersFromPreviousAttempts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00004000;
}
containersFromPreviousAttempts_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry));
break;
}
case 146: {
if (!((mutable_bitField0_ & 0x00008000) != 0)) {
rejectedSchedulingRequests_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
rejectedSchedulingRequests_.add(
input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.PARSER, extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) != 0)) {
allocatedContainers_ = java.util.Collections.unmodifiableList(allocatedContainers_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
completedContainerStatuses_ = java.util.Collections.unmodifiableList(completedContainerStatuses_);
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
updatedNodes_ = java.util.Collections.unmodifiableList(updatedNodes_);
}
if (((mutable_bitField0_ & 0x00000100) != 0)) {
nmTokens_ = java.util.Collections.unmodifiableList(nmTokens_);
}
if (((mutable_bitField0_ & 0x00001000) != 0)) {
updateErrors_ = java.util.Collections.unmodifiableList(updateErrors_);
}
if (((mutable_bitField0_ & 0x00002000) != 0)) {
updatedContainers_ = java.util.Collections.unmodifiableList(updatedContainers_);
}
if (((mutable_bitField0_ & 0x00004000) != 0)) {
containersFromPreviousAttempts_ = java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
}
if (((mutable_bitField0_ & 0x00008000) != 0)) {
rejectedSchedulingRequests_ = java.util.Collections.unmodifiableList(rejectedSchedulingRequests_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder.class);
}
private int bitField0_;
public static final int A_M_COMMAND_FIELD_NUMBER = 1;
private int aMCommand_;
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public boolean hasAMCommand() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto getAMCommand() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto result = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.valueOf(aMCommand_);
return result == null ? org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.AM_RESYNC : result;
}
public static final int RESPONSE_ID_FIELD_NUMBER = 2;
private int responseId_;
/**
* optional int32 response_id = 2;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 response_id = 2;
*/
public int getResponseId() {
return responseId_;
}
public static final int ALLOCATED_CONTAINERS_FIELD_NUMBER = 3;
private java.util.List allocatedContainers_;
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public java.util.List getAllocatedContainersList() {
return allocatedContainers_;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public java.util.List
getAllocatedContainersOrBuilderList() {
return allocatedContainers_;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public int getAllocatedContainersCount() {
return allocatedContainers_.size();
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getAllocatedContainers(int index) {
return allocatedContainers_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getAllocatedContainersOrBuilder(
int index) {
return allocatedContainers_.get(index);
}
public static final int COMPLETED_CONTAINER_STATUSES_FIELD_NUMBER = 4;
private java.util.List completedContainerStatuses_;
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public java.util.List getCompletedContainerStatusesList() {
return completedContainerStatuses_;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public java.util.List
getCompletedContainerStatusesOrBuilderList() {
return completedContainerStatuses_;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public int getCompletedContainerStatusesCount() {
return completedContainerStatuses_.size();
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto getCompletedContainerStatuses(int index) {
return completedContainerStatuses_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder getCompletedContainerStatusesOrBuilder(
int index) {
return completedContainerStatuses_.get(index);
}
public static final int LIMIT_FIELD_NUMBER = 5;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto limit_;
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public boolean hasLimit() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getLimit() {
return limit_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : limit_;
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getLimitOrBuilder() {
return limit_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : limit_;
}
public static final int UPDATED_NODES_FIELD_NUMBER = 6;
private java.util.List updatedNodes_;
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public java.util.List getUpdatedNodesList() {
return updatedNodes_;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public java.util.List
getUpdatedNodesOrBuilderList() {
return updatedNodes_;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public int getUpdatedNodesCount() {
return updatedNodes_.size();
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getUpdatedNodes(int index) {
return updatedNodes_.get(index);
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getUpdatedNodesOrBuilder(
int index) {
return updatedNodes_.get(index);
}
public static final int NUM_CLUSTER_NODES_FIELD_NUMBER = 7;
private int numClusterNodes_;
/**
* optional int32 num_cluster_nodes = 7;
*/
public boolean hasNumClusterNodes() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 num_cluster_nodes = 7;
*/
public int getNumClusterNodes() {
return numClusterNodes_;
}
public static final int PREEMPT_FIELD_NUMBER = 8;
private org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto preempt_;
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public boolean hasPreempt() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto getPreempt() {
return preempt_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance() : preempt_;
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder getPreemptOrBuilder() {
return preempt_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance() : preempt_;
}
public static final int NM_TOKENS_FIELD_NUMBER = 9;
private java.util.List nmTokens_;
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public java.util.List getNmTokensList() {
return nmTokens_;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public java.util.List
getNmTokensOrBuilderList() {
return nmTokens_;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public int getNmTokensCount() {
return nmTokens_.size();
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getNmTokens(int index) {
return nmTokens_.get(index);
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensOrBuilder(
int index) {
return nmTokens_.get(index);
}
public static final int AM_RM_TOKEN_FIELD_NUMBER = 12;
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto amRmToken_;
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public boolean hasAmRmToken() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken() {
return amRmToken_ == null ? org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder() {
return amRmToken_ == null ? org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
}
public static final int APPLICATION_PRIORITY_FIELD_NUMBER = 13;
private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto applicationPriority_;
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public boolean hasApplicationPriority() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getApplicationPriority() {
return applicationPriority_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : applicationPriority_;
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getApplicationPriorityOrBuilder() {
return applicationPriority_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : applicationPriority_;
}
public static final int COLLECTOR_INFO_FIELD_NUMBER = 14;
private org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto collectorInfo_;
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public boolean hasCollectorInfo() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto getCollectorInfo() {
return collectorInfo_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.getDefaultInstance() : collectorInfo_;
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProtoOrBuilder getCollectorInfoOrBuilder() {
return collectorInfo_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.getDefaultInstance() : collectorInfo_;
}
public static final int UPDATE_ERRORS_FIELD_NUMBER = 15;
private java.util.List updateErrors_;
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public java.util.List getUpdateErrorsList() {
return updateErrors_;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public java.util.List
getUpdateErrorsOrBuilderList() {
return updateErrors_;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public int getUpdateErrorsCount() {
return updateErrors_.size();
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto getUpdateErrors(int index) {
return updateErrors_.get(index);
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder getUpdateErrorsOrBuilder(
int index) {
return updateErrors_.get(index);
}
public static final int UPDATED_CONTAINERS_FIELD_NUMBER = 16;
private java.util.List updatedContainers_;
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public java.util.List getUpdatedContainersList() {
return updatedContainers_;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public java.util.List
getUpdatedContainersOrBuilderList() {
return updatedContainers_;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public int getUpdatedContainersCount() {
return updatedContainers_.size();
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto getUpdatedContainers(int index) {
return updatedContainers_.get(index);
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder getUpdatedContainersOrBuilder(
int index) {
return updatedContainers_.get(index);
}
public static final int CONTAINERS_FROM_PREVIOUS_ATTEMPTS_FIELD_NUMBER = 17;
private java.util.List containersFromPreviousAttempts_;
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public java.util.List getContainersFromPreviousAttemptsList() {
return containersFromPreviousAttempts_;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public java.util.List
getContainersFromPreviousAttemptsOrBuilderList() {
return containersFromPreviousAttempts_;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public int getContainersFromPreviousAttemptsCount() {
return containersFromPreviousAttempts_.size();
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersFromPreviousAttempts(int index) {
return containersFromPreviousAttempts_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index) {
return containersFromPreviousAttempts_.get(index);
}
public static final int REJECTED_SCHEDULING_REQUESTS_FIELD_NUMBER = 18;
private java.util.List rejectedSchedulingRequests_;
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public java.util.List getRejectedSchedulingRequestsList() {
return rejectedSchedulingRequests_;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public java.util.List
getRejectedSchedulingRequestsOrBuilderList() {
return rejectedSchedulingRequests_;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public int getRejectedSchedulingRequestsCount() {
return rejectedSchedulingRequests_.size();
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto getRejectedSchedulingRequests(int index) {
return rejectedSchedulingRequests_.get(index);
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProtoOrBuilder getRejectedSchedulingRequestsOrBuilder(
int index) {
return rejectedSchedulingRequests_.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 < getAllocatedContainersCount(); i++) {
if (!getAllocatedContainers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getCompletedContainerStatusesCount(); i++) {
if (!getCompletedContainerStatuses(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLimit()) {
if (!getLimit().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getUpdatedNodesCount(); i++) {
if (!getUpdatedNodes(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasPreempt()) {
if (!getPreempt().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getNmTokensCount(); i++) {
if (!getNmTokens(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAmRmToken()) {
if (!getAmRmToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCollectorInfo()) {
if (!getCollectorInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getUpdateErrorsCount(); i++) {
if (!getUpdateErrors(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getUpdatedContainersCount(); i++) {
if (!getUpdatedContainers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getContainersFromPreviousAttemptsCount(); i++) {
if (!getContainersFromPreviousAttempts(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getRejectedSchedulingRequestsCount(); i++) {
if (!getRejectedSchedulingRequests(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, aMCommand_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, responseId_);
}
for (int i = 0; i < allocatedContainers_.size(); i++) {
output.writeMessage(3, allocatedContainers_.get(i));
}
for (int i = 0; i < completedContainerStatuses_.size(); i++) {
output.writeMessage(4, completedContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getLimit());
}
for (int i = 0; i < updatedNodes_.size(); i++) {
output.writeMessage(6, updatedNodes_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(7, numClusterNodes_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(8, getPreempt());
}
for (int i = 0; i < nmTokens_.size(); i++) {
output.writeMessage(9, nmTokens_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(12, getAmRmToken());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(13, getApplicationPriority());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(14, getCollectorInfo());
}
for (int i = 0; i < updateErrors_.size(); i++) {
output.writeMessage(15, updateErrors_.get(i));
}
for (int i = 0; i < updatedContainers_.size(); i++) {
output.writeMessage(16, updatedContainers_.get(i));
}
for (int i = 0; i < containersFromPreviousAttempts_.size(); i++) {
output.writeMessage(17, containersFromPreviousAttempts_.get(i));
}
for (int i = 0; i < rejectedSchedulingRequests_.size(); i++) {
output.writeMessage(18, rejectedSchedulingRequests_.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.thirdparty.protobuf.CodedOutputStream
.computeEnumSize(1, aMCommand_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeInt32Size(2, responseId_);
}
for (int i = 0; i < allocatedContainers_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(3, allocatedContainers_.get(i));
}
for (int i = 0; i < completedContainerStatuses_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(4, completedContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(5, getLimit());
}
for (int i = 0; i < updatedNodes_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(6, updatedNodes_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeInt32Size(7, numClusterNodes_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(8, getPreempt());
}
for (int i = 0; i < nmTokens_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(9, nmTokens_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(12, getAmRmToken());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(13, getApplicationPriority());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(14, getCollectorInfo());
}
for (int i = 0; i < updateErrors_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(15, updateErrors_.get(i));
}
for (int i = 0; i < updatedContainers_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(16, updatedContainers_.get(i));
}
for (int i = 0; i < containersFromPreviousAttempts_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(17, containersFromPreviousAttempts_.get(i));
}
for (int i = 0; i < rejectedSchedulingRequests_.size(); i++) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(18, rejectedSchedulingRequests_.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.yarn.proto.YarnServiceProtos.AllocateResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto) obj;
if (hasAMCommand() != other.hasAMCommand()) return false;
if (hasAMCommand()) {
if (aMCommand_ != other.aMCommand_) return false;
}
if (hasResponseId() != other.hasResponseId()) return false;
if (hasResponseId()) {
if (getResponseId()
!= other.getResponseId()) return false;
}
if (!getAllocatedContainersList()
.equals(other.getAllocatedContainersList())) return false;
if (!getCompletedContainerStatusesList()
.equals(other.getCompletedContainerStatusesList())) return false;
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (!getLimit()
.equals(other.getLimit())) return false;
}
if (!getUpdatedNodesList()
.equals(other.getUpdatedNodesList())) return false;
if (hasNumClusterNodes() != other.hasNumClusterNodes()) return false;
if (hasNumClusterNodes()) {
if (getNumClusterNodes()
!= other.getNumClusterNodes()) return false;
}
if (hasPreempt() != other.hasPreempt()) return false;
if (hasPreempt()) {
if (!getPreempt()
.equals(other.getPreempt())) return false;
}
if (!getNmTokensList()
.equals(other.getNmTokensList())) return false;
if (hasAmRmToken() != other.hasAmRmToken()) return false;
if (hasAmRmToken()) {
if (!getAmRmToken()
.equals(other.getAmRmToken())) return false;
}
if (hasApplicationPriority() != other.hasApplicationPriority()) return false;
if (hasApplicationPriority()) {
if (!getApplicationPriority()
.equals(other.getApplicationPriority())) return false;
}
if (hasCollectorInfo() != other.hasCollectorInfo()) return false;
if (hasCollectorInfo()) {
if (!getCollectorInfo()
.equals(other.getCollectorInfo())) return false;
}
if (!getUpdateErrorsList()
.equals(other.getUpdateErrorsList())) return false;
if (!getUpdatedContainersList()
.equals(other.getUpdatedContainersList())) return false;
if (!getContainersFromPreviousAttemptsList()
.equals(other.getContainersFromPreviousAttemptsList())) return false;
if (!getRejectedSchedulingRequestsList()
.equals(other.getRejectedSchedulingRequestsList())) 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 (hasAMCommand()) {
hash = (37 * hash) + A_M_COMMAND_FIELD_NUMBER;
hash = (53 * hash) + aMCommand_;
}
if (hasResponseId()) {
hash = (37 * hash) + RESPONSE_ID_FIELD_NUMBER;
hash = (53 * hash) + getResponseId();
}
if (getAllocatedContainersCount() > 0) {
hash = (37 * hash) + ALLOCATED_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getAllocatedContainersList().hashCode();
}
if (getCompletedContainerStatusesCount() > 0) {
hash = (37 * hash) + COMPLETED_CONTAINER_STATUSES_FIELD_NUMBER;
hash = (53 * hash) + getCompletedContainerStatusesList().hashCode();
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit().hashCode();
}
if (getUpdatedNodesCount() > 0) {
hash = (37 * hash) + UPDATED_NODES_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedNodesList().hashCode();
}
if (hasNumClusterNodes()) {
hash = (37 * hash) + NUM_CLUSTER_NODES_FIELD_NUMBER;
hash = (53 * hash) + getNumClusterNodes();
}
if (hasPreempt()) {
hash = (37 * hash) + PREEMPT_FIELD_NUMBER;
hash = (53 * hash) + getPreempt().hashCode();
}
if (getNmTokensCount() > 0) {
hash = (37 * hash) + NM_TOKENS_FIELD_NUMBER;
hash = (53 * hash) + getNmTokensList().hashCode();
}
if (hasAmRmToken()) {
hash = (37 * hash) + AM_RM_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getAmRmToken().hashCode();
}
if (hasApplicationPriority()) {
hash = (37 * hash) + APPLICATION_PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getApplicationPriority().hashCode();
}
if (hasCollectorInfo()) {
hash = (37 * hash) + COLLECTOR_INFO_FIELD_NUMBER;
hash = (53 * hash) + getCollectorInfo().hashCode();
}
if (getUpdateErrorsCount() > 0) {
hash = (37 * hash) + UPDATE_ERRORS_FIELD_NUMBER;
hash = (53 * hash) + getUpdateErrorsList().hashCode();
}
if (getUpdatedContainersCount() > 0) {
hash = (37 * hash) + UPDATED_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getUpdatedContainersList().hashCode();
}
if (getContainersFromPreviousAttemptsCount() > 0) {
hash = (37 * hash) + CONTAINERS_FROM_PREVIOUS_ATTEMPTS_FIELD_NUMBER;
hash = (53 * hash) + getContainersFromPreviousAttemptsList().hashCode();
}
if (getRejectedSchedulingRequestsCount() > 0) {
hash = (37 * hash) + REJECTED_SCHEDULING_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getRejectedSchedulingRequestsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.AllocateResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.AllocateResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.AllocateResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAllocatedContainersFieldBuilder();
getCompletedContainerStatusesFieldBuilder();
getLimitFieldBuilder();
getUpdatedNodesFieldBuilder();
getPreemptFieldBuilder();
getNmTokensFieldBuilder();
getAmRmTokenFieldBuilder();
getApplicationPriorityFieldBuilder();
getCollectorInfoFieldBuilder();
getUpdateErrorsFieldBuilder();
getUpdatedContainersFieldBuilder();
getContainersFromPreviousAttemptsFieldBuilder();
getRejectedSchedulingRequestsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
aMCommand_ = 1;
bitField0_ = (bitField0_ & ~0x00000001);
responseId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (allocatedContainersBuilder_ == null) {
allocatedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
allocatedContainersBuilder_.clear();
}
if (completedContainerStatusesBuilder_ == null) {
completedContainerStatuses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
completedContainerStatusesBuilder_.clear();
}
if (limitBuilder_ == null) {
limit_ = null;
} else {
limitBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (updatedNodesBuilder_ == null) {
updatedNodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
updatedNodesBuilder_.clear();
}
numClusterNodes_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
if (preemptBuilder_ == null) {
preempt_ = null;
} else {
preemptBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (nmTokensBuilder_ == null) {
nmTokens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
nmTokensBuilder_.clear();
}
if (amRmTokenBuilder_ == null) {
amRmToken_ = null;
} else {
amRmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (applicationPriorityBuilder_ == null) {
applicationPriority_ = null;
} else {
applicationPriorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (collectorInfoBuilder_ == null) {
collectorInfo_ = null;
} else {
collectorInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (updateErrorsBuilder_ == null) {
updateErrors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
} else {
updateErrorsBuilder_.clear();
}
if (updatedContainersBuilder_ == null) {
updatedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
} else {
updatedContainersBuilder_.clear();
}
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
} else {
containersFromPreviousAttemptsBuilder_.clear();
}
if (rejectedSchedulingRequestsBuilder_ == null) {
rejectedSchedulingRequests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
} else {
rejectedSchedulingRequestsBuilder_.clear();
}
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.aMCommand_ = aMCommand_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.responseId_ = responseId_;
to_bitField0_ |= 0x00000002;
}
if (allocatedContainersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
allocatedContainers_ = java.util.Collections.unmodifiableList(allocatedContainers_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.allocatedContainers_ = allocatedContainers_;
} else {
result.allocatedContainers_ = allocatedContainersBuilder_.build();
}
if (completedContainerStatusesBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
completedContainerStatuses_ = java.util.Collections.unmodifiableList(completedContainerStatuses_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.completedContainerStatuses_ = completedContainerStatuses_;
} else {
result.completedContainerStatuses_ = completedContainerStatusesBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (limitBuilder_ == null) {
result.limit_ = limit_;
} else {
result.limit_ = limitBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (updatedNodesBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
updatedNodes_ = java.util.Collections.unmodifiableList(updatedNodes_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.updatedNodes_ = updatedNodes_;
} else {
result.updatedNodes_ = updatedNodesBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.numClusterNodes_ = numClusterNodes_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
if (preemptBuilder_ == null) {
result.preempt_ = preempt_;
} else {
result.preempt_ = preemptBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (nmTokensBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
nmTokens_ = java.util.Collections.unmodifiableList(nmTokens_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.nmTokens_ = nmTokens_;
} else {
result.nmTokens_ = nmTokensBuilder_.build();
}
if (((from_bitField0_ & 0x00000200) != 0)) {
if (amRmTokenBuilder_ == null) {
result.amRmToken_ = amRmToken_;
} else {
result.amRmToken_ = amRmTokenBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
if (applicationPriorityBuilder_ == null) {
result.applicationPriority_ = applicationPriority_;
} else {
result.applicationPriority_ = applicationPriorityBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
if (collectorInfoBuilder_ == null) {
result.collectorInfo_ = collectorInfo_;
} else {
result.collectorInfo_ = collectorInfoBuilder_.build();
}
to_bitField0_ |= 0x00000080;
}
if (updateErrorsBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
updateErrors_ = java.util.Collections.unmodifiableList(updateErrors_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.updateErrors_ = updateErrors_;
} else {
result.updateErrors_ = updateErrorsBuilder_.build();
}
if (updatedContainersBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)) {
updatedContainers_ = java.util.Collections.unmodifiableList(updatedContainers_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.updatedContainers_ = updatedContainers_;
} else {
result.updatedContainers_ = updatedContainersBuilder_.build();
}
if (containersFromPreviousAttemptsBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0)) {
containersFromPreviousAttempts_ = java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.containersFromPreviousAttempts_ = containersFromPreviousAttempts_;
} else {
result.containersFromPreviousAttempts_ = containersFromPreviousAttemptsBuilder_.build();
}
if (rejectedSchedulingRequestsBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0)) {
rejectedSchedulingRequests_ = java.util.Collections.unmodifiableList(rejectedSchedulingRequests_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.rejectedSchedulingRequests_ = rejectedSchedulingRequests_;
} else {
result.rejectedSchedulingRequests_ = rejectedSchedulingRequestsBuilder_.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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance()) return this;
if (other.hasAMCommand()) {
setAMCommand(other.getAMCommand());
}
if (other.hasResponseId()) {
setResponseId(other.getResponseId());
}
if (allocatedContainersBuilder_ == null) {
if (!other.allocatedContainers_.isEmpty()) {
if (allocatedContainers_.isEmpty()) {
allocatedContainers_ = other.allocatedContainers_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAllocatedContainersIsMutable();
allocatedContainers_.addAll(other.allocatedContainers_);
}
onChanged();
}
} else {
if (!other.allocatedContainers_.isEmpty()) {
if (allocatedContainersBuilder_.isEmpty()) {
allocatedContainersBuilder_.dispose();
allocatedContainersBuilder_ = null;
allocatedContainers_ = other.allocatedContainers_;
bitField0_ = (bitField0_ & ~0x00000004);
allocatedContainersBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAllocatedContainersFieldBuilder() : null;
} else {
allocatedContainersBuilder_.addAllMessages(other.allocatedContainers_);
}
}
}
if (completedContainerStatusesBuilder_ == null) {
if (!other.completedContainerStatuses_.isEmpty()) {
if (completedContainerStatuses_.isEmpty()) {
completedContainerStatuses_ = other.completedContainerStatuses_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.addAll(other.completedContainerStatuses_);
}
onChanged();
}
} else {
if (!other.completedContainerStatuses_.isEmpty()) {
if (completedContainerStatusesBuilder_.isEmpty()) {
completedContainerStatusesBuilder_.dispose();
completedContainerStatusesBuilder_ = null;
completedContainerStatuses_ = other.completedContainerStatuses_;
bitField0_ = (bitField0_ & ~0x00000008);
completedContainerStatusesBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCompletedContainerStatusesFieldBuilder() : null;
} else {
completedContainerStatusesBuilder_.addAllMessages(other.completedContainerStatuses_);
}
}
}
if (other.hasLimit()) {
mergeLimit(other.getLimit());
}
if (updatedNodesBuilder_ == null) {
if (!other.updatedNodes_.isEmpty()) {
if (updatedNodes_.isEmpty()) {
updatedNodes_ = other.updatedNodes_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureUpdatedNodesIsMutable();
updatedNodes_.addAll(other.updatedNodes_);
}
onChanged();
}
} else {
if (!other.updatedNodes_.isEmpty()) {
if (updatedNodesBuilder_.isEmpty()) {
updatedNodesBuilder_.dispose();
updatedNodesBuilder_ = null;
updatedNodes_ = other.updatedNodes_;
bitField0_ = (bitField0_ & ~0x00000020);
updatedNodesBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUpdatedNodesFieldBuilder() : null;
} else {
updatedNodesBuilder_.addAllMessages(other.updatedNodes_);
}
}
}
if (other.hasNumClusterNodes()) {
setNumClusterNodes(other.getNumClusterNodes());
}
if (other.hasPreempt()) {
mergePreempt(other.getPreempt());
}
if (nmTokensBuilder_ == null) {
if (!other.nmTokens_.isEmpty()) {
if (nmTokens_.isEmpty()) {
nmTokens_ = other.nmTokens_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureNmTokensIsMutable();
nmTokens_.addAll(other.nmTokens_);
}
onChanged();
}
} else {
if (!other.nmTokens_.isEmpty()) {
if (nmTokensBuilder_.isEmpty()) {
nmTokensBuilder_.dispose();
nmTokensBuilder_ = null;
nmTokens_ = other.nmTokens_;
bitField0_ = (bitField0_ & ~0x00000100);
nmTokensBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getNmTokensFieldBuilder() : null;
} else {
nmTokensBuilder_.addAllMessages(other.nmTokens_);
}
}
}
if (other.hasAmRmToken()) {
mergeAmRmToken(other.getAmRmToken());
}
if (other.hasApplicationPriority()) {
mergeApplicationPriority(other.getApplicationPriority());
}
if (other.hasCollectorInfo()) {
mergeCollectorInfo(other.getCollectorInfo());
}
if (updateErrorsBuilder_ == null) {
if (!other.updateErrors_.isEmpty()) {
if (updateErrors_.isEmpty()) {
updateErrors_ = other.updateErrors_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureUpdateErrorsIsMutable();
updateErrors_.addAll(other.updateErrors_);
}
onChanged();
}
} else {
if (!other.updateErrors_.isEmpty()) {
if (updateErrorsBuilder_.isEmpty()) {
updateErrorsBuilder_.dispose();
updateErrorsBuilder_ = null;
updateErrors_ = other.updateErrors_;
bitField0_ = (bitField0_ & ~0x00001000);
updateErrorsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUpdateErrorsFieldBuilder() : null;
} else {
updateErrorsBuilder_.addAllMessages(other.updateErrors_);
}
}
}
if (updatedContainersBuilder_ == null) {
if (!other.updatedContainers_.isEmpty()) {
if (updatedContainers_.isEmpty()) {
updatedContainers_ = other.updatedContainers_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureUpdatedContainersIsMutable();
updatedContainers_.addAll(other.updatedContainers_);
}
onChanged();
}
} else {
if (!other.updatedContainers_.isEmpty()) {
if (updatedContainersBuilder_.isEmpty()) {
updatedContainersBuilder_.dispose();
updatedContainersBuilder_ = null;
updatedContainers_ = other.updatedContainers_;
bitField0_ = (bitField0_ & ~0x00002000);
updatedContainersBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUpdatedContainersFieldBuilder() : null;
} else {
updatedContainersBuilder_.addAllMessages(other.updatedContainers_);
}
}
}
if (containersFromPreviousAttemptsBuilder_ == null) {
if (!other.containersFromPreviousAttempts_.isEmpty()) {
if (containersFromPreviousAttempts_.isEmpty()) {
containersFromPreviousAttempts_ = other.containersFromPreviousAttempts_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.addAll(other.containersFromPreviousAttempts_);
}
onChanged();
}
} else {
if (!other.containersFromPreviousAttempts_.isEmpty()) {
if (containersFromPreviousAttemptsBuilder_.isEmpty()) {
containersFromPreviousAttemptsBuilder_.dispose();
containersFromPreviousAttemptsBuilder_ = null;
containersFromPreviousAttempts_ = other.containersFromPreviousAttempts_;
bitField0_ = (bitField0_ & ~0x00004000);
containersFromPreviousAttemptsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContainersFromPreviousAttemptsFieldBuilder() : null;
} else {
containersFromPreviousAttemptsBuilder_.addAllMessages(other.containersFromPreviousAttempts_);
}
}
}
if (rejectedSchedulingRequestsBuilder_ == null) {
if (!other.rejectedSchedulingRequests_.isEmpty()) {
if (rejectedSchedulingRequests_.isEmpty()) {
rejectedSchedulingRequests_ = other.rejectedSchedulingRequests_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.addAll(other.rejectedSchedulingRequests_);
}
onChanged();
}
} else {
if (!other.rejectedSchedulingRequests_.isEmpty()) {
if (rejectedSchedulingRequestsBuilder_.isEmpty()) {
rejectedSchedulingRequestsBuilder_.dispose();
rejectedSchedulingRequestsBuilder_ = null;
rejectedSchedulingRequests_ = other.rejectedSchedulingRequests_;
bitField0_ = (bitField0_ & ~0x00008000);
rejectedSchedulingRequestsBuilder_ =
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRejectedSchedulingRequestsFieldBuilder() : null;
} else {
rejectedSchedulingRequestsBuilder_.addAllMessages(other.rejectedSchedulingRequests_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAllocatedContainersCount(); i++) {
if (!getAllocatedContainers(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getCompletedContainerStatusesCount(); i++) {
if (!getCompletedContainerStatuses(i).isInitialized()) {
return false;
}
}
if (hasLimit()) {
if (!getLimit().isInitialized()) {
return false;
}
}
for (int i = 0; i < getUpdatedNodesCount(); i++) {
if (!getUpdatedNodes(i).isInitialized()) {
return false;
}
}
if (hasPreempt()) {
if (!getPreempt().isInitialized()) {
return false;
}
}
for (int i = 0; i < getNmTokensCount(); i++) {
if (!getNmTokens(i).isInitialized()) {
return false;
}
}
if (hasAmRmToken()) {
if (!getAmRmToken().isInitialized()) {
return false;
}
}
if (hasCollectorInfo()) {
if (!getCollectorInfo().isInitialized()) {
return false;
}
}
for (int i = 0; i < getUpdateErrorsCount(); i++) {
if (!getUpdateErrors(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getUpdatedContainersCount(); i++) {
if (!getUpdatedContainers(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getContainersFromPreviousAttemptsCount(); i++) {
if (!getContainersFromPreviousAttempts(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getRejectedSchedulingRequestsCount(); i++) {
if (!getRejectedSchedulingRequests(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int aMCommand_ = 1;
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public boolean hasAMCommand() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto getAMCommand() {
@SuppressWarnings("deprecation")
org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto result = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.valueOf(aMCommand_);
return result == null ? org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.AM_RESYNC : result;
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public Builder setAMCommand(org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
aMCommand_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public Builder clearAMCommand() {
bitField0_ = (bitField0_ & ~0x00000001);
aMCommand_ = 1;
onChanged();
return this;
}
private int responseId_ ;
/**
* optional int32 response_id = 2;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 response_id = 2;
*/
public int getResponseId() {
return responseId_;
}
/**
* optional int32 response_id = 2;
*/
public Builder setResponseId(int value) {
bitField0_ |= 0x00000002;
responseId_ = value;
onChanged();
return this;
}
/**
* optional int32 response_id = 2;
*/
public Builder clearResponseId() {
bitField0_ = (bitField0_ & ~0x00000002);
responseId_ = 0;
onChanged();
return this;
}
private java.util.List allocatedContainers_ =
java.util.Collections.emptyList();
private void ensureAllocatedContainersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
allocatedContainers_ = new java.util.ArrayList(allocatedContainers_);
bitField0_ |= 0x00000004;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> allocatedContainersBuilder_;
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public java.util.List getAllocatedContainersList() {
if (allocatedContainersBuilder_ == null) {
return java.util.Collections.unmodifiableList(allocatedContainers_);
} else {
return allocatedContainersBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public int getAllocatedContainersCount() {
if (allocatedContainersBuilder_ == null) {
return allocatedContainers_.size();
} else {
return allocatedContainersBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getAllocatedContainers(int index) {
if (allocatedContainersBuilder_ == null) {
return allocatedContainers_.get(index);
} else {
return allocatedContainersBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder setAllocatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (allocatedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocatedContainersIsMutable();
allocatedContainers_.set(index, value);
onChanged();
} else {
allocatedContainersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder setAllocatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (allocatedContainersBuilder_ == null) {
ensureAllocatedContainersIsMutable();
allocatedContainers_.set(index, builderForValue.build());
onChanged();
} else {
allocatedContainersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder addAllocatedContainers(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (allocatedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocatedContainersIsMutable();
allocatedContainers_.add(value);
onChanged();
} else {
allocatedContainersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder addAllocatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (allocatedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAllocatedContainersIsMutable();
allocatedContainers_.add(index, value);
onChanged();
} else {
allocatedContainersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder addAllocatedContainers(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (allocatedContainersBuilder_ == null) {
ensureAllocatedContainersIsMutable();
allocatedContainers_.add(builderForValue.build());
onChanged();
} else {
allocatedContainersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder addAllocatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (allocatedContainersBuilder_ == null) {
ensureAllocatedContainersIsMutable();
allocatedContainers_.add(index, builderForValue.build());
onChanged();
} else {
allocatedContainersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder addAllAllocatedContainers(
java.lang.Iterable values) {
if (allocatedContainersBuilder_ == null) {
ensureAllocatedContainersIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, allocatedContainers_);
onChanged();
} else {
allocatedContainersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder clearAllocatedContainers() {
if (allocatedContainersBuilder_ == null) {
allocatedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
allocatedContainersBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public Builder removeAllocatedContainers(int index) {
if (allocatedContainersBuilder_ == null) {
ensureAllocatedContainersIsMutable();
allocatedContainers_.remove(index);
onChanged();
} else {
allocatedContainersBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getAllocatedContainersBuilder(
int index) {
return getAllocatedContainersFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getAllocatedContainersOrBuilder(
int index) {
if (allocatedContainersBuilder_ == null) {
return allocatedContainers_.get(index); } else {
return allocatedContainersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public java.util.List
getAllocatedContainersOrBuilderList() {
if (allocatedContainersBuilder_ != null) {
return allocatedContainersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(allocatedContainers_);
}
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addAllocatedContainersBuilder() {
return getAllocatedContainersFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addAllocatedContainersBuilder(
int index) {
return getAllocatedContainersFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
*/
public java.util.List
getAllocatedContainersBuilderList() {
return getAllocatedContainersFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getAllocatedContainersFieldBuilder() {
if (allocatedContainersBuilder_ == null) {
allocatedContainersBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
allocatedContainers_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
allocatedContainers_ = null;
}
return allocatedContainersBuilder_;
}
private java.util.List completedContainerStatuses_ =
java.util.Collections.emptyList();
private void ensureCompletedContainerStatusesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
completedContainerStatuses_ = new java.util.ArrayList(completedContainerStatuses_);
bitField0_ |= 0x00000008;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder> completedContainerStatusesBuilder_;
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public java.util.List getCompletedContainerStatusesList() {
if (completedContainerStatusesBuilder_ == null) {
return java.util.Collections.unmodifiableList(completedContainerStatuses_);
} else {
return completedContainerStatusesBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public int getCompletedContainerStatusesCount() {
if (completedContainerStatusesBuilder_ == null) {
return completedContainerStatuses_.size();
} else {
return completedContainerStatusesBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto getCompletedContainerStatuses(int index) {
if (completedContainerStatusesBuilder_ == null) {
return completedContainerStatuses_.get(index);
} else {
return completedContainerStatusesBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder setCompletedContainerStatuses(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto value) {
if (completedContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.set(index, value);
onChanged();
} else {
completedContainerStatusesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder setCompletedContainerStatuses(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder builderForValue) {
if (completedContainerStatusesBuilder_ == null) {
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.set(index, builderForValue.build());
onChanged();
} else {
completedContainerStatusesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder addCompletedContainerStatuses(org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto value) {
if (completedContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.add(value);
onChanged();
} else {
completedContainerStatusesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder addCompletedContainerStatuses(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto value) {
if (completedContainerStatusesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.add(index, value);
onChanged();
} else {
completedContainerStatusesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder addCompletedContainerStatuses(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder builderForValue) {
if (completedContainerStatusesBuilder_ == null) {
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.add(builderForValue.build());
onChanged();
} else {
completedContainerStatusesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder addCompletedContainerStatuses(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder builderForValue) {
if (completedContainerStatusesBuilder_ == null) {
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.add(index, builderForValue.build());
onChanged();
} else {
completedContainerStatusesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder addAllCompletedContainerStatuses(
java.lang.Iterable values) {
if (completedContainerStatusesBuilder_ == null) {
ensureCompletedContainerStatusesIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, completedContainerStatuses_);
onChanged();
} else {
completedContainerStatusesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder clearCompletedContainerStatuses() {
if (completedContainerStatusesBuilder_ == null) {
completedContainerStatuses_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
completedContainerStatusesBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public Builder removeCompletedContainerStatuses(int index) {
if (completedContainerStatusesBuilder_ == null) {
ensureCompletedContainerStatusesIsMutable();
completedContainerStatuses_.remove(index);
onChanged();
} else {
completedContainerStatusesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder getCompletedContainerStatusesBuilder(
int index) {
return getCompletedContainerStatusesFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder getCompletedContainerStatusesOrBuilder(
int index) {
if (completedContainerStatusesBuilder_ == null) {
return completedContainerStatuses_.get(index); } else {
return completedContainerStatusesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public java.util.List
getCompletedContainerStatusesOrBuilderList() {
if (completedContainerStatusesBuilder_ != null) {
return completedContainerStatusesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(completedContainerStatuses_);
}
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder addCompletedContainerStatusesBuilder() {
return getCompletedContainerStatusesFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder addCompletedContainerStatusesBuilder(
int index) {
return getCompletedContainerStatusesFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
*/
public java.util.List
getCompletedContainerStatusesBuilderList() {
return getCompletedContainerStatusesFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder>
getCompletedContainerStatusesFieldBuilder() {
if (completedContainerStatusesBuilder_ == null) {
completedContainerStatusesBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder>(
completedContainerStatuses_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
completedContainerStatuses_ = null;
}
return completedContainerStatusesBuilder_;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto limit_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> limitBuilder_;
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public boolean hasLimit() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getLimit() {
if (limitBuilder_ == null) {
return limit_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : limit_;
} else {
return limitBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public Builder setLimit(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (limitBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
limit_ = value;
onChanged();
} else {
limitBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public Builder setLimit(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (limitBuilder_ == null) {
limit_ = builderForValue.build();
onChanged();
} else {
limitBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public Builder mergeLimit(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (limitBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
limit_ != null &&
limit_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
limit_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(limit_).mergeFrom(value).buildPartial();
} else {
limit_ = value;
}
onChanged();
} else {
limitBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public Builder clearLimit() {
if (limitBuilder_ == null) {
limit_ = null;
onChanged();
} else {
limitBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getLimitBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLimitFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getLimitOrBuilder() {
if (limitBuilder_ != null) {
return limitBuilder_.getMessageOrBuilder();
} else {
return limit_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : limit_;
}
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getLimitFieldBuilder() {
if (limitBuilder_ == null) {
limitBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getLimit(),
getParentForChildren(),
isClean());
limit_ = null;
}
return limitBuilder_;
}
private java.util.List updatedNodes_ =
java.util.Collections.emptyList();
private void ensureUpdatedNodesIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
updatedNodes_ = new java.util.ArrayList(updatedNodes_);
bitField0_ |= 0x00000020;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder> updatedNodesBuilder_;
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public java.util.List getUpdatedNodesList() {
if (updatedNodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(updatedNodes_);
} else {
return updatedNodesBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public int getUpdatedNodesCount() {
if (updatedNodesBuilder_ == null) {
return updatedNodes_.size();
} else {
return updatedNodesBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getUpdatedNodes(int index) {
if (updatedNodesBuilder_ == null) {
return updatedNodes_.get(index);
} else {
return updatedNodesBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder setUpdatedNodes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto value) {
if (updatedNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatedNodesIsMutable();
updatedNodes_.set(index, value);
onChanged();
} else {
updatedNodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder setUpdatedNodes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder builderForValue) {
if (updatedNodesBuilder_ == null) {
ensureUpdatedNodesIsMutable();
updatedNodes_.set(index, builderForValue.build());
onChanged();
} else {
updatedNodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder addUpdatedNodes(org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto value) {
if (updatedNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatedNodesIsMutable();
updatedNodes_.add(value);
onChanged();
} else {
updatedNodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder addUpdatedNodes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto value) {
if (updatedNodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatedNodesIsMutable();
updatedNodes_.add(index, value);
onChanged();
} else {
updatedNodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder addUpdatedNodes(
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder builderForValue) {
if (updatedNodesBuilder_ == null) {
ensureUpdatedNodesIsMutable();
updatedNodes_.add(builderForValue.build());
onChanged();
} else {
updatedNodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder addUpdatedNodes(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder builderForValue) {
if (updatedNodesBuilder_ == null) {
ensureUpdatedNodesIsMutable();
updatedNodes_.add(index, builderForValue.build());
onChanged();
} else {
updatedNodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder addAllUpdatedNodes(
java.lang.Iterable values) {
if (updatedNodesBuilder_ == null) {
ensureUpdatedNodesIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, updatedNodes_);
onChanged();
} else {
updatedNodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder clearUpdatedNodes() {
if (updatedNodesBuilder_ == null) {
updatedNodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
updatedNodesBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public Builder removeUpdatedNodes(int index) {
if (updatedNodesBuilder_ == null) {
ensureUpdatedNodesIsMutable();
updatedNodes_.remove(index);
onChanged();
} else {
updatedNodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder getUpdatedNodesBuilder(
int index) {
return getUpdatedNodesFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getUpdatedNodesOrBuilder(
int index) {
if (updatedNodesBuilder_ == null) {
return updatedNodes_.get(index); } else {
return updatedNodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public java.util.List
getUpdatedNodesOrBuilderList() {
if (updatedNodesBuilder_ != null) {
return updatedNodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(updatedNodes_);
}
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder addUpdatedNodesBuilder() {
return getUpdatedNodesFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder addUpdatedNodesBuilder(
int index) {
return getUpdatedNodesFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
public java.util.List
getUpdatedNodesBuilderList() {
return getUpdatedNodesFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
getUpdatedNodesFieldBuilder() {
if (updatedNodesBuilder_ == null) {
updatedNodesBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>(
updatedNodes_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
updatedNodes_ = null;
}
return updatedNodesBuilder_;
}
private int numClusterNodes_ ;
/**
* optional int32 num_cluster_nodes = 7;
*/
public boolean hasNumClusterNodes() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int32 num_cluster_nodes = 7;
*/
public int getNumClusterNodes() {
return numClusterNodes_;
}
/**
* optional int32 num_cluster_nodes = 7;
*/
public Builder setNumClusterNodes(int value) {
bitField0_ |= 0x00000040;
numClusterNodes_ = value;
onChanged();
return this;
}
/**
* optional int32 num_cluster_nodes = 7;
*/
public Builder clearNumClusterNodes() {
bitField0_ = (bitField0_ & ~0x00000040);
numClusterNodes_ = 0;
onChanged();
return this;
}
private org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto preempt_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder> preemptBuilder_;
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public boolean hasPreempt() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto getPreempt() {
if (preemptBuilder_ == null) {
return preempt_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance() : preempt_;
} else {
return preemptBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public Builder setPreempt(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto value) {
if (preemptBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
preempt_ = value;
onChanged();
} else {
preemptBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public Builder setPreempt(
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder builderForValue) {
if (preemptBuilder_ == null) {
preempt_ = builderForValue.build();
onChanged();
} else {
preemptBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public Builder mergePreempt(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto value) {
if (preemptBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
preempt_ != null &&
preempt_ != org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance()) {
preempt_ =
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.newBuilder(preempt_).mergeFrom(value).buildPartial();
} else {
preempt_ = value;
}
onChanged();
} else {
preemptBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public Builder clearPreempt() {
if (preemptBuilder_ == null) {
preempt_ = null;
onChanged();
} else {
preemptBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder getPreemptBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getPreemptFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder getPreemptOrBuilder() {
if (preemptBuilder_ != null) {
return preemptBuilder_.getMessageOrBuilder();
} else {
return preempt_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance() : preempt_;
}
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder>
getPreemptFieldBuilder() {
if (preemptBuilder_ == null) {
preemptBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder>(
getPreempt(),
getParentForChildren(),
isClean());
preempt_ = null;
}
return preemptBuilder_;
}
private java.util.List nmTokens_ =
java.util.Collections.emptyList();
private void ensureNmTokensIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
nmTokens_ = new java.util.ArrayList(nmTokens_);
bitField0_ |= 0x00000100;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder> nmTokensBuilder_;
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public java.util.List getNmTokensList() {
if (nmTokensBuilder_ == null) {
return java.util.Collections.unmodifiableList(nmTokens_);
} else {
return nmTokensBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public int getNmTokensCount() {
if (nmTokensBuilder_ == null) {
return nmTokens_.size();
} else {
return nmTokensBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getNmTokens(int index) {
if (nmTokensBuilder_ == null) {
return nmTokens_.get(index);
} else {
return nmTokensBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder setNmTokens(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto value) {
if (nmTokensBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNmTokensIsMutable();
nmTokens_.set(index, value);
onChanged();
} else {
nmTokensBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder setNmTokens(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder builderForValue) {
if (nmTokensBuilder_ == null) {
ensureNmTokensIsMutable();
nmTokens_.set(index, builderForValue.build());
onChanged();
} else {
nmTokensBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder addNmTokens(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto value) {
if (nmTokensBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNmTokensIsMutable();
nmTokens_.add(value);
onChanged();
} else {
nmTokensBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder addNmTokens(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto value) {
if (nmTokensBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNmTokensIsMutable();
nmTokens_.add(index, value);
onChanged();
} else {
nmTokensBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder addNmTokens(
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder builderForValue) {
if (nmTokensBuilder_ == null) {
ensureNmTokensIsMutable();
nmTokens_.add(builderForValue.build());
onChanged();
} else {
nmTokensBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder addNmTokens(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder builderForValue) {
if (nmTokensBuilder_ == null) {
ensureNmTokensIsMutable();
nmTokens_.add(index, builderForValue.build());
onChanged();
} else {
nmTokensBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder addAllNmTokens(
java.lang.Iterable values) {
if (nmTokensBuilder_ == null) {
ensureNmTokensIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, nmTokens_);
onChanged();
} else {
nmTokensBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder clearNmTokens() {
if (nmTokensBuilder_ == null) {
nmTokens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
nmTokensBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public Builder removeNmTokens(int index) {
if (nmTokensBuilder_ == null) {
ensureNmTokensIsMutable();
nmTokens_.remove(index);
onChanged();
} else {
nmTokensBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder getNmTokensBuilder(
int index) {
return getNmTokensFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensOrBuilder(
int index) {
if (nmTokensBuilder_ == null) {
return nmTokens_.get(index); } else {
return nmTokensBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public java.util.List
getNmTokensOrBuilderList() {
if (nmTokensBuilder_ != null) {
return nmTokensBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nmTokens_);
}
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder addNmTokensBuilder() {
return getNmTokensFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder addNmTokensBuilder(
int index) {
return getNmTokensFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
public java.util.List
getNmTokensBuilderList() {
return getNmTokensFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
getNmTokensFieldBuilder() {
if (nmTokensBuilder_ == null) {
nmTokensBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>(
nmTokens_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
nmTokens_ = null;
}
return nmTokensBuilder_;
}
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto amRmToken_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> amRmTokenBuilder_;
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public boolean hasAmRmToken() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken() {
if (amRmTokenBuilder_ == null) {
return amRmToken_ == null ? org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
} else {
return amRmTokenBuilder_.getMessage();
}
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public Builder setAmRmToken(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_ |= 0x00000200;
return this;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public Builder setAmRmToken(
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
if (amRmTokenBuilder_ == null) {
amRmToken_ = builderForValue.build();
onChanged();
} else {
amRmTokenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public Builder mergeAmRmToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (amRmTokenBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
amRmToken_ != null &&
amRmToken_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
amRmToken_ =
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(amRmToken_).mergeFrom(value).buildPartial();
} else {
amRmToken_ = value;
}
onChanged();
} else {
amRmTokenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public Builder clearAmRmToken() {
if (amRmTokenBuilder_ == null) {
amRmToken_ = null;
onChanged();
} else {
amRmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getAmRmTokenBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getAmRmTokenFieldBuilder().getBuilder();
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder() {
if (amRmTokenBuilder_ != null) {
return amRmTokenBuilder_.getMessageOrBuilder();
} else {
return amRmToken_ == null ?
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance() : amRmToken_;
}
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getAmRmTokenFieldBuilder() {
if (amRmTokenBuilder_ == null) {
amRmTokenBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
getAmRmToken(),
getParentForChildren(),
isClean());
amRmToken_ = null;
}
return amRmTokenBuilder_;
}
private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto applicationPriority_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> applicationPriorityBuilder_;
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public boolean hasApplicationPriority() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getApplicationPriority() {
if (applicationPriorityBuilder_ == null) {
return applicationPriority_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : applicationPriority_;
} else {
return applicationPriorityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public Builder setApplicationPriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (applicationPriorityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationPriority_ = value;
onChanged();
} else {
applicationPriorityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public Builder setApplicationPriority(
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder builderForValue) {
if (applicationPriorityBuilder_ == null) {
applicationPriority_ = builderForValue.build();
onChanged();
} else {
applicationPriorityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public Builder mergeApplicationPriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (applicationPriorityBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
applicationPriority_ != null &&
applicationPriority_ != org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) {
applicationPriority_ =
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder(applicationPriority_).mergeFrom(value).buildPartial();
} else {
applicationPriority_ = value;
}
onChanged();
} else {
applicationPriorityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public Builder clearApplicationPriority() {
if (applicationPriorityBuilder_ == null) {
applicationPriority_ = null;
onChanged();
} else {
applicationPriorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getApplicationPriorityBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getApplicationPriorityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getApplicationPriorityOrBuilder() {
if (applicationPriorityBuilder_ != null) {
return applicationPriorityBuilder_.getMessageOrBuilder();
} else {
return applicationPriority_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance() : applicationPriority_;
}
}
/**
* optional .hadoop.yarn.PriorityProto application_priority = 13;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>
getApplicationPriorityFieldBuilder() {
if (applicationPriorityBuilder_ == null) {
applicationPriorityBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>(
getApplicationPriority(),
getParentForChildren(),
isClean());
applicationPriority_ = null;
}
return applicationPriorityBuilder_;
}
private org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto collectorInfo_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProtoOrBuilder> collectorInfoBuilder_;
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public boolean hasCollectorInfo() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto getCollectorInfo() {
if (collectorInfoBuilder_ == null) {
return collectorInfo_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.getDefaultInstance() : collectorInfo_;
} else {
return collectorInfoBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public Builder setCollectorInfo(org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto value) {
if (collectorInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectorInfo_ = value;
onChanged();
} else {
collectorInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public Builder setCollectorInfo(
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.Builder builderForValue) {
if (collectorInfoBuilder_ == null) {
collectorInfo_ = builderForValue.build();
onChanged();
} else {
collectorInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public Builder mergeCollectorInfo(org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto value) {
if (collectorInfoBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
collectorInfo_ != null &&
collectorInfo_ != org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.getDefaultInstance()) {
collectorInfo_ =
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.newBuilder(collectorInfo_).mergeFrom(value).buildPartial();
} else {
collectorInfo_ = value;
}
onChanged();
} else {
collectorInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public Builder clearCollectorInfo() {
if (collectorInfoBuilder_ == null) {
collectorInfo_ = null;
onChanged();
} else {
collectorInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.Builder getCollectorInfoBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getCollectorInfoFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProtoOrBuilder getCollectorInfoOrBuilder() {
if (collectorInfoBuilder_ != null) {
return collectorInfoBuilder_.getMessageOrBuilder();
} else {
return collectorInfo_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.getDefaultInstance() : collectorInfo_;
}
}
/**
* optional .hadoop.yarn.CollectorInfoProto collector_info = 14;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProtoOrBuilder>
getCollectorInfoFieldBuilder() {
if (collectorInfoBuilder_ == null) {
collectorInfoBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.CollectorInfoProtoOrBuilder>(
getCollectorInfo(),
getParentForChildren(),
isClean());
collectorInfo_ = null;
}
return collectorInfoBuilder_;
}
private java.util.List updateErrors_ =
java.util.Collections.emptyList();
private void ensureUpdateErrorsIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
updateErrors_ = new java.util.ArrayList(updateErrors_);
bitField0_ |= 0x00001000;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder> updateErrorsBuilder_;
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public java.util.List getUpdateErrorsList() {
if (updateErrorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(updateErrors_);
} else {
return updateErrorsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public int getUpdateErrorsCount() {
if (updateErrorsBuilder_ == null) {
return updateErrors_.size();
} else {
return updateErrorsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto getUpdateErrors(int index) {
if (updateErrorsBuilder_ == null) {
return updateErrors_.get(index);
} else {
return updateErrorsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder setUpdateErrors(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto value) {
if (updateErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdateErrorsIsMutable();
updateErrors_.set(index, value);
onChanged();
} else {
updateErrorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder setUpdateErrors(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder builderForValue) {
if (updateErrorsBuilder_ == null) {
ensureUpdateErrorsIsMutable();
updateErrors_.set(index, builderForValue.build());
onChanged();
} else {
updateErrorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder addUpdateErrors(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto value) {
if (updateErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdateErrorsIsMutable();
updateErrors_.add(value);
onChanged();
} else {
updateErrorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder addUpdateErrors(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto value) {
if (updateErrorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdateErrorsIsMutable();
updateErrors_.add(index, value);
onChanged();
} else {
updateErrorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder addUpdateErrors(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder builderForValue) {
if (updateErrorsBuilder_ == null) {
ensureUpdateErrorsIsMutable();
updateErrors_.add(builderForValue.build());
onChanged();
} else {
updateErrorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder addUpdateErrors(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder builderForValue) {
if (updateErrorsBuilder_ == null) {
ensureUpdateErrorsIsMutable();
updateErrors_.add(index, builderForValue.build());
onChanged();
} else {
updateErrorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder addAllUpdateErrors(
java.lang.Iterable values) {
if (updateErrorsBuilder_ == null) {
ensureUpdateErrorsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, updateErrors_);
onChanged();
} else {
updateErrorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder clearUpdateErrors() {
if (updateErrorsBuilder_ == null) {
updateErrors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
} else {
updateErrorsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public Builder removeUpdateErrors(int index) {
if (updateErrorsBuilder_ == null) {
ensureUpdateErrorsIsMutable();
updateErrors_.remove(index);
onChanged();
} else {
updateErrorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder getUpdateErrorsBuilder(
int index) {
return getUpdateErrorsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder getUpdateErrorsOrBuilder(
int index) {
if (updateErrorsBuilder_ == null) {
return updateErrors_.get(index); } else {
return updateErrorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public java.util.List
getUpdateErrorsOrBuilderList() {
if (updateErrorsBuilder_ != null) {
return updateErrorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(updateErrors_);
}
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder addUpdateErrorsBuilder() {
return getUpdateErrorsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder addUpdateErrorsBuilder(
int index) {
return getUpdateErrorsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.UpdateContainerErrorProto update_errors = 15;
*/
public java.util.List
getUpdateErrorsBuilderList() {
return getUpdateErrorsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder>
getUpdateErrorsFieldBuilder() {
if (updateErrorsBuilder_ == null) {
updateErrorsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerErrorProtoOrBuilder>(
updateErrors_,
((bitField0_ & 0x00001000) != 0),
getParentForChildren(),
isClean());
updateErrors_ = null;
}
return updateErrorsBuilder_;
}
private java.util.List updatedContainers_ =
java.util.Collections.emptyList();
private void ensureUpdatedContainersIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
updatedContainers_ = new java.util.ArrayList(updatedContainers_);
bitField0_ |= 0x00002000;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder> updatedContainersBuilder_;
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public java.util.List getUpdatedContainersList() {
if (updatedContainersBuilder_ == null) {
return java.util.Collections.unmodifiableList(updatedContainers_);
} else {
return updatedContainersBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public int getUpdatedContainersCount() {
if (updatedContainersBuilder_ == null) {
return updatedContainers_.size();
} else {
return updatedContainersBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto getUpdatedContainers(int index) {
if (updatedContainersBuilder_ == null) {
return updatedContainers_.get(index);
} else {
return updatedContainersBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder setUpdatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto value) {
if (updatedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatedContainersIsMutable();
updatedContainers_.set(index, value);
onChanged();
} else {
updatedContainersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder setUpdatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder builderForValue) {
if (updatedContainersBuilder_ == null) {
ensureUpdatedContainersIsMutable();
updatedContainers_.set(index, builderForValue.build());
onChanged();
} else {
updatedContainersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder addUpdatedContainers(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto value) {
if (updatedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatedContainersIsMutable();
updatedContainers_.add(value);
onChanged();
} else {
updatedContainersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder addUpdatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto value) {
if (updatedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUpdatedContainersIsMutable();
updatedContainers_.add(index, value);
onChanged();
} else {
updatedContainersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder addUpdatedContainers(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder builderForValue) {
if (updatedContainersBuilder_ == null) {
ensureUpdatedContainersIsMutable();
updatedContainers_.add(builderForValue.build());
onChanged();
} else {
updatedContainersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder addUpdatedContainers(
int index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder builderForValue) {
if (updatedContainersBuilder_ == null) {
ensureUpdatedContainersIsMutable();
updatedContainers_.add(index, builderForValue.build());
onChanged();
} else {
updatedContainersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder addAllUpdatedContainers(
java.lang.Iterable values) {
if (updatedContainersBuilder_ == null) {
ensureUpdatedContainersIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, updatedContainers_);
onChanged();
} else {
updatedContainersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder clearUpdatedContainers() {
if (updatedContainersBuilder_ == null) {
updatedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
updatedContainersBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public Builder removeUpdatedContainers(int index) {
if (updatedContainersBuilder_ == null) {
ensureUpdatedContainersIsMutable();
updatedContainers_.remove(index);
onChanged();
} else {
updatedContainersBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder getUpdatedContainersBuilder(
int index) {
return getUpdatedContainersFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder getUpdatedContainersOrBuilder(
int index) {
if (updatedContainersBuilder_ == null) {
return updatedContainers_.get(index); } else {
return updatedContainersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public java.util.List
getUpdatedContainersOrBuilderList() {
if (updatedContainersBuilder_ != null) {
return updatedContainersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(updatedContainers_);
}
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder addUpdatedContainersBuilder() {
return getUpdatedContainersFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder addUpdatedContainersBuilder(
int index) {
return getUpdatedContainersFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.UpdatedContainerProto updated_containers = 16;
*/
public java.util.List
getUpdatedContainersBuilderList() {
return getUpdatedContainersFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder>
getUpdatedContainersFieldBuilder() {
if (updatedContainersBuilder_ == null) {
updatedContainersBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdatedContainerProtoOrBuilder>(
updatedContainers_,
((bitField0_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
updatedContainers_ = null;
}
return updatedContainersBuilder_;
}
private java.util.List containersFromPreviousAttempts_ =
java.util.Collections.emptyList();
private void ensureContainersFromPreviousAttemptsIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
containersFromPreviousAttempts_ = new java.util.ArrayList(containersFromPreviousAttempts_);
bitField0_ |= 0x00004000;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> containersFromPreviousAttemptsBuilder_;
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public java.util.List getContainersFromPreviousAttemptsList() {
if (containersFromPreviousAttemptsBuilder_ == null) {
return java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
} else {
return containersFromPreviousAttemptsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public int getContainersFromPreviousAttemptsCount() {
if (containersFromPreviousAttemptsBuilder_ == null) {
return containersFromPreviousAttempts_.size();
} else {
return containersFromPreviousAttemptsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto getContainersFromPreviousAttempts(int index) {
if (containersFromPreviousAttemptsBuilder_ == null) {
return containersFromPreviousAttempts_.get(index);
} else {
return containersFromPreviousAttemptsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder setContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containersFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.set(index, value);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder setContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.set(index, builderForValue.build());
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder addContainersFromPreviousAttempts(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containersFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(value);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder addContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto value) {
if (containersFromPreviousAttemptsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(index, value);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder addContainersFromPreviousAttempts(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(builderForValue.build());
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder addContainersFromPreviousAttempts(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder builderForValue) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.add(index, builderForValue.build());
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder addAllContainersFromPreviousAttempts(
java.lang.Iterable values) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, containersFromPreviousAttempts_);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder clearContainersFromPreviousAttempts() {
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public Builder removeContainersFromPreviousAttempts(int index) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
containersFromPreviousAttempts_.remove(index);
onChanged();
} else {
containersFromPreviousAttemptsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder getContainersFromPreviousAttemptsBuilder(
int index) {
return getContainersFromPreviousAttemptsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index) {
if (containersFromPreviousAttemptsBuilder_ == null) {
return containersFromPreviousAttempts_.get(index); } else {
return containersFromPreviousAttemptsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public java.util.List
getContainersFromPreviousAttemptsOrBuilderList() {
if (containersFromPreviousAttemptsBuilder_ != null) {
return containersFromPreviousAttemptsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
}
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersFromPreviousAttemptsBuilder() {
return getContainersFromPreviousAttemptsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder addContainersFromPreviousAttemptsBuilder(
int index) {
return getContainersFromPreviousAttemptsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 17;
*/
public java.util.List
getContainersFromPreviousAttemptsBuilderList() {
return getContainersFromPreviousAttemptsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getContainersFromPreviousAttemptsFieldBuilder() {
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttemptsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
containersFromPreviousAttempts_,
((bitField0_ & 0x00004000) != 0),
getParentForChildren(),
isClean());
containersFromPreviousAttempts_ = null;
}
return containersFromPreviousAttemptsBuilder_;
}
private java.util.List rejectedSchedulingRequests_ =
java.util.Collections.emptyList();
private void ensureRejectedSchedulingRequestsIsMutable() {
if (!((bitField0_ & 0x00008000) != 0)) {
rejectedSchedulingRequests_ = new java.util.ArrayList(rejectedSchedulingRequests_);
bitField0_ |= 0x00008000;
}
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProtoOrBuilder> rejectedSchedulingRequestsBuilder_;
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public java.util.List getRejectedSchedulingRequestsList() {
if (rejectedSchedulingRequestsBuilder_ == null) {
return java.util.Collections.unmodifiableList(rejectedSchedulingRequests_);
} else {
return rejectedSchedulingRequestsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public int getRejectedSchedulingRequestsCount() {
if (rejectedSchedulingRequestsBuilder_ == null) {
return rejectedSchedulingRequests_.size();
} else {
return rejectedSchedulingRequestsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto getRejectedSchedulingRequests(int index) {
if (rejectedSchedulingRequestsBuilder_ == null) {
return rejectedSchedulingRequests_.get(index);
} else {
return rejectedSchedulingRequestsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder setRejectedSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto value) {
if (rejectedSchedulingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.set(index, value);
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder setRejectedSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder builderForValue) {
if (rejectedSchedulingRequestsBuilder_ == null) {
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.set(index, builderForValue.build());
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder addRejectedSchedulingRequests(org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto value) {
if (rejectedSchedulingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.add(value);
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder addRejectedSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto value) {
if (rejectedSchedulingRequestsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.add(index, value);
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder addRejectedSchedulingRequests(
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder builderForValue) {
if (rejectedSchedulingRequestsBuilder_ == null) {
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.add(builderForValue.build());
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder addRejectedSchedulingRequests(
int index, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder builderForValue) {
if (rejectedSchedulingRequestsBuilder_ == null) {
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.add(index, builderForValue.build());
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder addAllRejectedSchedulingRequests(
java.lang.Iterable values) {
if (rejectedSchedulingRequestsBuilder_ == null) {
ensureRejectedSchedulingRequestsIsMutable();
org.apache.hadoop.thirdparty.protobuf.AbstractMessageLite.Builder.addAll(
values, rejectedSchedulingRequests_);
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder clearRejectedSchedulingRequests() {
if (rejectedSchedulingRequestsBuilder_ == null) {
rejectedSchedulingRequests_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public Builder removeRejectedSchedulingRequests(int index) {
if (rejectedSchedulingRequestsBuilder_ == null) {
ensureRejectedSchedulingRequestsIsMutable();
rejectedSchedulingRequests_.remove(index);
onChanged();
} else {
rejectedSchedulingRequestsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder getRejectedSchedulingRequestsBuilder(
int index) {
return getRejectedSchedulingRequestsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProtoOrBuilder getRejectedSchedulingRequestsOrBuilder(
int index) {
if (rejectedSchedulingRequestsBuilder_ == null) {
return rejectedSchedulingRequests_.get(index); } else {
return rejectedSchedulingRequestsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public java.util.List
getRejectedSchedulingRequestsOrBuilderList() {
if (rejectedSchedulingRequestsBuilder_ != null) {
return rejectedSchedulingRequestsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rejectedSchedulingRequests_);
}
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder addRejectedSchedulingRequestsBuilder() {
return getRejectedSchedulingRequestsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder addRejectedSchedulingRequestsBuilder(
int index) {
return getRejectedSchedulingRequestsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.RejectedSchedulingRequestProto rejected_scheduling_requests = 18;
*/
public java.util.List
getRejectedSchedulingRequestsBuilderList() {
return getRejectedSchedulingRequestsFieldBuilder().getBuilderList();
}
private org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProtoOrBuilder>
getRejectedSchedulingRequestsFieldBuilder() {
if (rejectedSchedulingRequestsBuilder_ == null) {
rejectedSchedulingRequestsBuilder_ = new org.apache.hadoop.thirdparty.protobuf.RepeatedFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.RejectedSchedulingRequestProtoOrBuilder>(
rejectedSchedulingRequests_,
((bitField0_ & 0x00008000) != 0),
getParentForChildren(),
isClean());
rejectedSchedulingRequests_ = null;
}
return rejectedSchedulingRequestsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.AllocateResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.AllocateResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public AllocateResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new AllocateResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetNewApplicationRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.GetNewApplicationRequestProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationRequestProto}
*/
public static final class GetNewApplicationRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.GetNewApplicationRequestProto)
GetNewApplicationRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNewApplicationRequestProto.newBuilder() to construct.
private GetNewApplicationRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private GetNewApplicationRequestProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNewApplicationRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.Builder.class);
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.GetNewApplicationRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.getDefaultInstance()) return this;
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetNewApplicationRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetNewApplicationRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public GetNewApplicationRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new GetNewApplicationRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetNewApplicationResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.GetNewApplicationResponseProto)
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.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
boolean hasMaximumCapability();
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability();
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationResponseProto}
*/
public static final class GetNewApplicationResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.GetNewApplicationResponseProto)
GetNewApplicationResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetNewApplicationResponseProto.newBuilder() to construct.
private GetNewApplicationResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private GetNewApplicationResponseProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNewApplicationResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = maximumCapability_.toBuilder();
}
maximumCapability_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maximumCapability_);
maximumCapability_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
public static final int MAXIMUMCAPABILITY_FIELD_NUMBER = 2;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maximumCapability_;
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
return maximumCapability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
return maximumCapability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
}
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 (hasMaximumCapability()) {
if (!getMaximumCapability().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getMaximumCapability());
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(2, getMaximumCapability());
}
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.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto) obj;
if (hasApplicationId() != other.hasApplicationId()) return false;
if (hasApplicationId()) {
if (!getApplicationId()
.equals(other.getApplicationId())) return false;
}
if (hasMaximumCapability() != other.hasMaximumCapability()) return false;
if (hasMaximumCapability()) {
if (!getMaximumCapability()
.equals(other.getMaximumCapability())) 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 (hasMaximumCapability()) {
hash = (37 * hash) + MAXIMUMCAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getMaximumCapability().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.GetNewApplicationResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
getMaximumCapabilityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = null;
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = null;
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto(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)) {
if (maximumCapabilityBuilder_ == null) {
result.maximumCapability_ = maximumCapability_;
} else {
result.maximumCapability_ = maximumCapabilityBuilder_.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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
if (other.hasMaximumCapability()) {
mergeMaximumCapability(other.getMaximumCapability());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasMaximumCapability()) {
if (!getMaximumCapability().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_ == null ? 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.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationId_ != null &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = null;
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
getApplicationId(),
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maximumCapability_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> maximumCapabilityBuilder_;
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
return maximumCapability_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
} else {
return maximumCapabilityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public Builder setMaximumCapability(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (maximumCapabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maximumCapability_ = value;
onChanged();
} else {
maximumCapabilityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public Builder setMaximumCapability(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = builderForValue.build();
onChanged();
} else {
maximumCapabilityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public Builder mergeMaximumCapability(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (maximumCapabilityBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
maximumCapability_ != null &&
maximumCapability_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
maximumCapability_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(maximumCapability_).mergeFrom(value).buildPartial();
} else {
maximumCapability_ = value;
}
onChanged();
} else {
maximumCapabilityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public Builder clearMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = null;
onChanged();
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getMaximumCapabilityBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMaximumCapabilityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
if (maximumCapabilityBuilder_ != null) {
return maximumCapabilityBuilder_.getMessageOrBuilder();
} else {
return maximumCapability_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance() : maximumCapability_;
}
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getMaximumCapabilityFieldBuilder() {
if (maximumCapabilityBuilder_ == null) {
maximumCapabilityBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
getMaximumCapability(),
getParentForChildren(),
isClean());
maximumCapability_ = null;
}
return maximumCapabilityBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetNewApplicationResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetNewApplicationResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public GetNewApplicationResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new GetNewApplicationResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetApplicationReportRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.GetApplicationReportRequestProto)
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.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportRequestProto}
*/
public static final class GetApplicationReportRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.GetApplicationReportRequestProto)
GetApplicationReportRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetApplicationReportRequestProto.newBuilder() to construct.
private GetApplicationReportRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private GetApplicationReportRequestProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApplicationReportRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationId());
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getApplicationId());
}
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.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto) obj;
if (hasApplicationId() != other.hasApplicationId()) return false;
if (hasApplicationId()) {
if (!getApplicationId()
.equals(other.getApplicationId())) 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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.GetApplicationReportRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (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);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto(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;
}
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_ == null ? 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.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationId_ != null &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = null;
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
getApplicationId(),
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetApplicationReportRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetApplicationReportRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public GetApplicationReportRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new GetApplicationReportRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetApplicationReportResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.GetApplicationReportResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
boolean hasApplicationReport();
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplicationReport();
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationReportOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportResponseProto}
*/
public static final class GetApplicationReportResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.GetApplicationReportResponseProto)
GetApplicationReportResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetApplicationReportResponseProto.newBuilder() to construct.
private GetApplicationReportResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private GetApplicationReportResponseProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApplicationReportResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ApplicationReportProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationReport_.toBuilder();
}
applicationReport_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationReport_);
applicationReport_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_REPORT_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto applicationReport_;
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public boolean hasApplicationReport() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplicationReport() {
return applicationReport_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance() : applicationReport_;
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationReportOrBuilder() {
return applicationReport_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance() : applicationReport_;
}
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 (hasApplicationReport()) {
if (!getApplicationReport().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationReport());
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getApplicationReport());
}
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.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto) obj;
if (hasApplicationReport() != other.hasApplicationReport()) return false;
if (hasApplicationReport()) {
if (!getApplicationReport()
.equals(other.getApplicationReport())) 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 (hasApplicationReport()) {
hash = (37 * hash) + APPLICATION_REPORT_FIELD_NUMBER;
hash = (53 * hash) + getApplicationReport().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.GetApplicationReportResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationReportFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationReportBuilder_ == null) {
applicationReport_ = null;
} else {
applicationReportBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (applicationReportBuilder_ == null) {
result.applicationReport_ = applicationReport_;
} else {
result.applicationReport_ = applicationReportBuilder_.build();
}
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance()) return this;
if (other.hasApplicationReport()) {
mergeApplicationReport(other.getApplicationReport());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasApplicationReport()) {
if (!getApplicationReport().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto applicationReport_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder> applicationReportBuilder_;
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public boolean hasApplicationReport() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplicationReport() {
if (applicationReportBuilder_ == null) {
return applicationReport_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance() : applicationReport_;
} else {
return applicationReportBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public Builder setApplicationReport(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto value) {
if (applicationReportBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationReport_ = value;
onChanged();
} else {
applicationReportBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public Builder setApplicationReport(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder builderForValue) {
if (applicationReportBuilder_ == null) {
applicationReport_ = builderForValue.build();
onChanged();
} else {
applicationReportBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public Builder mergeApplicationReport(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto value) {
if (applicationReportBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationReport_ != null &&
applicationReport_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance()) {
applicationReport_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.newBuilder(applicationReport_).mergeFrom(value).buildPartial();
} else {
applicationReport_ = value;
}
onChanged();
} else {
applicationReportBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public Builder clearApplicationReport() {
if (applicationReportBuilder_ == null) {
applicationReport_ = null;
onChanged();
} else {
applicationReportBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder getApplicationReportBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationReportFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationReportOrBuilder() {
if (applicationReportBuilder_ != null) {
return applicationReportBuilder_.getMessageOrBuilder();
} else {
return applicationReport_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance() : applicationReport_;
}
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>
getApplicationReportFieldBuilder() {
if (applicationReportBuilder_ == null) {
applicationReportBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>(
getApplicationReport(),
getParentForChildren(),
isClean());
applicationReport_ = null;
}
return applicationReportBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetApplicationReportResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetApplicationReportResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public GetApplicationReportResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new GetApplicationReportResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubmitApplicationRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.SubmitApplicationRequestProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
boolean hasApplicationSubmissionContext();
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext();
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationRequestProto}
*/
public static final class SubmitApplicationRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.SubmitApplicationRequestProto)
SubmitApplicationRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubmitApplicationRequestProto.newBuilder() to construct.
private SubmitApplicationRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SubmitApplicationRequestProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubmitApplicationRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationSubmissionContext_.toBuilder();
}
applicationSubmissionContext_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationSubmissionContext_);
applicationSubmissionContext_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_SUBMISSION_CONTEXT_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto applicationSubmissionContext_;
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public boolean hasApplicationSubmissionContext() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext() {
return applicationSubmissionContext_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance() : applicationSubmissionContext_;
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder() {
return applicationSubmissionContext_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance() : applicationSubmissionContext_;
}
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 (hasApplicationSubmissionContext()) {
if (!getApplicationSubmissionContext().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(org.apache.hadoop.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationSubmissionContext());
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getApplicationSubmissionContext());
}
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.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto) obj;
if (hasApplicationSubmissionContext() != other.hasApplicationSubmissionContext()) return false;
if (hasApplicationSubmissionContext()) {
if (!getApplicationSubmissionContext()
.equals(other.getApplicationSubmissionContext())) 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 (hasApplicationSubmissionContext()) {
hash = (37 * hash) + APPLICATION_SUBMISSION_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getApplicationSubmissionContext().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.SubmitApplicationRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationSubmissionContextFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationSubmissionContextBuilder_ == null) {
applicationSubmissionContext_ = null;
} else {
applicationSubmissionContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (applicationSubmissionContextBuilder_ == null) {
result.applicationSubmissionContext_ = applicationSubmissionContext_;
} else {
result.applicationSubmissionContext_ = applicationSubmissionContextBuilder_.build();
}
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.getDefaultInstance()) return this;
if (other.hasApplicationSubmissionContext()) {
mergeApplicationSubmissionContext(other.getApplicationSubmissionContext());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasApplicationSubmissionContext()) {
if (!getApplicationSubmissionContext().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto applicationSubmissionContext_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder> applicationSubmissionContextBuilder_;
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public boolean hasApplicationSubmissionContext() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext() {
if (applicationSubmissionContextBuilder_ == null) {
return applicationSubmissionContext_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance() : applicationSubmissionContext_;
} else {
return applicationSubmissionContextBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public Builder setApplicationSubmissionContext(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto value) {
if (applicationSubmissionContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationSubmissionContext_ = value;
onChanged();
} else {
applicationSubmissionContextBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public Builder setApplicationSubmissionContext(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder builderForValue) {
if (applicationSubmissionContextBuilder_ == null) {
applicationSubmissionContext_ = builderForValue.build();
onChanged();
} else {
applicationSubmissionContextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public Builder mergeApplicationSubmissionContext(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto value) {
if (applicationSubmissionContextBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationSubmissionContext_ != null &&
applicationSubmissionContext_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance()) {
applicationSubmissionContext_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.newBuilder(applicationSubmissionContext_).mergeFrom(value).buildPartial();
} else {
applicationSubmissionContext_ = value;
}
onChanged();
} else {
applicationSubmissionContextBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public Builder clearApplicationSubmissionContext() {
if (applicationSubmissionContextBuilder_ == null) {
applicationSubmissionContext_ = null;
onChanged();
} else {
applicationSubmissionContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder getApplicationSubmissionContextBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationSubmissionContextFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder() {
if (applicationSubmissionContextBuilder_ != null) {
return applicationSubmissionContextBuilder_.getMessageOrBuilder();
} else {
return applicationSubmissionContext_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance() : applicationSubmissionContext_;
}
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder>
getApplicationSubmissionContextFieldBuilder() {
if (applicationSubmissionContextBuilder_ == null) {
applicationSubmissionContextBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder>(
getApplicationSubmissionContext(),
getParentForChildren(),
isClean());
applicationSubmissionContext_ = null;
}
return applicationSubmissionContextBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.SubmitApplicationRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.SubmitApplicationRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public SubmitApplicationRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new SubmitApplicationRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SubmitApplicationResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.SubmitApplicationResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationResponseProto}
*/
public static final class SubmitApplicationResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.SubmitApplicationResponseProto)
SubmitApplicationResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SubmitApplicationResponseProto.newBuilder() to construct.
private SubmitApplicationResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SubmitApplicationResponseProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubmitApplicationResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.Builder.class);
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.SubmitApplicationResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.getDefaultInstance()) return this;
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.SubmitApplicationResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.SubmitApplicationResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public SubmitApplicationResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new SubmitApplicationResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FailApplicationAttemptRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.FailApplicationAttemptRequestProto)
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.yarn.proto.YarnProtos.ApplicationAttemptIdProto getApplicationAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getApplicationAttemptIdOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.FailApplicationAttemptRequestProto}
*/
public static final class FailApplicationAttemptRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.FailApplicationAttemptRequestProto)
FailApplicationAttemptRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FailApplicationAttemptRequestProto.newBuilder() to construct.
private FailApplicationAttemptRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FailApplicationAttemptRequestProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FailApplicationAttemptRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationAttemptId_.toBuilder();
}
applicationAttemptId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationAttemptId_);
applicationAttemptId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_ATTEMPT_ID_FIELD_NUMBER = 1;
private 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.yarn.proto.YarnProtos.ApplicationAttemptIdProto getApplicationAttemptId() {
return applicationAttemptId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getApplicationAttemptIdOrBuilder() {
return applicationAttemptId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationAttemptId());
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getApplicationAttemptId());
}
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.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto) obj;
if (hasApplicationAttemptId() != other.hasApplicationAttemptId()) return false;
if (hasApplicationAttemptId()) {
if (!getApplicationAttemptId()
.equals(other.getApplicationAttemptId())) 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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.FailApplicationAttemptRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.FailApplicationAttemptRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getApplicationAttemptIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (applicationAttemptIdBuilder_ == null) {
applicationAttemptId_ = null;
} else {
applicationAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto(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;
}
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto.getDefaultInstance()) return this;
if (other.hasApplicationAttemptId()) {
mergeApplicationAttemptId(other.getApplicationAttemptId());
}
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto applicationAttemptId_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, 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.yarn.proto.YarnProtos.ApplicationAttemptIdProto getApplicationAttemptId() {
if (applicationAttemptIdBuilder_ == null) {
return applicationAttemptId_ == null ? 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.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.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.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (applicationAttemptIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationAttemptId_ != null &&
applicationAttemptId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
applicationAttemptId_ =
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.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getApplicationAttemptIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationAttemptIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getApplicationAttemptIdOrBuilder() {
if (applicationAttemptIdBuilder_ != null) {
return applicationAttemptIdBuilder_.getMessageOrBuilder();
} else {
return applicationAttemptId_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance() : applicationAttemptId_;
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto application_attempt_id = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>
getApplicationAttemptIdFieldBuilder() {
if (applicationAttemptIdBuilder_ == null) {
applicationAttemptIdBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
getApplicationAttemptId(),
getParentForChildren(),
isClean());
applicationAttemptId_ = null;
}
return applicationAttemptIdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.FailApplicationAttemptRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.FailApplicationAttemptRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public FailApplicationAttemptRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new FailApplicationAttemptRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FailApplicationAttemptResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.FailApplicationAttemptResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.FailApplicationAttemptResponseProto}
*/
public static final class FailApplicationAttemptResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.FailApplicationAttemptResponseProto)
FailApplicationAttemptResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FailApplicationAttemptResponseProto.newBuilder() to construct.
private FailApplicationAttemptResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FailApplicationAttemptResponseProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FailApplicationAttemptResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.Builder.class);
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto) obj;
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();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.FailApplicationAttemptResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.FailApplicationAttemptResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FailApplicationAttemptResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto.getDefaultInstance()) return this;
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.FailApplicationAttemptResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.FailApplicationAttemptResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public FailApplicationAttemptResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new FailApplicationAttemptResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FailApplicationAttemptResponseProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KillApplicationRequestProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.KillApplicationRequestProto)
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.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
/**
* optional string diagnostics = 2;
*/
boolean hasDiagnostics();
/**
* optional string diagnostics = 2;
*/
java.lang.String getDiagnostics();
/**
* optional string diagnostics = 2;
*/
org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes();
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationRequestProto}
*/
public static final class KillApplicationRequestProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.KillApplicationRequestProto)
KillApplicationRequestProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use KillApplicationRequestProto.newBuilder() to construct.
private KillApplicationRequestProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private KillApplicationRequestProto() {
diagnostics_ = "";
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KillApplicationRequestProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.thirdparty.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
diagnostics_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.Builder.class);
}
private int bitField0_;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_ == null ? org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
public static final int DIAGNOSTICS_FIELD_NUMBER = 2;
private volatile java.lang.Object diagnostics_;
/**
* optional string diagnostics = 2;
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string diagnostics = 2;
*/
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.thirdparty.protobuf.ByteString bs =
(org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
}
}
/**
* optional string diagnostics = 2;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof java.lang.String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.writeString(output, 2, diagnostics_);
}
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.thirdparty.protobuf.CodedOutputStream
.computeMessageSize(1, getApplicationId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.computeStringSize(2, diagnostics_);
}
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.yarn.proto.YarnServiceProtos.KillApplicationRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto) obj;
if (hasApplicationId() != other.hasApplicationId()) return false;
if (hasApplicationId()) {
if (!getApplicationId()
.equals(other.getApplicationId())) return false;
}
if (hasDiagnostics() != other.hasDiagnostics()) return false;
if (hasDiagnostics()) {
if (!getDiagnostics()
.equals(other.getDiagnostics())) 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 (hasDiagnostics()) {
hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER;
hash = (53 * hash) + getDiagnostics().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.KillApplicationRequestProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationRequestProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.KillApplicationRequestProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (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);
diagnostics_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto(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.diagnostics_ = diagnostics_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
if (other.hasDiagnostics()) {
bitField0_ |= 0x00000002;
diagnostics_ = other.diagnostics_;
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_ == null ? 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.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
applicationId_ != null &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = null;
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_ == null ?
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance() : applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new org.apache.hadoop.thirdparty.protobuf.SingleFieldBuilderV3<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
getApplicationId(),
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
private java.lang.Object diagnostics_ = "";
/**
* optional string diagnostics = 2;
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string diagnostics = 2;
*/
public java.lang.String getDiagnostics() {
java.lang.Object ref = diagnostics_;
if (!(ref instanceof java.lang.String)) {
org.apache.hadoop.thirdparty.protobuf.ByteString bs =
(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 = 2;
*/
public org.apache.hadoop.thirdparty.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof String) {
org.apache.hadoop.thirdparty.protobuf.ByteString b =
org.apache.hadoop.thirdparty.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (org.apache.hadoop.thirdparty.protobuf.ByteString) ref;
}
}
/**
* optional string diagnostics = 2;
*/
public Builder setDiagnostics(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
diagnostics_ = value;
onChanged();
return this;
}
/**
* optional string diagnostics = 2;
*/
public Builder clearDiagnostics() {
bitField0_ = (bitField0_ & ~0x00000002);
diagnostics_ = getDefaultInstance().getDiagnostics();
onChanged();
return this;
}
/**
* optional string diagnostics = 2;
*/
public Builder setDiagnosticsBytes(
org.apache.hadoop.thirdparty.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
diagnostics_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.KillApplicationRequestProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.KillApplicationRequestProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public KillApplicationRequestProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new KillApplicationRequestProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KillApplicationResponseProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:hadoop.yarn.KillApplicationResponseProto)
org.apache.hadoop.thirdparty.protobuf.MessageOrBuilder {
/**
* optional bool is_kill_completed = 1 [default = false];
*/
boolean hasIsKillCompleted();
/**
* optional bool is_kill_completed = 1 [default = false];
*/
boolean getIsKillCompleted();
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationResponseProto}
*/
public static final class KillApplicationResponseProto extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:hadoop.yarn.KillApplicationResponseProto)
KillApplicationResponseProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use KillApplicationResponseProto.newBuilder() to construct.
private KillApplicationResponseProto(org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private KillApplicationResponseProto() {
}
@java.lang.Override
public final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KillApplicationResponseProto(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet.Builder unknownFields =
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;
isKillCompleted_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.Builder.class);
}
private int bitField0_;
public static final int IS_KILL_COMPLETED_FIELD_NUMBER = 1;
private boolean isKillCompleted_;
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public boolean hasIsKillCompleted() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public boolean getIsKillCompleted() {
return isKillCompleted_;
}
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.thirdparty.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, isKillCompleted_);
}
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.thirdparty.protobuf.CodedOutputStream
.computeBoolSize(1, isKillCompleted_);
}
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.yarn.proto.YarnServiceProtos.KillApplicationResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto) obj;
if (hasIsKillCompleted() != other.hasIsKillCompleted()) return false;
if (hasIsKillCompleted()) {
if (getIsKillCompleted()
!= other.getIsKillCompleted()) 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 (hasIsKillCompleted()) {
hash = (37 * hash) + IS_KILL_COMPLETED_FIELD_NUMBER;
hash = (53 * hash) + org.apache.hadoop.thirdparty.protobuf.Internal.hashBoolean(
getIsKillCompleted());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
java.nio.ByteBuffer data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
java.nio.ByteBuffer data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.ByteString data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(byte[] data)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
byte[] data,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseDelimitedFrom(
java.io.InputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input)
throws java.io.IOException {
return org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return 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.yarn.proto.YarnServiceProtos.KillApplicationResponseProto 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.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationResponseProto}
*/
public static final class Builder extends
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:hadoop.yarn.KillApplicationResponseProto)
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProtoOrBuilder {
public static final org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_descriptor;
}
@java.lang.Override
protected org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
isKillCompleted_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_descriptor;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.getDefaultInstance();
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.isKillCompleted_ = isKillCompleted_;
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
org.apache.hadoop.thirdparty.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
org.apache.hadoop.thirdparty.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
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.thirdparty.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.hadoop.thirdparty.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.getDefaultInstance()) return this;
if (other.hasIsKillCompleted()) {
setIsKillCompleted(other.getIsKillCompleted());
}
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.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean isKillCompleted_ ;
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public boolean hasIsKillCompleted() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public boolean getIsKillCompleted() {
return isKillCompleted_;
}
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public Builder setIsKillCompleted(boolean value) {
bitField0_ |= 0x00000001;
isKillCompleted_ = value;
onChanged();
return this;
}
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public Builder clearIsKillCompleted() {
bitField0_ = (bitField0_ & ~0x00000001);
isKillCompleted_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.hadoop.thirdparty.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.KillApplicationResponseProto)
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.KillApplicationResponseProto)
private static final org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto();
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final org.apache.hadoop.thirdparty.protobuf.Parser
PARSER = new org.apache.hadoop.thirdparty.protobuf.AbstractParser() {
@java.lang.Override
public KillApplicationResponseProto parsePartialFrom(
org.apache.hadoop.thirdparty.protobuf.CodedInputStream input,
org.apache.hadoop.thirdparty.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.hadoop.thirdparty.protobuf.InvalidProtocolBufferException {
return new KillApplicationResponseProto(input, extensionRegistry);
}
};
public static org.apache.hadoop.thirdparty.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.hadoop.thirdparty.protobuf.Parser