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 && (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 && (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 && (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());
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());
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());
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());
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());
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());
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());
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());
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());
public ContainerTokenIdentifierForTest(ContainerTokenIdentifier identifier, String message) { ContainerTokenIdentifierForTestProto.Builder builder = ContainerTokenIdentifierForTestProto.newBuilder(); ContainerIdPBImpl containerID = (ContainerIdPBImpl)identifier.getContainerID();
public ContainerTokenIdentifierForTest(ContainerTokenIdentifier identifier, String message) { ContainerTokenIdentifierForTestProto.Builder builder = ContainerTokenIdentifierForTestProto.newBuilder(); ContainerIdPBImpl containerID = (ContainerIdPBImpl)identifier.getContainerID();
public ContainerTokenIdentifierForTest(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext) { ContainerTokenIdentifierForTestProto.Builder builder = ContainerTokenIdentifierForTestProto.newBuilder(); if (containerID != null) { builder.setContainerId(((ContainerIdPBImpl)containerID).getProto()); } builder.setNmHostAddr(hostName); builder.setAppSubmitter(appSubmitter); if (r != null) { builder.setResource(((ResourcePBImpl)r).getProto()); } builder.setExpiryTimeStamp(expiryTimeStamp); builder.setMasterKeyId(masterKeyId); builder.setRmIdentifier(rmIdentifier); if (priority != null) { builder.setPriority(((PriorityPBImpl)priority).getProto()); } builder.setCreationTime(creationTime); if (logAggregationContext != null) { builder.setLogAggregationContext( ((LogAggregationContextPBImpl)logAggregationContext).getProto()); } proto = builder.build(); }
public ContainerTokenIdentifierForTest(ContainerId containerID, String hostName, String appSubmitter, Resource r, long expiryTimeStamp, int masterKeyId, long rmIdentifier, Priority priority, long creationTime, LogAggregationContext logAggregationContext) { ContainerTokenIdentifierForTestProto.Builder builder = ContainerTokenIdentifierForTestProto.newBuilder(); if (containerID != null) { builder.setContainerId(((ContainerIdPBImpl)containerID).getProto()); } builder.setNmHostAddr(hostName); builder.setAppSubmitter(appSubmitter); if (r != null) { builder.setResource(ProtoUtils.convertToProtoFormat(r)); } builder.setExpiryTimeStamp(expiryTimeStamp); builder.setMasterKeyId(masterKeyId); builder.setRmIdentifier(rmIdentifier); if (priority != null) { builder.setPriority(((PriorityPBImpl)priority).getProto()); } builder.setCreationTime(creationTime); if (logAggregationContext != null) { builder.setLogAggregationContext( ((LogAggregationContextPBImpl)logAggregationContext).getProto()); } proto = builder.build(); }
public Builder toBuilder() { return newBuilder(this); }
public Builder toBuilder() { return newBuilder(this); }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.ContainerTokenIdentifierForTestProto prototype) {