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 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 getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getServerAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serverAddress_); } if (!getRootBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, root_); } if (!getRegionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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; }
@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; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getServerAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serverAddress_); } if (!getRootBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, root_); } if (!getRegionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * <pre> * ServerAddress contains the address of the server for the cell. * The syntax of this field is topology implementation specific. * For instance, for Zookeeper, it is a comma-separated list of * server addresses. * </pre> * * <code>string server_address = 1;</code> */ public Builder clearServerAddress() { serverAddress_ = getDefaultInstance().getServerAddress(); onChanged(); return this; } /**
/** * <pre> * ServerAddress contains the address of the server for the cell. * The syntax of this field is topology implementation specific. * For instance, for Zookeeper, it is a comma-separated list of * server addresses. * </pre> * * <code>string server_address = 1;</code> */ public Builder clearServerAddress() { serverAddress_ = getDefaultInstance().getServerAddress(); onChanged(); return this; } /**
@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; }
/** * <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; } /**
/** * <pre> * Root is the path to store data in. It is only used when talking * to server_address. * </pre> * * <code>string root = 2;</code> */ public Builder clearRoot() { root_ = getDefaultInstance().getRoot(); onChanged(); return this; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getServerAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverAddress_); } if (!getRootBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, root_); } if (!getRegionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getServerAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverAddress_); } if (!getRootBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, root_); } if (!getRegionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); } unknownFields.writeTo(output); }
/** * <pre> * Root is the path to store data in. It is only used when talking * to server_address. * </pre> * * <code>string root = 2;</code> */ public Builder clearRoot() { root_ = getDefaultInstance().getRoot(); onChanged(); return this; } /**
@java.lang.Override public io.vitess.proto.Topodata.CellInfo getDefaultInstanceForType() { return io.vitess.proto.Topodata.CellInfo.getDefaultInstance(); }
@java.lang.Override public io.vitess.proto.Topodata.CellInfo getDefaultInstanceForType() { return io.vitess.proto.Topodata.CellInfo.getDefaultInstance(); }
@java.lang.Override public io.vitess.proto.Topodata.CellInfo build() { io.vitess.proto.Topodata.CellInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@java.lang.Override public io.vitess.proto.Topodata.CellInfo buildPartial() { io.vitess.proto.Topodata.CellInfo result = new io.vitess.proto.Topodata.CellInfo(this); result.serverAddress_ = serverAddress_; result.root_ = root_; result.region_ = region_; onBuilt(); return result; }