@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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@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(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
result = result && (hasAppAttemptId() == other.hasAppAttemptId()); if (hasAppAttemptId()) { result = result && getAppAttemptId() .equals(other.getAppAttemptId());
result = result && (hasAppAttemptId() == other.hasAppAttemptId()); if (hasAppAttemptId()) { result = result && getAppAttemptId() .equals(other.getAppAttemptId());
result = result && (hasAppAttemptId() == other.hasAppAttemptId()); if (hasAppAttemptId()) { result = result && getAppAttemptId() .equals(other.getAppAttemptId());
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto other) { if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.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()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto other) { if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.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()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto other) { if (other == org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto.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()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public NMTokenIdentifierNewForTest(NMTokenIdentifier tokenIdentifier, String message) { builder = NMTokenIdentifierNewProto.newBuilder(); builder.setAppAttemptId(tokenIdentifier.getProto().getAppAttemptId()); builder.setNodeId(tokenIdentifier.getProto().getNodeId()); builder.setAppSubmitter(tokenIdentifier.getApplicationSubmitter()); builder.setKeyId(tokenIdentifier.getKeyId()); builder.setMessage(message); proto = builder.build(); builder = null; }
@Override public UserGroupInformation getUser() { String appAttemptId = null; if (proto.hasAppAttemptId()) { appAttemptId = new ApplicationAttemptIdPBImpl( proto.getAppAttemptId()).toString(); } return UserGroupInformation.createRemoteUser(appAttemptId); }
@Override public UserGroupInformation getUser() { String appAttemptId = null; if (proto.hasAppAttemptId()) { appAttemptId = new ApplicationAttemptIdPBImpl( proto.getAppAttemptId()).toString(); } return UserGroupInformation.createRemoteUser(appAttemptId); }
@Override public UserGroupInformation getUser() { String appAttemptId = null; if (proto.hasAppAttemptId()) { appAttemptId = new ApplicationAttemptIdPBImpl( proto.getAppAttemptId()).toString(); } return UserGroupInformation.createRemoteUser(appAttemptId); }
public ApplicationAttemptId getApplicationAttemptId() { if (!proto.hasAppAttemptId()) { return null; } return new ApplicationAttemptIdPBImpl(proto.getAppAttemptId()); }
public ApplicationAttemptId getApplicationAttemptId() { if (!proto.hasAppAttemptId()) { return null; } return new ApplicationAttemptIdPBImpl(proto.getAppAttemptId()); }
public NMTokenIdentifierNewForTest(NMTokenIdentifier tokenIdentifier, String message) { builder = NMTokenIdentifierNewProto.newBuilder(); builder.setAppAttemptId(tokenIdentifier.getProto().getAppAttemptId()); builder.setNodeId(tokenIdentifier.getProto().getNodeId()); builder.setAppSubmitter(tokenIdentifier.getApplicationSubmitter()); builder.setKeyId(tokenIdentifier.getKeyId()); builder.setMessage(message); proto = builder.build(); builder = null; }
public ApplicationAttemptId getApplicationAttemptId() { if (!proto.hasAppAttemptId()) { return null; } return new ApplicationAttemptIdPBImpl(proto.getAppAttemptId()); }