/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ public io.vitess.proto.Topodata.TabletAlias.Builder getAliasBuilder() { onChanged(); return getAliasFieldBuilder().getBuilder(); } /**
/** * <pre> * If range based sharding is used, range for the tablet's shard. * </pre> * * <code>.topodata.KeyRange key_range = 7;</code> */ public io.vitess.proto.Topodata.KeyRange.Builder getKeyRangeBuilder() { onChanged(); return getKeyRangeFieldBuilder().getBuilder(); } /**
/** * Use {@link #getPortMapMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getPortMap() { return getPortMapMap(); } /**
public Builder mergeFrom(io.vitess.proto.Topodata.Tablet other) { if (other == io.vitess.proto.Topodata.Tablet.getDefaultInstance()) return this; if (other.hasAlias()) { mergeAlias(other.getAlias()); onChanged(); internalGetMutablePortMap().mergeFrom( other.internalGetPortMap()); if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); onChanged(); mergeKeyRange(other.getKeyRange()); setTypeValue(other.getTypeValue()); onChanged(); internalGetMutableTags().mergeFrom( other.internalGetTags()); if (!other.getMysqlHostname().isEmpty()) { mysqlHostname_ = other.mysqlHostname_; onChanged(); setMysqlPort(other.getMysqlPort()); this.mergeUnknownFields(other.unknownFields);
public Builder mergeFrom(io.vitess.proto.Topodata.Tablet other) { if (other == io.vitess.proto.Topodata.Tablet.getDefaultInstance()) return this; if (other.hasAlias()) { mergeAlias(other.getAlias()); onChanged(); internalGetMutablePortMap().mergeFrom( other.internalGetPortMap()); if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); onChanged(); mergeKeyRange(other.getKeyRange()); setTypeValue(other.getTypeValue()); onChanged(); internalGetMutableTags().mergeFrom( other.internalGetTags()); if (!other.getMysqlHostname().isEmpty()) { mysqlHostname_ = other.mysqlHostname_; onChanged(); setMysqlPort(other.getMysqlPort()); this.mergeUnknownFields(other.unknownFields);
@java.lang.Override public Builder clear() { super.clear(); if (aliasBuilder_ == null) { alias_ = null; } else { alias_ = null; aliasBuilder_ = null; } hostname_ = ""; internalGetMutablePortMap().clear(); keyspace_ = ""; shard_ = ""; if (keyRangeBuilder_ == null) { keyRange_ = null; } else { keyRange_ = null; keyRangeBuilder_ = null; } type_ = 0; dbNameOverride_ = ""; internalGetMutableTags().clear(); mysqlHostname_ = ""; mysqlPort_ = 0; return this; }
@java.lang.Override public Builder clear() { super.clear(); if (aliasBuilder_ == null) { alias_ = null; } else { alias_ = null; aliasBuilder_ = null; } hostname_ = ""; internalGetMutablePortMap().clear(); keyspace_ = ""; shard_ = ""; if (keyRangeBuilder_ == null) { keyRange_ = null; } else { keyRange_ = null; keyRangeBuilder_ = null; } type_ = 0; dbNameOverride_ = ""; internalGetMutableTags().clear(); mysqlHostname_ = ""; mysqlPort_ = 0; return this; }
/** * <pre> * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * </pre> * * <code>map<string, int32> port_map = 4;</code> */ public Builder putPortMap( java.lang.String key, int value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutablePortMap().getMutableMap() .put(key, value); return this; } /**
/** * <pre> * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * </pre> * * <code>map<string, int32> port_map = 4;</code> */ public Builder putPortMap( java.lang.String key, int value) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutablePortMap().getMutableMap() .put(key, value); return this; } /**
/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.TabletAlias, io.vitess.proto.Topodata.TabletAlias.Builder, io.vitess.proto.Topodata.TabletAliasOrBuilder> getAliasFieldBuilder() { if (aliasBuilder_ == null) { aliasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.TabletAlias, io.vitess.proto.Topodata.TabletAlias.Builder, io.vitess.proto.Topodata.TabletAliasOrBuilder>( getAlias(), getParentForChildren(), isClean()); alias_ = null; } return aliasBuilder_; }
/** * <pre> * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * </pre> * * <code>map<string, int32> port_map = 4;</code> */ public Builder removePortMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutablePortMap().getMutableMap() .remove(key); return this; } /**
/** * <pre> * If range based sharding is used, range for the tablet's shard. * </pre> * * <code>.topodata.KeyRange key_range = 7;</code> */ private com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.KeyRange, io.vitess.proto.Topodata.KeyRange.Builder, io.vitess.proto.Topodata.KeyRangeOrBuilder> getKeyRangeFieldBuilder() { if (keyRangeBuilder_ == null) { keyRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.KeyRange, io.vitess.proto.Topodata.KeyRange.Builder, io.vitess.proto.Topodata.KeyRangeOrBuilder>( getKeyRange(), getParentForChildren(), isClean()); keyRange_ = null; } return keyRangeBuilder_; }
/** * <pre> * If range based sharding is used, range for the tablet's shard. * </pre> * * <code>.topodata.KeyRange key_range = 7;</code> */ private com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.KeyRange, io.vitess.proto.Topodata.KeyRange.Builder, io.vitess.proto.Topodata.KeyRangeOrBuilder> getKeyRangeFieldBuilder() { if (keyRangeBuilder_ == null) { keyRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.KeyRange, io.vitess.proto.Topodata.KeyRange.Builder, io.vitess.proto.Topodata.KeyRangeOrBuilder>( getKeyRange(), getParentForChildren(), isClean()); keyRange_ = null; } return keyRangeBuilder_; }
/** * <pre> * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * </pre> * * <code>map<string, int32> port_map = 4;</code> */ public Builder removePortMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutablePortMap().getMutableMap() .remove(key); return this; } /**
/** * <pre> * alias is the unique name of the tablet. * </pre> * * <code>.topodata.TabletAlias alias = 1;</code> */ private com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.TabletAlias, io.vitess.proto.Topodata.TabletAlias.Builder, io.vitess.proto.Topodata.TabletAliasOrBuilder> getAliasFieldBuilder() { if (aliasBuilder_ == null) { aliasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.vitess.proto.Topodata.TabletAlias, io.vitess.proto.Topodata.TabletAlias.Builder, io.vitess.proto.Topodata.TabletAliasOrBuilder>( getAlias(), getParentForChildren(), isClean()); alias_ = null; } return aliasBuilder_; }
/** * <pre> * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * </pre> * * <code>map<string, int32> port_map = 4;</code> */ public Builder putAllPortMap( java.util.Map<java.lang.String, java.lang.Integer> values) { internalGetMutablePortMap().getMutableMap() .putAll(values); return this; }
/** * <pre> * Map of named ports. Normally this should include vt and grpc. * Going forward, the mysql port will be stored in mysql_port * instead of here. * For accessing mysql port, use topoproto.MysqlPort to fetch, and * topoproto.SetMysqlPort to set. These wrappers will ensure * legacy behavior is supported. * </pre> * * <code>map<string, int32> port_map = 4;</code> */ public Builder putAllPortMap( java.util.Map<java.lang.String, java.lang.Integer> values) { internalGetMutablePortMap().getMutableMap() .putAll(values); return this; }
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutablePortMap(); case 10: return internalGetMutableTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override
@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutablePortMap(); case 10: return internalGetMutableTags(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override
public Builder clearPortMap() { internalGetMutablePortMap().getMutableMap() .clear(); return this; } /**