@java.lang.Override public io.vitess.proto.Topodata.Tablet buildPartial() { io.vitess.proto.Topodata.Tablet result = new io.vitess.proto.Topodata.Tablet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (aliasBuilder_ == null) { result.alias_ = alias_; } else { result.alias_ = aliasBuilder_.build(); } result.hostname_ = hostname_; result.portMap_ = internalGetPortMap(); result.portMap_.makeImmutable(); result.keyspace_ = keyspace_; result.shard_ = shard_; if (keyRangeBuilder_ == null) { result.keyRange_ = keyRange_; } else { result.keyRange_ = keyRangeBuilder_.build(); } result.type_ = type_; result.dbNameOverride_ = dbNameOverride_; result.tags_ = internalGetTags(); result.tags_.makeImmutable(); result.mysqlHostname_ = mysqlHostname_; result.mysqlPort_ = mysqlPort_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
if (alias_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAlias()); if (!getHostnameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_); : internalGetPortMap().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> portMap__ = PortMapDefaultEntryHolder.defaultEntry.newBuilderForType() if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, keyspace_); if (!getShardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, shard_); .computeMessageSize(7, getKeyRange()); if (!getDbNameOverrideBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dbNameOverride_); : internalGetTags().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() if (!getMysqlHostnameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, mysqlHostname_);
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()); if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; onChanged(); if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); if (!other.getShard().isEmpty()) { shard_ = other.shard_; onChanged(); if (other.hasKeyRange()) { mergeKeyRange(other.getKeyRange()); setTypeValue(other.getTypeValue()); if (!other.getDbNameOverride().isEmpty()) { dbNameOverride_ = other.dbNameOverride_; onChanged(); if (!other.getMysqlHostname().isEmpty()) { mysqlHostname_ = other.mysqlHostname_; onChanged();
if (alias_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAlias()); if (!getHostnameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hostname_); : internalGetPortMap().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.Integer> portMap__ = PortMapDefaultEntryHolder.defaultEntry.newBuilderForType() if (!getKeyspaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, keyspace_); if (!getShardBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, shard_); .computeMessageSize(7, getKeyRange()); if (!getDbNameOverrideBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, dbNameOverride_); : internalGetTags().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() if (!getMysqlHostnameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, mysqlHostname_);
throws java.io.IOException { if (alias_ != null) { output.writeMessage(1, getAlias()); if (!getHostnameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_); .serializeStringMapTo( output, internalGetPortMap(), PortMapDefaultEntryHolder.defaultEntry, 4); if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, keyspace_); if (!getShardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, shard_); output.writeMessage(7, getKeyRange()); if (!getDbNameOverrideBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dbNameOverride_); .serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 10); if (!getMysqlHostnameBytes().isEmpty()) {
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()); if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; onChanged(); if (!other.getKeyspace().isEmpty()) { keyspace_ = other.keyspace_; onChanged(); if (!other.getShard().isEmpty()) { shard_ = other.shard_; onChanged(); if (other.hasKeyRange()) { mergeKeyRange(other.getKeyRange()); setTypeValue(other.getTypeValue()); if (!other.getDbNameOverride().isEmpty()) { dbNameOverride_ = other.dbNameOverride_; onChanged(); if (!other.getMysqlHostname().isEmpty()) { mysqlHostname_ = other.mysqlHostname_; onChanged();
result = result && (hasAlias() == other.hasAlias()); if (hasAlias()) { result = result && getAlias() .equals(other.getAlias()); result = result && getHostname() .equals(other.getHostname()); result = result && internalGetPortMap().equals( other.internalGetPortMap()); result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); result = result && getDbNameOverride() .equals(other.getDbNameOverride()); result = result && internalGetTags().equals( other.internalGetTags()); result = result && getMysqlHostname() .equals(other.getMysqlHostname()); result = result && (getMysqlPort() == other.getMysqlPort()); result = result && unknownFields.equals(other.unknownFields); return result;
throws java.io.IOException { if (alias_ != null) { output.writeMessage(1, getAlias()); if (!getHostnameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hostname_); .serializeStringMapTo( output, internalGetPortMap(), PortMapDefaultEntryHolder.defaultEntry, 4); if (!getKeyspaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, keyspace_); if (!getShardBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, shard_); output.writeMessage(7, getKeyRange()); if (!getDbNameOverrideBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, dbNameOverride_); .serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 10); if (!getMysqlHostnameBytes().isEmpty()) {
hash = (19 * hash) + getDescriptor().hashCode(); if (hasAlias()) { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode(); hash = (53 * hash) + getHostname().hashCode(); if (!internalGetPortMap().getMap().isEmpty()) { hash = (37 * hash) + PORT_MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetPortMap().hashCode(); hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode(); hash = (53 * hash) + getDbNameOverride().hashCode(); if (!internalGetTags().getMap().isEmpty()) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + internalGetTags().hashCode(); hash = (53 * hash) + getMysqlHostname().hashCode(); hash = (37 * hash) + MYSQL_PORT_FIELD_NUMBER; hash = (53 * hash) + getMysqlPort(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash;
result = result && (hasAlias() == other.hasAlias()); if (hasAlias()) { result = result && getAlias() .equals(other.getAlias()); result = result && getHostname() .equals(other.getHostname()); result = result && internalGetPortMap().equals( other.internalGetPortMap()); result = result && getKeyspace() .equals(other.getKeyspace()); result = result && getShard() .equals(other.getShard()); result = result && (hasKeyRange() == other.hasKeyRange()); if (hasKeyRange()) { result = result && getKeyRange() .equals(other.getKeyRange()); result = result && getDbNameOverride() .equals(other.getDbNameOverride()); result = result && internalGetTags().equals( other.internalGetTags()); result = result && getMysqlHostname() .equals(other.getMysqlHostname()); result = result && (getMysqlPort() == other.getMysqlPort()); result = result && unknownFields.equals(other.unknownFields); return result;
hash = (19 * hash) + getDescriptor().hashCode(); if (hasAlias()) { hash = (37 * hash) + ALIAS_FIELD_NUMBER; hash = (53 * hash) + getAlias().hashCode(); hash = (53 * hash) + getHostname().hashCode(); if (!internalGetPortMap().getMap().isEmpty()) { hash = (37 * hash) + PORT_MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetPortMap().hashCode(); hash = (53 * hash) + getKeyspace().hashCode(); hash = (37 * hash) + SHARD_FIELD_NUMBER; hash = (53 * hash) + getShard().hashCode(); if (hasKeyRange()) { hash = (37 * hash) + KEY_RANGE_FIELD_NUMBER; hash = (53 * hash) + getKeyRange().hashCode(); hash = (53 * hash) + getDbNameOverride().hashCode(); if (!internalGetTags().getMap().isEmpty()) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + internalGetTags().hashCode(); hash = (53 * hash) + getMysqlHostname().hashCode(); hash = (37 * hash) + MYSQL_PORT_FIELD_NUMBER; hash = (53 * hash) + getMysqlPort(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash;
@java.lang.Override public io.vitess.proto.Topodata.Tablet buildPartial() { io.vitess.proto.Topodata.Tablet result = new io.vitess.proto.Topodata.Tablet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (aliasBuilder_ == null) { result.alias_ = alias_; } else { result.alias_ = aliasBuilder_.build(); } result.hostname_ = hostname_; result.portMap_ = internalGetPortMap(); result.portMap_.makeImmutable(); result.keyspace_ = keyspace_; result.shard_ = shard_; if (keyRangeBuilder_ == null) { result.keyRange_ = keyRange_; } else { result.keyRange_ = keyRangeBuilder_.build(); } result.type_ = type_; result.dbNameOverride_ = dbNameOverride_; result.tags_ = internalGetTags(); result.tags_.makeImmutable(); result.mysqlHostname_ = mysqlHostname_; result.mysqlPort_ = mysqlPort_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <pre> * Shard name. If range based sharding is used, it should match * key_range. * </pre> * * <code>string shard = 6;</code> */ public Builder clearShard() { shard_ = getDefaultInstance().getShard(); onChanged(); return this; } /**
/** * <pre> * It this is set, it is used as the database name instead of the * normal "vt_" + keyspace. * </pre> * * <code>string db_name_override = 9;</code> */ public Builder clearDbNameOverride() { dbNameOverride_ = getDefaultInstance().getDbNameOverride(); onChanged(); return this; } /**
/** * <pre> * It this is set, it is used as the database name instead of the * normal "vt_" + keyspace. * </pre> * * <code>string db_name_override = 9;</code> */ public Builder clearDbNameOverride() { dbNameOverride_ = getDefaultInstance().getDbNameOverride(); onChanged(); return this; } /**
/** * <pre> * Shard name. If range based sharding is used, it should match * key_range. * </pre> * * <code>string shard = 6;</code> */ public Builder clearShard() { shard_ = getDefaultInstance().getShard(); onChanged(); return this; } /**
@java.lang.Override public io.vitess.proto.Topodata.Tablet getDefaultInstanceForType() { return io.vitess.proto.Topodata.Tablet.getDefaultInstance(); }
/** * <pre> * MySQL hostname. * </pre> * * <code>string mysql_hostname = 12;</code> */ public Builder clearMysqlHostname() { mysqlHostname_ = getDefaultInstance().getMysqlHostname(); onChanged(); return this; } /**
/** * <pre> * Keyspace name. * </pre> * * <code>string keyspace = 5;</code> */ public Builder clearKeyspace() { keyspace_ = getDefaultInstance().getKeyspace(); onChanged(); return this; } /**
/** * <pre> * Fully qualified domain name of the host. * </pre> * * <code>string hostname = 2;</code> */ public Builder clearHostname() { hostname_ = getDefaultInstance().getHostname(); onChanged(); return this; } /**