@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostName()) { hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; hash = (53 * hash) + getHostName().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasStartCode()) { hash = (37 * hash) + START_CODE_FIELD_NUMBER; hash = (53 * hash) + org.apache.hbase.thirdparty.com.google.protobuf.Internal.hashLong( getStartCode()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName other = (org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName) obj; boolean result = true; result = result && (hasHostName() == other.hasHostName()); if (hasHostName()) { result = result && getHostName() .equals(other.getHostName()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasStartCode() == other.hasStartCode()); if (hasStartCode()) { result = result && (getStartCode() == other.getStartCode()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHostName()) { hash = (37 * hash) + HOST_NAME_FIELD_NUMBER; hash = (53 * hash) + getHostName().hashCode(); } if (hasPort()) { hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); } if (hasStartCode()) { hash = (37 * hash) + START_CODE_FIELD_NUMBER; hash = (53 * hash) + org.apache.hbase.thirdparty.com.google.protobuf.Internal.hashLong( getStartCode()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName other = (org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName) obj; boolean result = true; result = result && (hasHostName() == other.hasHostName()); if (hasHostName()) { result = result && getHostName() .equals(other.getHostName()); } result = result && (hasPort() == other.hasPort()); if (hasPort()) { result = result && (getPort() == other.getPort()); } result = result && (hasStartCode() == other.hasStartCode()); if (hasStartCode()) { result = result && (getStartCode() == other.getStartCode()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * Convert a protocol buffer ServerName to a ServerName * * @param proto the protocol buffer ServerName to convert * @return the converted ServerName */ public static ServerName toServerName(final HBaseProtos.ServerName proto) { if (proto == null) return null; String hostName = proto.getHostName(); long startCode = -1; int port = -1; if (proto.hasPort()) { port = proto.getPort(); } if (proto.hasStartCode()) { startCode = proto.getStartCode(); } return ServerName.valueOf(hostName, port, startCode); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()) return this; if (other.hasHostName()) { bitField0_ |= 0x00000001; hostName_ = other.hostName_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasStartCode()) { setStartCode(other.getStartCode()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * Convert a protocol buffer ServerName to a ServerName * * @param proto the protocol buffer ServerName to convert * @return the converted ServerName */ public static ServerName toServerName(final HBaseProtos.ServerName proto) { if (proto == null) return null; String hostName = proto.getHostName(); long startCode = -1; int port = -1; if (proto.hasPort()) { port = proto.getPort(); } if (proto.hasStartCode()) { startCode = proto.getStartCode(); } return ServerName.valueOf(hostName, port, startCode); }
/** * Convert a protocol buffer ServerName to a ServerName * * @param proto the protocol buffer ServerName to convert * @return the converted ServerName */ public static ServerName toServerName(final HBaseProtos.ServerName proto) { if (proto == null) return null; String hostName = proto.getHostName(); long startCode = -1; int port = -1; if (proto.hasPort()) { port = proto.getPort(); } if (proto.hasStartCode()) { startCode = proto.getStartCode(); } return ServerName.valueOf(hostName, port, startCode); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance()) return this; if (other.hasHostName()) { bitField0_ |= 0x00000001; hostName_ = other.hostName_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasStartCode()) { setStartCode(other.getStartCode()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }