@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.CellInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.CellInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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; }
/** * <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 setServerAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serverAddress_ = value; 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 setServerAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serverAddress_ = value; 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 setServerAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serverAddress_ = value; 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 setRegionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); region_ = value; onChanged(); return this; } @java.lang.Override
/** * <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 setRegionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); region_ = value; onChanged(); return this; } @java.lang.Override
/** * <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 setRootBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); root_ = value; onChanged(); return this; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.CellInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.CellInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 setRoot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } root_ = value; 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; }
/** * <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 setServerAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serverAddress_ = value; 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 setRootBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); root_ = value; 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 setRoot( java.lang.String value) { if (value == null) { throw new NullPointerException(); } root_ = value; 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 setRegion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } region_ = value; 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; } /**
/** * <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> * 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 setRegion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } region_ = value; 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> * 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; } /**