@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Keyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.Keyspace other = (io.vitess.proto.Topodata.Keyspace) obj; boolean result = true; result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromsList() .equals(other.getServedFromsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Keyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.Keyspace other = (io.vitess.proto.Topodata.Keyspace) obj; boolean result = true; result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromsList() .equals(other.getServedFromsList()); 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(); hash = (37 * hash) + SHARDING_COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getShardingColumnName().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_TYPE_FIELD_NUMBER; hash = (53 * hash) + shardingColumnType_; if (getServedFromsCount() > 0) { hash = (37 * hash) + SERVED_FROMS_FIELD_NUMBER; hash = (53 * hash) + getServedFromsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getShardingColumnName().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_TYPE_FIELD_NUMBER; hash = (53 * hash) + shardingColumnType_; if (getServedFromsCount() > 0) { hash = (37 * hash) + SERVED_FROMS_FIELD_NUMBER; hash = (53 * hash) + getServedFromsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }