@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.ShardReference)) { return super.equals(obj); } io.vitess.proto.Topodata.ShardReference other = (io.vitess.proto.Topodata.ShardReference) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * key_range is the KeyRange for this shard. It can be unset if: * - we are not using range-based sharding in this shard. * - the shard covers the entire keyrange. * This must match the shard name based on our other conventions, but * helpful to have it decomposed here. * Once set at creation time, it is never changed. * </pre> * * <code>.topodata.KeyRange key_range = 2;</code> */ public io.vitess.proto.Topodata.KeyRangeOrBuilder getKeyRangeOrBuilder() { if (keyRangeBuilder_ != null) { return keyRangeBuilder_.getMessageOrBuilder(); } else { return keyRange_ == null ? io.vitess.proto.Topodata.KeyRange.getDefaultInstance() : keyRange_; } } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode();
if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode();
if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange());
hash = (53 * hash) + getKeyRange().hashCode();
hash = (53 * hash) + getKeyRange().hashCode();
if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange());
if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange());
if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange());
/** * <pre> * key_range is the KeyRange for this shard. It can be unset if: * - we are not using range-based sharding in this shard. * - the shard covers the entire keyrange. * This must match the shard name based on our other conventions, but * helpful to have it decomposed here. * Once set at creation time, it is never changed. * </pre> * * <code>.topodata.KeyRange key_range = 2;</code> */ public Builder mergeKeyRange(io.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (keyRange_ != null) { keyRange_ = io.vitess.proto.Topodata.KeyRange.newBuilder(keyRange_).mergeFrom(value).buildPartial(); } else { keyRange_ = value; } onChanged(); } else { keyRangeBuilder_.mergeFrom(value); } return this; } /**
/** * <pre> * key_range is the KeyRange for this shard. It can be unset if: * - we are not using range-based sharding in this shard. * - the shard covers the entire keyrange. * This must match the shard name based on our other conventions, but * helpful to have it decomposed here. * Once set at creation time, it is never changed. * </pre> * * <code>.topodata.KeyRange key_range = 2;</code> */ public Builder mergeKeyRange(io.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (keyRange_ != null) { keyRange_ = io.vitess.proto.Topodata.KeyRange.newBuilder(keyRange_).mergeFrom(value).buildPartial(); } else { keyRange_ = value; } onChanged(); } else { keyRangeBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.vitess.proto.Topodata.Shard.SourceShard)) { return super.equals(obj); } io.vitess.proto.Topodata.Shard.SourceShard other = (io.vitess.proto.Topodata.Shard.SourceShard) obj; boolean result = true; result = result && (getUid() == other.getUid()); result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); } result = result && getTablesList() .equals(other.getTablesList()); 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.Shard.SourceShard)) { return super.equals(obj); } io.vitess.proto.Topodata.Shard.SourceShard other = (io.vitess.proto.Topodata.Shard.SourceShard) obj; boolean result = true; result = result && (getUid() == other.getUid()); result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); } result = result && getTablesList() .equals(other.getTablesList()); 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) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid(); hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode(); } if (getTablesCount() > 0) { hash = (37 * hash) + TABLES_FIELD_NUMBER; hash = (53 * hash) + getTablesList().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) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid(); hash = (37 * hash) + KEYSPACE_FIELD_NUMBER; hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode(); } if (getTablesCount() > 0) { hash = (37 * hash) + TABLES_FIELD_NUMBER; hash = (53 * hash) + getTablesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * the source shard keyrange * </pre> * * <code>.topodata.KeyRange key_range = 4;</code> */ public Builder mergeKeyRange(io.vitess.proto.Topodata.KeyRange value) { if (keyRangeBuilder_ == null) { if (keyRange_ != null) { keyRange_ = io.vitess.proto.Topodata.KeyRange.newBuilder(keyRange_).mergeFrom(value).buildPartial(); } else { keyRange_ = value; } onChanged(); } else { keyRangeBuilder_.mergeFrom(value); } return this; } /**