/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder clearServedFroms() { if (servedFromsBuilder_ == null) { servedFroms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { servedFromsBuilder_.clear(); } return this; } /**
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder clearServedFroms() { if (servedFromsBuilder_ == null) { servedFroms_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { servedFromsBuilder_.clear(); } return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder setShardingColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shardingColumnName_ = value; onChanged(); return this; } /**
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder addAllServedFroms( java.lang.Iterable<? extends io.vitess.proto.Topodata.Keyspace.ServedFrom> values) { if (servedFromsBuilder_ == null) { ensureServedFromsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, servedFroms_); onChanged(); } else { servedFromsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder addServedFroms( int index, io.vitess.proto.Topodata.Keyspace.ServedFrom.Builder builderForValue) { if (servedFromsBuilder_ == null) { ensureServedFromsIsMutable(); servedFroms_.add(index, builderForValue.build()); onChanged(); } else { servedFromsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder addServedFroms( io.vitess.proto.Topodata.Keyspace.ServedFrom.Builder builderForValue) { if (servedFromsBuilder_ == null) { ensureServedFromsIsMutable(); servedFroms_.add(builderForValue.build()); onChanged(); } else { servedFromsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder removeServedFroms(int index) { if (servedFromsBuilder_ == null) { ensureServedFromsIsMutable(); servedFroms_.remove(index); onChanged(); } else { servedFromsBuilder_.remove(index); } return this; } /**
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder setServedFroms( int index, io.vitess.proto.Topodata.Keyspace.ServedFrom.Builder builderForValue) { if (servedFromsBuilder_ == null) { ensureServedFromsIsMutable(); servedFroms_.set(index, builderForValue.build()); onChanged(); } else { servedFromsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder setShardingColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shardingColumnName_ = value; onChanged(); return this; }
/** * <pre> * ServedFrom will redirect the appropriate traffic to * another keyspace. * </pre> * * <code>repeated .topodata.Keyspace.ServedFrom served_froms = 4;</code> */ public Builder removeServedFroms(int index) { if (servedFromsBuilder_ == null) { ensureServedFromsIsMutable(); servedFroms_.remove(index); onChanged(); } else { servedFromsBuilder_.remove(index); } return this; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder setShardingColumnType(io.vitess.proto.Topodata.KeyspaceIdType value) { if (value == null) { throw new NullPointerException(); } shardingColumnType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder setShardingColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shardingColumnName_ = value; onChanged(); return this; }
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder setShardingColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shardingColumnName_ = value; onChanged(); return this; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder setShardingColumnType(io.vitess.proto.Topodata.KeyspaceIdType value) { if (value == null) { throw new NullPointerException(); } shardingColumnType_ = value.getNumber(); onChanged(); return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
/** * <pre> * name of the column used for sharding * empty if the keyspace is not sharded * </pre> * * <code>string sharding_column_name = 1;</code> */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder clearShardingColumnType() { shardingColumnType_ = 0; onChanged(); return this; }
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder setShardingColumnTypeValue(int value) { shardingColumnType_ = value; onChanged(); return this; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder setShardingColumnTypeValue(int value) { shardingColumnType_ = value; onChanged(); return this; } /**
/** * <pre> * type of the column used for sharding * UNSET if the keyspace is not sharded * </pre> * * <code>.topodata.KeyspaceIdType sharding_column_type = 2;</code> */ public Builder clearShardingColumnType() { shardingColumnType_ = 0; onChanged(); return this; }