@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; }
public Builder mergeFrom(io.vitess.proto.Topodata.Keyspace other) { if (other == io.vitess.proto.Topodata.Keyspace.getDefaultInstance()) return this; if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged();
public Builder mergeFrom(io.vitess.proto.Topodata.Keyspace other) { if (other == io.vitess.proto.Topodata.Keyspace.getDefaultInstance()) return this; 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(); 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; }
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**