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(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code hadoop.yarn.SchedulerResourceTypes}
*/
public enum SchedulerResourceTypes
implements com.google.protobuf.ProtocolMessageEnum {
/**
* MEMORY = 0;
*/
MEMORY(0, 0),
/**
* CPU = 1;
*/
CPU(1, 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; }
public static SchedulerResourceTypes valueOf(int value) {
switch (value) {
case 0: return MEMORY;
case 1: return CPU;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SchedulerResourceTypes findValueByNumber(int number) {
return SchedulerResourceTypes.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor().getEnumTypes().get(0);
}
private static final SchedulerResourceTypes[] VALUES = values();
public static SchedulerResourceTypes valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private SchedulerResourceTypes(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.SchedulerResourceTypes)
}
/**
* Protobuf enum {@code hadoop.yarn.ApplicationsRequestScopeProto}
*/
public enum ApplicationsRequestScopeProto
implements com.google.protobuf.ProtocolMessageEnum {
/**
* ALL = 0;
*/
ALL(0, 0),
/**
* VIEWABLE = 1;
*/
VIEWABLE(1, 1),
/**
* OWN = 2;
*/
OWN(2, 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; }
public static ApplicationsRequestScopeProto valueOf(int value) {
switch (value) {
case 0: return ALL;
case 1: return VIEWABLE;
case 2: return OWN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ApplicationsRequestScopeProto findValueByNumber(int number) {
return ApplicationsRequestScopeProto.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.getDescriptor().getEnumTypes().get(1);
}
private static final ApplicationsRequestScopeProto[] VALUES = values();
public static ApplicationsRequestScopeProto valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private ApplicationsRequestScopeProto(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:hadoop.yarn.ApplicationsRequestScopeProto)
}
public interface RegisterApplicationMasterRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string host = 1;
/**
* optional string host = 1;
*/
boolean hasHost();
/**
* optional string host = 1;
*/
java.lang.String getHost();
/**
* optional string host = 1;
*/
com.google.protobuf.ByteString
getHostBytes();
// optional int32 rpc_port = 2;
/**
* optional int32 rpc_port = 2;
*/
boolean hasRpcPort();
/**
* optional int32 rpc_port = 2;
*/
int getRpcPort();
// optional string tracking_url = 3;
/**
* optional string tracking_url = 3;
*/
boolean hasTrackingUrl();
/**
* optional string tracking_url = 3;
*/
java.lang.String getTrackingUrl();
/**
* optional string tracking_url = 3;
*/
com.google.protobuf.ByteString
getTrackingUrlBytes();
}
/**
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterRequestProto}
*
*
*////////////////////////////////////////////////////
* ///// AM_RM_Protocol ///////////////////////////////
* ////////////////////////////////////////////////////
*
*/
public static final class RegisterApplicationMasterRequestProto extends
com.google.protobuf.GeneratedMessage
implements RegisterApplicationMasterRequestProtoOrBuilder {
// Use RegisterApplicationMasterRequestProto.newBuilder() to construct.
private RegisterApplicationMasterRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RegisterApplicationMasterRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RegisterApplicationMasterRequestProto defaultInstance;
public static RegisterApplicationMasterRequestProto getDefaultInstance() {
return defaultInstance;
}
public RegisterApplicationMasterRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterApplicationMasterRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
host_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
rpcPort_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
trackingUrl_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RegisterApplicationMasterRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegisterApplicationMasterRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string host = 1;
public static final int HOST_FIELD_NUMBER = 1;
private java.lang.Object host_;
/**
* optional string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* 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 {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
host_ = s;
}
return s;
}
}
/**
* optional string host = 1;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 rpc_port = 2;
public static final int RPC_PORT_FIELD_NUMBER = 2;
private int rpcPort_;
/**
* optional int32 rpc_port = 2;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 rpc_port = 2;
*/
public int getRpcPort() {
return rpcPort_;
}
// optional string tracking_url = 3;
public static final int TRACKING_URL_FIELD_NUMBER = 3;
private java.lang.Object trackingUrl_;
/**
* optional string tracking_url = 3;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* 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 {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string tracking_url = 3;
*/
public com.google.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
host_ = "";
rpcPort_ = 0;
trackingUrl_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getHostBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, rpcPort_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getTrackingUrlBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getHostBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, rpcPort_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getTrackingUrlBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto) obj;
boolean result = true;
result = result && (hasHost() == other.hasHost());
if (hasHost()) {
result = result && getHost()
.equals(other.getHost());
}
result = result && (hasRpcPort() == other.hasRpcPort());
if (hasRpcPort()) {
result = result && (getRpcPort()
== other.getRpcPort());
}
result = result && (hasTrackingUrl() == other.hasTrackingUrl());
if (hasTrackingUrl()) {
result = result && getTrackingUrl()
.equals(other.getTrackingUrl());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterRequestProto}
*
*
*////////////////////////////////////////////////////
* ///// AM_RM_Protocol ///////////////////////////////
* ////////////////////////////////////////////////////
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
host_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
rpcPort_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.host_ = host_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.rpcPort_ = rpcPort_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.trackingUrl_ = trackingUrl_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string host = 1;
private java.lang.Object host_ = "";
/**
* optional string host = 1;
*/
public boolean hasHost() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string host = 1;
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string host = 1;
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.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(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
host_ = value;
onChanged();
return this;
}
// optional int32 rpc_port = 2;
private int rpcPort_ ;
/**
* optional int32 rpc_port = 2;
*/
public boolean hasRpcPort() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* 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;
}
// optional string tracking_url = 3;
private java.lang.Object trackingUrl_ = "";
/**
* optional string tracking_url = 3;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string tracking_url = 3;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
trackingUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string tracking_url = 3;
*/
public com.google.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (com.google.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(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
trackingUrl_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.RegisterApplicationMasterRequestProto)
}
static {
defaultInstance = new RegisterApplicationMasterRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.RegisterApplicationMasterRequestProto)
}
public interface RegisterApplicationMasterResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ResourceProto maximumCapability = 1;
/**
* 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;
/**
* optional bytes client_to_am_token_master_key = 2;
*/
boolean hasClientToAmTokenMasterKey();
/**
* optional bytes client_to_am_token_master_key = 2;
*/
com.google.protobuf.ByteString getClientToAmTokenMasterKey();
// repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder>
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;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getContainersFromPreviousAttemptsOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder getContainersFromPreviousAttemptsOrBuilder(
int index);
// optional string queue = 5;
/**
* optional string queue = 5;
*/
boolean hasQueue();
/**
* optional string queue = 5;
*/
java.lang.String getQueue();
/**
* optional string queue = 5;
*/
com.google.protobuf.ByteString
getQueueBytes();
// repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
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;
/**
* 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);
}
/**
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterResponseProto}
*/
public static final class RegisterApplicationMasterResponseProto extends
com.google.protobuf.GeneratedMessage
implements RegisterApplicationMasterResponseProtoOrBuilder {
// Use RegisterApplicationMasterResponseProto.newBuilder() to construct.
private RegisterApplicationMasterResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RegisterApplicationMasterResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RegisterApplicationMasterResponseProto defaultInstance;
public static RegisterApplicationMasterResponseProto getDefaultInstance() {
return defaultInstance;
}
public RegisterApplicationMasterResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegisterApplicationMasterResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
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) == 0x00000004)) {
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) == 0x00000008)) {
containersFromPreviousAttempts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
containersFromPreviousAttempts_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.PARSER, extensionRegistry));
break;
}
case 42: {
bitField0_ |= 0x00000004;
queue_ = input.readBytes();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
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();
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) == 0x00000040)) {
schedulerResourceTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
schedulerResourceTypes_.add(value);
}
break;
}
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
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) == 0x00000040)) {
schedulerResourceTypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
schedulerResourceTypes_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
applicationACLs_ = java.util.Collections.unmodifiableList(applicationACLs_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
containersFromPreviousAttempts_ = java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
nmTokensFromPreviousAttempts_ = java.util.Collections.unmodifiableList(nmTokensFromPreviousAttempts_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
schedulerResourceTypes_ = java.util.Collections.unmodifiableList(schedulerResourceTypes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RegisterApplicationMasterResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegisterApplicationMasterResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ResourceProto maximumCapability = 1;
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) == 0x00000001);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
return maximumCapability_;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
return maximumCapability_;
}
// optional bytes client_to_am_token_master_key = 2;
public static final int CLIENT_TO_AM_TOKEN_MASTER_KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString clientToAmTokenMasterKey_;
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public boolean hasClientToAmTokenMasterKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public com.google.protobuf.ByteString getClientToAmTokenMasterKey() {
return clientToAmTokenMasterKey_;
}
// repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder>
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);
}
// repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
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);
}
// optional string queue = 5;
public static final int QUEUE_FIELD_NUMBER = 5;
private java.lang.Object queue_;
/**
* optional string queue = 5;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* 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 {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
queue_ = s;
}
return s;
}
}
/**
* optional string queue = 5;
*/
public com.google.protobuf.ByteString
getQueueBytes() {
java.lang.Object ref = queue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
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);
}
// repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
public static final int SCHEDULER_RESOURCE_TYPES_FIELD_NUMBER = 7;
private java.util.List schedulerResourceTypes_;
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public java.util.List getSchedulerResourceTypesList() {
return schedulerResourceTypes_;
}
/**
* 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_.get(index);
}
private void initFields() {
maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
clientToAmTokenMasterKey_ = com.google.protobuf.ByteString.EMPTY;
applicationACLs_ = java.util.Collections.emptyList();
containersFromPreviousAttempts_ = java.util.Collections.emptyList();
queue_ = "";
nmTokensFromPreviousAttempts_ = java.util.Collections.emptyList();
schedulerResourceTypes_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < 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;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, maximumCapability_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
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) == 0x00000004)) {
output.writeBytes(5, getQueueBytes());
}
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).getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, maximumCapability_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, clientToAmTokenMasterKey_);
}
for (int i = 0; i < applicationACLs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, applicationACLs_.get(i));
}
for (int i = 0; i < containersFromPreviousAttempts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, containersFromPreviousAttempts_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getQueueBytes());
}
for (int i = 0; i < nmTokensFromPreviousAttempts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, nmTokensFromPreviousAttempts_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < schedulerResourceTypes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(schedulerResourceTypes_.get(i).getNumber());
}
size += dataSize;
size += 1 * schedulerResourceTypes_.size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto) obj;
boolean result = true;
result = result && (hasMaximumCapability() == other.hasMaximumCapability());
if (hasMaximumCapability()) {
result = result && getMaximumCapability()
.equals(other.getMaximumCapability());
}
result = result && (hasClientToAmTokenMasterKey() == other.hasClientToAmTokenMasterKey());
if (hasClientToAmTokenMasterKey()) {
result = result && getClientToAmTokenMasterKey()
.equals(other.getClientToAmTokenMasterKey());
}
result = result && getApplicationACLsList()
.equals(other.getApplicationACLsList());
result = result && getContainersFromPreviousAttemptsList()
.equals(other.getContainersFromPreviousAttemptsList());
result = result && (hasQueue() == other.hasQueue());
if (hasQueue()) {
result = result && getQueue()
.equals(other.getQueue());
}
result = result && getNmTokensFromPreviousAttemptsList()
.equals(other.getNmTokensFromPreviousAttemptsList());
result = result && getSchedulerResourceTypesList()
.equals(other.getSchedulerResourceTypesList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (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) + hashEnumList(getSchedulerResourceTypesList());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.RegisterApplicationMasterResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMaximumCapabilityFieldBuilder();
getApplicationACLsFieldBuilder();
getContainersFromPreviousAttemptsFieldBuilder();
getNmTokensFromPreviousAttemptsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
clientToAmTokenMasterKey_ = com.google.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);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_RegisterApplicationMasterResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (maximumCapabilityBuilder_ == null) {
result.maximumCapability_ = maximumCapability_;
} else {
result.maximumCapability_ = maximumCapabilityBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.clientToAmTokenMasterKey_ = clientToAmTokenMasterKey_;
if (applicationACLsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
applicationACLs_ = java.util.Collections.unmodifiableList(applicationACLs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.applicationACLs_ = applicationACLs_;
} else {
result.applicationACLs_ = applicationACLsBuilder_.build();
}
if (containersFromPreviousAttemptsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
containersFromPreviousAttempts_ = java.util.Collections.unmodifiableList(containersFromPreviousAttempts_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.containersFromPreviousAttempts_ = containersFromPreviousAttempts_;
} else {
result.containersFromPreviousAttempts_ = containersFromPreviousAttemptsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.queue_ = queue_;
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
nmTokensFromPreviousAttempts_ = java.util.Collections.unmodifiableList(nmTokensFromPreviousAttempts_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.nmTokensFromPreviousAttempts_ = nmTokensFromPreviousAttempts_;
} else {
result.nmTokensFromPreviousAttempts_ = nmTokensFromPreviousAttemptsBuilder_.build();
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
schedulerResourceTypes_ = java.util.Collections.unmodifiableList(schedulerResourceTypes_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.schedulerResourceTypes_ = schedulerResourceTypes_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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_ =
com.google.protobuf.GeneratedMessage.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_ =
com.google.protobuf.GeneratedMessage.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_ =
com.google.protobuf.GeneratedMessage.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();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
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;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ResourceProto maximumCapability = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> maximumCapabilityBuilder_;
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
return 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) == 0x00000001) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getMaximumCapabilityFieldBuilder() {
if (maximumCapabilityBuilder_ == null) {
maximumCapabilityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
maximumCapability_,
getParentForChildren(),
isClean());
maximumCapability_ = null;
}
return maximumCapabilityBuilder_;
}
// optional bytes client_to_am_token_master_key = 2;
private com.google.protobuf.ByteString clientToAmTokenMasterKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public boolean hasClientToAmTokenMasterKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public com.google.protobuf.ByteString getClientToAmTokenMasterKey() {
return clientToAmTokenMasterKey_;
}
/**
* optional bytes client_to_am_token_master_key = 2;
*/
public Builder setClientToAmTokenMasterKey(com.google.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;
}
// repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
private java.util.List applicationACLs_ =
java.util.Collections.emptyList();
private void ensureApplicationACLsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
applicationACLs_ = new java.util.ArrayList(applicationACLs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProto> values) {
if (applicationACLsBuilder_ == null) {
ensureApplicationACLsIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
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 com.google.protobuf.RepeatedFieldBuilder<
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) == 0x00000004),
getParentForChildren(),
isClean());
applicationACLs_ = null;
}
return applicationACLsBuilder_;
}
// repeated .hadoop.yarn.ContainerProto containers_from_previous_attempts = 4;
private java.util.List containersFromPreviousAttempts_ =
java.util.Collections.emptyList();
private void ensureContainersFromPreviousAttemptsIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
containersFromPreviousAttempts_ = new java.util.ArrayList(containersFromPreviousAttempts_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto> values) {
if (containersFromPreviousAttemptsBuilder_ == null) {
ensureContainersFromPreviousAttemptsIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getContainersFromPreviousAttemptsFieldBuilder() {
if (containersFromPreviousAttemptsBuilder_ == null) {
containersFromPreviousAttemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
containersFromPreviousAttempts_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
containersFromPreviousAttempts_ = null;
}
return containersFromPreviousAttemptsBuilder_;
}
// optional string queue = 5;
private java.lang.Object queue_ = "";
/**
* optional string queue = 5;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string queue = 5;
*/
public java.lang.String getQueue() {
java.lang.Object ref = queue_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
queue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string queue = 5;
*/
public com.google.protobuf.ByteString
getQueueBytes() {
java.lang.Object ref = queue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queue_ = b;
return b;
} else {
return (com.google.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(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
queue_ = value;
onChanged();
return this;
}
// repeated .hadoop.yarn.NMTokenProto nm_tokens_from_previous_attempts = 6;
private java.util.List nmTokensFromPreviousAttempts_ =
java.util.Collections.emptyList();
private void ensureNmTokensFromPreviousAttemptsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
nmTokensFromPreviousAttempts_ = new java.util.ArrayList(nmTokensFromPreviousAttempts_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto> values) {
if (nmTokensFromPreviousAttemptsBuilder_ == null) {
ensureNmTokensFromPreviousAttemptsIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
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 com.google.protobuf.RepeatedFieldBuilder<
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) == 0x00000020),
getParentForChildren(),
isClean());
nmTokensFromPreviousAttempts_ = null;
}
return nmTokensFromPreviousAttemptsBuilder_;
}
// repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
private java.util.List schedulerResourceTypes_ =
java.util.Collections.emptyList();
private void ensureSchedulerResourceTypesIsMutable() {
if (!((bitField0_ & 0x00000040) == 0x00000040)) {
schedulerResourceTypes_ = new java.util.ArrayList(schedulerResourceTypes_);
bitField0_ |= 0x00000040;
}
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public java.util.List getSchedulerResourceTypesList() {
return java.util.Collections.unmodifiableList(schedulerResourceTypes_);
}
/**
* 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_.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);
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);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.SchedulerResourceTypes scheduler_resource_types = 7;
*/
public Builder addAllSchedulerResourceTypes(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnServiceProtos.SchedulerResourceTypes> values) {
ensureSchedulerResourceTypesIsMutable();
super.addAll(values, schedulerResourceTypes_);
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;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.RegisterApplicationMasterResponseProto)
}
static {
defaultInstance = new RegisterApplicationMasterResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.RegisterApplicationMasterResponseProto)
}
public interface FinishApplicationMasterRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string diagnostics = 1;
/**
* optional string diagnostics = 1;
*/
boolean hasDiagnostics();
/**
* optional string diagnostics = 1;
*/
java.lang.String getDiagnostics();
/**
* optional string diagnostics = 1;
*/
com.google.protobuf.ByteString
getDiagnosticsBytes();
// optional string tracking_url = 2;
/**
* optional string tracking_url = 2;
*/
boolean hasTrackingUrl();
/**
* optional string tracking_url = 2;
*/
java.lang.String getTrackingUrl();
/**
* optional string tracking_url = 2;
*/
com.google.protobuf.ByteString
getTrackingUrlBytes();
// optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
/**
* 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
com.google.protobuf.GeneratedMessage
implements FinishApplicationMasterRequestProtoOrBuilder {
// Use FinishApplicationMasterRequestProto.newBuilder() to construct.
private FinishApplicationMasterRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FinishApplicationMasterRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FinishApplicationMasterRequestProto defaultInstance;
public static FinishApplicationMasterRequestProto getDefaultInstance() {
return defaultInstance;
}
public FinishApplicationMasterRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FinishApplicationMasterRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
diagnostics_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
trackingUrl_ = input.readBytes();
break;
}
case 24: {
int rawValue = input.readEnum();
org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto value = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
finalApplicationStatus_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public FinishApplicationMasterRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FinishApplicationMasterRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string diagnostics = 1;
public static final int DIAGNOSTICS_FIELD_NUMBER = 1;
private java.lang.Object diagnostics_;
/**
* optional string diagnostics = 1;
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* 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 {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
diagnostics_ = s;
}
return s;
}
}
/**
* optional string diagnostics = 1;
*/
public com.google.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string tracking_url = 2;
public static final int TRACKING_URL_FIELD_NUMBER = 2;
private java.lang.Object trackingUrl_;
/**
* optional string tracking_url = 2;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* 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 {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
trackingUrl_ = s;
}
return s;
}
}
/**
* optional string tracking_url = 2;
*/
public com.google.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
public static final int FINAL_APPLICATION_STATUS_FIELD_NUMBER = 3;
private org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto finalApplicationStatus_;
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public boolean hasFinalApplicationStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() {
return finalApplicationStatus_;
}
private void initFields() {
diagnostics_ = "";
trackingUrl_ = "";
finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getDiagnosticsBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTrackingUrlBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, finalApplicationStatus_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getDiagnosticsBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTrackingUrlBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, finalApplicationStatus_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto) obj;
boolean result = true;
result = result && (hasDiagnostics() == other.hasDiagnostics());
if (hasDiagnostics()) {
result = result && getDiagnostics()
.equals(other.getDiagnostics());
}
result = result && (hasTrackingUrl() == other.hasTrackingUrl());
if (hasTrackingUrl()) {
result = result && getTrackingUrl()
.equals(other.getTrackingUrl());
}
result = result && (hasFinalApplicationStatus() == other.hasFinalApplicationStatus());
if (hasFinalApplicationStatus()) {
result = result &&
(getFinalApplicationStatus() == other.getFinalApplicationStatus());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (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) + hashEnum(getFinalApplicationStatus());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.FinishApplicationMasterRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
diagnostics_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
trackingUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.diagnostics_ = diagnostics_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.trackingUrl_ = trackingUrl_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.finalApplicationStatus_ = finalApplicationStatus_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string diagnostics = 1;
private java.lang.Object diagnostics_ = "";
/**
* optional string diagnostics = 1;
*/
public boolean hasDiagnostics() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string diagnostics = 1;
*/
public java.lang.String getDiagnostics() {
java.lang.Object ref = diagnostics_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
diagnostics_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string diagnostics = 1;
*/
public com.google.protobuf.ByteString
getDiagnosticsBytes() {
java.lang.Object ref = diagnostics_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
diagnostics_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string diagnostics = 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(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
diagnostics_ = value;
onChanged();
return this;
}
// optional string tracking_url = 2;
private java.lang.Object trackingUrl_ = "";
/**
* optional string tracking_url = 2;
*/
public boolean hasTrackingUrl() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string tracking_url = 2;
*/
public java.lang.String getTrackingUrl() {
java.lang.Object ref = trackingUrl_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
trackingUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string tracking_url = 2;
*/
public com.google.protobuf.ByteString
getTrackingUrlBytes() {
java.lang.Object ref = trackingUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
trackingUrl_ = b;
return b;
} else {
return (com.google.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(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
trackingUrl_ = value;
onChanged();
return this;
}
// optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
private org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED;
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public boolean hasFinalApplicationStatus() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto getFinalApplicationStatus() {
return finalApplicationStatus_;
}
/**
* 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;
onChanged();
return this;
}
/**
* optional .hadoop.yarn.FinalApplicationStatusProto final_application_status = 3;
*/
public Builder clearFinalApplicationStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
finalApplicationStatus_ = org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto.APP_UNDEFINED;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.FinishApplicationMasterRequestProto)
}
static {
defaultInstance = new FinishApplicationMasterRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.FinishApplicationMasterRequestProto)
}
public interface FinishApplicationMasterResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool isUnregistered = 1 [default = false];
/**
* 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
com.google.protobuf.GeneratedMessage
implements FinishApplicationMasterResponseProtoOrBuilder {
// Use FinishApplicationMasterResponseProto.newBuilder() to construct.
private FinishApplicationMasterResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private FinishApplicationMasterResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final FinishApplicationMasterResponseProto defaultInstance;
public static FinishApplicationMasterResponseProto getDefaultInstance() {
return defaultInstance;
}
public FinishApplicationMasterResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FinishApplicationMasterResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
isUnregistered_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public FinishApplicationMasterResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FinishApplicationMasterResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool isUnregistered = 1 [default = false];
public static final int ISUNREGISTERED_FIELD_NUMBER = 1;
private boolean isUnregistered_;
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean hasIsUnregistered() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean getIsUnregistered() {
return isUnregistered_;
}
private void initFields() {
isUnregistered_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, isUnregistered_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isUnregistered_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto) obj;
boolean result = true;
result = result && (hasIsUnregistered() == other.hasIsUnregistered());
if (hasIsUnregistered()) {
result = result && (getIsUnregistered()
== other.getIsUnregistered());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasIsUnregistered()) {
hash = (37 * hash) + ISUNREGISTERED_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIsUnregistered());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.FinishApplicationMasterResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
isUnregistered_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_FinishApplicationMasterResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.isUnregistered_ = isUnregistered_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.FinishApplicationMasterResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool isUnregistered = 1 [default = false];
private boolean isUnregistered_ ;
/**
* optional bool isUnregistered = 1 [default = false];
*/
public boolean hasIsUnregistered() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* 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;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.FinishApplicationMasterResponseProto)
}
static {
defaultInstance = new FinishApplicationMasterResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.FinishApplicationMasterResponseProto)
}
public interface AllocateRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hadoop.yarn.ResourceRequestProto ask = 1;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder>
getAskOrBuilderList();
/**
* repeated .hadoop.yarn.ResourceRequestProto ask = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder getAskOrBuilder(
int index);
// repeated .hadoop.yarn.ContainerIdProto release = 2;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getReleaseOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerIdProto release = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getReleaseOrBuilder(
int index);
// optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
/**
* 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;
/**
* optional int32 response_id = 4;
*/
boolean hasResponseId();
/**
* optional int32 response_id = 4;
*/
int getResponseId();
// optional float progress = 5;
/**
* optional float progress = 5;
*/
boolean hasProgress();
/**
* optional float progress = 5;
*/
float getProgress();
// repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
java.util.List
getIncreaseRequestList();
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto getIncreaseRequest(int index);
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
int getIncreaseRequestCount();
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder>
getIncreaseRequestOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder getIncreaseRequestOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.AllocateRequestProto}
*/
public static final class AllocateRequestProto extends
com.google.protobuf.GeneratedMessage
implements AllocateRequestProtoOrBuilder {
// Use AllocateRequestProto.newBuilder() to construct.
private AllocateRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AllocateRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AllocateRequestProto defaultInstance;
public static AllocateRequestProto getDefaultInstance() {
return defaultInstance;
}
public AllocateRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AllocateRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
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) == 0x00000002)) {
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) == 0x00000001)) {
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 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
increaseRequest_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
increaseRequest_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
ask_ = java.util.Collections.unmodifiableList(ask_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
release_ = java.util.Collections.unmodifiableList(release_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
increaseRequest_ = java.util.Collections.unmodifiableList(increaseRequest_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AllocateRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AllocateRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated .hadoop.yarn.ResourceRequestProto ask = 1;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder>
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);
}
// repeated .hadoop.yarn.ContainerIdProto release = 2;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
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);
}
// optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
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) == 0x00000001);
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto getBlacklistRequest() {
return blacklistRequest_;
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder getBlacklistRequestOrBuilder() {
return blacklistRequest_;
}
// optional int32 response_id = 4;
public static final int RESPONSE_ID_FIELD_NUMBER = 4;
private int responseId_;
/**
* optional int32 response_id = 4;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 response_id = 4;
*/
public int getResponseId() {
return responseId_;
}
// optional float progress = 5;
public static final int PROGRESS_FIELD_NUMBER = 5;
private float progress_;
/**
* optional float progress = 5;
*/
public boolean hasProgress() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional float progress = 5;
*/
public float getProgress() {
return progress_;
}
// repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
public static final int INCREASE_REQUEST_FIELD_NUMBER = 6;
private java.util.List increaseRequest_;
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public java.util.List getIncreaseRequestList() {
return increaseRequest_;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder>
getIncreaseRequestOrBuilderList() {
return increaseRequest_;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public int getIncreaseRequestCount() {
return increaseRequest_.size();
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto getIncreaseRequest(int index) {
return increaseRequest_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder getIncreaseRequestOrBuilder(
int index) {
return increaseRequest_.get(index);
}
private void initFields() {
ask_ = java.util.Collections.emptyList();
release_ = java.util.Collections.emptyList();
blacklistRequest_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance();
responseId_ = 0;
progress_ = 0F;
increaseRequest_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < 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) == 0x00000001)) {
output.writeMessage(3, blacklistRequest_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(4, responseId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFloat(5, progress_);
}
for (int i = 0; i < increaseRequest_.size(); i++) {
output.writeMessage(6, increaseRequest_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < ask_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, ask_.get(i));
}
for (int i = 0; i < release_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, release_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, blacklistRequest_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, responseId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, progress_);
}
for (int i = 0; i < increaseRequest_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, increaseRequest_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto) obj;
boolean result = true;
result = result && getAskList()
.equals(other.getAskList());
result = result && getReleaseList()
.equals(other.getReleaseList());
result = result && (hasBlacklistRequest() == other.hasBlacklistRequest());
if (hasBlacklistRequest()) {
result = result && getBlacklistRequest()
.equals(other.getBlacklistRequest());
}
result = result && (hasResponseId() == other.hasResponseId());
if (hasResponseId()) {
result = result && (getResponseId()
== other.getResponseId());
}
result = result && (hasProgress() == other.hasProgress());
if (hasProgress()) {
result = result && (Float.floatToIntBits(getProgress()) == Float.floatToIntBits(other.getProgress()));
}
result = result && getIncreaseRequestList()
.equals(other.getIncreaseRequestList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (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) + Float.floatToIntBits(
getProgress());
}
if (getIncreaseRequestCount() > 0) {
hash = (37 * hash) + INCREASE_REQUEST_FIELD_NUMBER;
hash = (53 * hash) + getIncreaseRequestList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.AllocateRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAskFieldBuilder();
getReleaseFieldBuilder();
getBlacklistRequestFieldBuilder();
getIncreaseRequestFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance();
} else {
blacklistRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
responseId_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
progress_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
if (increaseRequestBuilder_ == null) {
increaseRequest_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
increaseRequestBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
ask_ = java.util.Collections.unmodifiableList(ask_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ask_ = ask_;
} else {
result.ask_ = askBuilder_.build();
}
if (releaseBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
release_ = java.util.Collections.unmodifiableList(release_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.release_ = release_;
} else {
result.release_ = releaseBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000001;
}
if (blacklistRequestBuilder_ == null) {
result.blacklistRequest_ = blacklistRequest_;
} else {
result.blacklistRequest_ = blacklistRequestBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
result.responseId_ = responseId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.progress_ = progress_;
if (increaseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
increaseRequest_ = java.util.Collections.unmodifiableList(increaseRequest_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.increaseRequest_ = increaseRequest_;
} else {
result.increaseRequest_ = increaseRequestBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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_ =
com.google.protobuf.GeneratedMessage.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_ =
com.google.protobuf.GeneratedMessage.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 (increaseRequestBuilder_ == null) {
if (!other.increaseRequest_.isEmpty()) {
if (increaseRequest_.isEmpty()) {
increaseRequest_ = other.increaseRequest_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureIncreaseRequestIsMutable();
increaseRequest_.addAll(other.increaseRequest_);
}
onChanged();
}
} else {
if (!other.increaseRequest_.isEmpty()) {
if (increaseRequestBuilder_.isEmpty()) {
increaseRequestBuilder_.dispose();
increaseRequestBuilder_ = null;
increaseRequest_ = other.increaseRequest_;
bitField0_ = (bitField0_ & ~0x00000020);
increaseRequestBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIncreaseRequestFieldBuilder() : null;
} else {
increaseRequestBuilder_.addAllMessages(other.increaseRequest_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hadoop.yarn.ResourceRequestProto ask = 1;
private java.util.List ask_ =
java.util.Collections.emptyList();
private void ensureAskIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
ask_ = new java.util.ArrayList(ask_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto> values) {
if (askBuilder_ == null) {
ensureAskIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
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 com.google.protobuf.RepeatedFieldBuilder<
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) == 0x00000001),
getParentForChildren(),
isClean());
ask_ = null;
}
return askBuilder_;
}
// repeated .hadoop.yarn.ContainerIdProto release = 2;
private java.util.List release_ =
java.util.Collections.emptyList();
private void ensureReleaseIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
release_ = new java.util.ArrayList(release_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto> values) {
if (releaseBuilder_ == null) {
ensureReleaseIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getReleaseFieldBuilder() {
if (releaseBuilder_ == null) {
releaseBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
release_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
release_ = null;
}
return releaseBuilder_;
}
// optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto blacklistRequest_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
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) == 0x00000004);
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto getBlacklistRequest() {
if (blacklistRequestBuilder_ == null) {
return 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) == 0x00000004) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.ResourceBlacklistRequestProto blacklist_request = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
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 com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceBlacklistRequestProtoOrBuilder>(
blacklistRequest_,
getParentForChildren(),
isClean());
blacklistRequest_ = null;
}
return blacklistRequestBuilder_;
}
// optional int32 response_id = 4;
private int responseId_ ;
/**
* optional int32 response_id = 4;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* 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;
}
// optional float progress = 5;
private float progress_ ;
/**
* optional float progress = 5;
*/
public boolean hasProgress() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* 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;
}
// repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
private java.util.List increaseRequest_ =
java.util.Collections.emptyList();
private void ensureIncreaseRequestIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
increaseRequest_ = new java.util.ArrayList(increaseRequest_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder> increaseRequestBuilder_;
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public java.util.List getIncreaseRequestList() {
if (increaseRequestBuilder_ == null) {
return java.util.Collections.unmodifiableList(increaseRequest_);
} else {
return increaseRequestBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public int getIncreaseRequestCount() {
if (increaseRequestBuilder_ == null) {
return increaseRequest_.size();
} else {
return increaseRequestBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto getIncreaseRequest(int index) {
if (increaseRequestBuilder_ == null) {
return increaseRequest_.get(index);
} else {
return increaseRequestBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder setIncreaseRequest(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto value) {
if (increaseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncreaseRequestIsMutable();
increaseRequest_.set(index, value);
onChanged();
} else {
increaseRequestBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder setIncreaseRequest(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder builderForValue) {
if (increaseRequestBuilder_ == null) {
ensureIncreaseRequestIsMutable();
increaseRequest_.set(index, builderForValue.build());
onChanged();
} else {
increaseRequestBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder addIncreaseRequest(org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto value) {
if (increaseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncreaseRequestIsMutable();
increaseRequest_.add(value);
onChanged();
} else {
increaseRequestBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder addIncreaseRequest(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto value) {
if (increaseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncreaseRequestIsMutable();
increaseRequest_.add(index, value);
onChanged();
} else {
increaseRequestBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder addIncreaseRequest(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder builderForValue) {
if (increaseRequestBuilder_ == null) {
ensureIncreaseRequestIsMutable();
increaseRequest_.add(builderForValue.build());
onChanged();
} else {
increaseRequestBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder addIncreaseRequest(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder builderForValue) {
if (increaseRequestBuilder_ == null) {
ensureIncreaseRequestIsMutable();
increaseRequest_.add(index, builderForValue.build());
onChanged();
} else {
increaseRequestBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder addAllIncreaseRequest(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto> values) {
if (increaseRequestBuilder_ == null) {
ensureIncreaseRequestIsMutable();
super.addAll(values, increaseRequest_);
onChanged();
} else {
increaseRequestBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder clearIncreaseRequest() {
if (increaseRequestBuilder_ == null) {
increaseRequest_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
increaseRequestBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public Builder removeIncreaseRequest(int index) {
if (increaseRequestBuilder_ == null) {
ensureIncreaseRequestIsMutable();
increaseRequest_.remove(index);
onChanged();
} else {
increaseRequestBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder getIncreaseRequestBuilder(
int index) {
return getIncreaseRequestFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder getIncreaseRequestOrBuilder(
int index) {
if (increaseRequestBuilder_ == null) {
return increaseRequest_.get(index); } else {
return increaseRequestBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder>
getIncreaseRequestOrBuilderList() {
if (increaseRequestBuilder_ != null) {
return increaseRequestBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(increaseRequest_);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder addIncreaseRequestBuilder() {
return getIncreaseRequestFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder addIncreaseRequestBuilder(
int index) {
return getIncreaseRequestFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseRequestProto increase_request = 6;
*/
public java.util.List
getIncreaseRequestBuilderList() {
return getIncreaseRequestFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder>
getIncreaseRequestFieldBuilder() {
if (increaseRequestBuilder_ == null) {
increaseRequestBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseRequestProtoOrBuilder>(
increaseRequest_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
increaseRequest_ = null;
}
return increaseRequestBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.AllocateRequestProto)
}
static {
defaultInstance = new AllocateRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.AllocateRequestProto)
}
public interface NMTokenProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.NodeIdProto nodeId = 1;
/**
* 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;
/**
* 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
com.google.protobuf.GeneratedMessage
implements NMTokenProtoOrBuilder {
// Use NMTokenProto.newBuilder() to construct.
private NMTokenProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NMTokenProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NMTokenProto defaultInstance;
public static NMTokenProto getDefaultInstance() {
return defaultInstance;
}
public NMTokenProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NMTokenProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = nodeId_.toBuilder();
}
nodeId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeId_);
nodeId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NMTokenProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NMTokenProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.NodeIdProto nodeId = 1;
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) == 0x00000001);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_;
}
// optional .hadoop.common.TokenProto token = 2;
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) == 0x00000002);
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
return token_;
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getTokenOrBuilder() {
return token_;
}
private void initFields() {
nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasToken()) {
if (!getToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, nodeId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, token_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, nodeId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, token_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto) obj;
boolean result = true;
result = result && (hasNodeId() == other.hasNodeId());
if (hasNodeId()) {
result = result && getNodeId()
.equals(other.getNodeId());
}
result = result && (hasToken() == other.hasToken());
if (hasToken()) {
result = result && getToken()
.equals(other.getToken());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasNodeId()) {
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
}
if (hasToken()) {
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.NMTokenProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNodeIdFieldBuilder();
getTokenFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (nodeIdBuilder_ == null) {
nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (tokenBuilder_ == null) {
token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
} else {
tokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_NMTokenProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (nodeIdBuilder_ == null) {
result.nodeId_ = nodeId_;
} else {
result.nodeId_ = nodeIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (tokenBuilder_ == null) {
result.token_ = token_;
} else {
result.token_ = tokenBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasToken()) {
if (!getToken().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.NodeIdProto nodeId = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder> nodeIdBuilder_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return 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) == 0x00000001) &&
nodeId_ != org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance()) {
nodeId_ =
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.newBuilder(nodeId_).mergeFrom(value).buildPartial();
} else {
nodeId_ = value;
}
onChanged();
} else {
nodeIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
public Builder clearNodeId() {
if (nodeIdBuilder_ == null) {
nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
onChanged();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto 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_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>
getNodeIdFieldBuilder() {
if (nodeIdBuilder_ == null) {
nodeIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder>(
nodeId_,
getParentForChildren(),
isClean());
nodeId_ = null;
}
return nodeIdBuilder_;
}
// optional .hadoop.common.TokenProto token = 2;
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto token_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> tokenBuilder_;
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public boolean hasToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getToken() {
if (tokenBuilder_ == null) {
return 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) == 0x00000002) &&
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_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.common.TokenProto token = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getTokenFieldBuilder() {
if (tokenBuilder_ == null) {
tokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
token_,
getParentForChildren(),
isClean());
token_ = null;
}
return tokenBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.NMTokenProto)
}
static {
defaultInstance = new NMTokenProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.NMTokenProto)
}
public interface AllocateResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.AMCommandProto a_m_command = 1;
/**
* 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;
/**
* optional int32 response_id = 2;
*/
boolean hasResponseId();
/**
* optional int32 response_id = 2;
*/
int getResponseId();
// repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
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;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder>
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;
/**
* 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;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
getUpdatedNodesOrBuilderList();
/**
* repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getUpdatedNodesOrBuilder(
int index);
// optional int32 num_cluster_nodes = 7;
/**
* optional int32 num_cluster_nodes = 7;
*/
boolean hasNumClusterNodes();
/**
* optional int32 num_cluster_nodes = 7;
*/
int getNumClusterNodes();
// optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
/**
* 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;
/**
* 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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
getNmTokensOrBuilderList();
/**
* repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder getNmTokensOrBuilder(
int index);
// repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
java.util.List
getIncreasedContainersList();
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto getIncreasedContainers(int index);
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
int getIncreasedContainersCount();
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder>
getIncreasedContainersOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder getIncreasedContainersOrBuilder(
int index);
// repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
java.util.List
getDecreasedContainersList();
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto getDecreasedContainers(int index);
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
int getDecreasedContainersCount();
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder>
getDecreasedContainersOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder getDecreasedContainersOrBuilder(
int index);
// optional .hadoop.common.TokenProto am_rm_token = 12;
/**
* 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();
}
/**
* Protobuf type {@code hadoop.yarn.AllocateResponseProto}
*/
public static final class AllocateResponseProto extends
com.google.protobuf.GeneratedMessage
implements AllocateResponseProtoOrBuilder {
// Use AllocateResponseProto.newBuilder() to construct.
private AllocateResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private AllocateResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final AllocateResponseProto defaultInstance;
public static AllocateResponseProto getDefaultInstance() {
return defaultInstance;
}
public AllocateResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AllocateResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
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_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
responseId_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
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) == 0x00000008)) {
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) == 0x00000004)) {
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) == 0x00000020)) {
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) == 0x00000010)) {
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) == 0x00000100)) {
nmTokens_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
nmTokens_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto.PARSER, extensionRegistry));
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
increasedContainers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
increasedContainers_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.PARSER, extensionRegistry));
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
decreasedContainers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
decreasedContainers_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.PARSER, extensionRegistry));
break;
}
case 98: {
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
allocatedContainers_ = java.util.Collections.unmodifiableList(allocatedContainers_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
completedContainerStatuses_ = java.util.Collections.unmodifiableList(completedContainerStatuses_);
}
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
updatedNodes_ = java.util.Collections.unmodifiableList(updatedNodes_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
nmTokens_ = java.util.Collections.unmodifiableList(nmTokens_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
increasedContainers_ = java.util.Collections.unmodifiableList(increasedContainers_);
}
if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
decreasedContainers_ = java.util.Collections.unmodifiableList(decreasedContainers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public AllocateResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AllocateResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.AMCommandProto a_m_command = 1;
public static final int A_M_COMMAND_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto aMCommand_;
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public boolean hasAMCommand() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto getAMCommand() {
return aMCommand_;
}
// optional int32 response_id = 2;
public static final int RESPONSE_ID_FIELD_NUMBER = 2;
private int responseId_;
/**
* optional int32 response_id = 2;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 response_id = 2;
*/
public int getResponseId() {
return responseId_;
}
// repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
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);
}
// repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder>
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);
}
// optional .hadoop.yarn.ResourceProto limit = 5;
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) == 0x00000004);
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getLimit() {
return limit_;
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getLimitOrBuilder() {
return limit_;
}
// repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
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 extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
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);
}
// optional int32 num_cluster_nodes = 7;
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) == 0x00000008);
}
/**
* optional int32 num_cluster_nodes = 7;
*/
public int getNumClusterNodes() {
return numClusterNodes_;
}
// optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
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) == 0x00000010);
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto getPreempt() {
return preempt_;
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder getPreemptOrBuilder() {
return preempt_;
}
// repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
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);
}
// repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
public static final int INCREASED_CONTAINERS_FIELD_NUMBER = 10;
private java.util.List increasedContainers_;
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public java.util.List getIncreasedContainersList() {
return increasedContainers_;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder>
getIncreasedContainersOrBuilderList() {
return increasedContainers_;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public int getIncreasedContainersCount() {
return increasedContainers_.size();
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto getIncreasedContainers(int index) {
return increasedContainers_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder getIncreasedContainersOrBuilder(
int index) {
return increasedContainers_.get(index);
}
// repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
public static final int DECREASED_CONTAINERS_FIELD_NUMBER = 11;
private java.util.List decreasedContainers_;
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public java.util.List getDecreasedContainersList() {
return decreasedContainers_;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder>
getDecreasedContainersOrBuilderList() {
return decreasedContainers_;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public int getDecreasedContainersCount() {
return decreasedContainers_.size();
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto getDecreasedContainers(int index) {
return decreasedContainers_.get(index);
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder getDecreasedContainersOrBuilder(
int index) {
return decreasedContainers_.get(index);
}
// optional .hadoop.common.TokenProto am_rm_token = 12;
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) == 0x00000020);
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken() {
return amRmToken_;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getAmRmTokenOrBuilder() {
return amRmToken_;
}
private void initFields() {
aMCommand_ = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.AM_RESYNC;
responseId_ = 0;
allocatedContainers_ = java.util.Collections.emptyList();
completedContainerStatuses_ = java.util.Collections.emptyList();
limit_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
updatedNodes_ = java.util.Collections.emptyList();
numClusterNodes_ = 0;
preempt_ = org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance();
nmTokens_ = java.util.Collections.emptyList();
increasedContainers_ = java.util.Collections.emptyList();
decreasedContainers_ = java.util.Collections.emptyList();
amRmToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getAllocatedContainersCount(); i++) {
if (!getAllocatedContainers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getNmTokensCount(); i++) {
if (!getNmTokens(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getIncreasedContainersCount(); i++) {
if (!getIncreasedContainers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAmRmToken()) {
if (!getAmRmToken().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, aMCommand_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
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) == 0x00000004)) {
output.writeMessage(5, limit_);
}
for (int i = 0; i < updatedNodes_.size(); i++) {
output.writeMessage(6, updatedNodes_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(7, numClusterNodes_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(8, preempt_);
}
for (int i = 0; i < nmTokens_.size(); i++) {
output.writeMessage(9, nmTokens_.get(i));
}
for (int i = 0; i < increasedContainers_.size(); i++) {
output.writeMessage(10, increasedContainers_.get(i));
}
for (int i = 0; i < decreasedContainers_.size(); i++) {
output.writeMessage(11, decreasedContainers_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(12, amRmToken_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, aMCommand_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, responseId_);
}
for (int i = 0; i < allocatedContainers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, allocatedContainers_.get(i));
}
for (int i = 0; i < completedContainerStatuses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, completedContainerStatuses_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, limit_);
}
for (int i = 0; i < updatedNodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, updatedNodes_.get(i));
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, numClusterNodes_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, preempt_);
}
for (int i = 0; i < nmTokens_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, nmTokens_.get(i));
}
for (int i = 0; i < increasedContainers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, increasedContainers_.get(i));
}
for (int i = 0; i < decreasedContainers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, decreasedContainers_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, amRmToken_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto) obj;
boolean result = true;
result = result && (hasAMCommand() == other.hasAMCommand());
if (hasAMCommand()) {
result = result &&
(getAMCommand() == other.getAMCommand());
}
result = result && (hasResponseId() == other.hasResponseId());
if (hasResponseId()) {
result = result && (getResponseId()
== other.getResponseId());
}
result = result && getAllocatedContainersList()
.equals(other.getAllocatedContainersList());
result = result && getCompletedContainerStatusesList()
.equals(other.getCompletedContainerStatusesList());
result = result && (hasLimit() == other.hasLimit());
if (hasLimit()) {
result = result && getLimit()
.equals(other.getLimit());
}
result = result && getUpdatedNodesList()
.equals(other.getUpdatedNodesList());
result = result && (hasNumClusterNodes() == other.hasNumClusterNodes());
if (hasNumClusterNodes()) {
result = result && (getNumClusterNodes()
== other.getNumClusterNodes());
}
result = result && (hasPreempt() == other.hasPreempt());
if (hasPreempt()) {
result = result && getPreempt()
.equals(other.getPreempt());
}
result = result && getNmTokensList()
.equals(other.getNmTokensList());
result = result && getIncreasedContainersList()
.equals(other.getIncreasedContainersList());
result = result && getDecreasedContainersList()
.equals(other.getDecreasedContainersList());
result = result && (hasAmRmToken() == other.hasAmRmToken());
if (hasAmRmToken()) {
result = result && getAmRmToken()
.equals(other.getAmRmToken());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasAMCommand()) {
hash = (37 * hash) + A_M_COMMAND_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getAMCommand());
}
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 (getIncreasedContainersCount() > 0) {
hash = (37 * hash) + INCREASED_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getIncreasedContainersList().hashCode();
}
if (getDecreasedContainersCount() > 0) {
hash = (37 * hash) + DECREASED_CONTAINERS_FIELD_NUMBER;
hash = (53 * hash) + getDecreasedContainersList().hashCode();
}
if (hasAmRmToken()) {
hash = (37 * hash) + AM_RM_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getAmRmToken().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.AllocateResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAllocatedContainersFieldBuilder();
getCompletedContainerStatusesFieldBuilder();
getLimitFieldBuilder();
getUpdatedNodesFieldBuilder();
getPreemptFieldBuilder();
getNmTokensFieldBuilder();
getIncreasedContainersFieldBuilder();
getDecreasedContainersFieldBuilder();
getAmRmTokenFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
aMCommand_ = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.AM_RESYNC;
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
} 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_ = org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance();
} else {
preemptBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
if (nmTokensBuilder_ == null) {
nmTokens_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
nmTokensBuilder_.clear();
}
if (increasedContainersBuilder_ == null) {
increasedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
increasedContainersBuilder_.clear();
}
if (decreasedContainersBuilder_ == null) {
decreasedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
decreasedContainersBuilder_.clear();
}
if (amRmTokenBuilder_ == null) {
amRmToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
} else {
amRmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_AllocateResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.aMCommand_ = aMCommand_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.responseId_ = responseId_;
if (allocatedContainersBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
allocatedContainers_ = java.util.Collections.unmodifiableList(allocatedContainers_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.allocatedContainers_ = allocatedContainers_;
} else {
result.allocatedContainers_ = allocatedContainersBuilder_.build();
}
if (completedContainerStatusesBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
completedContainerStatuses_ = java.util.Collections.unmodifiableList(completedContainerStatuses_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.completedContainerStatuses_ = completedContainerStatuses_;
} else {
result.completedContainerStatuses_ = completedContainerStatusesBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
if (limitBuilder_ == null) {
result.limit_ = limit_;
} else {
result.limit_ = limitBuilder_.build();
}
if (updatedNodesBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
updatedNodes_ = java.util.Collections.unmodifiableList(updatedNodes_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.updatedNodes_ = updatedNodes_;
} else {
result.updatedNodes_ = updatedNodesBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000008;
}
result.numClusterNodes_ = numClusterNodes_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000010;
}
if (preemptBuilder_ == null) {
result.preempt_ = preempt_;
} else {
result.preempt_ = preemptBuilder_.build();
}
if (nmTokensBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100)) {
nmTokens_ = java.util.Collections.unmodifiableList(nmTokens_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.nmTokens_ = nmTokens_;
} else {
result.nmTokens_ = nmTokensBuilder_.build();
}
if (increasedContainersBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
increasedContainers_ = java.util.Collections.unmodifiableList(increasedContainers_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.increasedContainers_ = increasedContainers_;
} else {
result.increasedContainers_ = increasedContainersBuilder_.build();
}
if (decreasedContainersBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400)) {
decreasedContainers_ = java.util.Collections.unmodifiableList(decreasedContainers_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.decreasedContainers_ = decreasedContainers_;
} else {
result.decreasedContainers_ = decreasedContainersBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000020;
}
if (amRmTokenBuilder_ == null) {
result.amRmToken_ = amRmToken_;
} else {
result.amRmToken_ = amRmTokenBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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_ =
com.google.protobuf.GeneratedMessage.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_ =
com.google.protobuf.GeneratedMessage.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_ =
com.google.protobuf.GeneratedMessage.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_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNmTokensFieldBuilder() : null;
} else {
nmTokensBuilder_.addAllMessages(other.nmTokens_);
}
}
}
if (increasedContainersBuilder_ == null) {
if (!other.increasedContainers_.isEmpty()) {
if (increasedContainers_.isEmpty()) {
increasedContainers_ = other.increasedContainers_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureIncreasedContainersIsMutable();
increasedContainers_.addAll(other.increasedContainers_);
}
onChanged();
}
} else {
if (!other.increasedContainers_.isEmpty()) {
if (increasedContainersBuilder_.isEmpty()) {
increasedContainersBuilder_.dispose();
increasedContainersBuilder_ = null;
increasedContainers_ = other.increasedContainers_;
bitField0_ = (bitField0_ & ~0x00000200);
increasedContainersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIncreasedContainersFieldBuilder() : null;
} else {
increasedContainersBuilder_.addAllMessages(other.increasedContainers_);
}
}
}
if (decreasedContainersBuilder_ == null) {
if (!other.decreasedContainers_.isEmpty()) {
if (decreasedContainers_.isEmpty()) {
decreasedContainers_ = other.decreasedContainers_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureDecreasedContainersIsMutable();
decreasedContainers_.addAll(other.decreasedContainers_);
}
onChanged();
}
} else {
if (!other.decreasedContainers_.isEmpty()) {
if (decreasedContainersBuilder_.isEmpty()) {
decreasedContainersBuilder_.dispose();
decreasedContainersBuilder_ = null;
decreasedContainers_ = other.decreasedContainers_;
bitField0_ = (bitField0_ & ~0x00000400);
decreasedContainersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getDecreasedContainersFieldBuilder() : null;
} else {
decreasedContainersBuilder_.addAllMessages(other.decreasedContainers_);
}
}
}
if (other.hasAmRmToken()) {
mergeAmRmToken(other.getAmRmToken());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getAllocatedContainersCount(); i++) {
if (!getAllocatedContainers(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getNmTokensCount(); i++) {
if (!getNmTokens(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getIncreasedContainersCount(); i++) {
if (!getIncreasedContainers(i).isInitialized()) {
return false;
}
}
if (hasAmRmToken()) {
if (!getAmRmToken().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.AMCommandProto a_m_command = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto aMCommand_ = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.AM_RESYNC;
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public boolean hasAMCommand() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto getAMCommand() {
return aMCommand_;
}
/**
* 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;
onChanged();
return this;
}
/**
* optional .hadoop.yarn.AMCommandProto a_m_command = 1;
*/
public Builder clearAMCommand() {
bitField0_ = (bitField0_ & ~0x00000001);
aMCommand_ = org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto.AM_RESYNC;
onChanged();
return this;
}
// optional int32 response_id = 2;
private int responseId_ ;
/**
* optional int32 response_id = 2;
*/
public boolean hasResponseId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* 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;
}
// repeated .hadoop.yarn.ContainerProto allocated_containers = 3;
private java.util.List allocatedContainers_ =
java.util.Collections.emptyList();
private void ensureAllocatedContainersIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
allocatedContainers_ = new java.util.ArrayList(allocatedContainers_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder> allocatedContainersBuilder_;
/**
* repeated .hadoop.yarn.ContainerProto allocated_containers = 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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto> values) {
if (allocatedContainersBuilder_ == null) {
ensureAllocatedContainersIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>
getAllocatedContainersFieldBuilder() {
if (allocatedContainersBuilder_ == null) {
allocatedContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder>(
allocatedContainers_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
allocatedContainers_ = null;
}
return allocatedContainersBuilder_;
}
// repeated .hadoop.yarn.ContainerStatusProto completed_container_statuses = 4;
private java.util.List completedContainerStatuses_ =
java.util.Collections.emptyList();
private void ensureCompletedContainerStatusesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
completedContainerStatuses_ = new java.util.ArrayList(completedContainerStatuses_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProto> values) {
if (completedContainerStatusesBuilder_ == null) {
ensureCompletedContainerStatusesIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerStatusProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
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 com.google.protobuf.RepeatedFieldBuilder<
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) == 0x00000008),
getParentForChildren(),
isClean());
completedContainerStatuses_ = null;
}
return completedContainerStatusesBuilder_;
}
// optional .hadoop.yarn.ResourceProto limit = 5;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto limit_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> limitBuilder_;
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public boolean hasLimit() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getLimit() {
if (limitBuilder_ == null) {
return 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) == 0x00000010) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.ResourceProto limit = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getLimitFieldBuilder() {
if (limitBuilder_ == null) {
limitBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
limit_,
getParentForChildren(),
isClean());
limit_ = null;
}
return limitBuilder_;
}
// repeated .hadoop.yarn.NodeReportProto updated_nodes = 6;
private java.util.List updatedNodes_ =
java.util.Collections.emptyList();
private void ensureUpdatedNodesIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
updatedNodes_ = new java.util.ArrayList(updatedNodes_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto> values) {
if (updatedNodesBuilder_ == null) {
ensureUpdatedNodesIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
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 com.google.protobuf.RepeatedFieldBuilder<
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) == 0x00000020),
getParentForChildren(),
isClean());
updatedNodes_ = null;
}
return updatedNodesBuilder_;
}
// optional int32 num_cluster_nodes = 7;
private int numClusterNodes_ ;
/**
* optional int32 num_cluster_nodes = 7;
*/
public boolean hasNumClusterNodes() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* 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;
}
// optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
private org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto preempt_ = org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
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) == 0x00000080);
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto getPreempt() {
if (preemptBuilder_ == null) {
return 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) == 0x00000080) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.PreemptionMessageProto preempt = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
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 com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PreemptionMessageProtoOrBuilder>(
preempt_,
getParentForChildren(),
isClean());
preempt_ = null;
}
return preemptBuilder_;
}
// repeated .hadoop.yarn.NMTokenProto nm_tokens = 9;
private java.util.List nmTokens_ =
java.util.Collections.emptyList();
private void ensureNmTokensIsMutable() {
if (!((bitField0_ & 0x00000100) == 0x00000100)) {
nmTokens_ = new java.util.ArrayList(nmTokens_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto> values) {
if (nmTokensBuilder_ == null) {
ensureNmTokensIsMutable();
super.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 extends org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProtoOrBuilder>
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 com.google.protobuf.RepeatedFieldBuilder<
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 com.google.protobuf.RepeatedFieldBuilder<
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) == 0x00000100),
getParentForChildren(),
isClean());
nmTokens_ = null;
}
return nmTokensBuilder_;
}
// repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
private java.util.List increasedContainers_ =
java.util.Collections.emptyList();
private void ensureIncreasedContainersIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
increasedContainers_ = new java.util.ArrayList(increasedContainers_);
bitField0_ |= 0x00000200;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder> increasedContainersBuilder_;
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public java.util.List getIncreasedContainersList() {
if (increasedContainersBuilder_ == null) {
return java.util.Collections.unmodifiableList(increasedContainers_);
} else {
return increasedContainersBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public int getIncreasedContainersCount() {
if (increasedContainersBuilder_ == null) {
return increasedContainers_.size();
} else {
return increasedContainersBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto getIncreasedContainers(int index) {
if (increasedContainersBuilder_ == null) {
return increasedContainers_.get(index);
} else {
return increasedContainersBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder setIncreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto value) {
if (increasedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncreasedContainersIsMutable();
increasedContainers_.set(index, value);
onChanged();
} else {
increasedContainersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder setIncreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder builderForValue) {
if (increasedContainersBuilder_ == null) {
ensureIncreasedContainersIsMutable();
increasedContainers_.set(index, builderForValue.build());
onChanged();
} else {
increasedContainersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder addIncreasedContainers(org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto value) {
if (increasedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncreasedContainersIsMutable();
increasedContainers_.add(value);
onChanged();
} else {
increasedContainersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder addIncreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto value) {
if (increasedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIncreasedContainersIsMutable();
increasedContainers_.add(index, value);
onChanged();
} else {
increasedContainersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder addIncreasedContainers(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder builderForValue) {
if (increasedContainersBuilder_ == null) {
ensureIncreasedContainersIsMutable();
increasedContainers_.add(builderForValue.build());
onChanged();
} else {
increasedContainersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder addIncreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder builderForValue) {
if (increasedContainersBuilder_ == null) {
ensureIncreasedContainersIsMutable();
increasedContainers_.add(index, builderForValue.build());
onChanged();
} else {
increasedContainersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder addAllIncreasedContainers(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto> values) {
if (increasedContainersBuilder_ == null) {
ensureIncreasedContainersIsMutable();
super.addAll(values, increasedContainers_);
onChanged();
} else {
increasedContainersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder clearIncreasedContainers() {
if (increasedContainersBuilder_ == null) {
increasedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
increasedContainersBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public Builder removeIncreasedContainers(int index) {
if (increasedContainersBuilder_ == null) {
ensureIncreasedContainersIsMutable();
increasedContainers_.remove(index);
onChanged();
} else {
increasedContainersBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder getIncreasedContainersBuilder(
int index) {
return getIncreasedContainersFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder getIncreasedContainersOrBuilder(
int index) {
if (increasedContainersBuilder_ == null) {
return increasedContainers_.get(index); } else {
return increasedContainersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder>
getIncreasedContainersOrBuilderList() {
if (increasedContainersBuilder_ != null) {
return increasedContainersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(increasedContainers_);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder addIncreasedContainersBuilder() {
return getIncreasedContainersFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder addIncreasedContainersBuilder(
int index) {
return getIncreasedContainersFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerResourceIncreaseProto increased_containers = 10;
*/
public java.util.List
getIncreasedContainersBuilderList() {
return getIncreasedContainersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder>
getIncreasedContainersFieldBuilder() {
if (increasedContainersBuilder_ == null) {
increasedContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceIncreaseProtoOrBuilder>(
increasedContainers_,
((bitField0_ & 0x00000200) == 0x00000200),
getParentForChildren(),
isClean());
increasedContainers_ = null;
}
return increasedContainersBuilder_;
}
// repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
private java.util.List decreasedContainers_ =
java.util.Collections.emptyList();
private void ensureDecreasedContainersIsMutable() {
if (!((bitField0_ & 0x00000400) == 0x00000400)) {
decreasedContainers_ = new java.util.ArrayList(decreasedContainers_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder> decreasedContainersBuilder_;
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public java.util.List getDecreasedContainersList() {
if (decreasedContainersBuilder_ == null) {
return java.util.Collections.unmodifiableList(decreasedContainers_);
} else {
return decreasedContainersBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public int getDecreasedContainersCount() {
if (decreasedContainersBuilder_ == null) {
return decreasedContainers_.size();
} else {
return decreasedContainersBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto getDecreasedContainers(int index) {
if (decreasedContainersBuilder_ == null) {
return decreasedContainers_.get(index);
} else {
return decreasedContainersBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder setDecreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto value) {
if (decreasedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDecreasedContainersIsMutable();
decreasedContainers_.set(index, value);
onChanged();
} else {
decreasedContainersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder setDecreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder builderForValue) {
if (decreasedContainersBuilder_ == null) {
ensureDecreasedContainersIsMutable();
decreasedContainers_.set(index, builderForValue.build());
onChanged();
} else {
decreasedContainersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder addDecreasedContainers(org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto value) {
if (decreasedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDecreasedContainersIsMutable();
decreasedContainers_.add(value);
onChanged();
} else {
decreasedContainersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder addDecreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto value) {
if (decreasedContainersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDecreasedContainersIsMutable();
decreasedContainers_.add(index, value);
onChanged();
} else {
decreasedContainersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder addDecreasedContainers(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder builderForValue) {
if (decreasedContainersBuilder_ == null) {
ensureDecreasedContainersIsMutable();
decreasedContainers_.add(builderForValue.build());
onChanged();
} else {
decreasedContainersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder addDecreasedContainers(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder builderForValue) {
if (decreasedContainersBuilder_ == null) {
ensureDecreasedContainersIsMutable();
decreasedContainers_.add(index, builderForValue.build());
onChanged();
} else {
decreasedContainersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder addAllDecreasedContainers(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto> values) {
if (decreasedContainersBuilder_ == null) {
ensureDecreasedContainersIsMutable();
super.addAll(values, decreasedContainers_);
onChanged();
} else {
decreasedContainersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder clearDecreasedContainers() {
if (decreasedContainersBuilder_ == null) {
decreasedContainers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
decreasedContainersBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public Builder removeDecreasedContainers(int index) {
if (decreasedContainersBuilder_ == null) {
ensureDecreasedContainersIsMutable();
decreasedContainers_.remove(index);
onChanged();
} else {
decreasedContainersBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder getDecreasedContainersBuilder(
int index) {
return getDecreasedContainersFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder getDecreasedContainersOrBuilder(
int index) {
if (decreasedContainersBuilder_ == null) {
return decreasedContainers_.get(index); } else {
return decreasedContainersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder>
getDecreasedContainersOrBuilderList() {
if (decreasedContainersBuilder_ != null) {
return decreasedContainersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(decreasedContainers_);
}
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder addDecreasedContainersBuilder() {
return getDecreasedContainersFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder addDecreasedContainersBuilder(
int index) {
return getDecreasedContainersFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
public java.util.List
getDecreasedContainersBuilderList() {
return getDecreasedContainersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder>
getDecreasedContainersFieldBuilder() {
if (decreasedContainersBuilder_ == null) {
decreasedContainersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder>(
decreasedContainers_,
((bitField0_ & 0x00000400) == 0x00000400),
getParentForChildren(),
isClean());
decreasedContainers_ = null;
}
return decreasedContainersBuilder_;
}
// optional .hadoop.common.TokenProto am_rm_token = 12;
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto amRmToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder> amRmTokenBuilder_;
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public boolean hasAmRmToken() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getAmRmToken() {
if (amRmTokenBuilder_ == null) {
return 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_ |= 0x00000800;
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_ |= 0x00000800;
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_ & 0x00000800) == 0x00000800) &&
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_ |= 0x00000800;
return this;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public Builder clearAmRmToken() {
if (amRmTokenBuilder_ == null) {
amRmToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
onChanged();
} else {
amRmTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getAmRmTokenBuilder() {
bitField0_ |= 0x00000800;
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_;
}
}
/**
* optional .hadoop.common.TokenProto am_rm_token = 12;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>
getAmRmTokenFieldBuilder() {
if (amRmTokenBuilder_ == null) {
amRmTokenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.security.proto.SecurityProtos.TokenProto, org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder, org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder>(
amRmToken_,
getParentForChildren(),
isClean());
amRmToken_ = null;
}
return amRmTokenBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.AllocateResponseProto)
}
static {
defaultInstance = new AllocateResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.AllocateResponseProto)
}
public interface GetNewApplicationRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationRequestProto}
*/
public static final class GetNewApplicationRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetNewApplicationRequestProtoOrBuilder {
// Use GetNewApplicationRequestProto.newBuilder() to construct.
private GetNewApplicationRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetNewApplicationRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetNewApplicationRequestProto defaultInstance;
public static GetNewApplicationRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetNewApplicationRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNewApplicationRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetNewApplicationRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNewApplicationRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto) obj;
boolean result = true;
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto.getDefaultInstance();
}
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;
}
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;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetNewApplicationRequestProto)
}
static {
defaultInstance = new GetNewApplicationRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetNewApplicationRequestProto)
}
public interface GetNewApplicationResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
boolean hasApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
// optional .hadoop.yarn.ResourceProto maximumCapability = 2;
/**
* 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
com.google.protobuf.GeneratedMessage
implements GetNewApplicationResponseProtoOrBuilder {
// Use GetNewApplicationResponseProto.newBuilder() to construct.
private GetNewApplicationResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetNewApplicationResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetNewApplicationResponseProto defaultInstance;
public static GetNewApplicationResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetNewApplicationResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNewApplicationResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetNewApplicationResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNewApplicationResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_;
}
// optional .hadoop.yarn.ResourceProto maximumCapability = 2;
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) == 0x00000002);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
return maximumCapability_;
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
return maximumCapability_;
}
private void initFields() {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, maximumCapability_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applicationId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, maximumCapability_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto) obj;
boolean result = true;
result = result && (hasApplicationId() == other.hasApplicationId());
if (hasApplicationId()) {
result = result && getApplicationId()
.equals(other.getApplicationId());
}
result = result && (hasMaximumCapability() == other.hasMaximumCapability());
if (hasMaximumCapability()) {
result = result && getMaximumCapability()
.equals(other.getMaximumCapability());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
if (hasMaximumCapability()) {
hash = (37 * hash) + MAXIMUMCAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getMaximumCapability().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetNewApplicationResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
getMaximumCapabilityFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetNewApplicationResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (maximumCapabilityBuilder_ == null) {
result.maximumCapability_ = maximumCapability_;
} else {
result.maximumCapability_ = maximumCapabilityBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetNewApplicationResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
applicationId_,
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
// optional .hadoop.yarn.ResourceProto maximumCapability = 2;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder> maximumCapabilityBuilder_;
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
return 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) == 0x00000002) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.ResourceProto maximumCapability = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>
getMaximumCapabilityFieldBuilder() {
if (maximumCapabilityBuilder_ == null) {
maximumCapabilityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder>(
maximumCapability_,
getParentForChildren(),
isClean());
maximumCapability_ = null;
}
return maximumCapabilityBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetNewApplicationResponseProto)
}
static {
defaultInstance = new GetNewApplicationResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetNewApplicationResponseProto)
}
public interface GetApplicationReportRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
boolean hasApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportRequestProto}
*/
public static final class GetApplicationReportRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetApplicationReportRequestProtoOrBuilder {
// Use GetApplicationReportRequestProto.newBuilder() to construct.
private GetApplicationReportRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetApplicationReportRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetApplicationReportRequestProto defaultInstance;
public static GetApplicationReportRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetApplicationReportRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApplicationReportRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetApplicationReportRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApplicationReportRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_;
}
private void initFields() {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applicationId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto) obj;
boolean result = true;
result = result && (hasApplicationId() == other.hasApplicationId());
if (hasApplicationId()) {
result = result && getApplicationId()
.equals(other.getApplicationId());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
applicationId_,
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetApplicationReportRequestProto)
}
static {
defaultInstance = new GetApplicationReportRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetApplicationReportRequestProto)
}
public interface GetApplicationReportResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ApplicationReportProto application_report = 1;
/**
* 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
com.google.protobuf.GeneratedMessage
implements GetApplicationReportResponseProtoOrBuilder {
// Use GetApplicationReportResponseProto.newBuilder() to construct.
private GetApplicationReportResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetApplicationReportResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetApplicationReportResponseProto defaultInstance;
public static GetApplicationReportResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetApplicationReportResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApplicationReportResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetApplicationReportResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApplicationReportResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationReportProto application_report = 1;
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) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplicationReport() {
return applicationReport_;
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationReportOrBuilder() {
return applicationReport_;
}
private void initFields() {
applicationReport_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasApplicationReport()) {
if (!getApplicationReport().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationReport_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applicationReport_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto) obj;
boolean result = true;
result = result && (hasApplicationReport() == other.hasApplicationReport());
if (hasApplicationReport()) {
result = result && getApplicationReport()
.equals(other.getApplicationReport());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasApplicationReport()) {
hash = (37 * hash) + APPLICATION_REPORT_FIELD_NUMBER;
hash = (53 * hash) + getApplicationReport().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationReportResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationReportFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationReportBuilder_ == null) {
applicationReport_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance();
} else {
applicationReportBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationReportResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationReportBuilder_ == null) {
result.applicationReport_ = applicationReport_;
} else {
result.applicationReport_ = applicationReportBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasApplicationReport()) {
if (!getApplicationReport().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationReportProto application_report = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto applicationReport_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
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) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplicationReport() {
if (applicationReportBuilder_ == null) {
return 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) == 0x00000001) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.ApplicationReportProto application_report = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
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 com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>(
applicationReport_,
getParentForChildren(),
isClean());
applicationReport_ = null;
}
return applicationReportBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetApplicationReportResponseProto)
}
static {
defaultInstance = new GetApplicationReportResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetApplicationReportResponseProto)
}
public interface SubmitApplicationRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
/**
* 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
com.google.protobuf.GeneratedMessage
implements SubmitApplicationRequestProtoOrBuilder {
// Use SubmitApplicationRequestProto.newBuilder() to construct.
private SubmitApplicationRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubmitApplicationRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubmitApplicationRequestProto defaultInstance;
public static SubmitApplicationRequestProto getDefaultInstance() {
return defaultInstance;
}
public SubmitApplicationRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubmitApplicationRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
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;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubmitApplicationRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubmitApplicationRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
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) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext() {
return applicationSubmissionContext_;
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder getApplicationSubmissionContextOrBuilder() {
return applicationSubmissionContext_;
}
private void initFields() {
applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationSubmissionContext_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applicationSubmissionContext_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto) obj;
boolean result = true;
result = result && (hasApplicationSubmissionContext() == other.hasApplicationSubmissionContext());
if (hasApplicationSubmissionContext()) {
result = result && getApplicationSubmissionContext()
.equals(other.getApplicationSubmissionContext());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasApplicationSubmissionContext()) {
hash = (37 * hash) + APPLICATION_SUBMISSION_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getApplicationSubmissionContext().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationSubmissionContextFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationSubmissionContextBuilder_ == null) {
applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance();
} else {
applicationSubmissionContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationSubmissionContextBuilder_ == null) {
result.applicationSubmissionContext_ = applicationSubmissionContext_;
} else {
result.applicationSubmissionContext_ = applicationSubmissionContextBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto applicationSubmissionContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder> applicationSubmissionContextBuilder_;
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public boolean hasApplicationSubmissionContext() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto getApplicationSubmissionContext() {
if (applicationSubmissionContextBuilder_ == null) {
return applicationSubmissionContext_;
} else {
return applicationSubmissionContextBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 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) == 0x00000001) &&
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_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.getDefaultInstance();
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_;
}
}
/**
* optional .hadoop.yarn.ApplicationSubmissionContextProto application_submission_context = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder>
getApplicationSubmissionContextFieldBuilder() {
if (applicationSubmissionContextBuilder_ == null) {
applicationSubmissionContextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder>(
applicationSubmissionContext_,
getParentForChildren(),
isClean());
applicationSubmissionContext_ = null;
}
return applicationSubmissionContextBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.SubmitApplicationRequestProto)
}
static {
defaultInstance = new SubmitApplicationRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.SubmitApplicationRequestProto)
}
public interface SubmitApplicationResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationResponseProto}
*/
public static final class SubmitApplicationResponseProto extends
com.google.protobuf.GeneratedMessage
implements SubmitApplicationResponseProtoOrBuilder {
// Use SubmitApplicationResponseProto.newBuilder() to construct.
private SubmitApplicationResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SubmitApplicationResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SubmitApplicationResponseProto defaultInstance;
public static SubmitApplicationResponseProto getDefaultInstance() {
return defaultInstance;
}
public SubmitApplicationResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SubmitApplicationResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SubmitApplicationResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SubmitApplicationResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto) obj;
boolean result = true;
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.SubmitApplicationResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_SubmitApplicationResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto.getDefaultInstance();
}
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;
}
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;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.SubmitApplicationResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.SubmitApplicationResponseProto)
}
static {
defaultInstance = new SubmitApplicationResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.SubmitApplicationResponseProto)
}
public interface KillApplicationRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
boolean hasApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationRequestProto}
*/
public static final class KillApplicationRequestProto extends
com.google.protobuf.GeneratedMessage
implements KillApplicationRequestProtoOrBuilder {
// Use KillApplicationRequestProto.newBuilder() to construct.
private KillApplicationRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private KillApplicationRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final KillApplicationRequestProto defaultInstance;
public static KillApplicationRequestProto getDefaultInstance() {
return defaultInstance;
}
public KillApplicationRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KillApplicationRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public KillApplicationRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KillApplicationRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_;
}
private void initFields() {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applicationId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto) obj;
boolean result = true;
result = result && (hasApplicationId() == other.hasApplicationId());
if (hasApplicationId()) {
result = result && getApplicationId()
.equals(other.getApplicationId());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationIdProto application_id = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_;
}
}
/**
* optional .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
applicationId_,
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.KillApplicationRequestProto)
}
static {
defaultInstance = new KillApplicationRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.KillApplicationRequestProto)
}
public interface KillApplicationResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bool is_kill_completed = 1 [default = false];
/**
* 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
com.google.protobuf.GeneratedMessage
implements KillApplicationResponseProtoOrBuilder {
// Use KillApplicationResponseProto.newBuilder() to construct.
private KillApplicationResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private KillApplicationResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final KillApplicationResponseProto defaultInstance;
public static KillApplicationResponseProto getDefaultInstance() {
return defaultInstance;
}
public KillApplicationResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KillApplicationResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
isKillCompleted_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public KillApplicationResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KillApplicationResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bool is_kill_completed = 1 [default = false];
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) == 0x00000001);
}
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public boolean getIsKillCompleted() {
return isKillCompleted_;
}
private void initFields() {
isKillCompleted_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, isKillCompleted_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, isKillCompleted_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto) obj;
boolean result = true;
result = result && (hasIsKillCompleted() == other.hasIsKillCompleted());
if (hasIsKillCompleted()) {
result = result && (getIsKillCompleted()
== other.getIsKillCompleted());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasIsKillCompleted()) {
hash = (37 * hash) + IS_KILL_COMPLETED_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIsKillCompleted());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.KillApplicationResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.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(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
isKillCompleted_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_KillApplicationResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto.getDefaultInstance();
}
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;
}
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) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.isKillCompleted_ = isKillCompleted_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.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.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.KillApplicationResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bool is_kill_completed = 1 [default = false];
private boolean isKillCompleted_ ;
/**
* optional bool is_kill_completed = 1 [default = false];
*/
public boolean hasIsKillCompleted() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* 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;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.KillApplicationResponseProto)
}
static {
defaultInstance = new KillApplicationResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.KillApplicationResponseProto)
}
public interface GetClusterMetricsRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterMetricsRequestProto}
*/
public static final class GetClusterMetricsRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetClusterMetricsRequestProtoOrBuilder {
// Use GetClusterMetricsRequestProto.newBuilder() to construct.
private GetClusterMetricsRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetClusterMetricsRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetClusterMetricsRequestProto defaultInstance;
public static GetClusterMetricsRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetClusterMetricsRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetClusterMetricsRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetClusterMetricsRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetClusterMetricsRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto) obj;
boolean result = true;
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterMetricsRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetClusterMetricsRequestProto)
}
static {
defaultInstance = new GetClusterMetricsRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetClusterMetricsRequestProto)
}
public interface GetClusterMetricsResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
boolean hasClusterMetrics();
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto getClusterMetrics();
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProtoOrBuilder getClusterMetricsOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterMetricsResponseProto}
*/
public static final class GetClusterMetricsResponseProto extends
com.google.protobuf.GeneratedMessage
implements GetClusterMetricsResponseProtoOrBuilder {
// Use GetClusterMetricsResponseProto.newBuilder() to construct.
private GetClusterMetricsResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetClusterMetricsResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetClusterMetricsResponseProto defaultInstance;
public static GetClusterMetricsResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetClusterMetricsResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetClusterMetricsResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = clusterMetrics_.toBuilder();
}
clusterMetrics_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clusterMetrics_);
clusterMetrics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetClusterMetricsResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetClusterMetricsResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
public static final int CLUSTER_METRICS_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto clusterMetrics_;
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public boolean hasClusterMetrics() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto getClusterMetrics() {
return clusterMetrics_;
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProtoOrBuilder getClusterMetricsOrBuilder() {
return clusterMetrics_;
}
private void initFields() {
clusterMetrics_ = org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, clusterMetrics_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, clusterMetrics_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto) obj;
boolean result = true;
result = result && (hasClusterMetrics() == other.hasClusterMetrics());
if (hasClusterMetrics()) {
result = result && getClusterMetrics()
.equals(other.getClusterMetrics());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasClusterMetrics()) {
hash = (37 * hash) + CLUSTER_METRICS_FIELD_NUMBER;
hash = (53 * hash) + getClusterMetrics().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterMetricsResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getClusterMetricsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (clusterMetricsBuilder_ == null) {
clusterMetrics_ = org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.getDefaultInstance();
} else {
clusterMetricsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterMetricsResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (clusterMetricsBuilder_ == null) {
result.clusterMetrics_ = clusterMetrics_;
} else {
result.clusterMetrics_ = clusterMetricsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto.getDefaultInstance()) return this;
if (other.hasClusterMetrics()) {
mergeClusterMetrics(other.getClusterMetrics());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterMetricsResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto clusterMetrics_ = org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto, org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProtoOrBuilder> clusterMetricsBuilder_;
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public boolean hasClusterMetrics() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto getClusterMetrics() {
if (clusterMetricsBuilder_ == null) {
return clusterMetrics_;
} else {
return clusterMetricsBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public Builder setClusterMetrics(org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto value) {
if (clusterMetricsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clusterMetrics_ = value;
onChanged();
} else {
clusterMetricsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public Builder setClusterMetrics(
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.Builder builderForValue) {
if (clusterMetricsBuilder_ == null) {
clusterMetrics_ = builderForValue.build();
onChanged();
} else {
clusterMetricsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public Builder mergeClusterMetrics(org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto value) {
if (clusterMetricsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
clusterMetrics_ != org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.getDefaultInstance()) {
clusterMetrics_ =
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.newBuilder(clusterMetrics_).mergeFrom(value).buildPartial();
} else {
clusterMetrics_ = value;
}
onChanged();
} else {
clusterMetricsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public Builder clearClusterMetrics() {
if (clusterMetricsBuilder_ == null) {
clusterMetrics_ = org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.getDefaultInstance();
onChanged();
} else {
clusterMetricsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.Builder getClusterMetricsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getClusterMetricsFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProtoOrBuilder getClusterMetricsOrBuilder() {
if (clusterMetricsBuilder_ != null) {
return clusterMetricsBuilder_.getMessageOrBuilder();
} else {
return clusterMetrics_;
}
}
/**
* optional .hadoop.yarn.YarnClusterMetricsProto cluster_metrics = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto, org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProtoOrBuilder>
getClusterMetricsFieldBuilder() {
if (clusterMetricsBuilder_ == null) {
clusterMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto, org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.YarnClusterMetricsProtoOrBuilder>(
clusterMetrics_,
getParentForChildren(),
isClean());
clusterMetrics_ = null;
}
return clusterMetricsBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetClusterMetricsResponseProto)
}
static {
defaultInstance = new GetClusterMetricsResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetClusterMetricsResponseProto)
}
public interface MoveApplicationAcrossQueuesRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .hadoop.yarn.ApplicationIdProto application_id = 1;
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
boolean hasApplicationId();
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId();
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
// required string target_queue = 2;
/**
* required string target_queue = 2;
*/
boolean hasTargetQueue();
/**
* required string target_queue = 2;
*/
java.lang.String getTargetQueue();
/**
* required string target_queue = 2;
*/
com.google.protobuf.ByteString
getTargetQueueBytes();
}
/**
* Protobuf type {@code hadoop.yarn.MoveApplicationAcrossQueuesRequestProto}
*/
public static final class MoveApplicationAcrossQueuesRequestProto extends
com.google.protobuf.GeneratedMessage
implements MoveApplicationAcrossQueuesRequestProtoOrBuilder {
// Use MoveApplicationAcrossQueuesRequestProto.newBuilder() to construct.
private MoveApplicationAcrossQueuesRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MoveApplicationAcrossQueuesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MoveApplicationAcrossQueuesRequestProto defaultInstance;
public static MoveApplicationAcrossQueuesRequestProto getDefaultInstance() {
return defaultInstance;
}
public MoveApplicationAcrossQueuesRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MoveApplicationAcrossQueuesRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
targetQueue_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public MoveApplicationAcrossQueuesRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MoveApplicationAcrossQueuesRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .hadoop.yarn.ApplicationIdProto application_id = 1;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_;
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
return applicationId_;
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_;
}
// required string target_queue = 2;
public static final int TARGET_QUEUE_FIELD_NUMBER = 2;
private java.lang.Object targetQueue_;
/**
* required string target_queue = 2;
*/
public boolean hasTargetQueue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string target_queue = 2;
*/
public java.lang.String getTargetQueue() {
java.lang.Object ref = targetQueue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
targetQueue_ = s;
}
return s;
}
}
/**
* required string target_queue = 2;
*/
public com.google.protobuf.ByteString
getTargetQueueBytes() {
java.lang.Object ref = targetQueue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetQueue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
targetQueue_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasApplicationId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasTargetQueue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getTargetQueueBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applicationId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getTargetQueueBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto) obj;
boolean result = true;
result = result && (hasApplicationId() == other.hasApplicationId());
if (hasApplicationId()) {
result = result && getApplicationId()
.equals(other.getApplicationId());
}
result = result && (hasTargetQueue() == other.hasTargetQueue());
if (hasTargetQueue()) {
result = result && getTargetQueue()
.equals(other.getTargetQueue());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (hasApplicationId()) {
hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER;
hash = (53 * hash) + getApplicationId().hashCode();
}
if (hasTargetQueue()) {
hash = (37 * hash) + TARGET_QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getTargetQueue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.MoveApplicationAcrossQueuesRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
targetQueue_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.targetQueue_ = targetQueue_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
if (other.hasTargetQueue()) {
bitField0_ |= 0x00000002;
targetQueue_ = other.targetQueue_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasApplicationId()) {
return false;
}
if (!hasTargetQueue()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .hadoop.yarn.ApplicationIdProto application_id = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* required .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;
}
/**
* required .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;
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
applicationId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.getDefaultInstance();
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_;
}
}
/**
* required .hadoop.yarn.ApplicationIdProto application_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProtoOrBuilder>(
applicationId_,
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
// required string target_queue = 2;
private java.lang.Object targetQueue_ = "";
/**
* required string target_queue = 2;
*/
public boolean hasTargetQueue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string target_queue = 2;
*/
public java.lang.String getTargetQueue() {
java.lang.Object ref = targetQueue_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
targetQueue_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string target_queue = 2;
*/
public com.google.protobuf.ByteString
getTargetQueueBytes() {
java.lang.Object ref = targetQueue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
targetQueue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string target_queue = 2;
*/
public Builder setTargetQueue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
targetQueue_ = value;
onChanged();
return this;
}
/**
* required string target_queue = 2;
*/
public Builder clearTargetQueue() {
bitField0_ = (bitField0_ & ~0x00000002);
targetQueue_ = getDefaultInstance().getTargetQueue();
onChanged();
return this;
}
/**
* required string target_queue = 2;
*/
public Builder setTargetQueueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
targetQueue_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.MoveApplicationAcrossQueuesRequestProto)
}
static {
defaultInstance = new MoveApplicationAcrossQueuesRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.MoveApplicationAcrossQueuesRequestProto)
}
public interface MoveApplicationAcrossQueuesResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.MoveApplicationAcrossQueuesResponseProto}
*/
public static final class MoveApplicationAcrossQueuesResponseProto extends
com.google.protobuf.GeneratedMessage
implements MoveApplicationAcrossQueuesResponseProtoOrBuilder {
// Use MoveApplicationAcrossQueuesResponseProto.newBuilder() to construct.
private MoveApplicationAcrossQueuesResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MoveApplicationAcrossQueuesResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MoveApplicationAcrossQueuesResponseProto defaultInstance;
public static MoveApplicationAcrossQueuesResponseProto getDefaultInstance() {
return defaultInstance;
}
public MoveApplicationAcrossQueuesResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MoveApplicationAcrossQueuesResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public MoveApplicationAcrossQueuesResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MoveApplicationAcrossQueuesResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private void initFields() {
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto) obj;
boolean result = true;
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.MoveApplicationAcrossQueuesResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_MoveApplicationAcrossQueuesResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.MoveApplicationAcrossQueuesResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.MoveApplicationAcrossQueuesResponseProto)
}
static {
defaultInstance = new MoveApplicationAcrossQueuesResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.MoveApplicationAcrossQueuesResponseProto)
}
public interface GetApplicationsRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated string application_types = 1;
/**
* repeated string application_types = 1;
*/
java.util.List
getApplicationTypesList();
/**
* repeated string application_types = 1;
*/
int getApplicationTypesCount();
/**
* repeated string application_types = 1;
*/
java.lang.String getApplicationTypes(int index);
/**
* repeated string application_types = 1;
*/
com.google.protobuf.ByteString
getApplicationTypesBytes(int index);
// repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
java.util.List getApplicationStatesList();
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
int getApplicationStatesCount();
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto getApplicationStates(int index);
// repeated string users = 3;
/**
* repeated string users = 3;
*/
java.util.List
getUsersList();
/**
* repeated string users = 3;
*/
int getUsersCount();
/**
* repeated string users = 3;
*/
java.lang.String getUsers(int index);
/**
* repeated string users = 3;
*/
com.google.protobuf.ByteString
getUsersBytes(int index);
// repeated string queues = 4;
/**
* repeated string queues = 4;
*/
java.util.List
getQueuesList();
/**
* repeated string queues = 4;
*/
int getQueuesCount();
/**
* repeated string queues = 4;
*/
java.lang.String getQueues(int index);
/**
* repeated string queues = 4;
*/
com.google.protobuf.ByteString
getQueuesBytes(int index);
// optional int64 limit = 5;
/**
* optional int64 limit = 5;
*/
boolean hasLimit();
/**
* optional int64 limit = 5;
*/
long getLimit();
// optional int64 start_begin = 6;
/**
* optional int64 start_begin = 6;
*/
boolean hasStartBegin();
/**
* optional int64 start_begin = 6;
*/
long getStartBegin();
// optional int64 start_end = 7;
/**
* optional int64 start_end = 7;
*/
boolean hasStartEnd();
/**
* optional int64 start_end = 7;
*/
long getStartEnd();
// optional int64 finish_begin = 8;
/**
* optional int64 finish_begin = 8;
*/
boolean hasFinishBegin();
/**
* optional int64 finish_begin = 8;
*/
long getFinishBegin();
// optional int64 finish_end = 9;
/**
* optional int64 finish_end = 9;
*/
boolean hasFinishEnd();
/**
* optional int64 finish_end = 9;
*/
long getFinishEnd();
// repeated string applicationTags = 10;
/**
* repeated string applicationTags = 10;
*/
java.util.List
getApplicationTagsList();
/**
* repeated string applicationTags = 10;
*/
int getApplicationTagsCount();
/**
* repeated string applicationTags = 10;
*/
java.lang.String getApplicationTags(int index);
/**
* repeated string applicationTags = 10;
*/
com.google.protobuf.ByteString
getApplicationTagsBytes(int index);
// optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
boolean hasScope();
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto getScope();
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationsRequestProto}
*/
public static final class GetApplicationsRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetApplicationsRequestProtoOrBuilder {
// Use GetApplicationsRequestProto.newBuilder() to construct.
private GetApplicationsRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetApplicationsRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetApplicationsRequestProto defaultInstance;
public static GetApplicationsRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetApplicationsRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApplicationsRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
applicationTypes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
applicationTypes_.add(input.readBytes());
break;
}
case 16: {
int rawValue = input.readEnum();
org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto value = org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
applicationStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
applicationStates_.add(value);
}
break;
}
case 18: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto value = org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
applicationStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
applicationStates_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
users_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
users_.add(input.readBytes());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
queues_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
queues_.add(input.readBytes());
break;
}
case 40: {
bitField0_ |= 0x00000001;
limit_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000002;
startBegin_ = input.readInt64();
break;
}
case 56: {
bitField0_ |= 0x00000004;
startEnd_ = input.readInt64();
break;
}
case 64: {
bitField0_ |= 0x00000008;
finishBegin_ = input.readInt64();
break;
}
case 72: {
bitField0_ |= 0x00000010;
finishEnd_ = input.readInt64();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
applicationTags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
applicationTags_.add(input.readBytes());
break;
}
case 88: {
int rawValue = input.readEnum();
org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto value = org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(11, rawValue);
} else {
bitField0_ |= 0x00000020;
scope_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
applicationTypes_ = new com.google.protobuf.UnmodifiableLazyStringList(applicationTypes_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
applicationStates_ = java.util.Collections.unmodifiableList(applicationStates_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
users_ = new com.google.protobuf.UnmodifiableLazyStringList(users_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
queues_ = new com.google.protobuf.UnmodifiableLazyStringList(queues_);
}
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
applicationTags_ = new com.google.protobuf.UnmodifiableLazyStringList(applicationTags_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetApplicationsRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApplicationsRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated string application_types = 1;
public static final int APPLICATION_TYPES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList applicationTypes_;
/**
* repeated string application_types = 1;
*/
public java.util.List
getApplicationTypesList() {
return applicationTypes_;
}
/**
* repeated string application_types = 1;
*/
public int getApplicationTypesCount() {
return applicationTypes_.size();
}
/**
* repeated string application_types = 1;
*/
public java.lang.String getApplicationTypes(int index) {
return applicationTypes_.get(index);
}
/**
* repeated string application_types = 1;
*/
public com.google.protobuf.ByteString
getApplicationTypesBytes(int index) {
return applicationTypes_.getByteString(index);
}
// repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
public static final int APPLICATION_STATES_FIELD_NUMBER = 2;
private java.util.List applicationStates_;
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public java.util.List getApplicationStatesList() {
return applicationStates_;
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public int getApplicationStatesCount() {
return applicationStates_.size();
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto getApplicationStates(int index) {
return applicationStates_.get(index);
}
// repeated string users = 3;
public static final int USERS_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList users_;
/**
* repeated string users = 3;
*/
public java.util.List
getUsersList() {
return users_;
}
/**
* repeated string users = 3;
*/
public int getUsersCount() {
return users_.size();
}
/**
* repeated string users = 3;
*/
public java.lang.String getUsers(int index) {
return users_.get(index);
}
/**
* repeated string users = 3;
*/
public com.google.protobuf.ByteString
getUsersBytes(int index) {
return users_.getByteString(index);
}
// repeated string queues = 4;
public static final int QUEUES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList queues_;
/**
* repeated string queues = 4;
*/
public java.util.List
getQueuesList() {
return queues_;
}
/**
* repeated string queues = 4;
*/
public int getQueuesCount() {
return queues_.size();
}
/**
* repeated string queues = 4;
*/
public java.lang.String getQueues(int index) {
return queues_.get(index);
}
/**
* repeated string queues = 4;
*/
public com.google.protobuf.ByteString
getQueuesBytes(int index) {
return queues_.getByteString(index);
}
// optional int64 limit = 5;
public static final int LIMIT_FIELD_NUMBER = 5;
private long limit_;
/**
* optional int64 limit = 5;
*/
public boolean hasLimit() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 limit = 5;
*/
public long getLimit() {
return limit_;
}
// optional int64 start_begin = 6;
public static final int START_BEGIN_FIELD_NUMBER = 6;
private long startBegin_;
/**
* optional int64 start_begin = 6;
*/
public boolean hasStartBegin() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 start_begin = 6;
*/
public long getStartBegin() {
return startBegin_;
}
// optional int64 start_end = 7;
public static final int START_END_FIELD_NUMBER = 7;
private long startEnd_;
/**
* optional int64 start_end = 7;
*/
public boolean hasStartEnd() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 start_end = 7;
*/
public long getStartEnd() {
return startEnd_;
}
// optional int64 finish_begin = 8;
public static final int FINISH_BEGIN_FIELD_NUMBER = 8;
private long finishBegin_;
/**
* optional int64 finish_begin = 8;
*/
public boolean hasFinishBegin() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int64 finish_begin = 8;
*/
public long getFinishBegin() {
return finishBegin_;
}
// optional int64 finish_end = 9;
public static final int FINISH_END_FIELD_NUMBER = 9;
private long finishEnd_;
/**
* optional int64 finish_end = 9;
*/
public boolean hasFinishEnd() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 finish_end = 9;
*/
public long getFinishEnd() {
return finishEnd_;
}
// repeated string applicationTags = 10;
public static final int APPLICATIONTAGS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList applicationTags_;
/**
* repeated string applicationTags = 10;
*/
public java.util.List
getApplicationTagsList() {
return applicationTags_;
}
/**
* repeated string applicationTags = 10;
*/
public int getApplicationTagsCount() {
return applicationTags_.size();
}
/**
* repeated string applicationTags = 10;
*/
public java.lang.String getApplicationTags(int index) {
return applicationTags_.get(index);
}
/**
* repeated string applicationTags = 10;
*/
public com.google.protobuf.ByteString
getApplicationTagsBytes(int index) {
return applicationTags_.getByteString(index);
}
// optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
public static final int SCOPE_FIELD_NUMBER = 11;
private org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto scope_;
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto getScope() {
return scope_;
}
private void initFields() {
applicationTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
applicationStates_ = java.util.Collections.emptyList();
users_ = com.google.protobuf.LazyStringArrayList.EMPTY;
queues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
limit_ = 0L;
startBegin_ = 0L;
startEnd_ = 0L;
finishBegin_ = 0L;
finishEnd_ = 0L;
applicationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
scope_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto.ALL;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < applicationTypes_.size(); i++) {
output.writeBytes(1, applicationTypes_.getByteString(i));
}
for (int i = 0; i < applicationStates_.size(); i++) {
output.writeEnum(2, applicationStates_.get(i).getNumber());
}
for (int i = 0; i < users_.size(); i++) {
output.writeBytes(3, users_.getByteString(i));
}
for (int i = 0; i < queues_.size(); i++) {
output.writeBytes(4, queues_.getByteString(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(5, limit_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(6, startBegin_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(7, startEnd_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt64(8, finishBegin_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(9, finishEnd_);
}
for (int i = 0; i < applicationTags_.size(); i++) {
output.writeBytes(10, applicationTags_.getByteString(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeEnum(11, scope_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < applicationTypes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(applicationTypes_.getByteString(i));
}
size += dataSize;
size += 1 * getApplicationTypesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < applicationStates_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(applicationStates_.get(i).getNumber());
}
size += dataSize;
size += 1 * applicationStates_.size();
}
{
int dataSize = 0;
for (int i = 0; i < users_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(users_.getByteString(i));
}
size += dataSize;
size += 1 * getUsersList().size();
}
{
int dataSize = 0;
for (int i = 0; i < queues_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(queues_.getByteString(i));
}
size += dataSize;
size += 1 * getQueuesList().size();
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, limit_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(6, startBegin_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, startEnd_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, finishBegin_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, finishEnd_);
}
{
int dataSize = 0;
for (int i = 0; i < applicationTags_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(applicationTags_.getByteString(i));
}
size += dataSize;
size += 1 * getApplicationTagsList().size();
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, scope_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto) obj;
boolean result = true;
result = result && getApplicationTypesList()
.equals(other.getApplicationTypesList());
result = result && getApplicationStatesList()
.equals(other.getApplicationStatesList());
result = result && getUsersList()
.equals(other.getUsersList());
result = result && getQueuesList()
.equals(other.getQueuesList());
result = result && (hasLimit() == other.hasLimit());
if (hasLimit()) {
result = result && (getLimit()
== other.getLimit());
}
result = result && (hasStartBegin() == other.hasStartBegin());
if (hasStartBegin()) {
result = result && (getStartBegin()
== other.getStartBegin());
}
result = result && (hasStartEnd() == other.hasStartEnd());
if (hasStartEnd()) {
result = result && (getStartEnd()
== other.getStartEnd());
}
result = result && (hasFinishBegin() == other.hasFinishBegin());
if (hasFinishBegin()) {
result = result && (getFinishBegin()
== other.getFinishBegin());
}
result = result && (hasFinishEnd() == other.hasFinishEnd());
if (hasFinishEnd()) {
result = result && (getFinishEnd()
== other.getFinishEnd());
}
result = result && getApplicationTagsList()
.equals(other.getApplicationTagsList());
result = result && (hasScope() == other.hasScope());
if (hasScope()) {
result = result &&
(getScope() == other.getScope());
}
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getApplicationTypesCount() > 0) {
hash = (37 * hash) + APPLICATION_TYPES_FIELD_NUMBER;
hash = (53 * hash) + getApplicationTypesList().hashCode();
}
if (getApplicationStatesCount() > 0) {
hash = (37 * hash) + APPLICATION_STATES_FIELD_NUMBER;
hash = (53 * hash) + hashEnumList(getApplicationStatesList());
}
if (getUsersCount() > 0) {
hash = (37 * hash) + USERS_FIELD_NUMBER;
hash = (53 * hash) + getUsersList().hashCode();
}
if (getQueuesCount() > 0) {
hash = (37 * hash) + QUEUES_FIELD_NUMBER;
hash = (53 * hash) + getQueuesList().hashCode();
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getLimit());
}
if (hasStartBegin()) {
hash = (37 * hash) + START_BEGIN_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getStartBegin());
}
if (hasStartEnd()) {
hash = (37 * hash) + START_END_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getStartEnd());
}
if (hasFinishBegin()) {
hash = (37 * hash) + FINISH_BEGIN_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getFinishBegin());
}
if (hasFinishEnd()) {
hash = (37 * hash) + FINISH_END_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getFinishEnd());
}
if (getApplicationTagsCount() > 0) {
hash = (37 * hash) + APPLICATIONTAGS_FIELD_NUMBER;
hash = (53 * hash) + getApplicationTagsList().hashCode();
}
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + hashEnum(getScope());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationsRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
applicationTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
applicationStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
users_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
queues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
limit_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
startBegin_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
startEnd_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
finishBegin_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
finishEnd_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
applicationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
scope_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto.ALL;
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
applicationTypes_ = new com.google.protobuf.UnmodifiableLazyStringList(
applicationTypes_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.applicationTypes_ = applicationTypes_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
applicationStates_ = java.util.Collections.unmodifiableList(applicationStates_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.applicationStates_ = applicationStates_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
users_ = new com.google.protobuf.UnmodifiableLazyStringList(
users_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.users_ = users_;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
queues_ = new com.google.protobuf.UnmodifiableLazyStringList(
queues_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.queues_ = queues_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000001;
}
result.limit_ = limit_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000002;
}
result.startBegin_ = startBegin_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000004;
}
result.startEnd_ = startEnd_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000008;
}
result.finishBegin_ = finishBegin_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000010;
}
result.finishEnd_ = finishEnd_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
applicationTags_ = new com.google.protobuf.UnmodifiableLazyStringList(
applicationTags_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.applicationTags_ = applicationTags_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000020;
}
result.scope_ = scope_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto.getDefaultInstance()) return this;
if (!other.applicationTypes_.isEmpty()) {
if (applicationTypes_.isEmpty()) {
applicationTypes_ = other.applicationTypes_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureApplicationTypesIsMutable();
applicationTypes_.addAll(other.applicationTypes_);
}
onChanged();
}
if (!other.applicationStates_.isEmpty()) {
if (applicationStates_.isEmpty()) {
applicationStates_ = other.applicationStates_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureApplicationStatesIsMutable();
applicationStates_.addAll(other.applicationStates_);
}
onChanged();
}
if (!other.users_.isEmpty()) {
if (users_.isEmpty()) {
users_ = other.users_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUsersIsMutable();
users_.addAll(other.users_);
}
onChanged();
}
if (!other.queues_.isEmpty()) {
if (queues_.isEmpty()) {
queues_ = other.queues_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureQueuesIsMutable();
queues_.addAll(other.queues_);
}
onChanged();
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
if (other.hasStartBegin()) {
setStartBegin(other.getStartBegin());
}
if (other.hasStartEnd()) {
setStartEnd(other.getStartEnd());
}
if (other.hasFinishBegin()) {
setFinishBegin(other.getFinishBegin());
}
if (other.hasFinishEnd()) {
setFinishEnd(other.getFinishEnd());
}
if (!other.applicationTags_.isEmpty()) {
if (applicationTags_.isEmpty()) {
applicationTags_ = other.applicationTags_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureApplicationTagsIsMutable();
applicationTags_.addAll(other.applicationTags_);
}
onChanged();
}
if (other.hasScope()) {
setScope(other.getScope());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated string application_types = 1;
private com.google.protobuf.LazyStringList applicationTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureApplicationTypesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
applicationTypes_ = new com.google.protobuf.LazyStringArrayList(applicationTypes_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string application_types = 1;
*/
public java.util.List
getApplicationTypesList() {
return java.util.Collections.unmodifiableList(applicationTypes_);
}
/**
* repeated string application_types = 1;
*/
public int getApplicationTypesCount() {
return applicationTypes_.size();
}
/**
* repeated string application_types = 1;
*/
public java.lang.String getApplicationTypes(int index) {
return applicationTypes_.get(index);
}
/**
* repeated string application_types = 1;
*/
public com.google.protobuf.ByteString
getApplicationTypesBytes(int index) {
return applicationTypes_.getByteString(index);
}
/**
* repeated string application_types = 1;
*/
public Builder setApplicationTypes(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTypesIsMutable();
applicationTypes_.set(index, value);
onChanged();
return this;
}
/**
* repeated string application_types = 1;
*/
public Builder addApplicationTypes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTypesIsMutable();
applicationTypes_.add(value);
onChanged();
return this;
}
/**
* repeated string application_types = 1;
*/
public Builder addAllApplicationTypes(
java.lang.Iterable values) {
ensureApplicationTypesIsMutable();
super.addAll(values, applicationTypes_);
onChanged();
return this;
}
/**
* repeated string application_types = 1;
*/
public Builder clearApplicationTypes() {
applicationTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string application_types = 1;
*/
public Builder addApplicationTypesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTypesIsMutable();
applicationTypes_.add(value);
onChanged();
return this;
}
// repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
private java.util.List applicationStates_ =
java.util.Collections.emptyList();
private void ensureApplicationStatesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
applicationStates_ = new java.util.ArrayList(applicationStates_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public java.util.List getApplicationStatesList() {
return java.util.Collections.unmodifiableList(applicationStates_);
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public int getApplicationStatesCount() {
return applicationStates_.size();
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto getApplicationStates(int index) {
return applicationStates_.get(index);
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public Builder setApplicationStates(
int index, org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationStatesIsMutable();
applicationStates_.set(index, value);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public Builder addApplicationStates(org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationStatesIsMutable();
applicationStates_.add(value);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public Builder addAllApplicationStates(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto> values) {
ensureApplicationStatesIsMutable();
super.addAll(values, applicationStates_);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.YarnApplicationStateProto application_states = 2;
*/
public Builder clearApplicationStates() {
applicationStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
// repeated string users = 3;
private com.google.protobuf.LazyStringList users_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUsersIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
users_ = new com.google.protobuf.LazyStringArrayList(users_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string users = 3;
*/
public java.util.List
getUsersList() {
return java.util.Collections.unmodifiableList(users_);
}
/**
* repeated string users = 3;
*/
public int getUsersCount() {
return users_.size();
}
/**
* repeated string users = 3;
*/
public java.lang.String getUsers(int index) {
return users_.get(index);
}
/**
* repeated string users = 3;
*/
public com.google.protobuf.ByteString
getUsersBytes(int index) {
return users_.getByteString(index);
}
/**
* repeated string users = 3;
*/
public Builder setUsers(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.set(index, value);
onChanged();
return this;
}
/**
* repeated string users = 3;
*/
public Builder addUsers(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(value);
onChanged();
return this;
}
/**
* repeated string users = 3;
*/
public Builder addAllUsers(
java.lang.Iterable values) {
ensureUsersIsMutable();
super.addAll(values, users_);
onChanged();
return this;
}
/**
* repeated string users = 3;
*/
public Builder clearUsers() {
users_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string users = 3;
*/
public Builder addUsersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsersIsMutable();
users_.add(value);
onChanged();
return this;
}
// repeated string queues = 4;
private com.google.protobuf.LazyStringList queues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureQueuesIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
queues_ = new com.google.protobuf.LazyStringArrayList(queues_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string queues = 4;
*/
public java.util.List
getQueuesList() {
return java.util.Collections.unmodifiableList(queues_);
}
/**
* repeated string queues = 4;
*/
public int getQueuesCount() {
return queues_.size();
}
/**
* repeated string queues = 4;
*/
public java.lang.String getQueues(int index) {
return queues_.get(index);
}
/**
* repeated string queues = 4;
*/
public com.google.protobuf.ByteString
getQueuesBytes(int index) {
return queues_.getByteString(index);
}
/**
* repeated string queues = 4;
*/
public Builder setQueues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueuesIsMutable();
queues_.set(index, value);
onChanged();
return this;
}
/**
* repeated string queues = 4;
*/
public Builder addQueues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueuesIsMutable();
queues_.add(value);
onChanged();
return this;
}
/**
* repeated string queues = 4;
*/
public Builder addAllQueues(
java.lang.Iterable values) {
ensureQueuesIsMutable();
super.addAll(values, queues_);
onChanged();
return this;
}
/**
* repeated string queues = 4;
*/
public Builder clearQueues() {
queues_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string queues = 4;
*/
public Builder addQueuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureQueuesIsMutable();
queues_.add(value);
onChanged();
return this;
}
// optional int64 limit = 5;
private long limit_ ;
/**
* optional int64 limit = 5;
*/
public boolean hasLimit() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 limit = 5;
*/
public long getLimit() {
return limit_;
}
/**
* optional int64 limit = 5;
*/
public Builder setLimit(long value) {
bitField0_ |= 0x00000010;
limit_ = value;
onChanged();
return this;
}
/**
* optional int64 limit = 5;
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000010);
limit_ = 0L;
onChanged();
return this;
}
// optional int64 start_begin = 6;
private long startBegin_ ;
/**
* optional int64 start_begin = 6;
*/
public boolean hasStartBegin() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int64 start_begin = 6;
*/
public long getStartBegin() {
return startBegin_;
}
/**
* optional int64 start_begin = 6;
*/
public Builder setStartBegin(long value) {
bitField0_ |= 0x00000020;
startBegin_ = value;
onChanged();
return this;
}
/**
* optional int64 start_begin = 6;
*/
public Builder clearStartBegin() {
bitField0_ = (bitField0_ & ~0x00000020);
startBegin_ = 0L;
onChanged();
return this;
}
// optional int64 start_end = 7;
private long startEnd_ ;
/**
* optional int64 start_end = 7;
*/
public boolean hasStartEnd() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int64 start_end = 7;
*/
public long getStartEnd() {
return startEnd_;
}
/**
* optional int64 start_end = 7;
*/
public Builder setStartEnd(long value) {
bitField0_ |= 0x00000040;
startEnd_ = value;
onChanged();
return this;
}
/**
* optional int64 start_end = 7;
*/
public Builder clearStartEnd() {
bitField0_ = (bitField0_ & ~0x00000040);
startEnd_ = 0L;
onChanged();
return this;
}
// optional int64 finish_begin = 8;
private long finishBegin_ ;
/**
* optional int64 finish_begin = 8;
*/
public boolean hasFinishBegin() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int64 finish_begin = 8;
*/
public long getFinishBegin() {
return finishBegin_;
}
/**
* optional int64 finish_begin = 8;
*/
public Builder setFinishBegin(long value) {
bitField0_ |= 0x00000080;
finishBegin_ = value;
onChanged();
return this;
}
/**
* optional int64 finish_begin = 8;
*/
public Builder clearFinishBegin() {
bitField0_ = (bitField0_ & ~0x00000080);
finishBegin_ = 0L;
onChanged();
return this;
}
// optional int64 finish_end = 9;
private long finishEnd_ ;
/**
* optional int64 finish_end = 9;
*/
public boolean hasFinishEnd() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 finish_end = 9;
*/
public long getFinishEnd() {
return finishEnd_;
}
/**
* optional int64 finish_end = 9;
*/
public Builder setFinishEnd(long value) {
bitField0_ |= 0x00000100;
finishEnd_ = value;
onChanged();
return this;
}
/**
* optional int64 finish_end = 9;
*/
public Builder clearFinishEnd() {
bitField0_ = (bitField0_ & ~0x00000100);
finishEnd_ = 0L;
onChanged();
return this;
}
// repeated string applicationTags = 10;
private com.google.protobuf.LazyStringList applicationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureApplicationTagsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
applicationTags_ = new com.google.protobuf.LazyStringArrayList(applicationTags_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated string applicationTags = 10;
*/
public java.util.List
getApplicationTagsList() {
return java.util.Collections.unmodifiableList(applicationTags_);
}
/**
* repeated string applicationTags = 10;
*/
public int getApplicationTagsCount() {
return applicationTags_.size();
}
/**
* repeated string applicationTags = 10;
*/
public java.lang.String getApplicationTags(int index) {
return applicationTags_.get(index);
}
/**
* repeated string applicationTags = 10;
*/
public com.google.protobuf.ByteString
getApplicationTagsBytes(int index) {
return applicationTags_.getByteString(index);
}
/**
* repeated string applicationTags = 10;
*/
public Builder setApplicationTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTagsIsMutable();
applicationTags_.set(index, value);
onChanged();
return this;
}
/**
* repeated string applicationTags = 10;
*/
public Builder addApplicationTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTagsIsMutable();
applicationTags_.add(value);
onChanged();
return this;
}
/**
* repeated string applicationTags = 10;
*/
public Builder addAllApplicationTags(
java.lang.Iterable values) {
ensureApplicationTagsIsMutable();
super.addAll(values, applicationTags_);
onChanged();
return this;
}
/**
* repeated string applicationTags = 10;
*/
public Builder clearApplicationTags() {
applicationTags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* repeated string applicationTags = 10;
*/
public Builder addApplicationTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationTagsIsMutable();
applicationTags_.add(value);
onChanged();
return this;
}
// optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
private org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto scope_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto.ALL;
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
public org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto getScope() {
return scope_;
}
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
public Builder setScope(org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
scope_ = value;
onChanged();
return this;
}
/**
* optional .hadoop.yarn.ApplicationsRequestScopeProto scope = 11 [default = ALL];
*/
public Builder clearScope() {
bitField0_ = (bitField0_ & ~0x00000400);
scope_ = org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto.ALL;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetApplicationsRequestProto)
}
static {
defaultInstance = new GetApplicationsRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetApplicationsRequestProto)
}
public interface GetApplicationsResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hadoop.yarn.ApplicationReportProto applications = 1;
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
java.util.List
getApplicationsList();
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplications(int index);
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
int getApplicationsCount();
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>
getApplicationsOrBuilderList();
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationsOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationsResponseProto}
*/
public static final class GetApplicationsResponseProto extends
com.google.protobuf.GeneratedMessage
implements GetApplicationsResponseProtoOrBuilder {
// Use GetApplicationsResponseProto.newBuilder() to construct.
private GetApplicationsResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetApplicationsResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetApplicationsResponseProto defaultInstance;
public static GetApplicationsResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetApplicationsResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApplicationsResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
applications_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
applications_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
applications_ = java.util.Collections.unmodifiableList(applications_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetApplicationsResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApplicationsResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .hadoop.yarn.ApplicationReportProto applications = 1;
public static final int APPLICATIONS_FIELD_NUMBER = 1;
private java.util.List applications_;
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public java.util.List getApplicationsList() {
return applications_;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>
getApplicationsOrBuilderList() {
return applications_;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public int getApplicationsCount() {
return applications_.size();
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplications(int index) {
return applications_.get(index);
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationsOrBuilder(
int index) {
return applications_.get(index);
}
private void initFields() {
applications_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getApplicationsCount(); i++) {
if (!getApplications(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < applications_.size(); i++) {
output.writeMessage(1, applications_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < applications_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, applications_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto) obj;
boolean result = true;
result = result && getApplicationsList()
.equals(other.getApplicationsList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getApplicationsCount() > 0) {
hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER;
hash = (53 * hash) + getApplicationsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetApplicationsResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationsBuilder_ == null) {
applications_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
applicationsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetApplicationsResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto(this);
int from_bitField0_ = bitField0_;
if (applicationsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
applications_ = java.util.Collections.unmodifiableList(applications_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.applications_ = applications_;
} else {
result.applications_ = applicationsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto.getDefaultInstance()) return this;
if (applicationsBuilder_ == null) {
if (!other.applications_.isEmpty()) {
if (applications_.isEmpty()) {
applications_ = other.applications_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureApplicationsIsMutable();
applications_.addAll(other.applications_);
}
onChanged();
}
} else {
if (!other.applications_.isEmpty()) {
if (applicationsBuilder_.isEmpty()) {
applicationsBuilder_.dispose();
applicationsBuilder_ = null;
applications_ = other.applications_;
bitField0_ = (bitField0_ & ~0x00000001);
applicationsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getApplicationsFieldBuilder() : null;
} else {
applicationsBuilder_.addAllMessages(other.applications_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getApplicationsCount(); i++) {
if (!getApplications(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hadoop.yarn.ApplicationReportProto applications = 1;
private java.util.List applications_ =
java.util.Collections.emptyList();
private void ensureApplicationsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
applications_ = new java.util.ArrayList(applications_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder> applicationsBuilder_;
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public java.util.List getApplicationsList() {
if (applicationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(applications_);
} else {
return applicationsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public int getApplicationsCount() {
if (applicationsBuilder_ == null) {
return applications_.size();
} else {
return applicationsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto getApplications(int index) {
if (applicationsBuilder_ == null) {
return applications_.get(index);
} else {
return applicationsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder setApplications(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto value) {
if (applicationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationsIsMutable();
applications_.set(index, value);
onChanged();
} else {
applicationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder setApplications(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder builderForValue) {
if (applicationsBuilder_ == null) {
ensureApplicationsIsMutable();
applications_.set(index, builderForValue.build());
onChanged();
} else {
applicationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder addApplications(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto value) {
if (applicationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationsIsMutable();
applications_.add(value);
onChanged();
} else {
applicationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder addApplications(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto value) {
if (applicationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureApplicationsIsMutable();
applications_.add(index, value);
onChanged();
} else {
applicationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder addApplications(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder builderForValue) {
if (applicationsBuilder_ == null) {
ensureApplicationsIsMutable();
applications_.add(builderForValue.build());
onChanged();
} else {
applicationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder addApplications(
int index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder builderForValue) {
if (applicationsBuilder_ == null) {
ensureApplicationsIsMutable();
applications_.add(index, builderForValue.build());
onChanged();
} else {
applicationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder addAllApplications(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto> values) {
if (applicationsBuilder_ == null) {
ensureApplicationsIsMutable();
super.addAll(values, applications_);
onChanged();
} else {
applicationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder clearApplications() {
if (applicationsBuilder_ == null) {
applications_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
applicationsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public Builder removeApplications(int index) {
if (applicationsBuilder_ == null) {
ensureApplicationsIsMutable();
applications_.remove(index);
onChanged();
} else {
applicationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder getApplicationsBuilder(
int index) {
return getApplicationsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder getApplicationsOrBuilder(
int index) {
if (applicationsBuilder_ == null) {
return applications_.get(index); } else {
return applicationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>
getApplicationsOrBuilderList() {
if (applicationsBuilder_ != null) {
return applicationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(applications_);
}
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder addApplicationsBuilder() {
return getApplicationsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder addApplicationsBuilder(
int index) {
return getApplicationsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.ApplicationReportProto applications = 1;
*/
public java.util.List
getApplicationsBuilderList() {
return getApplicationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>
getApplicationsFieldBuilder() {
if (applicationsBuilder_ == null) {
applicationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder>(
applications_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
applications_ = null;
}
return applicationsBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetApplicationsResponseProto)
}
static {
defaultInstance = new GetApplicationsResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetApplicationsResponseProto)
}
public interface GetClusterNodesRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
java.util.List getNodeStatesList();
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
int getNodeStatesCount();
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto getNodeStates(int index);
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterNodesRequestProto}
*/
public static final class GetClusterNodesRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetClusterNodesRequestProtoOrBuilder {
// Use GetClusterNodesRequestProto.newBuilder() to construct.
private GetClusterNodesRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetClusterNodesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetClusterNodesRequestProto defaultInstance;
public static GetClusterNodesRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetClusterNodesRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetClusterNodesRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto value = org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodeStates_.add(value);
}
break;
}
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto value = org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeStates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodeStates_.add(value);
}
}
input.popLimit(oldLimit);
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeStates_ = java.util.Collections.unmodifiableList(nodeStates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetClusterNodesRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetClusterNodesRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
public static final int NODESTATES_FIELD_NUMBER = 1;
private java.util.List nodeStates_;
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public java.util.List getNodeStatesList() {
return nodeStates_;
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public int getNodeStatesCount() {
return nodeStates_.size();
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto getNodeStates(int index) {
return nodeStates_.get(index);
}
private void initFields() {
nodeStates_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < nodeStates_.size(); i++) {
output.writeEnum(1, nodeStates_.get(i).getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < nodeStates_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(nodeStates_.get(i).getNumber());
}
size += dataSize;
size += 1 * nodeStates_.size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto) obj;
boolean result = true;
result = result && getNodeStatesList()
.equals(other.getNodeStatesList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getNodeStatesCount() > 0) {
hash = (37 * hash) + NODESTATES_FIELD_NUMBER;
hash = (53 * hash) + hashEnumList(getNodeStatesList());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterNodesRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
nodeStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
nodeStates_ = java.util.Collections.unmodifiableList(nodeStates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodeStates_ = nodeStates_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto.getDefaultInstance()) return this;
if (!other.nodeStates_.isEmpty()) {
if (nodeStates_.isEmpty()) {
nodeStates_ = other.nodeStates_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeStatesIsMutable();
nodeStates_.addAll(other.nodeStates_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
private java.util.List nodeStates_ =
java.util.Collections.emptyList();
private void ensureNodeStatesIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
nodeStates_ = new java.util.ArrayList(nodeStates_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public java.util.List getNodeStatesList() {
return java.util.Collections.unmodifiableList(nodeStates_);
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public int getNodeStatesCount() {
return nodeStates_.size();
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto getNodeStates(int index) {
return nodeStates_.get(index);
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public Builder setNodeStates(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeStatesIsMutable();
nodeStates_.set(index, value);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public Builder addNodeStates(org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto value) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeStatesIsMutable();
nodeStates_.add(value);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public Builder addAllNodeStates(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto> values) {
ensureNodeStatesIsMutable();
super.addAll(values, nodeStates_);
onChanged();
return this;
}
/**
* repeated .hadoop.yarn.NodeStateProto nodeStates = 1;
*/
public Builder clearNodeStates() {
nodeStates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetClusterNodesRequestProto)
}
static {
defaultInstance = new GetClusterNodesRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetClusterNodesRequestProto)
}
public interface GetClusterNodesResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
java.util.List
getNodeReportsList();
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getNodeReports(int index);
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
int getNodeReportsCount();
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
getNodeReportsOrBuilderList();
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getNodeReportsOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterNodesResponseProto}
*/
public static final class GetClusterNodesResponseProto extends
com.google.protobuf.GeneratedMessage
implements GetClusterNodesResponseProtoOrBuilder {
// Use GetClusterNodesResponseProto.newBuilder() to construct.
private GetClusterNodesResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetClusterNodesResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetClusterNodesResponseProto defaultInstance;
public static GetClusterNodesResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetClusterNodesResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetClusterNodesResponseProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeReports_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
nodeReports_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
nodeReports_ = java.util.Collections.unmodifiableList(nodeReports_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetClusterNodesResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetClusterNodesResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
public static final int NODEREPORTS_FIELD_NUMBER = 1;
private java.util.List nodeReports_;
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public java.util.List getNodeReportsList() {
return nodeReports_;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
getNodeReportsOrBuilderList() {
return nodeReports_;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public int getNodeReportsCount() {
return nodeReports_.size();
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getNodeReports(int index) {
return nodeReports_.get(index);
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getNodeReportsOrBuilder(
int index) {
return nodeReports_.get(index);
}
private void initFields() {
nodeReports_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < nodeReports_.size(); i++) {
output.writeMessage(1, nodeReports_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < nodeReports_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, nodeReports_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto) obj;
boolean result = true;
result = result && getNodeReportsList()
.equals(other.getNodeReportsList());
result = result &&
getUnknownFields().equals(other.getUnknownFields());
return result;
}
private int memoizedHashCode = 0;
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
if (getNodeReportsCount() > 0) {
hash = (37 * hash) + NODEREPORTS_FIELD_NUMBER;
hash = (53 * hash) + getNodeReportsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code hadoop.yarn.GetClusterNodesResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getNodeReportsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (nodeReportsBuilder_ == null) {
nodeReports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
nodeReportsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetClusterNodesResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto(this);
int from_bitField0_ = bitField0_;
if (nodeReportsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
nodeReports_ = java.util.Collections.unmodifiableList(nodeReports_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.nodeReports_ = nodeReports_;
} else {
result.nodeReports_ = nodeReportsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto.getDefaultInstance()) return this;
if (nodeReportsBuilder_ == null) {
if (!other.nodeReports_.isEmpty()) {
if (nodeReports_.isEmpty()) {
nodeReports_ = other.nodeReports_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureNodeReportsIsMutable();
nodeReports_.addAll(other.nodeReports_);
}
onChanged();
}
} else {
if (!other.nodeReports_.isEmpty()) {
if (nodeReportsBuilder_.isEmpty()) {
nodeReportsBuilder_.dispose();
nodeReportsBuilder_ = null;
nodeReports_ = other.nodeReports_;
bitField0_ = (bitField0_ & ~0x00000001);
nodeReportsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getNodeReportsFieldBuilder() : null;
} else {
nodeReportsBuilder_.addAllMessages(other.nodeReports_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
private java.util.List nodeReports_ =
java.util.Collections.emptyList();
private void ensureNodeReportsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
nodeReports_ = new java.util.ArrayList(nodeReports_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder> nodeReportsBuilder_;
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public java.util.List getNodeReportsList() {
if (nodeReportsBuilder_ == null) {
return java.util.Collections.unmodifiableList(nodeReports_);
} else {
return nodeReportsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public int getNodeReportsCount() {
if (nodeReportsBuilder_ == null) {
return nodeReports_.size();
} else {
return nodeReportsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto getNodeReports(int index) {
if (nodeReportsBuilder_ == null) {
return nodeReports_.get(index);
} else {
return nodeReportsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder setNodeReports(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto value) {
if (nodeReportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeReportsIsMutable();
nodeReports_.set(index, value);
onChanged();
} else {
nodeReportsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder setNodeReports(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder builderForValue) {
if (nodeReportsBuilder_ == null) {
ensureNodeReportsIsMutable();
nodeReports_.set(index, builderForValue.build());
onChanged();
} else {
nodeReportsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder addNodeReports(org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto value) {
if (nodeReportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeReportsIsMutable();
nodeReports_.add(value);
onChanged();
} else {
nodeReportsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder addNodeReports(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto value) {
if (nodeReportsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureNodeReportsIsMutable();
nodeReports_.add(index, value);
onChanged();
} else {
nodeReportsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder addNodeReports(
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder builderForValue) {
if (nodeReportsBuilder_ == null) {
ensureNodeReportsIsMutable();
nodeReports_.add(builderForValue.build());
onChanged();
} else {
nodeReportsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder addNodeReports(
int index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder builderForValue) {
if (nodeReportsBuilder_ == null) {
ensureNodeReportsIsMutable();
nodeReports_.add(index, builderForValue.build());
onChanged();
} else {
nodeReportsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder addAllNodeReports(
java.lang.Iterable extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto> values) {
if (nodeReportsBuilder_ == null) {
ensureNodeReportsIsMutable();
super.addAll(values, nodeReports_);
onChanged();
} else {
nodeReportsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder clearNodeReports() {
if (nodeReportsBuilder_ == null) {
nodeReports_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
nodeReportsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public Builder removeNodeReports(int index) {
if (nodeReportsBuilder_ == null) {
ensureNodeReportsIsMutable();
nodeReports_.remove(index);
onChanged();
} else {
nodeReportsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder getNodeReportsBuilder(
int index) {
return getNodeReportsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder getNodeReportsOrBuilder(
int index) {
if (nodeReportsBuilder_ == null) {
return nodeReports_.get(index); } else {
return nodeReportsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public java.util.List extends org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
getNodeReportsOrBuilderList() {
if (nodeReportsBuilder_ != null) {
return nodeReportsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(nodeReports_);
}
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder addNodeReportsBuilder() {
return getNodeReportsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder addNodeReportsBuilder(
int index) {
return getNodeReportsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.NodeReportProto nodeReports = 1;
*/
public java.util.List
getNodeReportsBuilderList() {
return getNodeReportsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>
getNodeReportsFieldBuilder() {
if (nodeReportsBuilder_ == null) {
nodeReportsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProtoOrBuilder>(
nodeReports_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
nodeReports_ = null;
}
return nodeReportsBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetClusterNodesResponseProto)
}
static {
defaultInstance = new GetClusterNodesResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetClusterNodesResponseProto)
}
public interface GetQueueInfoRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional string queueName = 1;
/**
* optional string queueName = 1;
*/
boolean hasQueueName();
/**
* optional string queueName = 1;
*/
java.lang.String getQueueName();
/**
* optional string queueName = 1;
*/
com.google.protobuf.ByteString
getQueueNameBytes();
// optional bool includeApplications = 2;
/**
* optional bool includeApplications = 2;
*/
boolean hasIncludeApplications();
/**
* optional bool includeApplications = 2;
*/
boolean getIncludeApplications();
// optional bool includeChildQueues = 3;
/**
* optional bool includeChildQueues = 3;
*/
boolean hasIncludeChildQueues();
/**
* optional bool includeChildQueues = 3;
*/
boolean getIncludeChildQueues();
// optional bool recursive = 4;
/**
* optional bool recursive = 4;
*/
boolean hasRecursive();
/**
* optional bool recursive = 4;
*/
boolean getRecursive();
}
/**
* Protobuf type {@code hadoop.yarn.GetQueueInfoRequestProto}
*/
public static final class GetQueueInfoRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetQueueInfoRequestProtoOrBuilder {
// Use GetQueueInfoRequestProto.newBuilder() to construct.
private GetQueueInfoRequestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetQueueInfoRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetQueueInfoRequestProto defaultInstance;
public static GetQueueInfoRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetQueueInfoRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetQueueInfoRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
queueName_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
includeApplications_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
includeChildQueues_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000008;
recursive_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueInfoRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueInfoRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser