/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard value) { if (sourceShardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourceShardsIsMutable(); sourceShards_.add(index, value); onChanged(); } else { sourceShardsBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards(io.vitess.proto.Topodata.Shard.SourceShard value) { if (sourceShardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourceShardsIsMutable(); sourceShards_.add(value); onChanged(); } else { sourceShardsBuilder_.addMessage(value); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards(io.vitess.proto.Topodata.Shard.SourceShard value) { if (sourceShardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourceShardsIsMutable(); sourceShards_.add(value); onChanged(); } else { sourceShardsBuilder_.addMessage(value); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSourceShardsIsMutable(); sourceShards_.addAll(other.sourceShards_);
bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSourceShardsIsMutable(); sourceShards_.addAll(other.sourceShards_);
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder setSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard value) { if (sourceShardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourceShardsIsMutable(); sourceShards_.set(index, value); onChanged(); } else { sourceShardsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder setSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard value) { if (sourceShardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourceShardsIsMutable(); sourceShards_.set(index, value); onChanged(); } else { sourceShardsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard value) { if (sourceShardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourceShardsIsMutable(); sourceShards_.add(index, value); onChanged(); } else { sourceShardsBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addAllSourceShards( java.lang.Iterable<? extends io.vitess.proto.Topodata.Shard.SourceShard> values) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sourceShards_); onChanged(); } else { sourceShardsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addAllSourceShards( java.lang.Iterable<? extends io.vitess.proto.Topodata.Shard.SourceShard> values) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sourceShards_); onChanged(); } else { sourceShardsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder setSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard.Builder builderForValue) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.set(index, builderForValue.build()); onChanged(); } else { sourceShardsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards( io.vitess.proto.Topodata.Shard.SourceShard.Builder builderForValue) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.add(builderForValue.build()); onChanged(); } else { sourceShardsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder removeSourceShards(int index) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.remove(index); onChanged(); } else { sourceShardsBuilder_.remove(index); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards( io.vitess.proto.Topodata.Shard.SourceShard.Builder builderForValue) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.add(builderForValue.build()); onChanged(); } else { sourceShardsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder setSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard.Builder builderForValue) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.set(index, builderForValue.build()); onChanged(); } else { sourceShardsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard.Builder builderForValue) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.add(index, builderForValue.build()); onChanged(); } else { sourceShardsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder addSourceShards( int index, io.vitess.proto.Topodata.Shard.SourceShard.Builder builderForValue) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.add(index, builderForValue.build()); onChanged(); } else { sourceShardsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * SourceShards is the list of shards we're replicating from, * using filtered replication. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.SourceShard source_shards = 4;</code> */ public Builder removeSourceShards(int index) { if (sourceShardsBuilder_ == null) { ensureSourceShardsIsMutable(); sourceShards_.remove(index); onChanged(); } else { sourceShardsBuilder_.remove(index); } return this; } /**