/** * <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; } /**
/** * <code>repeated .topodata.SrvKeyspace.ServedFrom served_from = 4;</code> */ public Builder addServedFrom( int index, io.vitess.proto.Topodata.SrvKeyspace.ServedFrom value) { if (servedFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServedFromIsMutable(); servedFrom_.add(index, value); onChanged(); } else { servedFromBuilder_.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 java.util.List<io.vitess.proto.Topodata.SrvKeyspace.KeyspacePartition.Builder> getPartitionsBuilderList() { return getPartitionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3<
bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); onChanged(); partitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionsFieldBuilder() : null; } else { partitionsBuilder_.addAllMessages(other.partitions_); onChanged(); setShardingColumnTypeValue(other.getShardingColumnTypeValue()); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureServedFromIsMutable(); servedFrom_.addAll(other.servedFrom_); onChanged(); servedFromBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getServedFromFieldBuilder() : null; } else { servedFromBuilder_.addAllMessages(other.servedFrom_);
bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePartitionsIsMutable(); partitions_.addAll(other.partitions_); onChanged(); partitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartitionsFieldBuilder() : null; } else { partitionsBuilder_.addAllMessages(other.partitions_); onChanged(); setShardingColumnTypeValue(other.getShardingColumnTypeValue()); bitField0_ = (bitField0_ & ~0x00000008); } else { ensureServedFromIsMutable(); servedFrom_.addAll(other.servedFrom_); onChanged(); servedFromBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getServedFromFieldBuilder() : null; } else { servedFromBuilder_.addAllMessages(other.servedFrom_);
/** * <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( 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(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 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 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 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; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.SrvKeyspace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.SrvKeyspace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <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; } /**
@java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.vitess.proto.Topodata.SrvKeyspace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.vitess.proto.Topodata.SrvKeyspace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <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 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; } /**