/** * <code>repeated string blacklisted_tables = 4;</code> */ public Builder addBlacklistedTablesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBlacklistedTablesIsMutable(); blacklistedTables_.add(value); onChanged(); return this; }
/** * <code>repeated string cells = 2;</code> */ public Builder addCellsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCellsIsMutable(); cells_.add(value); onChanged(); return this; }
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.Shard.TabletControl parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.Shard.TabletControl) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom(io.vitess.proto.Topodata.Shard.TabletControl other) { if (other == io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()) return this; if (other.tabletType_ != 0) { setTabletTypeValue(other.getTabletTypeValue()); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCellsIsMutable(); cells_.addAll(other.cells_); onChanged(); setDisableQueryService(other.getDisableQueryService()); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBlacklistedTablesIsMutable(); blacklistedTables_.addAll(other.blacklistedTables_); onChanged(); setFrozen(other.getFrozen()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
public Builder mergeFrom(io.vitess.proto.Topodata.Shard.TabletControl other) { if (other == io.vitess.proto.Topodata.Shard.TabletControl.getDefaultInstance()) return this; if (other.tabletType_ != 0) { setTabletTypeValue(other.getTabletTypeValue()); bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCellsIsMutable(); cells_.addAll(other.cells_); onChanged(); setDisableQueryService(other.getDisableQueryService()); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBlacklistedTablesIsMutable(); blacklistedTables_.addAll(other.blacklistedTables_); onChanged(); setFrozen(other.getFrozen()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this;
@java.lang.Override public io.vitess.proto.Topodata.Shard.TabletControl buildPartial() { io.vitess.proto.Topodata.Shard.TabletControl result = new io.vitess.proto.Topodata.Shard.TabletControl(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.tabletType_ = tabletType_; if (((bitField0_ & 0x00000002) == 0x00000002)) { cells_ = cells_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.cells_ = cells_; result.disableQueryService_ = disableQueryService_; if (((bitField0_ & 0x00000008) == 0x00000008)) { blacklistedTables_ = blacklistedTables_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.blacklistedTables_ = blacklistedTables_; result.frozen_ = frozen_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <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; } /**
@java.lang.Override public io.vitess.proto.Topodata.Shard.TabletControl buildPartial() { io.vitess.proto.Topodata.Shard.TabletControl result = new io.vitess.proto.Topodata.Shard.TabletControl(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.tabletType_ = tabletType_; if (((bitField0_ & 0x00000002) == 0x00000002)) { cells_ = cells_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.cells_ = cells_; result.disableQueryService_ = disableQueryService_; if (((bitField0_ & 0x00000008) == 0x00000008)) { blacklistedTables_ = blacklistedTables_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.blacklistedTables_ = blacklistedTables_; result.frozen_ = frozen_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <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; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.Shard.TabletControl parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.Shard.TabletControl) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <code>repeated string blacklisted_tables = 4;</code> */ public Builder setBlacklistedTables( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBlacklistedTablesIsMutable(); blacklistedTables_.set(index, value); onChanged(); return this; } /**
/** * <code>repeated string blacklisted_tables = 4;</code> */ public Builder addBlacklistedTablesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBlacklistedTablesIsMutable(); blacklistedTables_.add(value); onChanged(); return this; }
/** * <code>repeated string blacklisted_tables = 4;</code> */ public Builder setBlacklistedTables( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBlacklistedTablesIsMutable(); blacklistedTables_.set(index, value); onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>repeated string cells = 2;</code> */ public Builder setCells( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCellsIsMutable(); cells_.set(index, value); onChanged(); return this; } /**