org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: test_token.proto
package org.apache.hadoop.yarn.proto;
public final class YarnSecurityTestTokenProtos {
private YarnSecurityTestTokenProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface NMTokenIdentifierNewProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
boolean hasAppAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId();
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder();
// optional .hadoop.yarn.NodeIdProto nodeId = 2;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
boolean hasNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId();
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder();
// optional string appSubmitter = 3;
/**
* optional string appSubmitter = 3;
*/
boolean hasAppSubmitter();
/**
* optional string appSubmitter = 3;
*/
java.lang.String getAppSubmitter();
/**
* optional string appSubmitter = 3;
*/
com.google.protobuf.ByteString
getAppSubmitterBytes();
// optional int32 keyId = 4;
/**
* optional int32 keyId = 4;
*/
boolean hasKeyId();
/**
* optional int32 keyId = 4;
*/
int getKeyId();
// optional string message = 5;
/**
* optional string message = 5;
*/
boolean hasMessage();
/**
* optional string message = 5;
*/
java.lang.String getMessage();
/**
* optional string message = 5;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code hadoop.yarn.NMTokenIdentifierNewProto}
*/
public static final class NMTokenIdentifierNewProto extends
com.google.protobuf.GeneratedMessage
implements NMTokenIdentifierNewProtoOrBuilder {
// Use NMTokenIdentifierNewProto.newBuilder() to construct.
private NMTokenIdentifierNewProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private NMTokenIdentifierNewProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final NMTokenIdentifierNewProto defaultInstance;
public static NMTokenIdentifierNewProto getDefaultInstance() {
return defaultInstance;
}
public NMTokenIdentifierNewProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NMTokenIdentifierNewProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = appAttemptId_.toBuilder();
}
appAttemptId_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(appAttemptId_);
appAttemptId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
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_ |= 0x00000002;
break;
}
case 26: {
bitField0_ |= 0x00000004;
appSubmitter_ = input.readBytes();
break;
}
case 32: {
bitField0_ |= 0x00000008;
keyId_ = input.readInt32();
break;
}
case 42: {
bitField0_ |= 0x00000010;
message_ = 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.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierNewProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierNewProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public NMTokenIdentifierNewProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NMTokenIdentifierNewProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
public static final int APPATTEMPTID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public boolean hasAppAttemptId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
return appAttemptId_;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
return appAttemptId_;
}
// optional .hadoop.yarn.NodeIdProto nodeId = 2;
public static final int NODEID_FIELD_NUMBER = 2;
private org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto nodeId_;
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
return nodeId_;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
return nodeId_;
}
// optional string appSubmitter = 3;
public static final int APPSUBMITTER_FIELD_NUMBER = 3;
private java.lang.Object appSubmitter_;
/**
* optional string appSubmitter = 3;
*/
public boolean hasAppSubmitter() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string appSubmitter = 3;
*/
public java.lang.String getAppSubmitter() {
java.lang.Object ref = appSubmitter_;
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()) {
appSubmitter_ = s;
}
return s;
}
}
/**
* optional string appSubmitter = 3;
*/
public com.google.protobuf.ByteString
getAppSubmitterBytes() {
java.lang.Object ref = appSubmitter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appSubmitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional int32 keyId = 4;
public static final int KEYID_FIELD_NUMBER = 4;
private int keyId_;
/**
* optional int32 keyId = 4;
*/
public boolean hasKeyId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 keyId = 4;
*/
public int getKeyId() {
return keyId_;
}
// optional string message = 5;
public static final int MESSAGE_FIELD_NUMBER = 5;
private java.lang.Object message_;
/**
* optional string message = 5;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string message = 5;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 5;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
appSubmitter_ = "";
keyId_ = 0;
message_ = "";
}
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, appAttemptId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, nodeId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getAppSubmitterBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, keyId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getMessageBytes());
}
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, appAttemptId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, nodeId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getAppSubmitterBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, keyId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getMessageBytes());
}
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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto) obj;
boolean result = true;
result = result && (hasAppAttemptId() == other.hasAppAttemptId());
if (hasAppAttemptId()) {
result = result && getAppAttemptId()
.equals(other.getAppAttemptId());
}
result = result && (hasNodeId() == other.hasNodeId());
if (hasNodeId()) {
result = result && getNodeId()
.equals(other.getNodeId());
}
result = result && (hasAppSubmitter() == other.hasAppSubmitter());
if (hasAppSubmitter()) {
result = result && getAppSubmitter()
.equals(other.getAppSubmitter());
}
result = result && (hasKeyId() == other.hasKeyId());
if (hasKeyId()) {
result = result && (getKeyId()
== other.getKeyId());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
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 (hasAppAttemptId()) {
hash = (37 * hash) + APPATTEMPTID_FIELD_NUMBER;
hash = (53 * hash) + getAppAttemptId().hashCode();
}
if (hasNodeId()) {
hash = (37 * hash) + NODEID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
}
if (hasAppSubmitter()) {
hash = (37 * hash) + APPSUBMITTER_FIELD_NUMBER;
hash = (53 * hash) + getAppSubmitter().hashCode();
}
if (hasKeyId()) {
hash = (37 * hash) + KEYID_FIELD_NUMBER;
hash = (53 * hash) + getKeyId();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto 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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto 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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto 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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto 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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto 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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto 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.NMTokenIdentifierNewProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierNewProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierNewProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAppAttemptIdFieldBuilder();
getNodeIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (appAttemptIdBuilder_ == null) {
appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
} else {
appAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (nodeIdBuilder_ == null) {
nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
appSubmitter_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
keyId_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_NMTokenIdentifierNewProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto build() {
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (appAttemptIdBuilder_ == null) {
result.appAttemptId_ = appAttemptId_;
} else {
result.appAttemptId_ = appAttemptIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (nodeIdBuilder_ == null) {
result.nodeId_ = nodeId_;
} else {
result.nodeId_ = nodeIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.appSubmitter_ = appSubmitter_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.keyId_ = keyId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.getDefaultInstance()) return this;
if (other.hasAppAttemptId()) {
mergeAppAttemptId(other.getAppAttemptId());
}
if (other.hasNodeId()) {
mergeNodeId(other.getNodeId());
}
if (other.hasAppSubmitter()) {
bitField0_ |= 0x00000004;
appSubmitter_ = other.appSubmitter_;
onChanged();
}
if (other.hasKeyId()) {
setKeyId(other.getKeyId());
}
if (other.hasMessage()) {
bitField0_ |= 0x00000010;
message_ = other.message_;
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.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder> appAttemptIdBuilder_;
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public boolean hasAppAttemptId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto getAppAttemptId() {
if (appAttemptIdBuilder_ == null) {
return appAttemptId_;
} else {
return appAttemptIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public Builder setAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (appAttemptIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
appAttemptId_ = value;
onChanged();
} else {
appAttemptIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public Builder setAppAttemptId(
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder builderForValue) {
if (appAttemptIdBuilder_ == null) {
appAttemptId_ = builderForValue.build();
onChanged();
} else {
appAttemptIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public Builder mergeAppAttemptId(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto value) {
if (appAttemptIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
appAttemptId_ != org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance()) {
appAttemptId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.newBuilder(appAttemptId_).mergeFrom(value).buildPartial();
} else {
appAttemptId_ = value;
}
onChanged();
} else {
appAttemptIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public Builder clearAppAttemptId() {
if (appAttemptIdBuilder_ == null) {
appAttemptId_ = org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.getDefaultInstance();
onChanged();
} else {
appAttemptIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder getAppAttemptIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAppAttemptIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder getAppAttemptIdOrBuilder() {
if (appAttemptIdBuilder_ != null) {
return appAttemptIdBuilder_.getMessageOrBuilder();
} else {
return appAttemptId_;
}
}
/**
* optional .hadoop.yarn.ApplicationAttemptIdProto appAttemptId = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>
getAppAttemptIdFieldBuilder() {
if (appAttemptIdBuilder_ == null) {
appAttemptIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAttemptIdProtoOrBuilder>(
appAttemptId_,
getParentForChildren(),
isClean());
appAttemptId_ = null;
}
return appAttemptIdBuilder_;
}
// optional .hadoop.yarn.NodeIdProto nodeId = 2;
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 = 2;
*/
public boolean hasNodeId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto getNodeId() {
if (nodeIdBuilder_ == null) {
return nodeId_;
} else {
return nodeIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
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_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
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_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public Builder mergeNodeId(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto value) {
if (nodeIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
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_ |= 0x00000002;
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public Builder clearNodeId() {
if (nodeIdBuilder_ == null) {
nodeId_ = org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.getDefaultInstance();
onChanged();
} else {
nodeIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto.Builder getNodeIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNodeIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProtoOrBuilder getNodeIdOrBuilder() {
if (nodeIdBuilder_ != null) {
return nodeIdBuilder_.getMessageOrBuilder();
} else {
return nodeId_;
}
}
/**
* optional .hadoop.yarn.NodeIdProto nodeId = 2;
*/
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 string appSubmitter = 3;
private java.lang.Object appSubmitter_ = "";
/**
* optional string appSubmitter = 3;
*/
public boolean hasAppSubmitter() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string appSubmitter = 3;
*/
public java.lang.String getAppSubmitter() {
java.lang.Object ref = appSubmitter_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
appSubmitter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string appSubmitter = 3;
*/
public com.google.protobuf.ByteString
getAppSubmitterBytes() {
java.lang.Object ref = appSubmitter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appSubmitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string appSubmitter = 3;
*/
public Builder setAppSubmitter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appSubmitter_ = value;
onChanged();
return this;
}
/**
* optional string appSubmitter = 3;
*/
public Builder clearAppSubmitter() {
bitField0_ = (bitField0_ & ~0x00000004);
appSubmitter_ = getDefaultInstance().getAppSubmitter();
onChanged();
return this;
}
/**
* optional string appSubmitter = 3;
*/
public Builder setAppSubmitterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appSubmitter_ = value;
onChanged();
return this;
}
// optional int32 keyId = 4;
private int keyId_ ;
/**
* optional int32 keyId = 4;
*/
public boolean hasKeyId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional int32 keyId = 4;
*/
public int getKeyId() {
return keyId_;
}
/**
* optional int32 keyId = 4;
*/
public Builder setKeyId(int value) {
bitField0_ |= 0x00000008;
keyId_ = value;
onChanged();
return this;
}
/**
* optional int32 keyId = 4;
*/
public Builder clearKeyId() {
bitField0_ = (bitField0_ & ~0x00000008);
keyId_ = 0;
onChanged();
return this;
}
// optional string message = 5;
private java.lang.Object message_ = "";
/**
* optional string message = 5;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string message = 5;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 5;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string message = 5;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 5;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000010);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 5;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
message_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.NMTokenIdentifierNewProto)
}
static {
defaultInstance = new NMTokenIdentifierNewProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.NMTokenIdentifierNewProto)
}
public interface ContainerTokenIdentifierForTestProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .hadoop.yarn.ContainerIdProto containerId = 1;
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
boolean hasContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId();
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder();
// optional string nmHostAddr = 2;
/**
* optional string nmHostAddr = 2;
*/
boolean hasNmHostAddr();
/**
* optional string nmHostAddr = 2;
*/
java.lang.String getNmHostAddr();
/**
* optional string nmHostAddr = 2;
*/
com.google.protobuf.ByteString
getNmHostAddrBytes();
// optional string appSubmitter = 3;
/**
* optional string appSubmitter = 3;
*/
boolean hasAppSubmitter();
/**
* optional string appSubmitter = 3;
*/
java.lang.String getAppSubmitter();
/**
* optional string appSubmitter = 3;
*/
com.google.protobuf.ByteString
getAppSubmitterBytes();
// optional .hadoop.yarn.ResourceProto resource = 4;
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
boolean hasResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource();
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder();
// optional int64 expiryTimeStamp = 5;
/**
* optional int64 expiryTimeStamp = 5;
*/
boolean hasExpiryTimeStamp();
/**
* optional int64 expiryTimeStamp = 5;
*/
long getExpiryTimeStamp();
// optional int32 masterKeyId = 6;
/**
* optional int32 masterKeyId = 6;
*/
boolean hasMasterKeyId();
/**
* optional int32 masterKeyId = 6;
*/
int getMasterKeyId();
// optional int64 rmIdentifier = 7;
/**
* optional int64 rmIdentifier = 7;
*/
boolean hasRmIdentifier();
/**
* optional int64 rmIdentifier = 7;
*/
long getRmIdentifier();
// optional .hadoop.yarn.PriorityProto priority = 8;
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
boolean hasPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority();
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder();
// optional int64 creationTime = 9;
/**
* optional int64 creationTime = 9;
*/
boolean hasCreationTime();
/**
* optional int64 creationTime = 9;
*/
long getCreationTime();
// optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
boolean hasLogAggregationContext();
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto getLogAggregationContext();
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder getLogAggregationContextOrBuilder();
// optional string message = 11;
/**
* optional string message = 11;
*/
boolean hasMessage();
/**
* optional string message = 11;
*/
java.lang.String getMessage();
/**
* optional string message = 11;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code hadoop.yarn.ContainerTokenIdentifierForTestProto}
*/
public static final class ContainerTokenIdentifierForTestProto extends
com.google.protobuf.GeneratedMessage
implements ContainerTokenIdentifierForTestProtoOrBuilder {
// Use ContainerTokenIdentifierForTestProto.newBuilder() to construct.
private ContainerTokenIdentifierForTestProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ContainerTokenIdentifierForTestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ContainerTokenIdentifierForTestProto defaultInstance;
public static ContainerTokenIdentifierForTestProto getDefaultInstance() {
return defaultInstance;
}
public ContainerTokenIdentifierForTestProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContainerTokenIdentifierForTestProto(
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;
}
case 18: {
bitField0_ |= 0x00000002;
nmHostAddr_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
appSubmitter_ = input.readBytes();
break;
}
case 34: {
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
bitField0_ |= 0x00000010;
expiryTimeStamp_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
masterKeyId_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
rmIdentifier_ = input.readInt64();
break;
}
case 66: {
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = priority_.toBuilder();
}
priority_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(priority_);
priority_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 72: {
bitField0_ |= 0x00000100;
creationTime_ = input.readInt64();
break;
}
case 82: {
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = logAggregationContext_.toBuilder();
}
logAggregationContext_ = input.readMessage(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(logAggregationContext_);
logAggregationContext_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 90: {
bitField0_ |= 0x00000400;
message_ = 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.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ContainerTokenIdentifierForTestProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerTokenIdentifierForTestProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .hadoop.yarn.ContainerIdProto containerId = 1;
public static final int CONTAINERID_FIELD_NUMBER = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_;
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
return containerId_;
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
return containerId_;
}
// optional string nmHostAddr = 2;
public static final int NMHOSTADDR_FIELD_NUMBER = 2;
private java.lang.Object nmHostAddr_;
/**
* optional string nmHostAddr = 2;
*/
public boolean hasNmHostAddr() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string nmHostAddr = 2;
*/
public java.lang.String getNmHostAddr() {
java.lang.Object ref = nmHostAddr_;
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()) {
nmHostAddr_ = s;
}
return s;
}
}
/**
* optional string nmHostAddr = 2;
*/
public com.google.protobuf.ByteString
getNmHostAddrBytes() {
java.lang.Object ref = nmHostAddr_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nmHostAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string appSubmitter = 3;
public static final int APPSUBMITTER_FIELD_NUMBER = 3;
private java.lang.Object appSubmitter_;
/**
* optional string appSubmitter = 3;
*/
public boolean hasAppSubmitter() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string appSubmitter = 3;
*/
public java.lang.String getAppSubmitter() {
java.lang.Object ref = appSubmitter_;
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()) {
appSubmitter_ = s;
}
return s;
}
}
/**
* optional string appSubmitter = 3;
*/
public com.google.protobuf.ByteString
getAppSubmitterBytes() {
java.lang.Object ref = appSubmitter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appSubmitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional .hadoop.yarn.ResourceProto resource = 4;
public static final int RESOURCE_FIELD_NUMBER = 4;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_;
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
return resource_;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
return resource_;
}
// optional int64 expiryTimeStamp = 5;
public static final int EXPIRYTIMESTAMP_FIELD_NUMBER = 5;
private long expiryTimeStamp_;
/**
* optional int64 expiryTimeStamp = 5;
*/
public boolean hasExpiryTimeStamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 expiryTimeStamp = 5;
*/
public long getExpiryTimeStamp() {
return expiryTimeStamp_;
}
// optional int32 masterKeyId = 6;
public static final int MASTERKEYID_FIELD_NUMBER = 6;
private int masterKeyId_;
/**
* optional int32 masterKeyId = 6;
*/
public boolean hasMasterKeyId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 masterKeyId = 6;
*/
public int getMasterKeyId() {
return masterKeyId_;
}
// optional int64 rmIdentifier = 7;
public static final int RMIDENTIFIER_FIELD_NUMBER = 7;
private long rmIdentifier_;
/**
* optional int64 rmIdentifier = 7;
*/
public boolean hasRmIdentifier() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int64 rmIdentifier = 7;
*/
public long getRmIdentifier() {
return rmIdentifier_;
}
// optional .hadoop.yarn.PriorityProto priority = 8;
public static final int PRIORITY_FIELD_NUMBER = 8;
private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_;
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
return priority_;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
return priority_;
}
// optional int64 creationTime = 9;
public static final int CREATIONTIME_FIELD_NUMBER = 9;
private long creationTime_;
/**
* optional int64 creationTime = 9;
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 creationTime = 9;
*/
public long getCreationTime() {
return creationTime_;
}
// optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
public static final int LOGAGGREGATIONCONTEXT_FIELD_NUMBER = 10;
private org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto logAggregationContext_;
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public boolean hasLogAggregationContext() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto getLogAggregationContext() {
return logAggregationContext_;
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder getLogAggregationContextOrBuilder() {
return logAggregationContext_;
}
// optional string message = 11;
public static final int MESSAGE_FIELD_NUMBER = 11;
private java.lang.Object message_;
/**
* optional string message = 11;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string message = 11;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 11;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
nmHostAddr_ = "";
appSubmitter_ = "";
resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
expiryTimeStamp_ = 0L;
masterKeyId_ = 0;
rmIdentifier_ = 0L;
priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
creationTime_ = 0L;
logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
message_ = "";
}
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, containerId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNmHostAddrBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getAppSubmitterBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, resource_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, expiryTimeStamp_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, masterKeyId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt64(7, rmIdentifier_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(8, priority_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(9, creationTime_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(10, logAggregationContext_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeBytes(11, getMessageBytes());
}
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, containerId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNmHostAddrBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getAppSubmitterBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, resource_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, expiryTimeStamp_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, masterKeyId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, rmIdentifier_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, priority_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, creationTime_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, logAggregationContext_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(11, getMessageBytes());
}
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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto)) {
return super.equals(obj);
}
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto other = (org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto) obj;
boolean result = true;
result = result && (hasContainerId() == other.hasContainerId());
if (hasContainerId()) {
result = result && getContainerId()
.equals(other.getContainerId());
}
result = result && (hasNmHostAddr() == other.hasNmHostAddr());
if (hasNmHostAddr()) {
result = result && getNmHostAddr()
.equals(other.getNmHostAddr());
}
result = result && (hasAppSubmitter() == other.hasAppSubmitter());
if (hasAppSubmitter()) {
result = result && getAppSubmitter()
.equals(other.getAppSubmitter());
}
result = result && (hasResource() == other.hasResource());
if (hasResource()) {
result = result && getResource()
.equals(other.getResource());
}
result = result && (hasExpiryTimeStamp() == other.hasExpiryTimeStamp());
if (hasExpiryTimeStamp()) {
result = result && (getExpiryTimeStamp()
== other.getExpiryTimeStamp());
}
result = result && (hasMasterKeyId() == other.hasMasterKeyId());
if (hasMasterKeyId()) {
result = result && (getMasterKeyId()
== other.getMasterKeyId());
}
result = result && (hasRmIdentifier() == other.hasRmIdentifier());
if (hasRmIdentifier()) {
result = result && (getRmIdentifier()
== other.getRmIdentifier());
}
result = result && (hasPriority() == other.hasPriority());
if (hasPriority()) {
result = result && getPriority()
.equals(other.getPriority());
}
result = result && (hasCreationTime() == other.hasCreationTime());
if (hasCreationTime()) {
result = result && (getCreationTime()
== other.getCreationTime());
}
result = result && (hasLogAggregationContext() == other.hasLogAggregationContext());
if (hasLogAggregationContext()) {
result = result && getLogAggregationContext()
.equals(other.getLogAggregationContext());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
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 (hasContainerId()) {
hash = (37 * hash) + CONTAINERID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
}
if (hasNmHostAddr()) {
hash = (37 * hash) + NMHOSTADDR_FIELD_NUMBER;
hash = (53 * hash) + getNmHostAddr().hashCode();
}
if (hasAppSubmitter()) {
hash = (37 * hash) + APPSUBMITTER_FIELD_NUMBER;
hash = (53 * hash) + getAppSubmitter().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
if (hasExpiryTimeStamp()) {
hash = (37 * hash) + EXPIRYTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getExpiryTimeStamp());
}
if (hasMasterKeyId()) {
hash = (37 * hash) + MASTERKEYID_FIELD_NUMBER;
hash = (53 * hash) + getMasterKeyId();
}
if (hasRmIdentifier()) {
hash = (37 * hash) + RMIDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getRmIdentifier());
}
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority().hashCode();
}
if (hasCreationTime()) {
hash = (37 * hash) + CREATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + hashLong(getCreationTime());
}
if (hasLogAggregationContext()) {
hash = (37 * hash) + LOGAGGREGATIONCONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getLogAggregationContext().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto 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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto 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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto 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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto 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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto 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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto 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.ContainerTokenIdentifierForTestProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.class, org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.Builder.class);
}
// Construct using org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
getResourceFieldBuilder();
getPriorityFieldBuilder();
getLogAggregationContextFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
nmHostAddr_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
appSubmitter_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (resourceBuilder_ == null) {
resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
expiryTimeStamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
masterKeyId_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
rmIdentifier_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
if (priorityBuilder_ == null) {
priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
creationTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
if (logAggregationContextBuilder_ == null) {
logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
} else {
logAggregationContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_descriptor;
}
public org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto getDefaultInstanceForType() {
return org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.getDefaultInstance();
}
public org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto build() {
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto buildPartial() {
org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto result = new org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.nmHostAddr_ = nmHostAddr_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.appSubmitter_ = appSubmitter_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (resourceBuilder_ == null) {
result.resource_ = resource_;
} else {
result.resource_ = resourceBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.expiryTimeStamp_ = expiryTimeStamp_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.masterKeyId_ = masterKeyId_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.rmIdentifier_ = rmIdentifier_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (priorityBuilder_ == null) {
result.priority_ = priority_;
} else {
result.priority_ = priorityBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.creationTime_ = creationTime_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
if (logAggregationContextBuilder_ == null) {
result.logAggregationContext_ = logAggregationContext_;
} else {
result.logAggregationContext_ = logAggregationContextBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto) {
return mergeFrom((org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto other) {
if (other == org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
if (other.hasNmHostAddr()) {
bitField0_ |= 0x00000002;
nmHostAddr_ = other.nmHostAddr_;
onChanged();
}
if (other.hasAppSubmitter()) {
bitField0_ |= 0x00000004;
appSubmitter_ = other.appSubmitter_;
onChanged();
}
if (other.hasResource()) {
mergeResource(other.getResource());
}
if (other.hasExpiryTimeStamp()) {
setExpiryTimeStamp(other.getExpiryTimeStamp());
}
if (other.hasMasterKeyId()) {
setMasterKeyId(other.getMasterKeyId());
}
if (other.hasRmIdentifier()) {
setRmIdentifier(other.getRmIdentifier());
}
if (other.hasPriority()) {
mergePriority(other.getPriority());
}
if (other.hasCreationTime()) {
setCreationTime(other.getCreationTime());
}
if (other.hasLogAggregationContext()) {
mergeLogAggregationContext(other.getLogAggregationContext());
}
if (other.hasMessage()) {
bitField0_ |= 0x00000400;
message_ = other.message_;
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.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .hadoop.yarn.ContainerIdProto containerId = 1;
private org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder> containerIdBuilder_;
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public Builder setContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public Builder setContainerId(
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public Builder mergeContainerId(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerId_ != org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance()) {
containerId_ =
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.getDefaultInstance();
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_;
}
}
/**
* optional .hadoop.yarn.ContainerIdProto containerId = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProtoOrBuilder>(
containerId_,
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
// optional string nmHostAddr = 2;
private java.lang.Object nmHostAddr_ = "";
/**
* optional string nmHostAddr = 2;
*/
public boolean hasNmHostAddr() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string nmHostAddr = 2;
*/
public java.lang.String getNmHostAddr() {
java.lang.Object ref = nmHostAddr_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
nmHostAddr_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string nmHostAddr = 2;
*/
public com.google.protobuf.ByteString
getNmHostAddrBytes() {
java.lang.Object ref = nmHostAddr_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nmHostAddr_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string nmHostAddr = 2;
*/
public Builder setNmHostAddr(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nmHostAddr_ = value;
onChanged();
return this;
}
/**
* optional string nmHostAddr = 2;
*/
public Builder clearNmHostAddr() {
bitField0_ = (bitField0_ & ~0x00000002);
nmHostAddr_ = getDefaultInstance().getNmHostAddr();
onChanged();
return this;
}
/**
* optional string nmHostAddr = 2;
*/
public Builder setNmHostAddrBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
nmHostAddr_ = value;
onChanged();
return this;
}
// optional string appSubmitter = 3;
private java.lang.Object appSubmitter_ = "";
/**
* optional string appSubmitter = 3;
*/
public boolean hasAppSubmitter() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string appSubmitter = 3;
*/
public java.lang.String getAppSubmitter() {
java.lang.Object ref = appSubmitter_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
appSubmitter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string appSubmitter = 3;
*/
public com.google.protobuf.ByteString
getAppSubmitterBytes() {
java.lang.Object ref = appSubmitter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appSubmitter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string appSubmitter = 3;
*/
public Builder setAppSubmitter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appSubmitter_ = value;
onChanged();
return this;
}
/**
* optional string appSubmitter = 3;
*/
public Builder clearAppSubmitter() {
bitField0_ = (bitField0_ & ~0x00000004);
appSubmitter_ = getDefaultInstance().getAppSubmitter();
onChanged();
return this;
}
/**
* optional string appSubmitter = 3;
*/
public Builder setAppSubmitterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appSubmitter_ = value;
onChanged();
return this;
}
// optional .hadoop.yarn.ResourceProto resource = 4;
private org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto resource_ = 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> resourceBuilder_;
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public boolean hasResource() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getResource() {
if (resourceBuilder_ == null) {
return resource_;
} else {
return resourceBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder setResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder setResource(
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder builderForValue) {
if (resourceBuilder_ == null) {
resource_ = builderForValue.build();
onChanged();
} else {
resourceBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder mergeResource(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto value) {
if (resourceBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
resource_ != org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance()) {
resource_ =
org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.newBuilder(resource_).mergeFrom(value).buildPartial();
} else {
resource_ = value;
}
onChanged();
} else {
resourceBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public Builder clearResource() {
if (resourceBuilder_ == null) {
resource_ = org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.getDefaultInstance();
onChanged();
} else {
resourceBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto.Builder getResourceBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getResourceFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProtoOrBuilder getResourceOrBuilder() {
if (resourceBuilder_ != null) {
return resourceBuilder_.getMessageOrBuilder();
} else {
return resource_;
}
}
/**
* optional .hadoop.yarn.ResourceProto resource = 4;
*/
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>
getResourceFieldBuilder() {
if (resourceBuilder_ == null) {
resourceBuilder_ = 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>(
resource_,
getParentForChildren(),
isClean());
resource_ = null;
}
return resourceBuilder_;
}
// optional int64 expiryTimeStamp = 5;
private long expiryTimeStamp_ ;
/**
* optional int64 expiryTimeStamp = 5;
*/
public boolean hasExpiryTimeStamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 expiryTimeStamp = 5;
*/
public long getExpiryTimeStamp() {
return expiryTimeStamp_;
}
/**
* optional int64 expiryTimeStamp = 5;
*/
public Builder setExpiryTimeStamp(long value) {
bitField0_ |= 0x00000010;
expiryTimeStamp_ = value;
onChanged();
return this;
}
/**
* optional int64 expiryTimeStamp = 5;
*/
public Builder clearExpiryTimeStamp() {
bitField0_ = (bitField0_ & ~0x00000010);
expiryTimeStamp_ = 0L;
onChanged();
return this;
}
// optional int32 masterKeyId = 6;
private int masterKeyId_ ;
/**
* optional int32 masterKeyId = 6;
*/
public boolean hasMasterKeyId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional int32 masterKeyId = 6;
*/
public int getMasterKeyId() {
return masterKeyId_;
}
/**
* optional int32 masterKeyId = 6;
*/
public Builder setMasterKeyId(int value) {
bitField0_ |= 0x00000020;
masterKeyId_ = value;
onChanged();
return this;
}
/**
* optional int32 masterKeyId = 6;
*/
public Builder clearMasterKeyId() {
bitField0_ = (bitField0_ & ~0x00000020);
masterKeyId_ = 0;
onChanged();
return this;
}
// optional int64 rmIdentifier = 7;
private long rmIdentifier_ ;
/**
* optional int64 rmIdentifier = 7;
*/
public boolean hasRmIdentifier() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int64 rmIdentifier = 7;
*/
public long getRmIdentifier() {
return rmIdentifier_;
}
/**
* optional int64 rmIdentifier = 7;
*/
public Builder setRmIdentifier(long value) {
bitField0_ |= 0x00000040;
rmIdentifier_ = value;
onChanged();
return this;
}
/**
* optional int64 rmIdentifier = 7;
*/
public Builder clearRmIdentifier() {
bitField0_ = (bitField0_ & ~0x00000040);
rmIdentifier_ = 0L;
onChanged();
return this;
}
// optional .hadoop.yarn.PriorityProto priority = 8;
private org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder> priorityBuilder_;
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto getPriority() {
if (priorityBuilder_ == null) {
return priority_;
} else {
return priorityBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public Builder setPriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
priority_ = value;
onChanged();
} else {
priorityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public Builder setPriority(
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder builderForValue) {
if (priorityBuilder_ == null) {
priority_ = builderForValue.build();
onChanged();
} else {
priorityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public Builder mergePriority(org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto value) {
if (priorityBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
priority_ != org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance()) {
priority_ =
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.newBuilder(priority_).mergeFrom(value).buildPartial();
} else {
priority_ = value;
}
onChanged();
} else {
priorityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public Builder clearPriority() {
if (priorityBuilder_ == null) {
priority_ = org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.getDefaultInstance();
onChanged();
} else {
priorityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder getPriorityBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getPriorityFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder getPriorityOrBuilder() {
if (priorityBuilder_ != null) {
return priorityBuilder_.getMessageOrBuilder();
} else {
return priority_;
}
}
/**
* optional .hadoop.yarn.PriorityProto priority = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>
getPriorityFieldBuilder() {
if (priorityBuilder_ == null) {
priorityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.PriorityProtoOrBuilder>(
priority_,
getParentForChildren(),
isClean());
priority_ = null;
}
return priorityBuilder_;
}
// optional int64 creationTime = 9;
private long creationTime_ ;
/**
* optional int64 creationTime = 9;
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 creationTime = 9;
*/
public long getCreationTime() {
return creationTime_;
}
/**
* optional int64 creationTime = 9;
*/
public Builder setCreationTime(long value) {
bitField0_ |= 0x00000100;
creationTime_ = value;
onChanged();
return this;
}
/**
* optional int64 creationTime = 9;
*/
public Builder clearCreationTime() {
bitField0_ = (bitField0_ & ~0x00000100);
creationTime_ = 0L;
onChanged();
return this;
}
// optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
private org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder> logAggregationContextBuilder_;
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public boolean hasLogAggregationContext() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto getLogAggregationContext() {
if (logAggregationContextBuilder_ == null) {
return logAggregationContext_;
} else {
return logAggregationContextBuilder_.getMessage();
}
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public Builder setLogAggregationContext(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto value) {
if (logAggregationContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logAggregationContext_ = value;
onChanged();
} else {
logAggregationContextBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public Builder setLogAggregationContext(
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder builderForValue) {
if (logAggregationContextBuilder_ == null) {
logAggregationContext_ = builderForValue.build();
onChanged();
} else {
logAggregationContextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public Builder mergeLogAggregationContext(org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto value) {
if (logAggregationContextBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
logAggregationContext_ != org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance()) {
logAggregationContext_ =
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.newBuilder(logAggregationContext_).mergeFrom(value).buildPartial();
} else {
logAggregationContext_ = value;
}
onChanged();
} else {
logAggregationContextBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public Builder clearLogAggregationContext() {
if (logAggregationContextBuilder_ == null) {
logAggregationContext_ = org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.getDefaultInstance();
onChanged();
} else {
logAggregationContextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder getLogAggregationContextBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getLogAggregationContextFieldBuilder().getBuilder();
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
public org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder getLogAggregationContextOrBuilder() {
if (logAggregationContextBuilder_ != null) {
return logAggregationContextBuilder_.getMessageOrBuilder();
} else {
return logAggregationContext_;
}
}
/**
* optional .hadoop.yarn.LogAggregationContextProto logAggregationContext = 10;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder>
getLogAggregationContextFieldBuilder() {
if (logAggregationContextBuilder_ == null) {
logAggregationContextBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProto.Builder, org.apache.hadoop.yarn.proto.YarnProtos.LogAggregationContextProtoOrBuilder>(
logAggregationContext_,
getParentForChildren(),
isClean());
logAggregationContext_ = null;
}
return logAggregationContextBuilder_;
}
// optional string message = 11;
private java.lang.Object message_ = "";
/**
* optional string message = 11;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string message = 11;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 11;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string message = 11;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 11;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000400);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 11;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
message_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:hadoop.yarn.ContainerTokenIdentifierForTestProto)
}
static {
defaultInstance = new ContainerTokenIdentifierForTestProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:hadoop.yarn.ContainerTokenIdentifierForTestProto)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hadoop_yarn_NMTokenIdentifierNewProto_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hadoop_yarn_NMTokenIdentifierNewProto_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\020test_token.proto\022\013hadoop.yarn\032\021yarn_pr" +
"otos.proto\"\271\001\n\031NMTokenIdentifierNewProto" +
"\022<\n\014appAttemptId\030\001 \001(\0132&.hadoop.yarn.App" +
"licationAttemptIdProto\022(\n\006nodeId\030\002 \001(\0132\030" +
".hadoop.yarn.NodeIdProto\022\024\n\014appSubmitter" +
"\030\003 \001(\t\022\r\n\005keyId\030\004 \001(\005\022\017\n\007message\030\005 \001(\t\"\223" +
"\003\n$ContainerTokenIdentifierForTestProto\022" +
"2\n\013containerId\030\001 \001(\0132\035.hadoop.yarn.Conta" +
"inerIdProto\022\022\n\nnmHostAddr\030\002 \001(\t\022\024\n\014appSu" +
"bmitter\030\003 \001(\t\022,\n\010resource\030\004 \001(\0132\032.hadoop",
".yarn.ResourceProto\022\027\n\017expiryTimeStamp\030\005" +
" \001(\003\022\023\n\013masterKeyId\030\006 \001(\005\022\024\n\014rmIdentifie" +
"r\030\007 \001(\003\022,\n\010priority\030\010 \001(\0132\032.hadoop.yarn." +
"PriorityProto\022\024\n\014creationTime\030\t \001(\003\022F\n\025l" +
"ogAggregationContext\030\n \001(\0132\'.hadoop.yarn" +
".LogAggregationContextProto\022\017\n\007message\030\013" +
" \001(\tBA\n\034org.apache.hadoop.yarn.protoB\033Ya" +
"rnSecurityTestTokenProtos\210\001\001\240\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_hadoop_yarn_NMTokenIdentifierNewProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_hadoop_yarn_NMTokenIdentifierNewProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hadoop_yarn_NMTokenIdentifierNewProto_descriptor,
new java.lang.String[] { "AppAttemptId", "NodeId", "AppSubmitter", "KeyId", "Message", });
internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_hadoop_yarn_ContainerTokenIdentifierForTestProto_descriptor,
new java.lang.String[] { "ContainerId", "NmHostAddr", "AppSubmitter", "Resource", "ExpiryTimeStamp", "MasterKeyId", "RmIdentifier", "Priority", "CreationTime", "LogAggregationContext", "Message", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.hadoop.yarn.proto.YarnProtos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy