// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: greptime/v1/meta/route.proto

package greptime.v1.meta;

public final class Route {
  private Route() {}
  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 TableRouteOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.meta.TableRoute)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.greptime.v1.meta.Table table = 1;</code>
     * @return Whether the table field is set.
     */
    boolean hasTable();
    /**
     * <code>.greptime.v1.meta.Table table = 1;</code>
     * @return The table.
     */
    greptime.v1.meta.Route.Table getTable();
    /**
     * <code>.greptime.v1.meta.Table table = 1;</code>
     */
    greptime.v1.meta.Route.TableOrBuilder getTableOrBuilder();

    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    java.util.List<greptime.v1.meta.Route.RegionRoute> 
        getRegionRoutesList();
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    greptime.v1.meta.Route.RegionRoute getRegionRoutes(int index);
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    int getRegionRoutesCount();
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    java.util.List<? extends greptime.v1.meta.Route.RegionRouteOrBuilder> 
        getRegionRoutesOrBuilderList();
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    greptime.v1.meta.Route.RegionRouteOrBuilder getRegionRoutesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code greptime.v1.meta.TableRoute}
   */
  public static final class TableRoute extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.TableRoute)
      TableRouteOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TableRoute.newBuilder() to construct.
    private TableRoute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TableRoute() {
      regionRoutes_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new TableRoute();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TableRoute(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              greptime.v1.meta.Route.Table.Builder subBuilder = null;
              if (table_ != null) {
                subBuilder = table_.toBuilder();
              }
              table_ = input.readMessage(greptime.v1.meta.Route.Table.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(table_);
                table_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                regionRoutes_ = new java.util.ArrayList<greptime.v1.meta.Route.RegionRoute>();
                mutable_bitField0_ |= 0x00000001;
              }
              regionRoutes_.add(
                  input.readMessage(greptime.v1.meta.Route.RegionRoute.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          regionRoutes_ = java.util.Collections.unmodifiableList(regionRoutes_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRoute_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRoute_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.meta.Route.TableRoute.class, greptime.v1.meta.Route.TableRoute.Builder.class);
    }

    public static final int TABLE_FIELD_NUMBER = 1;
    private greptime.v1.meta.Route.Table table_;
    /**
     * <code>.greptime.v1.meta.Table table = 1;</code>
     * @return Whether the table field is set.
     */
    @java.lang.Override
    public boolean hasTable() {
      return table_ != null;
    }
    /**
     * <code>.greptime.v1.meta.Table table = 1;</code>
     * @return The table.
     */
    @java.lang.Override
    public greptime.v1.meta.Route.Table getTable() {
      return table_ == null ? greptime.v1.meta.Route.Table.getDefaultInstance() : table_;
    }
    /**
     * <code>.greptime.v1.meta.Table table = 1;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Route.TableOrBuilder getTableOrBuilder() {
      return getTable();
    }

    public static final int REGION_ROUTES_FIELD_NUMBER = 2;
    private java.util.List<greptime.v1.meta.Route.RegionRoute> regionRoutes_;
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    @java.lang.Override
    public java.util.List<greptime.v1.meta.Route.RegionRoute> getRegionRoutesList() {
      return regionRoutes_;
    }
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    @java.lang.Override
    public java.util.List<? extends greptime.v1.meta.Route.RegionRouteOrBuilder> 
        getRegionRoutesOrBuilderList() {
      return regionRoutes_;
    }
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    @java.lang.Override
    public int getRegionRoutesCount() {
      return regionRoutes_.size();
    }
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Route.RegionRoute getRegionRoutes(int index) {
      return regionRoutes_.get(index);
    }
    /**
     * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Route.RegionRouteOrBuilder getRegionRoutesOrBuilder(
        int index) {
      return regionRoutes_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (table_ != null) {
        output.writeMessage(1, getTable());
      }
      for (int i = 0; i < regionRoutes_.size(); i++) {
        output.writeMessage(2, regionRoutes_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (table_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getTable());
      }
      for (int i = 0; i < regionRoutes_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, regionRoutes_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.meta.Route.TableRoute)) {
        return super.equals(obj);
      }
      greptime.v1.meta.Route.TableRoute other = (greptime.v1.meta.Route.TableRoute) obj;

      if (hasTable() != other.hasTable()) return false;
      if (hasTable()) {
        if (!getTable()
            .equals(other.getTable())) return false;
      }
      if (!getRegionRoutesList()
          .equals(other.getRegionRoutesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasTable()) {
        hash = (37 * hash) + TABLE_FIELD_NUMBER;
        hash = (53 * hash) + getTable().hashCode();
      }
      if (getRegionRoutesCount() > 0) {
        hash = (37 * hash) + REGION_ROUTES_FIELD_NUMBER;
        hash = (53 * hash) + getRegionRoutesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.Route.TableRoute parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.TableRoute 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 greptime.v1.meta.Route.TableRoute parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.TableRoute 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 greptime.v1.meta.Route.TableRoute parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.TableRoute parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.meta.Route.TableRoute prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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;
    }
    /**
     * Protobuf type {@code greptime.v1.meta.TableRoute}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.TableRoute)
        greptime.v1.meta.Route.TableRouteOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRoute_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRoute_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.meta.Route.TableRoute.class, greptime.v1.meta.Route.TableRoute.Builder.class);
      }

      // Construct using greptime.v1.meta.Route.TableRoute.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getRegionRoutesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (tableBuilder_ == null) {
          table_ = null;
        } else {
          table_ = null;
          tableBuilder_ = null;
        }
        if (regionRoutesBuilder_ == null) {
          regionRoutes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          regionRoutesBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRoute_descriptor;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.TableRoute getDefaultInstanceForType() {
        return greptime.v1.meta.Route.TableRoute.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.meta.Route.TableRoute build() {
        greptime.v1.meta.Route.TableRoute result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.TableRoute buildPartial() {
        greptime.v1.meta.Route.TableRoute result = new greptime.v1.meta.Route.TableRoute(this);
        int from_bitField0_ = bitField0_;
        if (tableBuilder_ == null) {
          result.table_ = table_;
        } else {
          result.table_ = tableBuilder_.build();
        }
        if (regionRoutesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            regionRoutes_ = java.util.Collections.unmodifiableList(regionRoutes_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.regionRoutes_ = regionRoutes_;
        } else {
          result.regionRoutes_ = regionRoutesBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.meta.Route.TableRoute) {
          return mergeFrom((greptime.v1.meta.Route.TableRoute)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.Route.TableRoute other) {
        if (other == greptime.v1.meta.Route.TableRoute.getDefaultInstance()) return this;
        if (other.hasTable()) {
          mergeTable(other.getTable());
        }
        if (regionRoutesBuilder_ == null) {
          if (!other.regionRoutes_.isEmpty()) {
            if (regionRoutes_.isEmpty()) {
              regionRoutes_ = other.regionRoutes_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRegionRoutesIsMutable();
              regionRoutes_.addAll(other.regionRoutes_);
            }
            onChanged();
          }
        } else {
          if (!other.regionRoutes_.isEmpty()) {
            if (regionRoutesBuilder_.isEmpty()) {
              regionRoutesBuilder_.dispose();
              regionRoutesBuilder_ = null;
              regionRoutes_ = other.regionRoutes_;
              bitField0_ = (bitField0_ & ~0x00000001);
              regionRoutesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getRegionRoutesFieldBuilder() : null;
            } else {
              regionRoutesBuilder_.addAllMessages(other.regionRoutes_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.meta.Route.TableRoute parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.Route.TableRoute) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private greptime.v1.meta.Route.Table table_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.Table, greptime.v1.meta.Route.Table.Builder, greptime.v1.meta.Route.TableOrBuilder> tableBuilder_;
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       * @return Whether the table field is set.
       */
      public boolean hasTable() {
        return tableBuilder_ != null || table_ != null;
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       * @return The table.
       */
      public greptime.v1.meta.Route.Table getTable() {
        if (tableBuilder_ == null) {
          return table_ == null ? greptime.v1.meta.Route.Table.getDefaultInstance() : table_;
        } else {
          return tableBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      public Builder setTable(greptime.v1.meta.Route.Table value) {
        if (tableBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          table_ = value;
          onChanged();
        } else {
          tableBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      public Builder setTable(
          greptime.v1.meta.Route.Table.Builder builderForValue) {
        if (tableBuilder_ == null) {
          table_ = builderForValue.build();
          onChanged();
        } else {
          tableBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      public Builder mergeTable(greptime.v1.meta.Route.Table value) {
        if (tableBuilder_ == null) {
          if (table_ != null) {
            table_ =
              greptime.v1.meta.Route.Table.newBuilder(table_).mergeFrom(value).buildPartial();
          } else {
            table_ = value;
          }
          onChanged();
        } else {
          tableBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      public Builder clearTable() {
        if (tableBuilder_ == null) {
          table_ = null;
          onChanged();
        } else {
          table_ = null;
          tableBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      public greptime.v1.meta.Route.Table.Builder getTableBuilder() {
        
        onChanged();
        return getTableFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      public greptime.v1.meta.Route.TableOrBuilder getTableOrBuilder() {
        if (tableBuilder_ != null) {
          return tableBuilder_.getMessageOrBuilder();
        } else {
          return table_ == null ?
              greptime.v1.meta.Route.Table.getDefaultInstance() : table_;
        }
      }
      /**
       * <code>.greptime.v1.meta.Table table = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.Table, greptime.v1.meta.Route.Table.Builder, greptime.v1.meta.Route.TableOrBuilder> 
          getTableFieldBuilder() {
        if (tableBuilder_ == null) {
          tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Route.Table, greptime.v1.meta.Route.Table.Builder, greptime.v1.meta.Route.TableOrBuilder>(
                  getTable(),
                  getParentForChildren(),
                  isClean());
          table_ = null;
        }
        return tableBuilder_;
      }

      private java.util.List<greptime.v1.meta.Route.RegionRoute> regionRoutes_ =
        java.util.Collections.emptyList();
      private void ensureRegionRoutesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          regionRoutes_ = new java.util.ArrayList<greptime.v1.meta.Route.RegionRoute>(regionRoutes_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          greptime.v1.meta.Route.RegionRoute, greptime.v1.meta.Route.RegionRoute.Builder, greptime.v1.meta.Route.RegionRouteOrBuilder> regionRoutesBuilder_;

      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public java.util.List<greptime.v1.meta.Route.RegionRoute> getRegionRoutesList() {
        if (regionRoutesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(regionRoutes_);
        } else {
          return regionRoutesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public int getRegionRoutesCount() {
        if (regionRoutesBuilder_ == null) {
          return regionRoutes_.size();
        } else {
          return regionRoutesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public greptime.v1.meta.Route.RegionRoute getRegionRoutes(int index) {
        if (regionRoutesBuilder_ == null) {
          return regionRoutes_.get(index);
        } else {
          return regionRoutesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder setRegionRoutes(
          int index, greptime.v1.meta.Route.RegionRoute value) {
        if (regionRoutesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionRoutesIsMutable();
          regionRoutes_.set(index, value);
          onChanged();
        } else {
          regionRoutesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder setRegionRoutes(
          int index, greptime.v1.meta.Route.RegionRoute.Builder builderForValue) {
        if (regionRoutesBuilder_ == null) {
          ensureRegionRoutesIsMutable();
          regionRoutes_.set(index, builderForValue.build());
          onChanged();
        } else {
          regionRoutesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder addRegionRoutes(greptime.v1.meta.Route.RegionRoute value) {
        if (regionRoutesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionRoutesIsMutable();
          regionRoutes_.add(value);
          onChanged();
        } else {
          regionRoutesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder addRegionRoutes(
          int index, greptime.v1.meta.Route.RegionRoute value) {
        if (regionRoutesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionRoutesIsMutable();
          regionRoutes_.add(index, value);
          onChanged();
        } else {
          regionRoutesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder addRegionRoutes(
          greptime.v1.meta.Route.RegionRoute.Builder builderForValue) {
        if (regionRoutesBuilder_ == null) {
          ensureRegionRoutesIsMutable();
          regionRoutes_.add(builderForValue.build());
          onChanged();
        } else {
          regionRoutesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder addRegionRoutes(
          int index, greptime.v1.meta.Route.RegionRoute.Builder builderForValue) {
        if (regionRoutesBuilder_ == null) {
          ensureRegionRoutesIsMutable();
          regionRoutes_.add(index, builderForValue.build());
          onChanged();
        } else {
          regionRoutesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder addAllRegionRoutes(
          java.lang.Iterable<? extends greptime.v1.meta.Route.RegionRoute> values) {
        if (regionRoutesBuilder_ == null) {
          ensureRegionRoutesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, regionRoutes_);
          onChanged();
        } else {
          regionRoutesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder clearRegionRoutes() {
        if (regionRoutesBuilder_ == null) {
          regionRoutes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          regionRoutesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public Builder removeRegionRoutes(int index) {
        if (regionRoutesBuilder_ == null) {
          ensureRegionRoutesIsMutable();
          regionRoutes_.remove(index);
          onChanged();
        } else {
          regionRoutesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public greptime.v1.meta.Route.RegionRoute.Builder getRegionRoutesBuilder(
          int index) {
        return getRegionRoutesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public greptime.v1.meta.Route.RegionRouteOrBuilder getRegionRoutesOrBuilder(
          int index) {
        if (regionRoutesBuilder_ == null) {
          return regionRoutes_.get(index);  } else {
          return regionRoutesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public java.util.List<? extends greptime.v1.meta.Route.RegionRouteOrBuilder> 
           getRegionRoutesOrBuilderList() {
        if (regionRoutesBuilder_ != null) {
          return regionRoutesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(regionRoutes_);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public greptime.v1.meta.Route.RegionRoute.Builder addRegionRoutesBuilder() {
        return getRegionRoutesFieldBuilder().addBuilder(
            greptime.v1.meta.Route.RegionRoute.getDefaultInstance());
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public greptime.v1.meta.Route.RegionRoute.Builder addRegionRoutesBuilder(
          int index) {
        return getRegionRoutesFieldBuilder().addBuilder(
            index, greptime.v1.meta.Route.RegionRoute.getDefaultInstance());
      }
      /**
       * <code>repeated .greptime.v1.meta.RegionRoute region_routes = 2;</code>
       */
      public java.util.List<greptime.v1.meta.Route.RegionRoute.Builder> 
           getRegionRoutesBuilderList() {
        return getRegionRoutesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          greptime.v1.meta.Route.RegionRoute, greptime.v1.meta.Route.RegionRoute.Builder, greptime.v1.meta.Route.RegionRouteOrBuilder> 
          getRegionRoutesFieldBuilder() {
        if (regionRoutesBuilder_ == null) {
          regionRoutesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              greptime.v1.meta.Route.RegionRoute, greptime.v1.meta.Route.RegionRoute.Builder, greptime.v1.meta.Route.RegionRouteOrBuilder>(
                  regionRoutes_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          regionRoutes_ = null;
        }
        return regionRoutesBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.meta.TableRoute)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.meta.TableRoute)
    private static final greptime.v1.meta.Route.TableRoute DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.meta.Route.TableRoute();
    }

    public static greptime.v1.meta.Route.TableRoute getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<TableRoute>
        PARSER = new com.google.protobuf.AbstractParser<TableRoute>() {
      @java.lang.Override
      public TableRoute parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TableRoute(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<TableRoute> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<TableRoute> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.meta.Route.TableRoute getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RegionRouteOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.meta.RegionRoute)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.greptime.v1.meta.Region region = 1;</code>
     * @return Whether the region field is set.
     */
    boolean hasRegion();
    /**
     * <code>.greptime.v1.meta.Region region = 1;</code>
     * @return The region.
     */
    greptime.v1.meta.Route.Region getRegion();
    /**
     * <code>.greptime.v1.meta.Region region = 1;</code>
     */
    greptime.v1.meta.Route.RegionOrBuilder getRegionOrBuilder();

    /**
     * <pre>
     * single leader node for write task
     * </pre>
     *
     * <code>uint64 leader_peer_index = 2;</code>
     * @return The leaderPeerIndex.
     */
    long getLeaderPeerIndex();

    /**
     * <pre>
     * multiple follower nodes for read task
     * </pre>
     *
     * <code>repeated uint64 follower_peer_indexes = 3;</code>
     * @return A list containing the followerPeerIndexes.
     */
    java.util.List<java.lang.Long> getFollowerPeerIndexesList();
    /**
     * <pre>
     * multiple follower nodes for read task
     * </pre>
     *
     * <code>repeated uint64 follower_peer_indexes = 3;</code>
     * @return The count of followerPeerIndexes.
     */
    int getFollowerPeerIndexesCount();
    /**
     * <pre>
     * multiple follower nodes for read task
     * </pre>
     *
     * <code>repeated uint64 follower_peer_indexes = 3;</code>
     * @param index The index of the element to return.
     * @return The followerPeerIndexes at the given index.
     */
    long getFollowerPeerIndexes(int index);
  }
  /**
   * Protobuf type {@code greptime.v1.meta.RegionRoute}
   */
  public static final class RegionRoute extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.RegionRoute)
      RegionRouteOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use RegionRoute.newBuilder() to construct.
    private RegionRoute(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RegionRoute() {
      followerPeerIndexes_ = emptyLongList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new RegionRoute();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private RegionRoute(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              greptime.v1.meta.Route.Region.Builder subBuilder = null;
              if (region_ != null) {
                subBuilder = region_.toBuilder();
              }
              region_ = input.readMessage(greptime.v1.meta.Route.Region.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(region_);
                region_ = subBuilder.buildPartial();
              }

              break;
            }
            case 16: {

              leaderPeerIndex_ = input.readUInt64();
              break;
            }
            case 24: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                followerPeerIndexes_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              followerPeerIndexes_.addLong(input.readUInt64());
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
                followerPeerIndexes_ = newLongList();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                followerPeerIndexes_.addLong(input.readUInt64());
              }
              input.popLimit(limit);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          followerPeerIndexes_.makeImmutable(); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_RegionRoute_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_RegionRoute_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.meta.Route.RegionRoute.class, greptime.v1.meta.Route.RegionRoute.Builder.class);
    }

    public static final int REGION_FIELD_NUMBER = 1;
    private greptime.v1.meta.Route.Region region_;
    /**
     * <code>.greptime.v1.meta.Region region = 1;</code>
     * @return Whether the region field is set.
     */
    @java.lang.Override
    public boolean hasRegion() {
      return region_ != null;
    }
    /**
     * <code>.greptime.v1.meta.Region region = 1;</code>
     * @return The region.
     */
    @java.lang.Override
    public greptime.v1.meta.Route.Region getRegion() {
      return region_ == null ? greptime.v1.meta.Route.Region.getDefaultInstance() : region_;
    }
    /**
     * <code>.greptime.v1.meta.Region region = 1;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Route.RegionOrBuilder getRegionOrBuilder() {
      return getRegion();
    }

    public static final int LEADER_PEER_INDEX_FIELD_NUMBER = 2;
    private long leaderPeerIndex_;
    /**
     * <pre>
     * single leader node for write task
     * </pre>
     *
     * <code>uint64 leader_peer_index = 2;</code>
     * @return The leaderPeerIndex.
     */
    @java.lang.Override
    public long getLeaderPeerIndex() {
      return leaderPeerIndex_;
    }

    public static final int FOLLOWER_PEER_INDEXES_FIELD_NUMBER = 3;
    private com.google.protobuf.Internal.LongList followerPeerIndexes_;
    /**
     * <pre>
     * multiple follower nodes for read task
     * </pre>
     *
     * <code>repeated uint64 follower_peer_indexes = 3;</code>
     * @return A list containing the followerPeerIndexes.
     */
    @java.lang.Override
    public java.util.List<java.lang.Long>
        getFollowerPeerIndexesList() {
      return followerPeerIndexes_;
    }
    /**
     * <pre>
     * multiple follower nodes for read task
     * </pre>
     *
     * <code>repeated uint64 follower_peer_indexes = 3;</code>
     * @return The count of followerPeerIndexes.
     */
    public int getFollowerPeerIndexesCount() {
      return followerPeerIndexes_.size();
    }
    /**
     * <pre>
     * multiple follower nodes for read task
     * </pre>
     *
     * <code>repeated uint64 follower_peer_indexes = 3;</code>
     * @param index The index of the element to return.
     * @return The followerPeerIndexes at the given index.
     */
    public long getFollowerPeerIndexes(int index) {
      return followerPeerIndexes_.getLong(index);
    }
    private int followerPeerIndexesMemoizedSerializedSize = -1;

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (region_ != null) {
        output.writeMessage(1, getRegion());
      }
      if (leaderPeerIndex_ != 0L) {
        output.writeUInt64(2, leaderPeerIndex_);
      }
      if (getFollowerPeerIndexesList().size() > 0) {
        output.writeUInt32NoTag(26);
        output.writeUInt32NoTag(followerPeerIndexesMemoizedSerializedSize);
      }
      for (int i = 0; i < followerPeerIndexes_.size(); i++) {
        output.writeUInt64NoTag(followerPeerIndexes_.getLong(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (region_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getRegion());
      }
      if (leaderPeerIndex_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(2, leaderPeerIndex_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < followerPeerIndexes_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeUInt64SizeNoTag(followerPeerIndexes_.getLong(i));
        }
        size += dataSize;
        if (!getFollowerPeerIndexesList().isEmpty()) {
          size += 1;
          size += com.google.protobuf.CodedOutputStream
              .computeInt32SizeNoTag(dataSize);
        }
        followerPeerIndexesMemoizedSerializedSize = dataSize;
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.meta.Route.RegionRoute)) {
        return super.equals(obj);
      }
      greptime.v1.meta.Route.RegionRoute other = (greptime.v1.meta.Route.RegionRoute) obj;

      if (hasRegion() != other.hasRegion()) return false;
      if (hasRegion()) {
        if (!getRegion()
            .equals(other.getRegion())) return false;
      }
      if (getLeaderPeerIndex()
          != other.getLeaderPeerIndex()) return false;
      if (!getFollowerPeerIndexesList()
          .equals(other.getFollowerPeerIndexesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasRegion()) {
        hash = (37 * hash) + REGION_FIELD_NUMBER;
        hash = (53 * hash) + getRegion().hashCode();
      }
      hash = (37 * hash) + LEADER_PEER_INDEX_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getLeaderPeerIndex());
      if (getFollowerPeerIndexesCount() > 0) {
        hash = (37 * hash) + FOLLOWER_PEER_INDEXES_FIELD_NUMBER;
        hash = (53 * hash) + getFollowerPeerIndexesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.Route.RegionRoute parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.RegionRoute 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 greptime.v1.meta.Route.RegionRoute parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.RegionRoute 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 greptime.v1.meta.Route.RegionRoute parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.RegionRoute parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.meta.Route.RegionRoute prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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;
    }
    /**
     * Protobuf type {@code greptime.v1.meta.RegionRoute}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.RegionRoute)
        greptime.v1.meta.Route.RegionRouteOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_RegionRoute_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_RegionRoute_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.meta.Route.RegionRoute.class, greptime.v1.meta.Route.RegionRoute.Builder.class);
      }

      // Construct using greptime.v1.meta.Route.RegionRoute.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (regionBuilder_ == null) {
          region_ = null;
        } else {
          region_ = null;
          regionBuilder_ = null;
        }
        leaderPeerIndex_ = 0L;

        followerPeerIndexes_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_RegionRoute_descriptor;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.RegionRoute getDefaultInstanceForType() {
        return greptime.v1.meta.Route.RegionRoute.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.meta.Route.RegionRoute build() {
        greptime.v1.meta.Route.RegionRoute result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.RegionRoute buildPartial() {
        greptime.v1.meta.Route.RegionRoute result = new greptime.v1.meta.Route.RegionRoute(this);
        int from_bitField0_ = bitField0_;
        if (regionBuilder_ == null) {
          result.region_ = region_;
        } else {
          result.region_ = regionBuilder_.build();
        }
        result.leaderPeerIndex_ = leaderPeerIndex_;
        if (((bitField0_ & 0x00000001) != 0)) {
          followerPeerIndexes_.makeImmutable();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.followerPeerIndexes_ = followerPeerIndexes_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.meta.Route.RegionRoute) {
          return mergeFrom((greptime.v1.meta.Route.RegionRoute)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.Route.RegionRoute other) {
        if (other == greptime.v1.meta.Route.RegionRoute.getDefaultInstance()) return this;
        if (other.hasRegion()) {
          mergeRegion(other.getRegion());
        }
        if (other.getLeaderPeerIndex() != 0L) {
          setLeaderPeerIndex(other.getLeaderPeerIndex());
        }
        if (!other.followerPeerIndexes_.isEmpty()) {
          if (followerPeerIndexes_.isEmpty()) {
            followerPeerIndexes_ = other.followerPeerIndexes_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureFollowerPeerIndexesIsMutable();
            followerPeerIndexes_.addAll(other.followerPeerIndexes_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.meta.Route.RegionRoute parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.Route.RegionRoute) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private greptime.v1.meta.Route.Region region_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.Region, greptime.v1.meta.Route.Region.Builder, greptime.v1.meta.Route.RegionOrBuilder> regionBuilder_;
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       * @return Whether the region field is set.
       */
      public boolean hasRegion() {
        return regionBuilder_ != null || region_ != null;
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       * @return The region.
       */
      public greptime.v1.meta.Route.Region getRegion() {
        if (regionBuilder_ == null) {
          return region_ == null ? greptime.v1.meta.Route.Region.getDefaultInstance() : region_;
        } else {
          return regionBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      public Builder setRegion(greptime.v1.meta.Route.Region value) {
        if (regionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          region_ = value;
          onChanged();
        } else {
          regionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      public Builder setRegion(
          greptime.v1.meta.Route.Region.Builder builderForValue) {
        if (regionBuilder_ == null) {
          region_ = builderForValue.build();
          onChanged();
        } else {
          regionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      public Builder mergeRegion(greptime.v1.meta.Route.Region value) {
        if (regionBuilder_ == null) {
          if (region_ != null) {
            region_ =
              greptime.v1.meta.Route.Region.newBuilder(region_).mergeFrom(value).buildPartial();
          } else {
            region_ = value;
          }
          onChanged();
        } else {
          regionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      public Builder clearRegion() {
        if (regionBuilder_ == null) {
          region_ = null;
          onChanged();
        } else {
          region_ = null;
          regionBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      public greptime.v1.meta.Route.Region.Builder getRegionBuilder() {
        
        onChanged();
        return getRegionFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      public greptime.v1.meta.Route.RegionOrBuilder getRegionOrBuilder() {
        if (regionBuilder_ != null) {
          return regionBuilder_.getMessageOrBuilder();
        } else {
          return region_ == null ?
              greptime.v1.meta.Route.Region.getDefaultInstance() : region_;
        }
      }
      /**
       * <code>.greptime.v1.meta.Region region = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.Region, greptime.v1.meta.Route.Region.Builder, greptime.v1.meta.Route.RegionOrBuilder> 
          getRegionFieldBuilder() {
        if (regionBuilder_ == null) {
          regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Route.Region, greptime.v1.meta.Route.Region.Builder, greptime.v1.meta.Route.RegionOrBuilder>(
                  getRegion(),
                  getParentForChildren(),
                  isClean());
          region_ = null;
        }
        return regionBuilder_;
      }

      private long leaderPeerIndex_ ;
      /**
       * <pre>
       * single leader node for write task
       * </pre>
       *
       * <code>uint64 leader_peer_index = 2;</code>
       * @return The leaderPeerIndex.
       */
      @java.lang.Override
      public long getLeaderPeerIndex() {
        return leaderPeerIndex_;
      }
      /**
       * <pre>
       * single leader node for write task
       * </pre>
       *
       * <code>uint64 leader_peer_index = 2;</code>
       * @param value The leaderPeerIndex to set.
       * @return This builder for chaining.
       */
      public Builder setLeaderPeerIndex(long value) {
        
        leaderPeerIndex_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * single leader node for write task
       * </pre>
       *
       * <code>uint64 leader_peer_index = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearLeaderPeerIndex() {
        
        leaderPeerIndex_ = 0L;
        onChanged();
        return this;
      }

      private com.google.protobuf.Internal.LongList followerPeerIndexes_ = emptyLongList();
      private void ensureFollowerPeerIndexesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          followerPeerIndexes_ = mutableCopy(followerPeerIndexes_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @return A list containing the followerPeerIndexes.
       */
      public java.util.List<java.lang.Long>
          getFollowerPeerIndexesList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(followerPeerIndexes_) : followerPeerIndexes_;
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @return The count of followerPeerIndexes.
       */
      public int getFollowerPeerIndexesCount() {
        return followerPeerIndexes_.size();
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @param index The index of the element to return.
       * @return The followerPeerIndexes at the given index.
       */
      public long getFollowerPeerIndexes(int index) {
        return followerPeerIndexes_.getLong(index);
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @param index The index to set the value at.
       * @param value The followerPeerIndexes to set.
       * @return This builder for chaining.
       */
      public Builder setFollowerPeerIndexes(
          int index, long value) {
        ensureFollowerPeerIndexesIsMutable();
        followerPeerIndexes_.setLong(index, value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @param value The followerPeerIndexes to add.
       * @return This builder for chaining.
       */
      public Builder addFollowerPeerIndexes(long value) {
        ensureFollowerPeerIndexesIsMutable();
        followerPeerIndexes_.addLong(value);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @param values The followerPeerIndexes to add.
       * @return This builder for chaining.
       */
      public Builder addAllFollowerPeerIndexes(
          java.lang.Iterable<? extends java.lang.Long> values) {
        ensureFollowerPeerIndexesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, followerPeerIndexes_);
        onChanged();
        return this;
      }
      /**
       * <pre>
       * multiple follower nodes for read task
       * </pre>
       *
       * <code>repeated uint64 follower_peer_indexes = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearFollowerPeerIndexes() {
        followerPeerIndexes_ = emptyLongList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.meta.RegionRoute)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.meta.RegionRoute)
    private static final greptime.v1.meta.Route.RegionRoute DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.meta.Route.RegionRoute();
    }

    public static greptime.v1.meta.Route.RegionRoute getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<RegionRoute>
        PARSER = new com.google.protobuf.AbstractParser<RegionRoute>() {
      @java.lang.Override
      public RegionRoute parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new RegionRoute(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<RegionRoute> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<RegionRoute> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.meta.Route.RegionRoute getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface TableOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.meta.Table)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>uint64 id = 1;</code>
     * @return The id.
     */
    long getId();

    /**
     * <code>.greptime.v1.TableName table_name = 2;</code>
     * @return Whether the tableName field is set.
     */
    boolean hasTableName();
    /**
     * <code>.greptime.v1.TableName table_name = 2;</code>
     * @return The tableName.
     */
    io.greptime.v1.Common.TableName getTableName();
    /**
     * <code>.greptime.v1.TableName table_name = 2;</code>
     */
    io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder();

    /**
     * <code>bytes table_schema = 3;</code>
     * @return The tableSchema.
     */
    com.google.protobuf.ByteString getTableSchema();
  }
  /**
   * Protobuf type {@code greptime.v1.meta.Table}
   */
  public static final class Table extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.Table)
      TableOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Table.newBuilder() to construct.
    private Table(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Table() {
      tableSchema_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Table();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Table(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              id_ = input.readUInt64();
              break;
            }
            case 18: {
              io.greptime.v1.Common.TableName.Builder subBuilder = null;
              if (tableName_ != null) {
                subBuilder = tableName_.toBuilder();
              }
              tableName_ = input.readMessage(io.greptime.v1.Common.TableName.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(tableName_);
                tableName_ = subBuilder.buildPartial();
              }

              break;
            }
            case 26: {

              tableSchema_ = input.readBytes();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Table_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Table_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.meta.Route.Table.class, greptime.v1.meta.Route.Table.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private long id_;
    /**
     * <code>uint64 id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return id_;
    }

    public static final int TABLE_NAME_FIELD_NUMBER = 2;
    private io.greptime.v1.Common.TableName tableName_;
    /**
     * <code>.greptime.v1.TableName table_name = 2;</code>
     * @return Whether the tableName field is set.
     */
    @java.lang.Override
    public boolean hasTableName() {
      return tableName_ != null;
    }
    /**
     * <code>.greptime.v1.TableName table_name = 2;</code>
     * @return The tableName.
     */
    @java.lang.Override
    public io.greptime.v1.Common.TableName getTableName() {
      return tableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_;
    }
    /**
     * <code>.greptime.v1.TableName table_name = 2;</code>
     */
    @java.lang.Override
    public io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder() {
      return getTableName();
    }

    public static final int TABLE_SCHEMA_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString tableSchema_;
    /**
     * <code>bytes table_schema = 3;</code>
     * @return The tableSchema.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getTableSchema() {
      return tableSchema_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (id_ != 0L) {
        output.writeUInt64(1, id_);
      }
      if (tableName_ != null) {
        output.writeMessage(2, getTableName());
      }
      if (!tableSchema_.isEmpty()) {
        output.writeBytes(3, tableSchema_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (id_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, id_);
      }
      if (tableName_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getTableName());
      }
      if (!tableSchema_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, tableSchema_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.meta.Route.Table)) {
        return super.equals(obj);
      }
      greptime.v1.meta.Route.Table other = (greptime.v1.meta.Route.Table) obj;

      if (getId()
          != other.getId()) return false;
      if (hasTableName() != other.hasTableName()) return false;
      if (hasTableName()) {
        if (!getTableName()
            .equals(other.getTableName())) return false;
      }
      if (!getTableSchema()
          .equals(other.getTableSchema())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getId());
      if (hasTableName()) {
        hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
        hash = (53 * hash) + getTableName().hashCode();
      }
      hash = (37 * hash) + TABLE_SCHEMA_FIELD_NUMBER;
      hash = (53 * hash) + getTableSchema().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.Route.Table parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Table parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Table parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Table parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Table parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Table parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Table parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Table 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 greptime.v1.meta.Route.Table parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Table 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 greptime.v1.meta.Route.Table parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Table parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.meta.Route.Table prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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;
    }
    /**
     * Protobuf type {@code greptime.v1.meta.Table}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.Table)
        greptime.v1.meta.Route.TableOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Table_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Table_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.meta.Route.Table.class, greptime.v1.meta.Route.Table.Builder.class);
      }

      // Construct using greptime.v1.meta.Route.Table.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = 0L;

        if (tableNameBuilder_ == null) {
          tableName_ = null;
        } else {
          tableName_ = null;
          tableNameBuilder_ = null;
        }
        tableSchema_ = com.google.protobuf.ByteString.EMPTY;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Table_descriptor;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Table getDefaultInstanceForType() {
        return greptime.v1.meta.Route.Table.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Table build() {
        greptime.v1.meta.Route.Table result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Table buildPartial() {
        greptime.v1.meta.Route.Table result = new greptime.v1.meta.Route.Table(this);
        result.id_ = id_;
        if (tableNameBuilder_ == null) {
          result.tableName_ = tableName_;
        } else {
          result.tableName_ = tableNameBuilder_.build();
        }
        result.tableSchema_ = tableSchema_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.meta.Route.Table) {
          return mergeFrom((greptime.v1.meta.Route.Table)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.Route.Table other) {
        if (other == greptime.v1.meta.Route.Table.getDefaultInstance()) return this;
        if (other.getId() != 0L) {
          setId(other.getId());
        }
        if (other.hasTableName()) {
          mergeTableName(other.getTableName());
        }
        if (other.getTableSchema() != com.google.protobuf.ByteString.EMPTY) {
          setTableSchema(other.getTableSchema());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.meta.Route.Table parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.Route.Table) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long id_ ;
      /**
       * <code>uint64 id = 1;</code>
       * @return The id.
       */
      @java.lang.Override
      public long getId() {
        return id_;
      }
      /**
       * <code>uint64 id = 1;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(long value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint64 id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = 0L;
        onChanged();
        return this;
      }

      private io.greptime.v1.Common.TableName tableName_;
      private com.google.protobuf.SingleFieldBuilderV3<
          io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> tableNameBuilder_;
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       * @return Whether the tableName field is set.
       */
      public boolean hasTableName() {
        return tableNameBuilder_ != null || tableName_ != null;
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       * @return The tableName.
       */
      public io.greptime.v1.Common.TableName getTableName() {
        if (tableNameBuilder_ == null) {
          return tableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_;
        } else {
          return tableNameBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      public Builder setTableName(io.greptime.v1.Common.TableName value) {
        if (tableNameBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          tableName_ = value;
          onChanged();
        } else {
          tableNameBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      public Builder setTableName(
          io.greptime.v1.Common.TableName.Builder builderForValue) {
        if (tableNameBuilder_ == null) {
          tableName_ = builderForValue.build();
          onChanged();
        } else {
          tableNameBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      public Builder mergeTableName(io.greptime.v1.Common.TableName value) {
        if (tableNameBuilder_ == null) {
          if (tableName_ != null) {
            tableName_ =
              io.greptime.v1.Common.TableName.newBuilder(tableName_).mergeFrom(value).buildPartial();
          } else {
            tableName_ = value;
          }
          onChanged();
        } else {
          tableNameBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      public Builder clearTableName() {
        if (tableNameBuilder_ == null) {
          tableName_ = null;
          onChanged();
        } else {
          tableName_ = null;
          tableNameBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      public io.greptime.v1.Common.TableName.Builder getTableNameBuilder() {
        
        onChanged();
        return getTableNameFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      public io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder() {
        if (tableNameBuilder_ != null) {
          return tableNameBuilder_.getMessageOrBuilder();
        } else {
          return tableName_ == null ?
              io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_;
        }
      }
      /**
       * <code>.greptime.v1.TableName table_name = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> 
          getTableNameFieldBuilder() {
        if (tableNameBuilder_ == null) {
          tableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder>(
                  getTableName(),
                  getParentForChildren(),
                  isClean());
          tableName_ = null;
        }
        return tableNameBuilder_;
      }

      private com.google.protobuf.ByteString tableSchema_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>bytes table_schema = 3;</code>
       * @return The tableSchema.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString getTableSchema() {
        return tableSchema_;
      }
      /**
       * <code>bytes table_schema = 3;</code>
       * @param value The tableSchema to set.
       * @return This builder for chaining.
       */
      public Builder setTableSchema(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        tableSchema_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>bytes table_schema = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearTableSchema() {
        
        tableSchema_ = getDefaultInstance().getTableSchema();
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.meta.Table)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.meta.Table)
    private static final greptime.v1.meta.Route.Table DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.meta.Route.Table();
    }

    public static greptime.v1.meta.Route.Table getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Table>
        PARSER = new com.google.protobuf.AbstractParser<Table>() {
      @java.lang.Override
      public Table parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Table(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<Table> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<Table> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.meta.Route.Table getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RegionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.meta.Region)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * TODO(LFC): Maybe use message RegionNumber?
     * </pre>
     *
     * <code>uint64 id = 1;</code>
     * @return The id.
     */
    long getId();

    /**
     * <code>string name = 2;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <code>string name = 2;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <code>.greptime.v1.meta.Partition partition = 3;</code>
     * @return Whether the partition field is set.
     */
    boolean hasPartition();
    /**
     * <code>.greptime.v1.meta.Partition partition = 3;</code>
     * @return The partition.
     */
    greptime.v1.meta.Route.Partition getPartition();
    /**
     * <code>.greptime.v1.meta.Partition partition = 3;</code>
     */
    greptime.v1.meta.Route.PartitionOrBuilder getPartitionOrBuilder();

    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */
    int getAttrsCount();
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */
    boolean containsAttrs(
        java.lang.String key);
    /**
     * Use {@link #getAttrsMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map<java.lang.String, java.lang.String>
    getAttrs();
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */
    java.util.Map<java.lang.String, java.lang.String>
    getAttrsMap();
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */

    /* nullable */
java.lang.String getAttrsOrDefault(
        java.lang.String key,
        /* nullable */
java.lang.String defaultValue);
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */

    java.lang.String getAttrsOrThrow(
        java.lang.String key);
  }
  /**
   * Protobuf type {@code greptime.v1.meta.Region}
   */
  public static final class Region extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.Region)
      RegionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Region.newBuilder() to construct.
    private Region(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Region() {
      name_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Region();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Region(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              id_ = input.readUInt64();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
            case 26: {
              greptime.v1.meta.Route.Partition.Builder subBuilder = null;
              if (partition_ != null) {
                subBuilder = partition_.toBuilder();
              }
              partition_ = input.readMessage(greptime.v1.meta.Route.Partition.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(partition_);
                partition_ = subBuilder.buildPartial();
              }

              break;
            }
            case 802: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                attrs_ = com.google.protobuf.MapField.newMapField(
                    AttrsDefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000001;
              }
              com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
              attrs__ = input.readMessage(
                  AttrsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              attrs_.getMutableMap().put(
                  attrs__.getKey(), attrs__.getValue());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Region_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 100:
          return internalGetAttrs();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Region_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.meta.Route.Region.class, greptime.v1.meta.Route.Region.Builder.class);
    }

    public static final int ID_FIELD_NUMBER = 1;
    private long id_;
    /**
     * <pre>
     * TODO(LFC): Maybe use message RegionNumber?
     * </pre>
     *
     * <code>uint64 id = 1;</code>
     * @return The id.
     */
    @java.lang.Override
    public long getId() {
      return id_;
    }

    public static final int NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 2;</code>
     * @return The name.
     */
    @java.lang.Override
    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;
      }
    }
    /**
     * <code>string name = 2;</code>
     * @return The bytes for name.
     */
    @java.lang.Override
    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 PARTITION_FIELD_NUMBER = 3;
    private greptime.v1.meta.Route.Partition partition_;
    /**
     * <code>.greptime.v1.meta.Partition partition = 3;</code>
     * @return Whether the partition field is set.
     */
    @java.lang.Override
    public boolean hasPartition() {
      return partition_ != null;
    }
    /**
     * <code>.greptime.v1.meta.Partition partition = 3;</code>
     * @return The partition.
     */
    @java.lang.Override
    public greptime.v1.meta.Route.Partition getPartition() {
      return partition_ == null ? greptime.v1.meta.Route.Partition.getDefaultInstance() : partition_;
    }
    /**
     * <code>.greptime.v1.meta.Partition partition = 3;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Route.PartitionOrBuilder getPartitionOrBuilder() {
      return getPartition();
    }

    public static final int ATTRS_FIELD_NUMBER = 100;
    private static final class AttrsDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.String, java.lang.String> defaultEntry =
              com.google.protobuf.MapEntry
              .<java.lang.String, java.lang.String>newDefaultInstance(
                  greptime.v1.meta.Route.internal_static_greptime_v1_meta_Region_AttrsEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "");
    }
    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> attrs_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetAttrs() {
      if (attrs_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            AttrsDefaultEntryHolder.defaultEntry);
      }
      return attrs_;
    }

    public int getAttrsCount() {
      return internalGetAttrs().getMap().size();
    }
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */

    @java.lang.Override
    public boolean containsAttrs(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetAttrs().getMap().containsKey(key);
    }
    /**
     * Use {@link #getAttrsMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getAttrs() {
      return getAttrsMap();
    }
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.String, java.lang.String> getAttrsMap() {
      return internalGetAttrs().getMap();
    }
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */
    @java.lang.Override

    public java.lang.String getAttrsOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetAttrs().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;string, string&gt; attrs = 100;</code>
     */
    @java.lang.Override

    public java.lang.String getAttrsOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetAttrs().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (id_ != 0L) {
        output.writeUInt64(1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (partition_ != null) {
        output.writeMessage(3, getPartition());
      }
      com.google.protobuf.GeneratedMessageV3
        .serializeStringMapTo(
          output,
          internalGetAttrs(),
          AttrsDefaultEntryHolder.defaultEntry,
          100);
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (id_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (partition_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getPartition());
      }
      for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
           : internalGetAttrs().getMap().entrySet()) {
        com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
        attrs__ = AttrsDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(100, attrs__);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.meta.Route.Region)) {
        return super.equals(obj);
      }
      greptime.v1.meta.Route.Region other = (greptime.v1.meta.Route.Region) obj;

      if (getId()
          != other.getId()) return false;
      if (!getName()
          .equals(other.getName())) return false;
      if (hasPartition() != other.hasPartition()) return false;
      if (hasPartition()) {
        if (!getPartition()
            .equals(other.getPartition())) return false;
      }
      if (!internalGetAttrs().equals(
          other.internalGetAttrs())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getId());
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      if (hasPartition()) {
        hash = (37 * hash) + PARTITION_FIELD_NUMBER;
        hash = (53 * hash) + getPartition().hashCode();
      }
      if (!internalGetAttrs().getMap().isEmpty()) {
        hash = (37 * hash) + ATTRS_FIELD_NUMBER;
        hash = (53 * hash) + internalGetAttrs().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.Route.Region parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Region parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Region parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Region parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Region parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Region parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Region parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Region 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 greptime.v1.meta.Route.Region parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Region 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 greptime.v1.meta.Route.Region parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Region parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.meta.Route.Region prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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;
    }
    /**
     * Protobuf type {@code greptime.v1.meta.Region}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.Region)
        greptime.v1.meta.Route.RegionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Region_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 100:
            return internalGetAttrs();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 100:
            return internalGetMutableAttrs();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Region_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.meta.Route.Region.class, greptime.v1.meta.Route.Region.Builder.class);
      }

      // Construct using greptime.v1.meta.Route.Region.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        id_ = 0L;

        name_ = "";

        if (partitionBuilder_ == null) {
          partition_ = null;
        } else {
          partition_ = null;
          partitionBuilder_ = null;
        }
        internalGetMutableAttrs().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Region_descriptor;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Region getDefaultInstanceForType() {
        return greptime.v1.meta.Route.Region.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Region build() {
        greptime.v1.meta.Route.Region result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Region buildPartial() {
        greptime.v1.meta.Route.Region result = new greptime.v1.meta.Route.Region(this);
        int from_bitField0_ = bitField0_;
        result.id_ = id_;
        result.name_ = name_;
        if (partitionBuilder_ == null) {
          result.partition_ = partition_;
        } else {
          result.partition_ = partitionBuilder_.build();
        }
        result.attrs_ = internalGetAttrs();
        result.attrs_.makeImmutable();
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.meta.Route.Region) {
          return mergeFrom((greptime.v1.meta.Route.Region)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.Route.Region other) {
        if (other == greptime.v1.meta.Route.Region.getDefaultInstance()) return this;
        if (other.getId() != 0L) {
          setId(other.getId());
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (other.hasPartition()) {
          mergePartition(other.getPartition());
        }
        internalGetMutableAttrs().mergeFrom(
            other.internalGetAttrs());
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.meta.Route.Region parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.Route.Region) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long id_ ;
      /**
       * <pre>
       * TODO(LFC): Maybe use message RegionNumber?
       * </pre>
       *
       * <code>uint64 id = 1;</code>
       * @return The id.
       */
      @java.lang.Override
      public long getId() {
        return id_;
      }
      /**
       * <pre>
       * TODO(LFC): Maybe use message RegionNumber?
       * </pre>
       *
       * <code>uint64 id = 1;</code>
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(long value) {
        
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * TODO(LFC): Maybe use message RegionNumber?
       * </pre>
       *
       * <code>uint64 id = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 2;</code>
       * @return The name.
       */
      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;
        }
      }
      /**
       * <code>string name = 2;</code>
       * @return The bytes for name.
       */
      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;
        }
      }
      /**
       * <code>string name = 2;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 2;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private greptime.v1.meta.Route.Partition partition_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.Partition, greptime.v1.meta.Route.Partition.Builder, greptime.v1.meta.Route.PartitionOrBuilder> partitionBuilder_;
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       * @return Whether the partition field is set.
       */
      public boolean hasPartition() {
        return partitionBuilder_ != null || partition_ != null;
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       * @return The partition.
       */
      public greptime.v1.meta.Route.Partition getPartition() {
        if (partitionBuilder_ == null) {
          return partition_ == null ? greptime.v1.meta.Route.Partition.getDefaultInstance() : partition_;
        } else {
          return partitionBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      public Builder setPartition(greptime.v1.meta.Route.Partition value) {
        if (partitionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          partition_ = value;
          onChanged();
        } else {
          partitionBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      public Builder setPartition(
          greptime.v1.meta.Route.Partition.Builder builderForValue) {
        if (partitionBuilder_ == null) {
          partition_ = builderForValue.build();
          onChanged();
        } else {
          partitionBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      public Builder mergePartition(greptime.v1.meta.Route.Partition value) {
        if (partitionBuilder_ == null) {
          if (partition_ != null) {
            partition_ =
              greptime.v1.meta.Route.Partition.newBuilder(partition_).mergeFrom(value).buildPartial();
          } else {
            partition_ = value;
          }
          onChanged();
        } else {
          partitionBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      public Builder clearPartition() {
        if (partitionBuilder_ == null) {
          partition_ = null;
          onChanged();
        } else {
          partition_ = null;
          partitionBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      public greptime.v1.meta.Route.Partition.Builder getPartitionBuilder() {
        
        onChanged();
        return getPartitionFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      public greptime.v1.meta.Route.PartitionOrBuilder getPartitionOrBuilder() {
        if (partitionBuilder_ != null) {
          return partitionBuilder_.getMessageOrBuilder();
        } else {
          return partition_ == null ?
              greptime.v1.meta.Route.Partition.getDefaultInstance() : partition_;
        }
      }
      /**
       * <code>.greptime.v1.meta.Partition partition = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.Partition, greptime.v1.meta.Route.Partition.Builder, greptime.v1.meta.Route.PartitionOrBuilder> 
          getPartitionFieldBuilder() {
        if (partitionBuilder_ == null) {
          partitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Route.Partition, greptime.v1.meta.Route.Partition.Builder, greptime.v1.meta.Route.PartitionOrBuilder>(
                  getPartition(),
                  getParentForChildren(),
                  isClean());
          partition_ = null;
        }
        return partitionBuilder_;
      }

      private com.google.protobuf.MapField<
          java.lang.String, java.lang.String> attrs_;
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetAttrs() {
        if (attrs_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              AttrsDefaultEntryHolder.defaultEntry);
        }
        return attrs_;
      }
      private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetMutableAttrs() {
        onChanged();;
        if (attrs_ == null) {
          attrs_ = com.google.protobuf.MapField.newMapField(
              AttrsDefaultEntryHolder.defaultEntry);
        }
        if (!attrs_.isMutable()) {
          attrs_ = attrs_.copy();
        }
        return attrs_;
      }

      public int getAttrsCount() {
        return internalGetAttrs().getMap().size();
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */

      @java.lang.Override
      public boolean containsAttrs(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        return internalGetAttrs().getMap().containsKey(key);
      }
      /**
       * Use {@link #getAttrsMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String> getAttrs() {
        return getAttrsMap();
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */
      @java.lang.Override

      public java.util.Map<java.lang.String, java.lang.String> getAttrsMap() {
        return internalGetAttrs().getMap();
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */
      @java.lang.Override

      public java.lang.String getAttrsOrDefault(
          java.lang.String key,
          java.lang.String defaultValue) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetAttrs().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */
      @java.lang.Override

      public java.lang.String getAttrsOrThrow(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map<java.lang.String, java.lang.String> map =
            internalGetAttrs().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }

      public Builder clearAttrs() {
        internalGetMutableAttrs().getMutableMap()
            .clear();
        return this;
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */

      public Builder removeAttrs(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        internalGetMutableAttrs().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map<java.lang.String, java.lang.String>
      getMutableAttrs() {
        return internalGetMutableAttrs().getMutableMap();
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */
      public Builder putAttrs(
          java.lang.String key,
          java.lang.String value) {
        if (key == null) { throw new NullPointerException("map key"); }
        if (value == null) {
  throw new NullPointerException("map value");
}

        internalGetMutableAttrs().getMutableMap()
            .put(key, value);
        return this;
      }
      /**
       * <code>map&lt;string, string&gt; attrs = 100;</code>
       */

      public Builder putAllAttrs(
          java.util.Map<java.lang.String, java.lang.String> values) {
        internalGetMutableAttrs().getMutableMap()
            .putAll(values);
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.meta.Region)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.meta.Region)
    private static final greptime.v1.meta.Route.Region DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.meta.Route.Region();
    }

    public static greptime.v1.meta.Route.Region getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Region>
        PARSER = new com.google.protobuf.AbstractParser<Region>() {
      @java.lang.Override
      public Region parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Region(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<Region> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<Region> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.meta.Route.Region getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PartitionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.meta.Partition)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated bytes column_list = 1;</code>
     * @return A list containing the columnList.
     */
    java.util.List<com.google.protobuf.ByteString> getColumnListList();
    /**
     * <code>repeated bytes column_list = 1;</code>
     * @return The count of columnList.
     */
    int getColumnListCount();
    /**
     * <code>repeated bytes column_list = 1;</code>
     * @param index The index of the element to return.
     * @return The columnList at the given index.
     */
    com.google.protobuf.ByteString getColumnList(int index);

    /**
     * <code>repeated bytes value_list = 2;</code>
     * @return A list containing the valueList.
     */
    java.util.List<com.google.protobuf.ByteString> getValueListList();
    /**
     * <code>repeated bytes value_list = 2;</code>
     * @return The count of valueList.
     */
    int getValueListCount();
    /**
     * <code>repeated bytes value_list = 2;</code>
     * @param index The index of the element to return.
     * @return The valueList at the given index.
     */
    com.google.protobuf.ByteString getValueList(int index);
  }
  /**
   * <pre>
   * PARTITION `region_name` VALUES LESS THAN (value_list)
   * </pre>
   *
   * Protobuf type {@code greptime.v1.meta.Partition}
   */
  public static final class Partition extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.Partition)
      PartitionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Partition.newBuilder() to construct.
    private Partition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Partition() {
      columnList_ = java.util.Collections.emptyList();
      valueList_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Partition();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Partition(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                columnList_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
                mutable_bitField0_ |= 0x00000001;
              }
              columnList_.add(input.readBytes());
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                valueList_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
                mutable_bitField0_ |= 0x00000002;
              }
              valueList_.add(input.readBytes());
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          columnList_ = java.util.Collections.unmodifiableList(columnList_); // C
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          valueList_ = java.util.Collections.unmodifiableList(valueList_); // C
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Partition_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Partition_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.meta.Route.Partition.class, greptime.v1.meta.Route.Partition.Builder.class);
    }

    public static final int COLUMN_LIST_FIELD_NUMBER = 1;
    private java.util.List<com.google.protobuf.ByteString> columnList_;
    /**
     * <code>repeated bytes column_list = 1;</code>
     * @return A list containing the columnList.
     */
    @java.lang.Override
    public java.util.List<com.google.protobuf.ByteString>
        getColumnListList() {
      return columnList_;
    }
    /**
     * <code>repeated bytes column_list = 1;</code>
     * @return The count of columnList.
     */
    public int getColumnListCount() {
      return columnList_.size();
    }
    /**
     * <code>repeated bytes column_list = 1;</code>
     * @param index The index of the element to return.
     * @return The columnList at the given index.
     */
    public com.google.protobuf.ByteString getColumnList(int index) {
      return columnList_.get(index);
    }

    public static final int VALUE_LIST_FIELD_NUMBER = 2;
    private java.util.List<com.google.protobuf.ByteString> valueList_;
    /**
     * <code>repeated bytes value_list = 2;</code>
     * @return A list containing the valueList.
     */
    @java.lang.Override
    public java.util.List<com.google.protobuf.ByteString>
        getValueListList() {
      return valueList_;
    }
    /**
     * <code>repeated bytes value_list = 2;</code>
     * @return The count of valueList.
     */
    public int getValueListCount() {
      return valueList_.size();
    }
    /**
     * <code>repeated bytes value_list = 2;</code>
     * @param index The index of the element to return.
     * @return The valueList at the given index.
     */
    public com.google.protobuf.ByteString getValueList(int index) {
      return valueList_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < columnList_.size(); i++) {
        output.writeBytes(1, columnList_.get(i));
      }
      for (int i = 0; i < valueList_.size(); i++) {
        output.writeBytes(2, valueList_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < columnList_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(columnList_.get(i));
        }
        size += dataSize;
        size += 1 * getColumnListList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < valueList_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(valueList_.get(i));
        }
        size += dataSize;
        size += 1 * getValueListList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.meta.Route.Partition)) {
        return super.equals(obj);
      }
      greptime.v1.meta.Route.Partition other = (greptime.v1.meta.Route.Partition) obj;

      if (!getColumnListList()
          .equals(other.getColumnListList())) return false;
      if (!getValueListList()
          .equals(other.getValueListList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getColumnListCount() > 0) {
        hash = (37 * hash) + COLUMN_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getColumnListList().hashCode();
      }
      if (getValueListCount() > 0) {
        hash = (37 * hash) + VALUE_LIST_FIELD_NUMBER;
        hash = (53 * hash) + getValueListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.Route.Partition parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Partition 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 greptime.v1.meta.Route.Partition parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Partition 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 greptime.v1.meta.Route.Partition parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.Partition parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.meta.Route.Partition prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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;
    }
    /**
     * <pre>
     * PARTITION `region_name` VALUES LESS THAN (value_list)
     * </pre>
     *
     * Protobuf type {@code greptime.v1.meta.Partition}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.Partition)
        greptime.v1.meta.Route.PartitionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Partition_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Partition_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.meta.Route.Partition.class, greptime.v1.meta.Route.Partition.Builder.class);
      }

      // Construct using greptime.v1.meta.Route.Partition.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        columnList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        valueList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_Partition_descriptor;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Partition getDefaultInstanceForType() {
        return greptime.v1.meta.Route.Partition.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Partition build() {
        greptime.v1.meta.Route.Partition result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.Partition buildPartial() {
        greptime.v1.meta.Route.Partition result = new greptime.v1.meta.Route.Partition(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          columnList_ = java.util.Collections.unmodifiableList(columnList_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.columnList_ = columnList_;
        if (((bitField0_ & 0x00000002) != 0)) {
          valueList_ = java.util.Collections.unmodifiableList(valueList_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.valueList_ = valueList_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.meta.Route.Partition) {
          return mergeFrom((greptime.v1.meta.Route.Partition)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.Route.Partition other) {
        if (other == greptime.v1.meta.Route.Partition.getDefaultInstance()) return this;
        if (!other.columnList_.isEmpty()) {
          if (columnList_.isEmpty()) {
            columnList_ = other.columnList_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureColumnListIsMutable();
            columnList_.addAll(other.columnList_);
          }
          onChanged();
        }
        if (!other.valueList_.isEmpty()) {
          if (valueList_.isEmpty()) {
            valueList_ = other.valueList_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureValueListIsMutable();
            valueList_.addAll(other.valueList_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.meta.Route.Partition parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.Route.Partition) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<com.google.protobuf.ByteString> columnList_ = java.util.Collections.emptyList();
      private void ensureColumnListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          columnList_ = new java.util.ArrayList<com.google.protobuf.ByteString>(columnList_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @return A list containing the columnList.
       */
      public java.util.List<com.google.protobuf.ByteString>
          getColumnListList() {
        return ((bitField0_ & 0x00000001) != 0) ?
                 java.util.Collections.unmodifiableList(columnList_) : columnList_;
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @return The count of columnList.
       */
      public int getColumnListCount() {
        return columnList_.size();
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @param index The index of the element to return.
       * @return The columnList at the given index.
       */
      public com.google.protobuf.ByteString getColumnList(int index) {
        return columnList_.get(index);
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @param index The index to set the value at.
       * @param value The columnList to set.
       * @return This builder for chaining.
       */
      public Builder setColumnList(
          int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureColumnListIsMutable();
        columnList_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @param value The columnList to add.
       * @return This builder for chaining.
       */
      public Builder addColumnList(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureColumnListIsMutable();
        columnList_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @param values The columnList to add.
       * @return This builder for chaining.
       */
      public Builder addAllColumnList(
          java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
        ensureColumnListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, columnList_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes column_list = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearColumnList() {
        columnList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      private java.util.List<com.google.protobuf.ByteString> valueList_ = java.util.Collections.emptyList();
      private void ensureValueListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          valueList_ = new java.util.ArrayList<com.google.protobuf.ByteString>(valueList_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @return A list containing the valueList.
       */
      public java.util.List<com.google.protobuf.ByteString>
          getValueListList() {
        return ((bitField0_ & 0x00000002) != 0) ?
                 java.util.Collections.unmodifiableList(valueList_) : valueList_;
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @return The count of valueList.
       */
      public int getValueListCount() {
        return valueList_.size();
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @param index The index of the element to return.
       * @return The valueList at the given index.
       */
      public com.google.protobuf.ByteString getValueList(int index) {
        return valueList_.get(index);
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @param index The index to set the value at.
       * @param value The valueList to set.
       * @return This builder for chaining.
       */
      public Builder setValueList(
          int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureValueListIsMutable();
        valueList_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @param value The valueList to add.
       * @return This builder for chaining.
       */
      public Builder addValueList(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureValueListIsMutable();
        valueList_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @param values The valueList to add.
       * @return This builder for chaining.
       */
      public Builder addAllValueList(
          java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
        ensureValueListIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, valueList_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes value_list = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearValueList() {
        valueList_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.meta.Partition)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.meta.Partition)
    private static final greptime.v1.meta.Route.Partition DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.meta.Route.Partition();
    }

    public static greptime.v1.meta.Route.Partition getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<Partition>
        PARSER = new com.google.protobuf.AbstractParser<Partition>() {
      @java.lang.Override
      public Partition parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Partition(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<Partition> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<Partition> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.meta.Route.Partition getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface TableRouteValueOrBuilder extends
      // @@protoc_insertion_point(interface_extends:greptime.v1.meta.TableRouteValue)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    java.util.List<greptime.v1.meta.Common.Peer> 
        getPeersList();
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    greptime.v1.meta.Common.Peer getPeers(int index);
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    int getPeersCount();
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    java.util.List<? extends greptime.v1.meta.Common.PeerOrBuilder> 
        getPeersOrBuilderList();
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    greptime.v1.meta.Common.PeerOrBuilder getPeersOrBuilder(
        int index);

    /**
     * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
     * @return Whether the tableRoute field is set.
     */
    boolean hasTableRoute();
    /**
     * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
     * @return The tableRoute.
     */
    greptime.v1.meta.Route.TableRoute getTableRoute();
    /**
     * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
     */
    greptime.v1.meta.Route.TableRouteOrBuilder getTableRouteOrBuilder();
  }
  /**
   * <pre>
   * This message is only for saving into store.
   * TODO(weny): Remove it, Now, the upgrade tool is still dependent on it.
   * </pre>
   *
   * Protobuf type {@code greptime.v1.meta.TableRouteValue}
   */
  public static final class TableRouteValue extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.TableRouteValue)
      TableRouteValueOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TableRouteValue.newBuilder() to construct.
    private TableRouteValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TableRouteValue() {
      peers_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new TableRouteValue();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TableRouteValue(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                peers_ = new java.util.ArrayList<greptime.v1.meta.Common.Peer>();
                mutable_bitField0_ |= 0x00000001;
              }
              peers_.add(
                  input.readMessage(greptime.v1.meta.Common.Peer.parser(), extensionRegistry));
              break;
            }
            case 18: {
              greptime.v1.meta.Route.TableRoute.Builder subBuilder = null;
              if (tableRoute_ != null) {
                subBuilder = tableRoute_.toBuilder();
              }
              tableRoute_ = input.readMessage(greptime.v1.meta.Route.TableRoute.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(tableRoute_);
                tableRoute_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          peers_ = java.util.Collections.unmodifiableList(peers_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRouteValue_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRouteValue_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              greptime.v1.meta.Route.TableRouteValue.class, greptime.v1.meta.Route.TableRouteValue.Builder.class);
    }

    public static final int PEERS_FIELD_NUMBER = 1;
    private java.util.List<greptime.v1.meta.Common.Peer> peers_;
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    @java.lang.Override
    public java.util.List<greptime.v1.meta.Common.Peer> getPeersList() {
      return peers_;
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends greptime.v1.meta.Common.PeerOrBuilder> 
        getPeersOrBuilderList() {
      return peers_;
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    @java.lang.Override
    public int getPeersCount() {
      return peers_.size();
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.Peer getPeers(int index) {
      return peers_.get(index);
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.PeerOrBuilder getPeersOrBuilder(
        int index) {
      return peers_.get(index);
    }

    public static final int TABLE_ROUTE_FIELD_NUMBER = 2;
    private greptime.v1.meta.Route.TableRoute tableRoute_;
    /**
     * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
     * @return Whether the tableRoute field is set.
     */
    @java.lang.Override
    public boolean hasTableRoute() {
      return tableRoute_ != null;
    }
    /**
     * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
     * @return The tableRoute.
     */
    @java.lang.Override
    public greptime.v1.meta.Route.TableRoute getTableRoute() {
      return tableRoute_ == null ? greptime.v1.meta.Route.TableRoute.getDefaultInstance() : tableRoute_;
    }
    /**
     * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Route.TableRouteOrBuilder getTableRouteOrBuilder() {
      return getTableRoute();
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < peers_.size(); i++) {
        output.writeMessage(1, peers_.get(i));
      }
      if (tableRoute_ != null) {
        output.writeMessage(2, getTableRoute());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < peers_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, peers_.get(i));
      }
      if (tableRoute_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getTableRoute());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof greptime.v1.meta.Route.TableRouteValue)) {
        return super.equals(obj);
      }
      greptime.v1.meta.Route.TableRouteValue other = (greptime.v1.meta.Route.TableRouteValue) obj;

      if (!getPeersList()
          .equals(other.getPeersList())) return false;
      if (hasTableRoute() != other.hasTableRoute()) return false;
      if (hasTableRoute()) {
        if (!getTableRoute()
            .equals(other.getTableRoute())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getPeersCount() > 0) {
        hash = (37 * hash) + PEERS_FIELD_NUMBER;
        hash = (53 * hash) + getPeersList().hashCode();
      }
      if (hasTableRoute()) {
        hash = (37 * hash) + TABLE_ROUTE_FIELD_NUMBER;
        hash = (53 * hash) + getTableRoute().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.Route.TableRouteValue parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.TableRouteValue 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 greptime.v1.meta.Route.TableRouteValue parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.TableRouteValue 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 greptime.v1.meta.Route.TableRouteValue parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.Route.TableRouteValue parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(greptime.v1.meta.Route.TableRouteValue prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    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;
    }
    /**
     * <pre>
     * This message is only for saving into store.
     * TODO(weny): Remove it, Now, the upgrade tool is still dependent on it.
     * </pre>
     *
     * Protobuf type {@code greptime.v1.meta.TableRouteValue}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.TableRouteValue)
        greptime.v1.meta.Route.TableRouteValueOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRouteValue_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRouteValue_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                greptime.v1.meta.Route.TableRouteValue.class, greptime.v1.meta.Route.TableRouteValue.Builder.class);
      }

      // Construct using greptime.v1.meta.Route.TableRouteValue.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPeersFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (peersBuilder_ == null) {
          peers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          peersBuilder_.clear();
        }
        if (tableRouteBuilder_ == null) {
          tableRoute_ = null;
        } else {
          tableRoute_ = null;
          tableRouteBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return greptime.v1.meta.Route.internal_static_greptime_v1_meta_TableRouteValue_descriptor;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.TableRouteValue getDefaultInstanceForType() {
        return greptime.v1.meta.Route.TableRouteValue.getDefaultInstance();
      }

      @java.lang.Override
      public greptime.v1.meta.Route.TableRouteValue build() {
        greptime.v1.meta.Route.TableRouteValue result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public greptime.v1.meta.Route.TableRouteValue buildPartial() {
        greptime.v1.meta.Route.TableRouteValue result = new greptime.v1.meta.Route.TableRouteValue(this);
        int from_bitField0_ = bitField0_;
        if (peersBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            peers_ = java.util.Collections.unmodifiableList(peers_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.peers_ = peers_;
        } else {
          result.peers_ = peersBuilder_.build();
        }
        if (tableRouteBuilder_ == null) {
          result.tableRoute_ = tableRoute_;
        } else {
          result.tableRoute_ = tableRouteBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof greptime.v1.meta.Route.TableRouteValue) {
          return mergeFrom((greptime.v1.meta.Route.TableRouteValue)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.Route.TableRouteValue other) {
        if (other == greptime.v1.meta.Route.TableRouteValue.getDefaultInstance()) return this;
        if (peersBuilder_ == null) {
          if (!other.peers_.isEmpty()) {
            if (peers_.isEmpty()) {
              peers_ = other.peers_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensurePeersIsMutable();
              peers_.addAll(other.peers_);
            }
            onChanged();
          }
        } else {
          if (!other.peers_.isEmpty()) {
            if (peersBuilder_.isEmpty()) {
              peersBuilder_.dispose();
              peersBuilder_ = null;
              peers_ = other.peers_;
              bitField0_ = (bitField0_ & ~0x00000001);
              peersBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPeersFieldBuilder() : null;
            } else {
              peersBuilder_.addAllMessages(other.peers_);
            }
          }
        }
        if (other.hasTableRoute()) {
          mergeTableRoute(other.getTableRoute());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        greptime.v1.meta.Route.TableRouteValue parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.Route.TableRouteValue) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<greptime.v1.meta.Common.Peer> peers_ =
        java.util.Collections.emptyList();
      private void ensurePeersIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          peers_ = new java.util.ArrayList<greptime.v1.meta.Common.Peer>(peers_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder> peersBuilder_;

      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public java.util.List<greptime.v1.meta.Common.Peer> getPeersList() {
        if (peersBuilder_ == null) {
          return java.util.Collections.unmodifiableList(peers_);
        } else {
          return peersBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public int getPeersCount() {
        if (peersBuilder_ == null) {
          return peers_.size();
        } else {
          return peersBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public greptime.v1.meta.Common.Peer getPeers(int index) {
        if (peersBuilder_ == null) {
          return peers_.get(index);
        } else {
          return peersBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder setPeers(
          int index, greptime.v1.meta.Common.Peer value) {
        if (peersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePeersIsMutable();
          peers_.set(index, value);
          onChanged();
        } else {
          peersBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder setPeers(
          int index, greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (peersBuilder_ == null) {
          ensurePeersIsMutable();
          peers_.set(index, builderForValue.build());
          onChanged();
        } else {
          peersBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder addPeers(greptime.v1.meta.Common.Peer value) {
        if (peersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePeersIsMutable();
          peers_.add(value);
          onChanged();
        } else {
          peersBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder addPeers(
          int index, greptime.v1.meta.Common.Peer value) {
        if (peersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePeersIsMutable();
          peers_.add(index, value);
          onChanged();
        } else {
          peersBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder addPeers(
          greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (peersBuilder_ == null) {
          ensurePeersIsMutable();
          peers_.add(builderForValue.build());
          onChanged();
        } else {
          peersBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder addPeers(
          int index, greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (peersBuilder_ == null) {
          ensurePeersIsMutable();
          peers_.add(index, builderForValue.build());
          onChanged();
        } else {
          peersBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder addAllPeers(
          java.lang.Iterable<? extends greptime.v1.meta.Common.Peer> values) {
        if (peersBuilder_ == null) {
          ensurePeersIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, peers_);
          onChanged();
        } else {
          peersBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder clearPeers() {
        if (peersBuilder_ == null) {
          peers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          peersBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public Builder removePeers(int index) {
        if (peersBuilder_ == null) {
          ensurePeersIsMutable();
          peers_.remove(index);
          onChanged();
        } else {
          peersBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder getPeersBuilder(
          int index) {
        return getPeersFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public greptime.v1.meta.Common.PeerOrBuilder getPeersOrBuilder(
          int index) {
        if (peersBuilder_ == null) {
          return peers_.get(index);  } else {
          return peersBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public java.util.List<? extends greptime.v1.meta.Common.PeerOrBuilder> 
           getPeersOrBuilderList() {
        if (peersBuilder_ != null) {
          return peersBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(peers_);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder addPeersBuilder() {
        return getPeersFieldBuilder().addBuilder(
            greptime.v1.meta.Common.Peer.getDefaultInstance());
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder addPeersBuilder(
          int index) {
        return getPeersFieldBuilder().addBuilder(
            index, greptime.v1.meta.Common.Peer.getDefaultInstance());
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer peers = 1;</code>
       */
      public java.util.List<greptime.v1.meta.Common.Peer.Builder> 
           getPeersBuilderList() {
        return getPeersFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder> 
          getPeersFieldBuilder() {
        if (peersBuilder_ == null) {
          peersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder>(
                  peers_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          peers_ = null;
        }
        return peersBuilder_;
      }

      private greptime.v1.meta.Route.TableRoute tableRoute_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.TableRoute, greptime.v1.meta.Route.TableRoute.Builder, greptime.v1.meta.Route.TableRouteOrBuilder> tableRouteBuilder_;
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       * @return Whether the tableRoute field is set.
       */
      public boolean hasTableRoute() {
        return tableRouteBuilder_ != null || tableRoute_ != null;
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       * @return The tableRoute.
       */
      public greptime.v1.meta.Route.TableRoute getTableRoute() {
        if (tableRouteBuilder_ == null) {
          return tableRoute_ == null ? greptime.v1.meta.Route.TableRoute.getDefaultInstance() : tableRoute_;
        } else {
          return tableRouteBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      public Builder setTableRoute(greptime.v1.meta.Route.TableRoute value) {
        if (tableRouteBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          tableRoute_ = value;
          onChanged();
        } else {
          tableRouteBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      public Builder setTableRoute(
          greptime.v1.meta.Route.TableRoute.Builder builderForValue) {
        if (tableRouteBuilder_ == null) {
          tableRoute_ = builderForValue.build();
          onChanged();
        } else {
          tableRouteBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      public Builder mergeTableRoute(greptime.v1.meta.Route.TableRoute value) {
        if (tableRouteBuilder_ == null) {
          if (tableRoute_ != null) {
            tableRoute_ =
              greptime.v1.meta.Route.TableRoute.newBuilder(tableRoute_).mergeFrom(value).buildPartial();
          } else {
            tableRoute_ = value;
          }
          onChanged();
        } else {
          tableRouteBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      public Builder clearTableRoute() {
        if (tableRouteBuilder_ == null) {
          tableRoute_ = null;
          onChanged();
        } else {
          tableRoute_ = null;
          tableRouteBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      public greptime.v1.meta.Route.TableRoute.Builder getTableRouteBuilder() {
        
        onChanged();
        return getTableRouteFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      public greptime.v1.meta.Route.TableRouteOrBuilder getTableRouteOrBuilder() {
        if (tableRouteBuilder_ != null) {
          return tableRouteBuilder_.getMessageOrBuilder();
        } else {
          return tableRoute_ == null ?
              greptime.v1.meta.Route.TableRoute.getDefaultInstance() : tableRoute_;
        }
      }
      /**
       * <code>.greptime.v1.meta.TableRoute table_route = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Route.TableRoute, greptime.v1.meta.Route.TableRoute.Builder, greptime.v1.meta.Route.TableRouteOrBuilder> 
          getTableRouteFieldBuilder() {
        if (tableRouteBuilder_ == null) {
          tableRouteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Route.TableRoute, greptime.v1.meta.Route.TableRoute.Builder, greptime.v1.meta.Route.TableRouteOrBuilder>(
                  getTableRoute(),
                  getParentForChildren(),
                  isClean());
          tableRoute_ = null;
        }
        return tableRouteBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:greptime.v1.meta.TableRouteValue)
    }

    // @@protoc_insertion_point(class_scope:greptime.v1.meta.TableRouteValue)
    private static final greptime.v1.meta.Route.TableRouteValue DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new greptime.v1.meta.Route.TableRouteValue();
    }

    public static greptime.v1.meta.Route.TableRouteValue getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<TableRouteValue>
        PARSER = new com.google.protobuf.AbstractParser<TableRouteValue>() {
      @java.lang.Override
      public TableRouteValue parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TableRouteValue(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<TableRouteValue> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<TableRouteValue> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public greptime.v1.meta.Route.TableRouteValue getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_TableRoute_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_TableRoute_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_RegionRoute_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_RegionRoute_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_Table_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_Table_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_Region_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_Region_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_Region_AttrsEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_Region_AttrsEntry_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_Partition_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_Partition_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_TableRouteValue_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_TableRouteValue_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\034greptime/v1/meta/route.proto\022\020greptime" +
      ".v1.meta\032\035greptime/v1/meta/common.proto\032" +
      "\030greptime/v1/common.proto\"j\n\nTableRoute\022" +
      "&\n\005table\030\001 \001(\0132\027.greptime.v1.meta.Table\022" +
      "4\n\rregion_routes\030\002 \003(\0132\035.greptime.v1.met" +
      "a.RegionRoute\"q\n\013RegionRoute\022(\n\006region\030\001" +
      " \001(\0132\030.greptime.v1.meta.Region\022\031\n\021leader" +
      "_peer_index\030\002 \001(\004\022\035\n\025follower_peer_index" +
      "es\030\003 \003(\004\"U\n\005Table\022\n\n\002id\030\001 \001(\004\022*\n\ntable_n" +
      "ame\030\002 \001(\0132\026.greptime.v1.TableName\022\024\n\014tab" +
      "le_schema\030\003 \001(\014\"\264\001\n\006Region\022\n\n\002id\030\001 \001(\004\022\014" +
      "\n\004name\030\002 \001(\t\022.\n\tpartition\030\003 \001(\0132\033.grepti" +
      "me.v1.meta.Partition\0222\n\005attrs\030d \003(\0132#.gr" +
      "eptime.v1.meta.Region.AttrsEntry\032,\n\nAttr" +
      "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"4" +
      "\n\tPartition\022\023\n\013column_list\030\001 \003(\014\022\022\n\nvalu" +
      "e_list\030\002 \003(\014\"k\n\017TableRouteValue\022%\n\005peers" +
      "\030\001 \003(\0132\026.greptime.v1.meta.Peer\0221\n\013table_" +
      "route\030\002 \001(\0132\034.greptime.v1.meta.TableRout" +
      "eB<Z:github.com/GreptimeTeam/greptime-pr" +
      "oto/go/greptime/v1/metab\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          greptime.v1.meta.Common.getDescriptor(),
          io.greptime.v1.Common.getDescriptor(),
        });
    internal_static_greptime_v1_meta_TableRoute_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_greptime_v1_meta_TableRoute_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_TableRoute_descriptor,
        new java.lang.String[] { "Table", "RegionRoutes", });
    internal_static_greptime_v1_meta_RegionRoute_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_greptime_v1_meta_RegionRoute_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_RegionRoute_descriptor,
        new java.lang.String[] { "Region", "LeaderPeerIndex", "FollowerPeerIndexes", });
    internal_static_greptime_v1_meta_Table_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_greptime_v1_meta_Table_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_Table_descriptor,
        new java.lang.String[] { "Id", "TableName", "TableSchema", });
    internal_static_greptime_v1_meta_Region_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_greptime_v1_meta_Region_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_Region_descriptor,
        new java.lang.String[] { "Id", "Name", "Partition", "Attrs", });
    internal_static_greptime_v1_meta_Region_AttrsEntry_descriptor =
      internal_static_greptime_v1_meta_Region_descriptor.getNestedTypes().get(0);
    internal_static_greptime_v1_meta_Region_AttrsEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_Region_AttrsEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    internal_static_greptime_v1_meta_Partition_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_greptime_v1_meta_Partition_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_Partition_descriptor,
        new java.lang.String[] { "ColumnList", "ValueList", });
    internal_static_greptime_v1_meta_TableRouteValue_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_greptime_v1_meta_TableRouteValue_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_TableRouteValue_descriptor,
        new java.lang.String[] { "Peers", "TableRoute", });
    greptime.v1.meta.Common.getDescriptor();
    io.greptime.v1.Common.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
