/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions(io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); } else { partitionsBuilder_.addMessage(value); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(index, value); onChanged(); } else { partitionsBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(index, value); onChanged(); } else { partitionsBuilder_.addMessage(index, value); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_);
bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_);
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder setPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); } else { partitionsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder setPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.set(index, value); onChanged(); } else { partitionsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions(io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition value) { if (partitionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePartitionsIsMutable(); partitions_.add(value); onChanged(); } else { partitionsBuilder_.addMessage(value); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions( io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder setPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.set(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder removePartitions(int index) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.remove(index); onChanged(); } else { partitionsBuilder_.remove(index); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addAllPartitions( java.lang.Iterable<? extends io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition> values) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitions_); onChanged(); } else { partitionsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addAllPartitions( java.lang.Iterable<? extends io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition> values) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, partitions_); onChanged(); } else { partitionsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions( io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder setPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.set(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder addPartitions( int index, io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder builderForValue) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.add(index, builderForValue.build()); onChanged(); } else { partitionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * The partitions this keyspace is serving, per tablet type. * </pre> * * <code>repeated .topodata.SrvKeyspace.KeyspacePartition partitions = 1;</code> */ public Builder removePartitions(int index) { if (partitionsBuilder_ == null) { ensurePartitionsIsMutable(); partitions_.remove(index); onChanged(); } else { partitionsBuilder_.remove(index); } return this; } /**