@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.SrvKeyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.SrvKeyspace other = (io.vitess.proto.Topodata.SrvKeyspace) obj; boolean result = true; result = result && getPartitionsList() .equals(other.getPartitionsList()); result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromList() .equals(other.getServedFromList()); 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.SrvKeyspace)) { return super.equals(obj); } io.vitess.proto.Topodata.SrvKeyspace other = (io.vitess.proto.Topodata.SrvKeyspace) obj; boolean result = true; result = result && getPartitionsList() .equals(other.getPartitionsList()); result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && shardingColumnType_ == other.shardingColumnType_; result = result && getServedFromList() .equals(other.getServedFromList()); 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 (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().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 (getServedFromCount() > 0) { hash = (37 * hash) + SERVED_FROM_FIELD_NUMBER; hash = (53 * hash) + getServedFromList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged();
if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPartitionsCount() > 0) { hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; hash = (53 * hash) + getPartitionsList().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 (getServedFromCount() > 0) { hash = (37 * hash) + SERVED_FROM_FIELD_NUMBER; hash = (53 * hash) + getServedFromList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * copied from Keyspace * </pre> * * <code>string sharding_column_name = 2;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
/** * <pre> * copied from Keyspace * </pre> * * <code>string sharding_column_name = 2;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**