/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls(io.vitess.proto.Topodata.Shard.TabletControl value) { if (tabletControlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTabletControlsIsMutable(); tabletControls_.add(value); onChanged(); } else { tabletControlsBuilder_.addMessage(value); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl value) { if (tabletControlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTabletControlsIsMutable(); tabletControls_.add(index, value); onChanged(); } else { tabletControlsBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls(io.vitess.proto.Topodata.Shard.TabletControl value) { if (tabletControlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTabletControlsIsMutable(); tabletControls_.add(value); onChanged(); } else { tabletControlsBuilder_.addMessage(value); } return this; } /**
bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTabletControlsIsMutable(); tabletControls_.addAll(other.tabletControls_);
bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTabletControlsIsMutable(); tabletControls_.addAll(other.tabletControls_);
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder setTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl value) { if (tabletControlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTabletControlsIsMutable(); tabletControls_.set(index, value); onChanged(); } else { tabletControlsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl value) { if (tabletControlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTabletControlsIsMutable(); tabletControls_.add(index, value); onChanged(); } else { tabletControlsBuilder_.addMessage(index, value); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder setTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl value) { if (tabletControlsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTabletControlsIsMutable(); tabletControls_.set(index, value); onChanged(); } else { tabletControlsBuilder_.setMessage(index, value); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addAllTabletControls( java.lang.Iterable<? extends io.vitess.proto.Topodata.Shard.TabletControl> values) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tabletControls_); onChanged(); } else { tabletControlsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addAllTabletControls( java.lang.Iterable<? extends io.vitess.proto.Topodata.Shard.TabletControl> values) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tabletControls_); onChanged(); } else { tabletControlsBuilder_.addAllMessages(values); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder setTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl.Builder builderForValue) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.set(index, builderForValue.build()); onChanged(); } else { tabletControlsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder setTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl.Builder builderForValue) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.set(index, builderForValue.build()); onChanged(); } else { tabletControlsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl.Builder builderForValue) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.add(index, builderForValue.build()); onChanged(); } else { tabletControlsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls( io.vitess.proto.Topodata.Shard.TabletControl.Builder builderForValue) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.add(builderForValue.build()); onChanged(); } else { tabletControlsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder removeTabletControls(int index) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.remove(index); onChanged(); } else { tabletControlsBuilder_.remove(index); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls( io.vitess.proto.Topodata.Shard.TabletControl.Builder builderForValue) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.add(builderForValue.build()); onChanged(); } else { tabletControlsBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder removeTabletControls(int index) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.remove(index); onChanged(); } else { tabletControlsBuilder_.remove(index); } return this; } /**
/** * <pre> * tablet_controls has at most one entry per TabletType. * The keyspace lock is always taken when changing this. * </pre> * * <code>repeated .topodata.Shard.TabletControl tablet_controls = 6;</code> */ public Builder addTabletControls( int index, io.vitess.proto.Topodata.Shard.TabletControl.Builder builderForValue) { if (tabletControlsBuilder_ == null) { ensureTabletControlsIsMutable(); tabletControls_.add(index, builderForValue.build()); onChanged(); } else { tabletControlsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**