All Downloads are FREE. Search and download functionalities are using the official Maven repository.

vttest.Vttest Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: vttest.proto

package vttest;

public final class Vttest {
  private Vttest() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ShardOrBuilder extends
      // @@protoc_insertion_point(interface_extends:vttest.Shard)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * name has to be unique in a keyspace. For unsharded keyspaces, it
     * should be '0'. For sharded keyspace, it should be derived from
     * the keyrange, like '-80' or '40-80'.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * name has to be unique in a keyspace. For unsharded keyspaces, it
     * should be '0'. For sharded keyspace, it should be derived from
     * the keyrange, like '-80' or '40-80'.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * db_name_override is the mysql db name for this shard. Has to be
     * globally unique. If not specified, we will by default use
     * 'vt_<keyspace>_<shard>'.
     * 
* * optional string db_name_override = 2; */ java.lang.String getDbNameOverride(); /** *
     * db_name_override is the mysql db name for this shard. Has to be
     * globally unique. If not specified, we will by default use
     * 'vt_<keyspace>_<shard>'.
     * 
* * optional string db_name_override = 2; */ com.google.protobuf.ByteString getDbNameOverrideBytes(); } /** *
   * Shard describes a single shard in a keyspace.
   * 
* * Protobuf type {@code vttest.Shard} */ public static final class Shard extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vttest.Shard) ShardOrBuilder { // Use Shard.newBuilder() to construct. private Shard(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Shard() { name_ = ""; dbNameOverride_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Shard( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); dbNameOverride_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return vttest.Vttest.internal_static_vttest_Shard_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return vttest.Vttest.internal_static_vttest_Shard_fieldAccessorTable .ensureFieldAccessorsInitialized( vttest.Vttest.Shard.class, vttest.Vttest.Shard.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name has to be unique in a keyspace. For unsharded keyspaces, it
     * should be '0'. For sharded keyspace, it should be derived from
     * the keyrange, like '-80' or '40-80'.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name has to be unique in a keyspace. For unsharded keyspaces, it
     * should be '0'. For sharded keyspace, it should be derived from
     * the keyrange, like '-80' or '40-80'.
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DB_NAME_OVERRIDE_FIELD_NUMBER = 2; private volatile java.lang.Object dbNameOverride_; /** *
     * db_name_override is the mysql db name for this shard. Has to be
     * globally unique. If not specified, we will by default use
     * 'vt_<keyspace>_<shard>'.
     * 
* * optional string db_name_override = 2; */ public java.lang.String getDbNameOverride() { java.lang.Object ref = dbNameOverride_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dbNameOverride_ = s; return s; } } /** *
     * db_name_override is the mysql db name for this shard. Has to be
     * globally unique. If not specified, we will by default use
     * 'vt_<keyspace>_<shard>'.
     * 
* * optional string db_name_override = 2; */ public com.google.protobuf.ByteString getDbNameOverrideBytes() { java.lang.Object ref = dbNameOverride_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbNameOverride_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDbNameOverrideBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dbNameOverride_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getDbNameOverrideBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dbNameOverride_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof vttest.Vttest.Shard)) { return super.equals(obj); } vttest.Vttest.Shard other = (vttest.Vttest.Shard) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getDbNameOverride() .equals(other.getDbNameOverride()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DB_NAME_OVERRIDE_FIELD_NUMBER; hash = (53 * hash) + getDbNameOverride().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static vttest.Vttest.Shard parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static vttest.Vttest.Shard parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static vttest.Vttest.Shard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static vttest.Vttest.Shard parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static vttest.Vttest.Shard parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static vttest.Vttest.Shard parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static vttest.Vttest.Shard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static vttest.Vttest.Shard parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static vttest.Vttest.Shard parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static vttest.Vttest.Shard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(vttest.Vttest.Shard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Shard describes a single shard in a keyspace.
     * 
* * Protobuf type {@code vttest.Shard} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vttest.Shard) vttest.Vttest.ShardOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return vttest.Vttest.internal_static_vttest_Shard_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return vttest.Vttest.internal_static_vttest_Shard_fieldAccessorTable .ensureFieldAccessorsInitialized( vttest.Vttest.Shard.class, vttest.Vttest.Shard.Builder.class); } // Construct using vttest.Vttest.Shard.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; dbNameOverride_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return vttest.Vttest.internal_static_vttest_Shard_descriptor; } public vttest.Vttest.Shard getDefaultInstanceForType() { return vttest.Vttest.Shard.getDefaultInstance(); } public vttest.Vttest.Shard build() { vttest.Vttest.Shard result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public vttest.Vttest.Shard buildPartial() { vttest.Vttest.Shard result = new vttest.Vttest.Shard(this); result.name_ = name_; result.dbNameOverride_ = dbNameOverride_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof vttest.Vttest.Shard) { return mergeFrom((vttest.Vttest.Shard)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(vttest.Vttest.Shard other) { if (other == vttest.Vttest.Shard.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDbNameOverride().isEmpty()) { dbNameOverride_ = other.dbNameOverride_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { vttest.Vttest.Shard parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (vttest.Vttest.Shard) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * name has to be unique in a keyspace. For unsharded keyspaces, it
       * should be '0'. For sharded keyspace, it should be derived from
       * the keyrange, like '-80' or '40-80'.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name has to be unique in a keyspace. For unsharded keyspaces, it
       * should be '0'. For sharded keyspace, it should be derived from
       * the keyrange, like '-80' or '40-80'.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name has to be unique in a keyspace. For unsharded keyspaces, it
       * should be '0'. For sharded keyspace, it should be derived from
       * the keyrange, like '-80' or '40-80'.
       * 
* * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name has to be unique in a keyspace. For unsharded keyspaces, it
       * should be '0'. For sharded keyspace, it should be derived from
       * the keyrange, like '-80' or '40-80'.
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name has to be unique in a keyspace. For unsharded keyspaces, it
       * should be '0'. For sharded keyspace, it should be derived from
       * the keyrange, like '-80' or '40-80'.
       * 
* * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object dbNameOverride_ = ""; /** *
       * db_name_override is the mysql db name for this shard. Has to be
       * globally unique. If not specified, we will by default use
       * 'vt_<keyspace>_<shard>'.
       * 
* * optional string db_name_override = 2; */ public java.lang.String getDbNameOverride() { java.lang.Object ref = dbNameOverride_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dbNameOverride_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * db_name_override is the mysql db name for this shard. Has to be
       * globally unique. If not specified, we will by default use
       * 'vt_<keyspace>_<shard>'.
       * 
* * optional string db_name_override = 2; */ public com.google.protobuf.ByteString getDbNameOverrideBytes() { java.lang.Object ref = dbNameOverride_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dbNameOverride_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * db_name_override is the mysql db name for this shard. Has to be
       * globally unique. If not specified, we will by default use
       * 'vt_<keyspace>_<shard>'.
       * 
* * optional string db_name_override = 2; */ public Builder setDbNameOverride( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dbNameOverride_ = value; onChanged(); return this; } /** *
       * db_name_override is the mysql db name for this shard. Has to be
       * globally unique. If not specified, we will by default use
       * 'vt_<keyspace>_<shard>'.
       * 
* * optional string db_name_override = 2; */ public Builder clearDbNameOverride() { dbNameOverride_ = getDefaultInstance().getDbNameOverride(); onChanged(); return this; } /** *
       * db_name_override is the mysql db name for this shard. Has to be
       * globally unique. If not specified, we will by default use
       * 'vt_<keyspace>_<shard>'.
       * 
* * optional string db_name_override = 2; */ public Builder setDbNameOverrideBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dbNameOverride_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:vttest.Shard) } // @@protoc_insertion_point(class_scope:vttest.Shard) private static final vttest.Vttest.Shard DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new vttest.Vttest.Shard(); } public static vttest.Vttest.Shard getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Shard parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Shard(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public vttest.Vttest.Shard getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyspaceOrBuilder extends // @@protoc_insertion_point(interface_extends:vttest.Keyspace) com.google.protobuf.MessageOrBuilder { /** *
     * name has to be unique in a VTTestTopology.
     * 
