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) {
}
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
getApplicationACLsOrBuilderList();
/**
* repeated .hadoop.yarn.ApplicationACLMapProto application_ACLs = 3;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationACLMapProtoOrBuilder getApplicationACLsOrBuilder(
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();
}
/**
* 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 42: {
bitField0_ |= 0x00000004;
queue_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
applicationACLs_ = java.util.Collections.unmodifiableList(applicationACLs_);
}
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
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);
}
// 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;
}
}
private void initFields() {
maximumCapability_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
clientToAmTokenMasterKey_ = com.google.protobuf.ByteString.EMPTY;
applicationACLs_ = java.util.Collections.emptyList();
queue_ = "";
}
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, maximumCapability_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, clientToAmTokenMasterKey_);
}
for (int i = 0; i < applicationACLs_.size(); i++) {
output.writeMessage(3, applicationACLs_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(5, getQueueBytes());
}
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));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getQueueBytes());
}
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 && (hasQueue() == other.hasQueue());
if (hasQueue()) {
result = result && getQueue()
.equals(other.getQueue());
}
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 (hasQueue()) {
hash = (37 * hash) + QUEUE_FIELD_NUMBER;
hash = (53 * hash) + getQueue().hashCode();
}
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();
}
}
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();
}
queue_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.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 (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.queue_ = queue_;
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 (other.hasQueue()) {
bitField0_ |= 0x00000008;
queue_ = other.queue_;
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.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 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
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_;
}
// optional string queue = 5;
private java.lang.Object queue_ = "";
/**
* optional string queue = 5;
*/
public boolean hasQueue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* 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_ |= 0x00000008;
queue_ = value;
onChanged();
return this;
}
/**
* optional string queue = 5;
*/
public Builder clearQueue() {
bitField0_ = (bitField0_ & ~0x00000008);
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_ |= 0x00000008;
queue_ = value;
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
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
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
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
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
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
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 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
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 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
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 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
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
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
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
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
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
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
getDecreasedContainersOrBuilderList();
/**
* repeated .hadoop.yarn.ContainerResourceDecreaseProto decreased_containers = 11;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerResourceDecreaseProtoOrBuilder getDecreasedContainersOrBuilder(
int index);
}
/**
* 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;
}
}
}
} 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
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
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
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
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
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
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);
}
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();
}
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;
}
}
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));
}
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));
}
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 &&
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();
}
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();
}
}
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();
}
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();
}
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_);
}
}
}
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;
}
}
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 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
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 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
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 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
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 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
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 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
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 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
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_;
}
// @@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 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();
}
/**
* 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;
}
}
}
} 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_);
}
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_;
}
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;
}
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_);
}
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_);
}
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 &&
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());
}
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);
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_;
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());
}
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 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;
}
// @@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
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
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 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
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 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
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
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 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
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() {
public GetQueueInfoRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetQueueInfoRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string queueName = 1;
public static final int QUEUENAME_FIELD_NUMBER = 1;
private java.lang.Object queueName_;
/**
* optional string queueName = 1;
*/
public boolean hasQueueName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string queueName = 1;
*/
public java.lang.String getQueueName() {
java.lang.Object ref = queueName_;
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()) {
queueName_ = s;
}
return s;
}
}
/**
* optional string queueName = 1;
*/
public com.google.protobuf.ByteString
getQueueNameBytes() {
java.lang.Object ref = queueName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queueName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool includeApplications = 2;
public static final int INCLUDEAPPLICATIONS_FIELD_NUMBER = 2;
private boolean includeApplications_;
/**
* optional bool includeApplications = 2;
*/
public boolean hasIncludeApplications() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool includeApplications = 2;
*/
public boolean getIncludeApplications() {
return includeApplications_;
}
// optional bool includeChildQueues = 3;
public static final int INCLUDECHILDQUEUES_FIELD_NUMBER = 3;
private boolean includeChildQueues_;
/**
* optional bool includeChildQueues = 3;
*/
public boolean hasIncludeChildQueues() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool includeChildQueues = 3;
*/
public boolean getIncludeChildQueues() {
return includeChildQueues_;
}
// optional bool recursive = 4;
public static final int RECURSIVE_FIELD_NUMBER = 4;
private boolean recursive_;
/**
* optional bool recursive = 4;
*/
public boolean hasRecursive() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool recursive = 4;
*/
public boolean getRecursive() {
return recursive_;
}
private void initFields() {
queueName_ = "";
includeApplications_ = false;
includeChildQueues_ = false;
recursive_ = 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.writeBytes(1, getQueueNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, includeApplications_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, includeChildQueues_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, recursive_);
}
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, getQueueNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, includeApplications_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, includeChildQueues_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, recursive_);
}
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.GetQueueInfoRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto) obj;
boolean result = true;
result = result && (hasQueueName() == other.hasQueueName());
if (hasQueueName()) {
result = result && getQueueName()
.equals(other.getQueueName());
}
result = result && (hasIncludeApplications() == other.hasIncludeApplications());
if (hasIncludeApplications()) {
result = result && (getIncludeApplications()
== other.getIncludeApplications());
}
result = result && (hasIncludeChildQueues() == other.hasIncludeChildQueues());
if (hasIncludeChildQueues()) {
result = result && (getIncludeChildQueues()
== other.getIncludeChildQueues());
}
result = result && (hasRecursive() == other.hasRecursive());
if (hasRecursive()) {
result = result && (getRecursive()
== other.getRecursive());
}
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 (hasQueueName()) {
hash = (37 * hash) + QUEUENAME_FIELD_NUMBER;
hash = (53 * hash) + getQueueName().hashCode();
}
if (hasIncludeApplications()) {
hash = (37 * hash) + INCLUDEAPPLICATIONS_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIncludeApplications());
}
if (hasIncludeChildQueues()) {
hash = (37 * hash) + INCLUDECHILDQUEUES_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getIncludeChildQueues());
}
if (hasRecursive()) {
hash = (37 * hash) + RECURSIVE_FIELD_NUMBER;
hash = (53 * hash) + hashBoolean(getRecursive());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto 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.GetQueueInfoRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto 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.GetQueueInfoRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto 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.GetQueueInfoRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto 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.GetQueueInfoRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto 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.GetQueueInfoRequestProto 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.GetQueueInfoRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProtoOrBuilder {
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);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto.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();
queueName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
includeApplications_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
includeChildQueues_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
recursive_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueInfoRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.queueName_ = queueName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.includeApplications_ = includeApplications_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.includeChildQueues_ = includeChildQueues_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.recursive_ = recursive_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto.getDefaultInstance()) return this;
if (other.hasQueueName()) {
bitField0_ |= 0x00000001;
queueName_ = other.queueName_;
onChanged();
}
if (other.hasIncludeApplications()) {
setIncludeApplications(other.getIncludeApplications());
}
if (other.hasIncludeChildQueues()) {
setIncludeChildQueues(other.getIncludeChildQueues());
}
if (other.hasRecursive()) {
setRecursive(other.getRecursive());
}
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.GetQueueInfoRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string queueName = 1;
private java.lang.Object queueName_ = "";
/**
* optional string queueName = 1;
*/
public boolean hasQueueName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string queueName = 1;
*/
public java.lang.String getQueueName() {
java.lang.Object ref = queueName_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
queueName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string queueName = 1;
*/
public com.google.protobuf.ByteString
getQueueNameBytes() {
java.lang.Object ref = queueName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queueName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string queueName = 1;
*/
public Builder setQueueName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
queueName_ = value;
onChanged();
return this;
}
/**
* optional string queueName = 1;
*/
public Builder clearQueueName() {
bitField0_ = (bitField0_ & ~0x00000001);
queueName_ = getDefaultInstance().getQueueName();
onChanged();
return this;
}
/**
* optional string queueName = 1;
*/
public Builder setQueueNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
queueName_ = value;
onChanged();
return this;
}
// optional bool includeApplications = 2;
private boolean includeApplications_ ;
/**
* optional bool includeApplications = 2;
*/
public boolean hasIncludeApplications() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool includeApplications = 2;
*/
public boolean getIncludeApplications() {
return includeApplications_;
}
/**
* optional bool includeApplications = 2;
*/
public Builder setIncludeApplications(boolean value) {
bitField0_ |= 0x00000002;
includeApplications_ = value;
onChanged();
return this;
}
/**
* optional bool includeApplications = 2;
*/
public Builder clearIncludeApplications() {
bitField0_ = (bitField0_ & ~0x00000002);
includeApplications_ = false;
onChanged();
return this;
}
// optional bool includeChildQueues = 3;
private boolean includeChildQueues_ ;
/**
* optional bool includeChildQueues = 3;
*/
public boolean hasIncludeChildQueues() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool includeChildQueues = 3;
*/
public boolean getIncludeChildQueues() {
return includeChildQueues_;
}
/**
* optional bool includeChildQueues = 3;
*/
public Builder setIncludeChildQueues(boolean value) {
bitField0_ |= 0x00000004;
includeChildQueues_ = value;
onChanged();
return this;
}
/**
* optional bool includeChildQueues = 3;
*/
public Builder clearIncludeChildQueues() {
bitField0_ = (bitField0_ & ~0x00000004);
includeChildQueues_ = false;
onChanged();
return this;
}
// optional bool recursive = 4;
private boolean recursive_ ;
/**
* optional bool recursive = 4;
*/
public boolean hasRecursive() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool recursive = 4;
*/
public boolean getRecursive() {
return recursive_;
}
/**
* optional bool recursive = 4;
*/
public Builder setRecursive(boolean value) {
bitField0_ |= 0x00000008;
recursive_ = value;
onChanged();
return this;
}
/**
* optional bool recursive = 4;
*/
public Builder clearRecursive() {
bitField0_ = (bitField0_ & ~0x00000008);
recursive_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetQueueInfoRequestProto)
}
static {
defaultInstance = new GetQueueInfoRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetQueueInfoRequestProto)
}
public interface GetQueueInfoResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
boolean hasQueueInfo();
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto getQueueInfo();
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder getQueueInfoOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.GetQueueInfoResponseProto}
*/
public static final class GetQueueInfoResponseProto extends
com.google.protobuf.GeneratedMessage
implements GetQueueInfoResponseProtoOrBuilder {
// Use GetQueueInfoResponseProto.newBuilder() to construct.
private GetQueueInfoResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetQueueInfoResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetQueueInfoResponseProto defaultInstance;
public static GetQueueInfoResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetQueueInfoResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetQueueInfoResponseProto(
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.QueueInfoProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = queueInfo_.toBuilder();
}
queueInfo_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(queueInfo_);
queueInfo_ = 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_GetQueueInfoResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueInfoResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetQueueInfoResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetQueueInfoResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
public static final int QUEUEINFO_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto queueInfo_;
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public boolean hasQueueInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto getQueueInfo() {
return queueInfo_;
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder getQueueInfoOrBuilder() {
return queueInfo_;
}
private void initFields() {
queueInfo_ = org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (hasQueueInfo()) {
if (!getQueueInfo().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, queueInfo_);
}
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, queueInfo_);
}
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.GetQueueInfoResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto) obj;
boolean result = true;
result = result && (hasQueueInfo() == other.hasQueueInfo());
if (hasQueueInfo()) {
result = result && getQueueInfo()
.equals(other.getQueueInfo());
}
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 (hasQueueInfo()) {
hash = (37 * hash) + QUEUEINFO_FIELD_NUMBER;
hash = (53 * hash) + getQueueInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto 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.GetQueueInfoResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto 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.GetQueueInfoResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto 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.GetQueueInfoResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto 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.GetQueueInfoResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto 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.GetQueueInfoResponseProto 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.GetQueueInfoResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueInfoResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueInfoResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getQueueInfoFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (queueInfoBuilder_ == null) {
queueInfo_ = org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.getDefaultInstance();
} else {
queueInfoBuilder_.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_GetQueueInfoResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (queueInfoBuilder_ == null) {
result.queueInfo_ = queueInfo_;
} else {
result.queueInfo_ = queueInfoBuilder_.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.GetQueueInfoResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto.getDefaultInstance()) return this;
if (other.hasQueueInfo()) {
mergeQueueInfo(other.getQueueInfo());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasQueueInfo()) {
if (!getQueueInfo().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.GetQueueInfoResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueInfoResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto queueInfo_ = org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder> queueInfoBuilder_;
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public boolean hasQueueInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto getQueueInfo() {
if (queueInfoBuilder_ == null) {
return queueInfo_;
} else {
return queueInfoBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public Builder setQueueInfo(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto value) {
if (queueInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queueInfo_ = value;
onChanged();
} else {
queueInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public Builder setQueueInfo(
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.Builder builderForValue) {
if (queueInfoBuilder_ == null) {
queueInfo_ = builderForValue.build();
onChanged();
} else {
queueInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public Builder mergeQueueInfo(org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto value) {
if (queueInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
queueInfo_ != org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.getDefaultInstance()) {
queueInfo_ =
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.newBuilder(queueInfo_).mergeFrom(value).buildPartial();
} else {
queueInfo_ = value;
}
onChanged();
} else {
queueInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public Builder clearQueueInfo() {
if (queueInfoBuilder_ == null) {
queueInfo_ = org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.getDefaultInstance();
onChanged();
} else {
queueInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.Builder getQueueInfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getQueueInfoFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder getQueueInfoOrBuilder() {
if (queueInfoBuilder_ != null) {
return queueInfoBuilder_.getMessageOrBuilder();
} else {
return queueInfo_;
}
}
/**
* optional .hadoop.yarn.QueueInfoProto queueInfo = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder>
getQueueInfoFieldBuilder() {
if (queueInfoBuilder_ == null) {
queueInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.QueueInfoProtoOrBuilder>(
queueInfo_,
getParentForChildren(),
isClean());
queueInfo_ = null;
}
return queueInfoBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetQueueInfoResponseProto)
}
static {
defaultInstance = new GetQueueInfoResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetQueueInfoResponseProto)
}
public interface GetQueueUserAclsInfoRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code hadoop.yarn.GetQueueUserAclsInfoRequestProto}
*/
public static final class GetQueueUserAclsInfoRequestProto extends
com.google.protobuf.GeneratedMessage
implements GetQueueUserAclsInfoRequestProtoOrBuilder {
// Use GetQueueUserAclsInfoRequestProto.newBuilder() to construct.
private GetQueueUserAclsInfoRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetQueueUserAclsInfoRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetQueueUserAclsInfoRequestProto defaultInstance;
public static GetQueueUserAclsInfoRequestProto getDefaultInstance() {
return defaultInstance;
}
public GetQueueUserAclsInfoRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetQueueUserAclsInfoRequestProto(
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_GetQueueUserAclsInfoRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueUserAclsInfoRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetQueueUserAclsInfoRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetQueueUserAclsInfoRequestProto(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.GetQueueUserAclsInfoRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto) 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.GetQueueUserAclsInfoRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto 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.GetQueueUserAclsInfoRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto 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.GetQueueUserAclsInfoRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto 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.GetQueueUserAclsInfoRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto 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.GetQueueUserAclsInfoRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto 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.GetQueueUserAclsInfoRequestProto 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.GetQueueUserAclsInfoRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueUserAclsInfoRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueUserAclsInfoRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.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_GetQueueUserAclsInfoRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto(this);
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto.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.GetQueueUserAclsInfoRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetQueueUserAclsInfoRequestProto)
}
static {
defaultInstance = new GetQueueUserAclsInfoRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetQueueUserAclsInfoRequestProto)
}
public interface GetQueueUserAclsInfoResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
java.util.List
getQueueUserAclsList();
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto getQueueUserAcls(int index);
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
int getQueueUserAclsCount();
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
java.util.List
getQueueUserAclsOrBuilderList();
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProtoOrBuilder getQueueUserAclsOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.GetQueueUserAclsInfoResponseProto}
*/
public static final class GetQueueUserAclsInfoResponseProto extends
com.google.protobuf.GeneratedMessage
implements GetQueueUserAclsInfoResponseProtoOrBuilder {
// Use GetQueueUserAclsInfoResponseProto.newBuilder() to construct.
private GetQueueUserAclsInfoResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetQueueUserAclsInfoResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetQueueUserAclsInfoResponseProto defaultInstance;
public static GetQueueUserAclsInfoResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetQueueUserAclsInfoResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetQueueUserAclsInfoResponseProto(
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)) {
queueUserAcls_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
queueUserAcls_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.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)) {
queueUserAcls_ = java.util.Collections.unmodifiableList(queueUserAcls_);
}
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_GetQueueUserAclsInfoResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueUserAclsInfoResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetQueueUserAclsInfoResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetQueueUserAclsInfoResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
public static final int QUEUEUSERACLS_FIELD_NUMBER = 1;
private java.util.List queueUserAcls_;
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public java.util.List getQueueUserAclsList() {
return queueUserAcls_;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public java.util.List
getQueueUserAclsOrBuilderList() {
return queueUserAcls_;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public int getQueueUserAclsCount() {
return queueUserAcls_.size();
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto getQueueUserAcls(int index) {
return queueUserAcls_.get(index);
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProtoOrBuilder getQueueUserAclsOrBuilder(
int index) {
return queueUserAcls_.get(index);
}
private void initFields() {
queueUserAcls_ = 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 < queueUserAcls_.size(); i++) {
output.writeMessage(1, queueUserAcls_.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 < queueUserAcls_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, queueUserAcls_.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.GetQueueUserAclsInfoResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto) obj;
boolean result = true;
result = result && getQueueUserAclsList()
.equals(other.getQueueUserAclsList());
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 (getQueueUserAclsCount() > 0) {
hash = (37 * hash) + QUEUEUSERACLS_FIELD_NUMBER;
hash = (53 * hash) + getQueueUserAclsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto 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.GetQueueUserAclsInfoResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto 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.GetQueueUserAclsInfoResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto 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.GetQueueUserAclsInfoResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto 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.GetQueueUserAclsInfoResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto 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.GetQueueUserAclsInfoResponseProto 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.GetQueueUserAclsInfoResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueUserAclsInfoResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_GetQueueUserAclsInfoResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getQueueUserAclsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (queueUserAclsBuilder_ == null) {
queueUserAcls_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
queueUserAclsBuilder_.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_GetQueueUserAclsInfoResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto(this);
int from_bitField0_ = bitField0_;
if (queueUserAclsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
queueUserAcls_ = java.util.Collections.unmodifiableList(queueUserAcls_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.queueUserAcls_ = queueUserAcls_;
} else {
result.queueUserAcls_ = queueUserAclsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto.getDefaultInstance()) return this;
if (queueUserAclsBuilder_ == null) {
if (!other.queueUserAcls_.isEmpty()) {
if (queueUserAcls_.isEmpty()) {
queueUserAcls_ = other.queueUserAcls_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQueueUserAclsIsMutable();
queueUserAcls_.addAll(other.queueUserAcls_);
}
onChanged();
}
} else {
if (!other.queueUserAcls_.isEmpty()) {
if (queueUserAclsBuilder_.isEmpty()) {
queueUserAclsBuilder_.dispose();
queueUserAclsBuilder_ = null;
queueUserAcls_ = other.queueUserAcls_;
bitField0_ = (bitField0_ & ~0x00000001);
queueUserAclsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getQueueUserAclsFieldBuilder() : null;
} else {
queueUserAclsBuilder_.addAllMessages(other.queueUserAcls_);
}
}
}
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.GetQueueUserAclsInfoResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetQueueUserAclsInfoResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
private java.util.List queueUserAcls_ =
java.util.Collections.emptyList();
private void ensureQueueUserAclsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
queueUserAcls_ = new java.util.ArrayList(queueUserAcls_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProtoOrBuilder> queueUserAclsBuilder_;
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public java.util.List getQueueUserAclsList() {
if (queueUserAclsBuilder_ == null) {
return java.util.Collections.unmodifiableList(queueUserAcls_);
} else {
return queueUserAclsBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public int getQueueUserAclsCount() {
if (queueUserAclsBuilder_ == null) {
return queueUserAcls_.size();
} else {
return queueUserAclsBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto getQueueUserAcls(int index) {
if (queueUserAclsBuilder_ == null) {
return queueUserAcls_.get(index);
} else {
return queueUserAclsBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder setQueueUserAcls(
int index, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto value) {
if (queueUserAclsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueUserAclsIsMutable();
queueUserAcls_.set(index, value);
onChanged();
} else {
queueUserAclsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder setQueueUserAcls(
int index, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder builderForValue) {
if (queueUserAclsBuilder_ == null) {
ensureQueueUserAclsIsMutable();
queueUserAcls_.set(index, builderForValue.build());
onChanged();
} else {
queueUserAclsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder addQueueUserAcls(org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto value) {
if (queueUserAclsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueUserAclsIsMutable();
queueUserAcls_.add(value);
onChanged();
} else {
queueUserAclsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder addQueueUserAcls(
int index, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto value) {
if (queueUserAclsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueUserAclsIsMutable();
queueUserAcls_.add(index, value);
onChanged();
} else {
queueUserAclsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder addQueueUserAcls(
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder builderForValue) {
if (queueUserAclsBuilder_ == null) {
ensureQueueUserAclsIsMutable();
queueUserAcls_.add(builderForValue.build());
onChanged();
} else {
queueUserAclsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder addQueueUserAcls(
int index, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder builderForValue) {
if (queueUserAclsBuilder_ == null) {
ensureQueueUserAclsIsMutable();
queueUserAcls_.add(index, builderForValue.build());
onChanged();
} else {
queueUserAclsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder addAllQueueUserAcls(
java.lang.Iterable values) {
if (queueUserAclsBuilder_ == null) {
ensureQueueUserAclsIsMutable();
super.addAll(values, queueUserAcls_);
onChanged();
} else {
queueUserAclsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder clearQueueUserAcls() {
if (queueUserAclsBuilder_ == null) {
queueUserAcls_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
queueUserAclsBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public Builder removeQueueUserAcls(int index) {
if (queueUserAclsBuilder_ == null) {
ensureQueueUserAclsIsMutable();
queueUserAcls_.remove(index);
onChanged();
} else {
queueUserAclsBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder getQueueUserAclsBuilder(
int index) {
return getQueueUserAclsFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProtoOrBuilder getQueueUserAclsOrBuilder(
int index) {
if (queueUserAclsBuilder_ == null) {
return queueUserAcls_.get(index); } else {
return queueUserAclsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public java.util.List
getQueueUserAclsOrBuilderList() {
if (queueUserAclsBuilder_ != null) {
return queueUserAclsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queueUserAcls_);
}
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder addQueueUserAclsBuilder() {
return getQueueUserAclsFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder addQueueUserAclsBuilder(
int index) {
return getQueueUserAclsFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.QueueUserACLInfoProto queueUserAcls = 1;
*/
public java.util.List
getQueueUserAclsBuilderList() {
return getQueueUserAclsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProtoOrBuilder>
getQueueUserAclsFieldBuilder() {
if (queueUserAclsBuilder_ == null) {
queueUserAclsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.QueueUserACLInfoProtoOrBuilder>(
queueUserAcls_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
queueUserAcls_ = null;
}
return queueUserAclsBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.GetQueueUserAclsInfoResponseProto)
}
static {
defaultInstance = new GetQueueUserAclsInfoResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.GetQueueUserAclsInfoResponseProto)
}
public interface StartContainerRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
boolean hasContainerLaunchContext();
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto getContainerLaunchContext();
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder getContainerLaunchContextOrBuilder();
// optional .hadoop.common.TokenProto container_token = 2;
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
boolean hasContainerToken();
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
org.apache.hadoop.security.proto.SecurityProtos.TokenProto getContainerToken();
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getContainerTokenOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.StartContainerRequestProto}
*/
public static final class StartContainerRequestProto extends
com.google.protobuf.GeneratedMessage
implements StartContainerRequestProtoOrBuilder {
// Use StartContainerRequestProto.newBuilder() to construct.
private StartContainerRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StartContainerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StartContainerRequestProto defaultInstance;
public static StartContainerRequestProto getDefaultInstance() {
return defaultInstance;
}
public StartContainerRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartContainerRequestProto(
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.ContainerLaunchContextProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerLaunchContext_.toBuilder();
}
containerLaunchContext_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerLaunchContext_);
containerLaunchContext_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = containerToken_.toBuilder();
}
containerToken_ = input.readMessage(org.apache.hadoop.security.proto.SecurityProtos.TokenProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerToken_);
containerToken_ = 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_StartContainerRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StartContainerRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StartContainerRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartContainerRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
public static final int CONTAINER_LAUNCH_CONTEXT_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto containerLaunchContext_;
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public boolean hasContainerLaunchContext() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto getContainerLaunchContext() {
return containerLaunchContext_;
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder getContainerLaunchContextOrBuilder() {
return containerLaunchContext_;
}
// optional .hadoop.common.TokenProto container_token = 2;
public static final int CONTAINER_TOKEN_FIELD_NUMBER = 2;
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto containerToken_;
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public boolean hasContainerToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getContainerToken() {
return containerToken_;
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getContainerTokenOrBuilder() {
return containerToken_;
}
private void initFields() {
containerLaunchContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.getDefaultInstance();
containerToken_ = 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 (hasContainerToken()) {
if (!getContainerToken().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, containerLaunchContext_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, containerToken_);
}
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, containerLaunchContext_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, containerToken_);
}
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.StartContainerRequestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto) obj;
boolean result = true;
result = result && (hasContainerLaunchContext() == other.hasContainerLaunchContext());
if (hasContainerLaunchContext()) {
result = result && getContainerLaunchContext()
.equals(other.getContainerLaunchContext());
}
result = result && (hasContainerToken() == other.hasContainerToken());
if (hasContainerToken()) {
result = result && getContainerToken()
.equals(other.getContainerToken());
}
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 (hasContainerLaunchContext()) {
hash = (37 * hash) + CONTAINER_LAUNCH_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContainerLaunchContext().hashCode();
}
if (hasContainerToken()) {
hash = (37 * hash) + CONTAINER_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getContainerToken().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto 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.StartContainerRequestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto 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.StartContainerRequestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto 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.StartContainerRequestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto 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.StartContainerRequestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto 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.StartContainerRequestProto 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.StartContainerRequestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StartContainerRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StartContainerRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerLaunchContextFieldBuilder();
getContainerTokenFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerLaunchContextBuilder_ == null) {
containerLaunchContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.getDefaultInstance();
} else {
containerLaunchContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (containerTokenBuilder_ == null) {
containerToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
} else {
containerTokenBuilder_.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_StartContainerRequestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerLaunchContextBuilder_ == null) {
result.containerLaunchContext_ = containerLaunchContext_;
} else {
result.containerLaunchContext_ = containerLaunchContextBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (containerTokenBuilder_ == null) {
result.containerToken_ = containerToken_;
} else {
result.containerToken_ = containerTokenBuilder_.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.StartContainerRequestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto.getDefaultInstance()) return this;
if (other.hasContainerLaunchContext()) {
mergeContainerLaunchContext(other.getContainerLaunchContext());
}
if (other.hasContainerToken()) {
mergeContainerToken(other.getContainerToken());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasContainerToken()) {
if (!getContainerToken().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.StartContainerRequestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto containerLaunchContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder> containerLaunchContextBuilder_;
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public boolean hasContainerLaunchContext() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto getContainerLaunchContext() {
if (containerLaunchContextBuilder_ == null) {
return containerLaunchContext_;
} else {
return containerLaunchContextBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public Builder setContainerLaunchContext(org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto value) {
if (containerLaunchContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerLaunchContext_ = value;
onChanged();
} else {
containerLaunchContextBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public Builder setContainerLaunchContext(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.Builder builderForValue) {
if (containerLaunchContextBuilder_ == null) {
containerLaunchContext_ = builderForValue.build();
onChanged();
} else {
containerLaunchContextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public Builder mergeContainerLaunchContext(org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto value) {
if (containerLaunchContextBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerLaunchContext_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.getDefaultInstance()) {
containerLaunchContext_ =
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.newBuilder(containerLaunchContext_).mergeFrom(value).buildPartial();
} else {
containerLaunchContext_ = value;
}
onChanged();
} else {
containerLaunchContextBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public Builder clearContainerLaunchContext() {
if (containerLaunchContextBuilder_ == null) {
containerLaunchContext_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.getDefaultInstance();
onChanged();
} else {
containerLaunchContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.Builder getContainerLaunchContextBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerLaunchContextFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder getContainerLaunchContextOrBuilder() {
if (containerLaunchContextBuilder_ != null) {
return containerLaunchContextBuilder_.getMessageOrBuilder();
} else {
return containerLaunchContext_;
}
}
/**
* optional .hadoop.yarn.ContainerLaunchContextProto container_launch_context = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder>
getContainerLaunchContextFieldBuilder() {
if (containerLaunchContextBuilder_ == null) {
containerLaunchContextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerLaunchContextProtoOrBuilder>(
containerLaunchContext_,
getParentForChildren(),
isClean());
containerLaunchContext_ = null;
}
return containerLaunchContextBuilder_;
}
// optional .hadoop.common.TokenProto container_token = 2;
private org.apache.hadoop.security.proto.SecurityProtos.TokenProto containerToken_ = 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> containerTokenBuilder_;
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public boolean hasContainerToken() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getContainerToken() {
if (containerTokenBuilder_ == null) {
return containerToken_;
} else {
return containerTokenBuilder_.getMessage();
}
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public Builder setContainerToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (containerTokenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerToken_ = value;
onChanged();
} else {
containerTokenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public Builder setContainerToken(
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder builderForValue) {
if (containerTokenBuilder_ == null) {
containerToken_ = builderForValue.build();
onChanged();
} else {
containerTokenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public Builder mergeContainerToken(org.apache.hadoop.security.proto.SecurityProtos.TokenProto value) {
if (containerTokenBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
containerToken_ != org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance()) {
containerToken_ =
org.apache.hadoop.security.proto.SecurityProtos.TokenProto.newBuilder(containerToken_).mergeFrom(value).buildPartial();
} else {
containerToken_ = value;
}
onChanged();
} else {
containerTokenBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public Builder clearContainerToken() {
if (containerTokenBuilder_ == null) {
containerToken_ = org.apache.hadoop.security.proto.SecurityProtos.TokenProto.getDefaultInstance();
onChanged();
} else {
containerTokenBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProto.Builder getContainerTokenBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getContainerTokenFieldBuilder().getBuilder();
}
/**
* optional .hadoop.common.TokenProto container_token = 2;
*/
public org.apache.hadoop.security.proto.SecurityProtos.TokenProtoOrBuilder getContainerTokenOrBuilder() {
if (containerTokenBuilder_ != null) {
return containerTokenBuilder_.getMessageOrBuilder();
} else {
return containerToken_;
}
}
/**
* optional .hadoop.common.TokenProto container_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>
getContainerTokenFieldBuilder() {
if (containerTokenBuilder_ == null) {
containerTokenBuilder_ = 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>(
containerToken_,
getParentForChildren(),
isClean());
containerToken_ = null;
}
return containerTokenBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.StartContainerRequestProto)
}
static {
defaultInstance = new StartContainerRequestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.StartContainerRequestProto)
}
public interface StartContainerResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
java.util.List
getServicesMetaDataList();
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto getServicesMetaData(int index);
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
int getServicesMetaDataCount();
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
java.util.List
getServicesMetaDataOrBuilderList();
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProtoOrBuilder getServicesMetaDataOrBuilder(
int index);
}
/**
* Protobuf type {@code hadoop.yarn.StartContainerResponseProto}
*/
public static final class StartContainerResponseProto extends
com.google.protobuf.GeneratedMessage
implements StartContainerResponseProtoOrBuilder {
// Use StartContainerResponseProto.newBuilder() to construct.
private StartContainerResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StartContainerResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StartContainerResponseProto defaultInstance;
public static StartContainerResponseProto getDefaultInstance() {
return defaultInstance;
}
public StartContainerResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartContainerResponseProto(
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)) {
servicesMetaData_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
servicesMetaData_.add(input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.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)) {
servicesMetaData_ = java.util.Collections.unmodifiableList(servicesMetaData_);
}
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_StartContainerResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StartContainerResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StartContainerResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartContainerResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
public static final int SERVICES_META_DATA_FIELD_NUMBER = 1;
private java.util.List servicesMetaData_;
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public java.util.List getServicesMetaDataList() {
return servicesMetaData_;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public java.util.List
getServicesMetaDataOrBuilderList() {
return servicesMetaData_;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public int getServicesMetaDataCount() {
return servicesMetaData_.size();
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto getServicesMetaData(int index) {
return servicesMetaData_.get(index);
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProtoOrBuilder getServicesMetaDataOrBuilder(
int index) {
return servicesMetaData_.get(index);
}
private void initFields() {
servicesMetaData_ = 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 < servicesMetaData_.size(); i++) {
output.writeMessage(1, servicesMetaData_.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 < servicesMetaData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, servicesMetaData_.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.StartContainerResponseProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto other = (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto) obj;
boolean result = true;
result = result && getServicesMetaDataList()
.equals(other.getServicesMetaDataList());
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 (getServicesMetaDataCount() > 0) {
hash = (37 * hash) + SERVICES_META_DATA_FIELD_NUMBER;
hash = (53 * hash) + getServicesMetaDataList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto 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.StartContainerResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto 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.StartContainerResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto 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.StartContainerResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto 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.StartContainerResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto 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.StartContainerResponseProto 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.StartContainerResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StartContainerResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StartContainerResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getServicesMetaDataFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (servicesMetaDataBuilder_ == null) {
servicesMetaData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
servicesMetaDataBuilder_.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_StartContainerResponseProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto build() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto result = new org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto(this);
int from_bitField0_ = bitField0_;
if (servicesMetaDataBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
servicesMetaData_ = java.util.Collections.unmodifiableList(servicesMetaData_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.servicesMetaData_ = servicesMetaData_;
} else {
result.servicesMetaData_ = servicesMetaDataBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto.getDefaultInstance()) return this;
if (servicesMetaDataBuilder_ == null) {
if (!other.servicesMetaData_.isEmpty()) {
if (servicesMetaData_.isEmpty()) {
servicesMetaData_ = other.servicesMetaData_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureServicesMetaDataIsMutable();
servicesMetaData_.addAll(other.servicesMetaData_);
}
onChanged();
}
} else {
if (!other.servicesMetaData_.isEmpty()) {
if (servicesMetaDataBuilder_.isEmpty()) {
servicesMetaDataBuilder_.dispose();
servicesMetaDataBuilder_ = null;
servicesMetaData_ = other.servicesMetaData_;
bitField0_ = (bitField0_ & ~0x00000001);
servicesMetaDataBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getServicesMetaDataFieldBuilder() : null;
} else {
servicesMetaDataBuilder_.addAllMessages(other.servicesMetaData_);
}
}
}
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.StartContainerResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
private java.util.List servicesMetaData_ =
java.util.Collections.emptyList();
private void ensureServicesMetaDataIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
servicesMetaData_ = new java.util.ArrayList(servicesMetaData_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProtoOrBuilder> servicesMetaDataBuilder_;
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public java.util.List getServicesMetaDataList() {
if (servicesMetaDataBuilder_ == null) {
return java.util.Collections.unmodifiableList(servicesMetaData_);
} else {
return servicesMetaDataBuilder_.getMessageList();
}
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public int getServicesMetaDataCount() {
if (servicesMetaDataBuilder_ == null) {
return servicesMetaData_.size();
} else {
return servicesMetaDataBuilder_.getCount();
}
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto getServicesMetaData(int index) {
if (servicesMetaDataBuilder_ == null) {
return servicesMetaData_.get(index);
} else {
return servicesMetaDataBuilder_.getMessage(index);
}
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder setServicesMetaData(
int index, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto value) {
if (servicesMetaDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesMetaDataIsMutable();
servicesMetaData_.set(index, value);
onChanged();
} else {
servicesMetaDataBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder setServicesMetaData(
int index, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder builderForValue) {
if (servicesMetaDataBuilder_ == null) {
ensureServicesMetaDataIsMutable();
servicesMetaData_.set(index, builderForValue.build());
onChanged();
} else {
servicesMetaDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder addServicesMetaData(org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto value) {
if (servicesMetaDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesMetaDataIsMutable();
servicesMetaData_.add(value);
onChanged();
} else {
servicesMetaDataBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder addServicesMetaData(
int index, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto value) {
if (servicesMetaDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServicesMetaDataIsMutable();
servicesMetaData_.add(index, value);
onChanged();
} else {
servicesMetaDataBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder addServicesMetaData(
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder builderForValue) {
if (servicesMetaDataBuilder_ == null) {
ensureServicesMetaDataIsMutable();
servicesMetaData_.add(builderForValue.build());
onChanged();
} else {
servicesMetaDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder addServicesMetaData(
int index, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder builderForValue) {
if (servicesMetaDataBuilder_ == null) {
ensureServicesMetaDataIsMutable();
servicesMetaData_.add(index, builderForValue.build());
onChanged();
} else {
servicesMetaDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder addAllServicesMetaData(
java.lang.Iterable values) {
if (servicesMetaDataBuilder_ == null) {
ensureServicesMetaDataIsMutable();
super.addAll(values, servicesMetaData_);
onChanged();
} else {
servicesMetaDataBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder clearServicesMetaData() {
if (servicesMetaDataBuilder_ == null) {
servicesMetaData_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
servicesMetaDataBuilder_.clear();
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public Builder removeServicesMetaData(int index) {
if (servicesMetaDataBuilder_ == null) {
ensureServicesMetaDataIsMutable();
servicesMetaData_.remove(index);
onChanged();
} else {
servicesMetaDataBuilder_.remove(index);
}
return this;
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder getServicesMetaDataBuilder(
int index) {
return getServicesMetaDataFieldBuilder().getBuilder(index);
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProtoOrBuilder getServicesMetaDataOrBuilder(
int index) {
if (servicesMetaDataBuilder_ == null) {
return servicesMetaData_.get(index); } else {
return servicesMetaDataBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public java.util.List
getServicesMetaDataOrBuilderList() {
if (servicesMetaDataBuilder_ != null) {
return servicesMetaDataBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(servicesMetaData_);
}
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder addServicesMetaDataBuilder() {
return getServicesMetaDataFieldBuilder().addBuilder(
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder addServicesMetaDataBuilder(
int index) {
return getServicesMetaDataFieldBuilder().addBuilder(
index, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.getDefaultInstance());
}
/**
* repeated .hadoop.yarn.StringBytesMapProto services_meta_data = 1;
*/
public java.util.List
getServicesMetaDataBuilderList() {
return getServicesMetaDataFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProtoOrBuilder>
getServicesMetaDataFieldBuilder() {
if (servicesMetaDataBuilder_ == null) {
servicesMetaDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.StringBytesMapProtoOrBuilder>(
servicesMetaData_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
servicesMetaData_ = null;
}
return servicesMetaDataBuilder_;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.StartContainerResponseProto)
}
static {
defaultInstance = new StartContainerResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.StartContainerResponseProto)
}
public interface StopContainerRequestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ContainerIdProto container_id = 1;
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
boolean hasContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto container_id = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder();
}
/**
* Protobuf type {@code hadoop.yarn.StopContainerRequestProto}
*/
public static final class StopContainerRequestProto extends
com.google.protobuf.GeneratedMessage
implements StopContainerRequestProtoOrBuilder {
// Use StopContainerRequestProto.newBuilder() to construct.
private StopContainerRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StopContainerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StopContainerRequestProto defaultInstance;
public static StopContainerRequestProto getDefaultInstance() {
return defaultInstance;
}
public StopContainerRequestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StopContainerRequestProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} 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_StopContainerRequestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnServiceProtos.internal_static_hadoop_yarn_StopContainerRequestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainerRequestProto.class, org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainerRequestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StopContainerRequestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StopContainerRequestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ContainerIdProto container_id = 1;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
/**
*