@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto) obj; boolean result = true; result = result && (hasUserInfo() == other.hasUserInfo()); if (hasUserInfo()) { result = result && getUserInfo() .equals(other.getUserInfo()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder mergeUserInfo(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto value) { if (userInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && userInfo_ != org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance()) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } onChanged(); } else { userInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEffectiveUser()) { hash = (37 * hash) + EFFECTIVEUSER_FIELD_NUMBER; hash = (53 * hash) + getEffectiveUser().hashCode(); } if (hasRealUser()) { hash = (37 * hash) + REALUSER_FIELD_NUMBER; hash = (53 * hash) + getRealUser().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder mergeUserInfo(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto value) { if (userInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && userInfo_ != org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance()) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } onChanged(); } else { userInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder mergeUserInfo(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto value) { if (userInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && userInfo_ != org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance()) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } onChanged(); } else { userInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto) obj; boolean result = true; result = result && (hasUserInfo() == other.hasUserInfo()); if (hasUserInfo()) { result = result && getUserInfo() .equals(other.getUserInfo()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder mergeUserInfo(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto value) { if (userInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && userInfo_ != org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance()) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } onChanged(); } else { userInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto) obj; boolean result = true; result = result && (hasUserInfo() == other.hasUserInfo()); if (hasUserInfo()) { result = result && getUserInfo() .equals(other.getUserInfo()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto) obj; boolean result = true; result = result && (hasUserInfo() == other.hasUserInfo()); if (hasUserInfo()) { result = result && getUserInfo() .equals(other.getUserInfo()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder mergeUserInfo(org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto value) { if (userInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && userInfo_ != org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance()) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.newBuilder(userInfo_).mergeFrom(value).buildPartial(); } else { userInfo_ = value; } onChanged(); } else { userInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto) obj; boolean result = true; result = result && (hasEffectiveUser() == other.hasEffectiveUser()); if (hasEffectiveUser()) { result = result && getEffectiveUser() .equals(other.getEffectiveUser()); } result = result && (hasRealUser() == other.hasRealUser()); if (hasRealUser()) { result = result && getRealUser() .equals(other.getRealUser()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto) obj; boolean result = true; result = result && (hasEffectiveUser() == other.hasEffectiveUser()); if (hasEffectiveUser()) { result = result && getEffectiveUser() .equals(other.getEffectiveUser()); } result = result && (hasRealUser() == other.hasRealUser()); if (hasRealUser()) { result = result && getRealUser() .equals(other.getRealUser()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.IpcConnectionContextProto) obj; boolean result = true; result = result && (hasUserInfo() == other.hasUserInfo()); if (hasUserInfo()) { result = result && getUserInfo() .equals(other.getUserInfo()); } result = result && (hasProtocol() == other.hasProtocol()); if (hasProtocol()) { result = result && getProtocol() .equals(other.getProtocol()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto) obj; boolean result = true; result = result && (hasEffectiveUser() == other.hasEffectiveUser()); if (hasEffectiveUser()) { result = result && getEffectiveUser() .equals(other.getEffectiveUser()); } result = result && (hasRealUser() == other.hasRealUser()); if (hasRealUser()) { result = result && getRealUser() .equals(other.getRealUser()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto)) { return super.equals(obj); } org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto other = (org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto) obj; boolean result = true; result = result && (hasEffectiveUser() == other.hasEffectiveUser()); if (hasEffectiveUser()) { result = result && getEffectiveUser() .equals(other.getEffectiveUser()); } result = result && (hasRealUser() == other.hasRealUser()); if (hasRealUser()) { result = result && getRealUser() .equals(other.getRealUser()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder clearUserInfo() { if (userInfoBuilder_ == null) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance(); onChanged(); } else { userInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder clearUserInfo() { if (userInfoBuilder_ == null) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance(); onChanged(); } else { userInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
public static UserGroupInformation getUgi(UserInformationProto userInfo) { UserGroupInformation ugi = null; String effectiveUser = userInfo.hasEffectiveUser() ? userInfo .getEffectiveUser() : null; String realUser = userInfo.hasRealUser() ? userInfo.getRealUser() : null; if (effectiveUser != null) { if (realUser != null) { UserGroupInformation realUserUgi = UserGroupInformation .createRemoteUser(realUser); ugi = UserGroupInformation .createProxyUser(effectiveUser, realUserUgi); } else { ugi = org.apache.hadoop.security.UserGroupInformation .createRemoteUser(effectiveUser); } } return ugi; }
/** * <code>optional .hadoop.common.UserInformationProto userInfo = 2;</code> * * <pre> * UserInfo beyond what is determined as part of security handshake * at connection time (kerberos, tokens etc). * </pre> */ public Builder clearUserInfo() { if (userInfoBuilder_ == null) { userInfo_ = org.apache.hadoop.ipc.protobuf.IpcConnectionContextProtos.UserInformationProto.getDefaultInstance(); onChanged(); } else { userInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasEffectiveUser()) { hash = (37 * hash) + EFFECTIVEUSER_FIELD_NUMBER; hash = (53 * hash) + getEffectiveUser().hashCode(); } if (hasRealUser()) { hash = (37 * hash) + REALUSER_FIELD_NUMBER; hash = (53 * hash) + getRealUser().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }