@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SERVER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getServerAddress().hashCode(); hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().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) + SERVER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getServerAddress().hashCode(); hash = (37 * hash) + ROOT_FIELD_NUMBER; hash = (53 * hash) + getRoot().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); 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 io.vitess.proto.Topodata.CellInfo)) { return super.equals(obj); } io.vitess.proto.Topodata.CellInfo other = (io.vitess.proto.Topodata.CellInfo) obj; boolean result = true; result = result && getServerAddress() .equals(other.getServerAddress()); result = result && getRoot() .equals(other.getRoot()); result = result && getRegion() .equals(other.getRegion()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.vitess.proto.Topodata.CellInfo other) { if (other == io.vitess.proto.Topodata.CellInfo.getDefaultInstance()) return this; if (!other.getServerAddress().isEmpty()) { serverAddress_ = other.serverAddress_; onChanged(); } if (!other.getRoot().isEmpty()) { root_ = other.root_; onChanged(); } if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(io.vitess.proto.Topodata.CellInfo other) { if (other == io.vitess.proto.Topodata.CellInfo.getDefaultInstance()) return this; if (!other.getServerAddress().isEmpty()) { serverAddress_ = other.serverAddress_; onChanged(); } if (!other.getRoot().isEmpty()) { root_ = other.root_; onChanged(); } if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.CellInfo)) { return super.equals(obj); } io.vitess.proto.Topodata.CellInfo other = (io.vitess.proto.Topodata.CellInfo) obj; boolean result = true; result = result && getServerAddress() .equals(other.getServerAddress()); result = result && getRoot() .equals(other.getRoot()); result = result && getRegion() .equals(other.getRegion()); result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * Region is a group this cell belongs to. Used by vtgate to route traffic to * other cells (in same region) when there is no available tablet in the current cell. * </pre> * * <code>string region = 3;</code> */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /**
/** * <pre> * Region is a group this cell belongs to. Used by vtgate to route traffic to * other cells (in same region) when there is no available tablet in the current cell. * </pre> * * <code>string region = 3;</code> */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /**