/** * <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> * 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> * 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; } /**
onChanged(); internalGetMutablePortMap().mergeFrom( other.internalGetPortMap()); if (!other.getKeyspace().isEmpty()) {
onChanged(); internalGetMutablePortMap().mergeFrom( other.internalGetPortMap()); if (!other.getKeyspace().isEmpty()) {
@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; } /**
@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 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
/** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getMutablePortMap() { return internalGetMutablePortMap().getMutableMap(); } /**
public Builder clearPortMap() { internalGetMutablePortMap().getMutableMap() .clear(); return this; } /**
/** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.Integer> getMutablePortMap() { return internalGetMutablePortMap().getMutableMap(); } /**
public Builder clearPortMap() { internalGetMutablePortMap().getMutableMap() .clear(); return this; } /**