* * optional string name = 1; */ java.lang.String getName(); /** *
     * name has to be unique in a VTTestTopology.
     * 
* * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ java.util.List getShardsList(); /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ vttest.Vttest.Shard getShards(int index); /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ int getShardsCount(); /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ java.util.List getShardsOrBuilderList(); /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ vttest.Vttest.ShardOrBuilder getShardsOrBuilder( int index); /** *
     * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_name = 3; */ java.lang.String getShardingColumnName(); /** *
     * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_name = 3; */ com.google.protobuf.ByteString getShardingColumnNameBytes(); /** *
     * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_type = 4; */ java.lang.String getShardingColumnType(); /** *
     * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_type = 4; */ com.google.protobuf.ByteString getShardingColumnTypeBytes(); /** *
     * redirects all traffic to another keyspace. If set, shards is ignored.
     * 
* * optional string served_from = 5; */ java.lang.String getServedFrom(); /** *
     * redirects all traffic to another keyspace. If set, shards is ignored.
     * 
* * optional string served_from = 5; */ com.google.protobuf.ByteString getServedFromBytes(); /** *
     * number of replica tablets to instantiate. This includes the master tablet.
     * 
* * optional int32 replica_count = 6; */ int getReplicaCount(); /** *
     * number of rdonly tablets to instantiate.
     * 
* * optional int32 rdonly_count = 7; */ int getRdonlyCount(); } /** *
   * Keyspace describes a single keyspace.
   * 
* * Protobuf type {@code vttest.Keyspace} */ public static final class Keyspace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vttest.Keyspace) KeyspaceOrBuilder { // Use Keyspace.newBuilder() to construct. private Keyspace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Keyspace() { name_ = ""; shards_ = java.util.Collections.emptyList(); shardingColumnName_ = ""; shardingColumnType_ = ""; servedFrom_ = ""; replicaCount_ = 0; rdonlyCount_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Keyspace( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { shards_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } shards_.add( input.readMessage(vttest.Vttest.Shard.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); shardingColumnName_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); shardingColumnType_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); servedFrom_ = s; break; } case 48: { replicaCount_ = input.readInt32(); break; } case 56: { rdonlyCount_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { shards_ = java.util.Collections.unmodifiableList(shards_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return vttest.Vttest.internal_static_vttest_Keyspace_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return vttest.Vttest.internal_static_vttest_Keyspace_fieldAccessorTable .ensureFieldAccessorsInitialized( vttest.Vttest.Keyspace.class, vttest.Vttest.Keyspace.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * name has to be unique in a VTTestTopology.
     * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * name has to be unique in a VTTestTopology.
     * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHARDS_FIELD_NUMBER = 2; private java.util.List shards_; /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ public java.util.List getShardsList() { return shards_; } /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ public java.util.List getShardsOrBuilderList() { return shards_; } /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ public int getShardsCount() { return shards_.size(); } /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.Shard getShards(int index) { return shards_.get(index); } /** *
     * shards inside this keyspace. Ignored if redirect is set.
     * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.ShardOrBuilder getShardsOrBuilder( int index) { return shards_.get(index); } public static final int SHARDING_COLUMN_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object shardingColumnName_; /** *
     * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_name = 3; */ public java.lang.String getShardingColumnName() { java.lang.Object ref = shardingColumnName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shardingColumnName_ = s; return s; } } /** *
     * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_name = 3; */ public com.google.protobuf.ByteString getShardingColumnNameBytes() { java.lang.Object ref = shardingColumnName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shardingColumnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHARDING_COLUMN_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object shardingColumnType_; /** *
     * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_type = 4; */ public java.lang.String getShardingColumnType() { java.lang.Object ref = shardingColumnType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shardingColumnType_ = s; return s; } } /** *
     * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
     * 
* * optional string sharding_column_type = 4; */ public com.google.protobuf.ByteString getShardingColumnTypeBytes() { java.lang.Object ref = shardingColumnType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shardingColumnType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVED_FROM_FIELD_NUMBER = 5; private volatile java.lang.Object servedFrom_; /** *
     * redirects all traffic to another keyspace. If set, shards is ignored.
     * 
* * optional string served_from = 5; */ public java.lang.String getServedFrom() { java.lang.Object ref = servedFrom_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servedFrom_ = s; return s; } } /** *
     * redirects all traffic to another keyspace. If set, shards is ignored.
     * 
* * optional string served_from = 5; */ public com.google.protobuf.ByteString getServedFromBytes() { java.lang.Object ref = servedFrom_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servedFrom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLICA_COUNT_FIELD_NUMBER = 6; private int replicaCount_; /** *
     * number of replica tablets to instantiate. This includes the master tablet.
     * 
* * optional int32 replica_count = 6; */ public int getReplicaCount() { return replicaCount_; } public static final int RDONLY_COUNT_FIELD_NUMBER = 7; private int rdonlyCount_; /** *
     * number of rdonly tablets to instantiate.
     * 
* * optional int32 rdonly_count = 7; */ public int getRdonlyCount() { return rdonlyCount_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } for (int i = 0; i < shards_.size(); i++) { output.writeMessage(2, shards_.get(i)); } if (!getShardingColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shardingColumnName_); } if (!getShardingColumnTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shardingColumnType_); } if (!getServedFromBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, servedFrom_); } if (replicaCount_ != 0) { output.writeInt32(6, replicaCount_); } if (rdonlyCount_ != 0) { output.writeInt32(7, rdonlyCount_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < shards_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, shards_.get(i)); } if (!getShardingColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shardingColumnName_); } if (!getShardingColumnTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, shardingColumnType_); } if (!getServedFromBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, servedFrom_); } if (replicaCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, replicaCount_); } if (rdonlyCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, rdonlyCount_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof vttest.Vttest.Keyspace)) { return super.equals(obj); } vttest.Vttest.Keyspace other = (vttest.Vttest.Keyspace) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getShardsList() .equals(other.getShardsList()); result = result && getShardingColumnName() .equals(other.getShardingColumnName()); result = result && getShardingColumnType() .equals(other.getShardingColumnType()); result = result && getServedFrom() .equals(other.getServedFrom()); result = result && (getReplicaCount() == other.getReplicaCount()); result = result && (getRdonlyCount() == other.getRdonlyCount()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getShardsCount() > 0) { hash = (37 * hash) + SHARDS_FIELD_NUMBER; hash = (53 * hash) + getShardsList().hashCode(); } hash = (37 * hash) + SHARDING_COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getShardingColumnName().hashCode(); hash = (37 * hash) + SHARDING_COLUMN_TYPE_FIELD_NUMBER; hash = (53 * hash) + getShardingColumnType().hashCode(); hash = (37 * hash) + SERVED_FROM_FIELD_NUMBER; hash = (53 * hash) + getServedFrom().hashCode(); hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER; hash = (53 * hash) + getReplicaCount(); hash = (37 * hash) + RDONLY_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRdonlyCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static vttest.Vttest.Keyspace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static vttest.Vttest.Keyspace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static vttest.Vttest.Keyspace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static vttest.Vttest.Keyspace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static vttest.Vttest.Keyspace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static vttest.Vttest.Keyspace parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static vttest.Vttest.Keyspace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static vttest.Vttest.Keyspace parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static vttest.Vttest.Keyspace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static vttest.Vttest.Keyspace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(vttest.Vttest.Keyspace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Keyspace describes a single keyspace.
     * 
* * Protobuf type {@code vttest.Keyspace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vttest.Keyspace) vttest.Vttest.KeyspaceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return vttest.Vttest.internal_static_vttest_Keyspace_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return vttest.Vttest.internal_static_vttest_Keyspace_fieldAccessorTable .ensureFieldAccessorsInitialized( vttest.Vttest.Keyspace.class, vttest.Vttest.Keyspace.Builder.class); } // Construct using vttest.Vttest.Keyspace.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getShardsFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; if (shardsBuilder_ == null) { shards_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { shardsBuilder_.clear(); } shardingColumnName_ = ""; shardingColumnType_ = ""; servedFrom_ = ""; replicaCount_ = 0; rdonlyCount_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return vttest.Vttest.internal_static_vttest_Keyspace_descriptor; } public vttest.Vttest.Keyspace getDefaultInstanceForType() { return vttest.Vttest.Keyspace.getDefaultInstance(); } public vttest.Vttest.Keyspace build() { vttest.Vttest.Keyspace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public vttest.Vttest.Keyspace buildPartial() { vttest.Vttest.Keyspace result = new vttest.Vttest.Keyspace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (shardsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { shards_ = java.util.Collections.unmodifiableList(shards_); bitField0_ = (bitField0_ & ~0x00000002); } result.shards_ = shards_; } else { result.shards_ = shardsBuilder_.build(); } result.shardingColumnName_ = shardingColumnName_; result.shardingColumnType_ = shardingColumnType_; result.servedFrom_ = servedFrom_; result.replicaCount_ = replicaCount_; result.rdonlyCount_ = rdonlyCount_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof vttest.Vttest.Keyspace) { return mergeFrom((vttest.Vttest.Keyspace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(vttest.Vttest.Keyspace other) { if (other == vttest.Vttest.Keyspace.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (shardsBuilder_ == null) { if (!other.shards_.isEmpty()) { if (shards_.isEmpty()) { shards_ = other.shards_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureShardsIsMutable(); shards_.addAll(other.shards_); } onChanged(); } } else { if (!other.shards_.isEmpty()) { if (shardsBuilder_.isEmpty()) { shardsBuilder_.dispose(); shardsBuilder_ = null; shards_ = other.shards_; bitField0_ = (bitField0_ & ~0x00000002); shardsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getShardsFieldBuilder() : null; } else { shardsBuilder_.addAllMessages(other.shards_); } } } if (!other.getShardingColumnName().isEmpty()) { shardingColumnName_ = other.shardingColumnName_; onChanged(); } if (!other.getShardingColumnType().isEmpty()) { shardingColumnType_ = other.shardingColumnType_; onChanged(); } if (!other.getServedFrom().isEmpty()) { servedFrom_ = other.servedFrom_; onChanged(); } if (other.getReplicaCount() != 0) { setReplicaCount(other.getReplicaCount()); } if (other.getRdonlyCount() != 0) { setRdonlyCount(other.getRdonlyCount()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { vttest.Vttest.Keyspace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (vttest.Vttest.Keyspace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * name has to be unique in a VTTestTopology.
       * 
* * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * name has to be unique in a VTTestTopology.
       * 
* * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * name has to be unique in a VTTestTopology.
       * 
* * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name has to be unique in a VTTestTopology.
       * 
* * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name has to be unique in a VTTestTopology.
       * 
* * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List shards_ = java.util.Collections.emptyList(); private void ensureShardsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { shards_ = new java.util.ArrayList(shards_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< vttest.Vttest.Shard, vttest.Vttest.Shard.Builder, vttest.Vttest.ShardOrBuilder> shardsBuilder_; /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public java.util.List getShardsList() { if (shardsBuilder_ == null) { return java.util.Collections.unmodifiableList(shards_); } else { return shardsBuilder_.getMessageList(); } } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public int getShardsCount() { if (shardsBuilder_ == null) { return shards_.size(); } else { return shardsBuilder_.getCount(); } } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.Shard getShards(int index) { if (shardsBuilder_ == null) { return shards_.get(index); } else { return shardsBuilder_.getMessage(index); } } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder setShards( int index, vttest.Vttest.Shard value) { if (shardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShardsIsMutable(); shards_.set(index, value); onChanged(); } else { shardsBuilder_.setMessage(index, value); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder setShards( int index, vttest.Vttest.Shard.Builder builderForValue) { if (shardsBuilder_ == null) { ensureShardsIsMutable(); shards_.set(index, builderForValue.build()); onChanged(); } else { shardsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder addShards(vttest.Vttest.Shard value) { if (shardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShardsIsMutable(); shards_.add(value); onChanged(); } else { shardsBuilder_.addMessage(value); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder addShards( int index, vttest.Vttest.Shard value) { if (shardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureShardsIsMutable(); shards_.add(index, value); onChanged(); } else { shardsBuilder_.addMessage(index, value); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder addShards( vttest.Vttest.Shard.Builder builderForValue) { if (shardsBuilder_ == null) { ensureShardsIsMutable(); shards_.add(builderForValue.build()); onChanged(); } else { shardsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder addShards( int index, vttest.Vttest.Shard.Builder builderForValue) { if (shardsBuilder_ == null) { ensureShardsIsMutable(); shards_.add(index, builderForValue.build()); onChanged(); } else { shardsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder addAllShards( java.lang.Iterable values) { if (shardsBuilder_ == null) { ensureShardsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, shards_); onChanged(); } else { shardsBuilder_.addAllMessages(values); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder clearShards() { if (shardsBuilder_ == null) { shards_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { shardsBuilder_.clear(); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public Builder removeShards(int index) { if (shardsBuilder_ == null) { ensureShardsIsMutable(); shards_.remove(index); onChanged(); } else { shardsBuilder_.remove(index); } return this; } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.Shard.Builder getShardsBuilder( int index) { return getShardsFieldBuilder().getBuilder(index); } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.ShardOrBuilder getShardsOrBuilder( int index) { if (shardsBuilder_ == null) { return shards_.get(index); } else { return shardsBuilder_.getMessageOrBuilder(index); } } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public java.util.List getShardsOrBuilderList() { if (shardsBuilder_ != null) { return shardsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(shards_); } } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.Shard.Builder addShardsBuilder() { return getShardsFieldBuilder().addBuilder( vttest.Vttest.Shard.getDefaultInstance()); } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public vttest.Vttest.Shard.Builder addShardsBuilder( int index) { return getShardsFieldBuilder().addBuilder( index, vttest.Vttest.Shard.getDefaultInstance()); } /** *
       * shards inside this keyspace. Ignored if redirect is set.
       * 
* * repeated .vttest.Shard shards = 2; */ public java.util.List getShardsBuilderList() { return getShardsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< vttest.Vttest.Shard, vttest.Vttest.Shard.Builder, vttest.Vttest.ShardOrBuilder> getShardsFieldBuilder() { if (shardsBuilder_ == null) { shardsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< vttest.Vttest.Shard, vttest.Vttest.Shard.Builder, vttest.Vttest.ShardOrBuilder>( shards_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); shards_ = null; } return shardsBuilder_; } private java.lang.Object shardingColumnName_ = ""; /** *
       * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_name = 3; */ public java.lang.String getShardingColumnName() { java.lang.Object ref = shardingColumnName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shardingColumnName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_name = 3; */ public com.google.protobuf.ByteString getShardingColumnNameBytes() { java.lang.Object ref = shardingColumnName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shardingColumnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_name = 3; */ public Builder setShardingColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shardingColumnName_ = value; onChanged(); return this; } /** *
       * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_name = 3; */ public Builder clearShardingColumnName() { shardingColumnName_ = getDefaultInstance().getShardingColumnName(); onChanged(); return this; } /** *
       * sharding_column_name for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_name = 3; */ public Builder setShardingColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shardingColumnName_ = value; onChanged(); return this; } private java.lang.Object shardingColumnType_ = ""; /** *
       * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_type = 4; */ public java.lang.String getShardingColumnType() { java.lang.Object ref = shardingColumnType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); shardingColumnType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_type = 4; */ public com.google.protobuf.ByteString getShardingColumnTypeBytes() { java.lang.Object ref = shardingColumnType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); shardingColumnType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_type = 4; */ public Builder setShardingColumnType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } shardingColumnType_ = value; onChanged(); return this; } /** *
       * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_type = 4; */ public Builder clearShardingColumnType() { shardingColumnType_ = getDefaultInstance().getShardingColumnType(); onChanged(); return this; } /** *
       * sharding_column_type for this keyspace. Used for v2 calls, but not for v3.
       * 
* * optional string sharding_column_type = 4; */ public Builder setShardingColumnTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); shardingColumnType_ = value; onChanged(); return this; } private java.lang.Object servedFrom_ = ""; /** *
       * redirects all traffic to another keyspace. If set, shards is ignored.
       * 
* * optional string served_from = 5; */ public java.lang.String getServedFrom() { java.lang.Object ref = servedFrom_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); servedFrom_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * redirects all traffic to another keyspace. If set, shards is ignored.
       * 
* * optional string served_from = 5; */ public com.google.protobuf.ByteString getServedFromBytes() { java.lang.Object ref = servedFrom_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); servedFrom_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * redirects all traffic to another keyspace. If set, shards is ignored.
       * 
* * optional string served_from = 5; */ public Builder setServedFrom( java.lang.String value) { if (value == null) { throw new NullPointerException(); } servedFrom_ = value; onChanged(); return this; } /** *
       * redirects all traffic to another keyspace. If set, shards is ignored.
       * 
* * optional string served_from = 5; */ public Builder clearServedFrom() { servedFrom_ = getDefaultInstance().getServedFrom(); onChanged(); return this; } /** *
       * redirects all traffic to another keyspace. If set, shards is ignored.
       * 
* * optional string served_from = 5; */ public Builder setServedFromBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); servedFrom_ = value; onChanged(); return this; } private int replicaCount_ ; /** *
       * number of replica tablets to instantiate. This includes the master tablet.
       * 
* * optional int32 replica_count = 6; */ public int getReplicaCount() { return replicaCount_; } /** *
       * number of replica tablets to instantiate. This includes the master tablet.
       * 
* * optional int32 replica_count = 6; */ public Builder setReplicaCount(int value) { replicaCount_ = value; onChanged(); return this; } /** *
       * number of replica tablets to instantiate. This includes the master tablet.
       * 
* * optional int32 replica_count = 6; */ public Builder clearReplicaCount() { replicaCount_ = 0; onChanged(); return this; } private int rdonlyCount_ ; /** *
       * number of rdonly tablets to instantiate.
       * 
* * optional int32 rdonly_count = 7; */ public int getRdonlyCount() { return rdonlyCount_; } /** *
       * number of rdonly tablets to instantiate.
       * 
* * optional int32 rdonly_count = 7; */ public Builder setRdonlyCount(int value) { rdonlyCount_ = value; onChanged(); return this; } /** *
       * number of rdonly tablets to instantiate.
       * 
* * optional int32 rdonly_count = 7; */ public Builder clearRdonlyCount() { rdonlyCount_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:vttest.Keyspace) } // @@protoc_insertion_point(class_scope:vttest.Keyspace) private static final vttest.Vttest.Keyspace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new vttest.Vttest.Keyspace(); } public static vttest.Vttest.Keyspace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Keyspace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Keyspace(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public vttest.Vttest.Keyspace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VTTestTopologyOrBuilder extends // @@protoc_insertion_point(interface_extends:vttest.VTTestTopology) com.google.protobuf.MessageOrBuilder { /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ java.util.List getKeyspacesList(); /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ vttest.Vttest.Keyspace getKeyspaces(int index); /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ int getKeyspacesCount(); /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ java.util.List getKeyspacesOrBuilderList(); /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ vttest.Vttest.KeyspaceOrBuilder getKeyspacesOrBuilder( int index); /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ java.util.List getCellsList(); /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ int getCellsCount(); /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ java.lang.String getCells(int index); /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ com.google.protobuf.ByteString getCellsBytes(int index); } /** *
   * VTTestTopology describes the keyspaces in the topology.
   * 
* * Protobuf type {@code vttest.VTTestTopology} */ public static final class VTTestTopology extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:vttest.VTTestTopology) VTTestTopologyOrBuilder { // Use VTTestTopology.newBuilder() to construct. private VTTestTopology(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VTTestTopology() { keyspaces_ = java.util.Collections.emptyList(); cells_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private VTTestTopology( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keyspaces_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } keyspaces_.add( input.readMessage(vttest.Vttest.Keyspace.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { cells_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } cells_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { keyspaces_ = java.util.Collections.unmodifiableList(keyspaces_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { cells_ = cells_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return vttest.Vttest.internal_static_vttest_VTTestTopology_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return vttest.Vttest.internal_static_vttest_VTTestTopology_fieldAccessorTable .ensureFieldAccessorsInitialized( vttest.Vttest.VTTestTopology.class, vttest.Vttest.VTTestTopology.Builder.class); } public static final int KEYSPACES_FIELD_NUMBER = 1; private java.util.List keyspaces_; /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public java.util.List getKeyspacesList() { return keyspaces_; } /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public java.util.List getKeyspacesOrBuilderList() { return keyspaces_; } /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public int getKeyspacesCount() { return keyspaces_.size(); } /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.Keyspace getKeyspaces(int index) { return keyspaces_.get(index); } /** *
     * all keyspaces in the topology.
     * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.KeyspaceOrBuilder getKeyspacesOrBuilder( int index) { return keyspaces_.get(index); } public static final int CELLS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList cells_; /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ public com.google.protobuf.ProtocolStringList getCellsList() { return cells_; } /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ public int getCellsCount() { return cells_.size(); } /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ public java.lang.String getCells(int index) { return cells_.get(index); } /** *
     * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
     * 
* * repeated string cells = 2; */ public com.google.protobuf.ByteString getCellsBytes(int index) { return cells_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < keyspaces_.size(); i++) { output.writeMessage(1, keyspaces_.get(i)); } for (int i = 0; i < cells_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cells_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < keyspaces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, keyspaces_.get(i)); } { int dataSize = 0; for (int i = 0; i < cells_.size(); i++) { dataSize += computeStringSizeNoTag(cells_.getRaw(i)); } size += dataSize; size += 1 * getCellsList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof vttest.Vttest.VTTestTopology)) { return super.equals(obj); } vttest.Vttest.VTTestTopology other = (vttest.Vttest.VTTestTopology) obj; boolean result = true; result = result && getKeyspacesList() .equals(other.getKeyspacesList()); result = result && getCellsList() .equals(other.getCellsList()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getKeyspacesCount() > 0) { hash = (37 * hash) + KEYSPACES_FIELD_NUMBER; hash = (53 * hash) + getKeyspacesList().hashCode(); } if (getCellsCount() > 0) { hash = (37 * hash) + CELLS_FIELD_NUMBER; hash = (53 * hash) + getCellsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static vttest.Vttest.VTTestTopology parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static vttest.Vttest.VTTestTopology parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static vttest.Vttest.VTTestTopology parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static vttest.Vttest.VTTestTopology parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static vttest.Vttest.VTTestTopology parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static vttest.Vttest.VTTestTopology parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static vttest.Vttest.VTTestTopology parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static vttest.Vttest.VTTestTopology parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static vttest.Vttest.VTTestTopology parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static vttest.Vttest.VTTestTopology parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(vttest.Vttest.VTTestTopology prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * VTTestTopology describes the keyspaces in the topology.
     * 
* * Protobuf type {@code vttest.VTTestTopology} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:vttest.VTTestTopology) vttest.Vttest.VTTestTopologyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return vttest.Vttest.internal_static_vttest_VTTestTopology_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return vttest.Vttest.internal_static_vttest_VTTestTopology_fieldAccessorTable .ensureFieldAccessorsInitialized( vttest.Vttest.VTTestTopology.class, vttest.Vttest.VTTestTopology.Builder.class); } // Construct using vttest.Vttest.VTTestTopology.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyspacesFieldBuilder(); } } public Builder clear() { super.clear(); if (keyspacesBuilder_ == null) { keyspaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { keyspacesBuilder_.clear(); } cells_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return vttest.Vttest.internal_static_vttest_VTTestTopology_descriptor; } public vttest.Vttest.VTTestTopology getDefaultInstanceForType() { return vttest.Vttest.VTTestTopology.getDefaultInstance(); } public vttest.Vttest.VTTestTopology build() { vttest.Vttest.VTTestTopology result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public vttest.Vttest.VTTestTopology buildPartial() { vttest.Vttest.VTTestTopology result = new vttest.Vttest.VTTestTopology(this); int from_bitField0_ = bitField0_; if (keyspacesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { keyspaces_ = java.util.Collections.unmodifiableList(keyspaces_); bitField0_ = (bitField0_ & ~0x00000001); } result.keyspaces_ = keyspaces_; } else { result.keyspaces_ = keyspacesBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { cells_ = cells_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.cells_ = cells_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof vttest.Vttest.VTTestTopology) { return mergeFrom((vttest.Vttest.VTTestTopology)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(vttest.Vttest.VTTestTopology other) { if (other == vttest.Vttest.VTTestTopology.getDefaultInstance()) return this; if (keyspacesBuilder_ == null) { if (!other.keyspaces_.isEmpty()) { if (keyspaces_.isEmpty()) { keyspaces_ = other.keyspaces_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKeyspacesIsMutable(); keyspaces_.addAll(other.keyspaces_); } onChanged(); } } else { if (!other.keyspaces_.isEmpty()) { if (keyspacesBuilder_.isEmpty()) { keyspacesBuilder_.dispose(); keyspacesBuilder_ = null; keyspaces_ = other.keyspaces_; bitField0_ = (bitField0_ & ~0x00000001); keyspacesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyspacesFieldBuilder() : null; } else { keyspacesBuilder_.addAllMessages(other.keyspaces_); } } } if (!other.cells_.isEmpty()) { if (cells_.isEmpty()) { cells_ = other.cells_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCellsIsMutable(); cells_.addAll(other.cells_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { vttest.Vttest.VTTestTopology parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (vttest.Vttest.VTTestTopology) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List keyspaces_ = java.util.Collections.emptyList(); private void ensureKeyspacesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { keyspaces_ = new java.util.ArrayList(keyspaces_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< vttest.Vttest.Keyspace, vttest.Vttest.Keyspace.Builder, vttest.Vttest.KeyspaceOrBuilder> keyspacesBuilder_; /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public java.util.List getKeyspacesList() { if (keyspacesBuilder_ == null) { return java.util.Collections.unmodifiableList(keyspaces_); } else { return keyspacesBuilder_.getMessageList(); } } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public int getKeyspacesCount() { if (keyspacesBuilder_ == null) { return keyspaces_.size(); } else { return keyspacesBuilder_.getCount(); } } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.Keyspace getKeyspaces(int index) { if (keyspacesBuilder_ == null) { return keyspaces_.get(index); } else { return keyspacesBuilder_.getMessage(index); } } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder setKeyspaces( int index, vttest.Vttest.Keyspace value) { if (keyspacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyspacesIsMutable(); keyspaces_.set(index, value); onChanged(); } else { keyspacesBuilder_.setMessage(index, value); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder setKeyspaces( int index, vttest.Vttest.Keyspace.Builder builderForValue) { if (keyspacesBuilder_ == null) { ensureKeyspacesIsMutable(); keyspaces_.set(index, builderForValue.build()); onChanged(); } else { keyspacesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder addKeyspaces(vttest.Vttest.Keyspace value) { if (keyspacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyspacesIsMutable(); keyspaces_.add(value); onChanged(); } else { keyspacesBuilder_.addMessage(value); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder addKeyspaces( int index, vttest.Vttest.Keyspace value) { if (keyspacesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyspacesIsMutable(); keyspaces_.add(index, value); onChanged(); } else { keyspacesBuilder_.addMessage(index, value); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder addKeyspaces( vttest.Vttest.Keyspace.Builder builderForValue) { if (keyspacesBuilder_ == null) { ensureKeyspacesIsMutable(); keyspaces_.add(builderForValue.build()); onChanged(); } else { keyspacesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder addKeyspaces( int index, vttest.Vttest.Keyspace.Builder builderForValue) { if (keyspacesBuilder_ == null) { ensureKeyspacesIsMutable(); keyspaces_.add(index, builderForValue.build()); onChanged(); } else { keyspacesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder addAllKeyspaces( java.lang.Iterable values) { if (keyspacesBuilder_ == null) { ensureKeyspacesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keyspaces_); onChanged(); } else { keyspacesBuilder_.addAllMessages(values); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder clearKeyspaces() { if (keyspacesBuilder_ == null) { keyspaces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { keyspacesBuilder_.clear(); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public Builder removeKeyspaces(int index) { if (keyspacesBuilder_ == null) { ensureKeyspacesIsMutable(); keyspaces_.remove(index); onChanged(); } else { keyspacesBuilder_.remove(index); } return this; } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.Keyspace.Builder getKeyspacesBuilder( int index) { return getKeyspacesFieldBuilder().getBuilder(index); } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.KeyspaceOrBuilder getKeyspacesOrBuilder( int index) { if (keyspacesBuilder_ == null) { return keyspaces_.get(index); } else { return keyspacesBuilder_.getMessageOrBuilder(index); } } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public java.util.List getKeyspacesOrBuilderList() { if (keyspacesBuilder_ != null) { return keyspacesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keyspaces_); } } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.Keyspace.Builder addKeyspacesBuilder() { return getKeyspacesFieldBuilder().addBuilder( vttest.Vttest.Keyspace.getDefaultInstance()); } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public vttest.Vttest.Keyspace.Builder addKeyspacesBuilder( int index) { return getKeyspacesFieldBuilder().addBuilder( index, vttest.Vttest.Keyspace.getDefaultInstance()); } /** *
       * all keyspaces in the topology.
       * 
* * repeated .vttest.Keyspace keyspaces = 1; */ public java.util.List getKeyspacesBuilderList() { return getKeyspacesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< vttest.Vttest.Keyspace, vttest.Vttest.Keyspace.Builder, vttest.Vttest.KeyspaceOrBuilder> getKeyspacesFieldBuilder() { if (keyspacesBuilder_ == null) { keyspacesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< vttest.Vttest.Keyspace, vttest.Vttest.Keyspace.Builder, vttest.Vttest.KeyspaceOrBuilder>( keyspaces_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); keyspaces_ = null; } return keyspacesBuilder_; } private com.google.protobuf.LazyStringList cells_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCellsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { cells_ = new com.google.protobuf.LazyStringArrayList(cells_); bitField0_ |= 0x00000002; } } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public com.google.protobuf.ProtocolStringList getCellsList() { return cells_.getUnmodifiableView(); } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public int getCellsCount() { return cells_.size(); } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public java.lang.String getCells(int index) { return cells_.get(index); } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public com.google.protobuf.ByteString getCellsBytes(int index) { return cells_.getByteString(index); } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public Builder setCells( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCellsIsMutable(); cells_.set(index, value); onChanged(); return this; } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public Builder addCells( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCellsIsMutable(); cells_.add(value); onChanged(); return this; } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public Builder addAllCells( java.lang.Iterable values) { ensureCellsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cells_); onChanged(); return this; } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public Builder clearCells() { cells_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * list of cells the keyspaces reside in. Vtgate is started in only the first cell.
       * 
* * repeated string cells = 2; */ public Builder addCellsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCellsIsMutable(); cells_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:vttest.VTTestTopology) } // @@protoc_insertion_point(class_scope:vttest.VTTestTopology) private static final vttest.Vttest.VTTestTopology DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new vttest.Vttest.VTTestTopology(); } public static vttest.Vttest.VTTestTopology getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VTTestTopology parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VTTestTopology(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public vttest.Vttest.VTTestTopology getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_vttest_Shard_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vttest_Shard_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vttest_Keyspace_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vttest_Keyspace_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_vttest_VTTestTopology_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_vttest_VTTestTopology_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\014vttest.proto\022\006vttest\"/\n\005Shard\022\014\n\004name\030" + "\001 \001(\t\022\030\n\020db_name_override\030\002 \001(\t\"\265\001\n\010Keys" + "pace\022\014\n\004name\030\001 \001(\t\022\035\n\006shards\030\002 \003(\0132\r.vtt" + "est.Shard\022\034\n\024sharding_column_name\030\003 \001(\t\022" + "\034\n\024sharding_column_type\030\004 \001(\t\022\023\n\013served_" + "from\030\005 \001(\t\022\025\n\rreplica_count\030\006 \001(\005\022\024\n\014rdo" + "nly_count\030\007 \001(\005\"D\n\016VTTestTopology\022#\n\tkey" + "spaces\030\001 \003(\0132\020.vttest.Keyspace\022\r\n\005cells\030" + "\002 \003(\tb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_vttest_Shard_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_vttest_Shard_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vttest_Shard_descriptor, new java.lang.String[] { "Name", "DbNameOverride", }); internal_static_vttest_Keyspace_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_vttest_Keyspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vttest_Keyspace_descriptor, new java.lang.String[] { "Name", "Shards", "ShardingColumnName", "ShardingColumnType", "ServedFrom", "ReplicaCount", "RdonlyCount", }); internal_static_vttest_VTTestTopology_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_vttest_VTTestTopology_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_vttest_VTTestTopology_descriptor, new java.lang.String[] { "Keyspaces", "Cells", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy