/** * <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 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 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; } /**