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

package greptime.v1.meta;

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

    /**
     * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
     * @return Whether the header field is set.
     */
    boolean hasHeader();
    /**
     * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
     * @return The header.
     */
    greptime.v1.meta.Common.RequestHeader getHeader();
    /**
     * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
     */
    greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder();
  }
  /**
   * Protobuf type {@code greptime.v1.meta.MetasrvPeersRequest}
   */
  public static final class MetasrvPeersRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.MetasrvPeersRequest)
      MetasrvPeersRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MetasrvPeersRequest.newBuilder() to construct.
    private MetasrvPeersRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MetasrvPeersRequest() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MetasrvPeersRequest(
        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 10: {
              greptime.v1.meta.Common.RequestHeader.Builder subBuilder = null;
              if (header_ != null) {
                subBuilder = header_.toBuilder();
              }
              header_ = input.readMessage(greptime.v1.meta.Common.RequestHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(header_);
                header_ = 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 {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.ClusterOuterClass.internal_static_greptime_v1_meta_MetasrvPeersRequest_descriptor;
    }

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

    public static final int HEADER_FIELD_NUMBER = 1;
    private greptime.v1.meta.Common.RequestHeader header_;
    /**
     * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
     * @return Whether the header field is set.
     */
    @java.lang.Override
    public boolean hasHeader() {
      return header_ != null;
    }
    /**
     * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
     * @return The header.
     */
    @java.lang.Override
    public greptime.v1.meta.Common.RequestHeader getHeader() {
      return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_;
    }
    /**
     * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() {
      return getHeader();
    }

    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 (header_ != null) {
        output.writeMessage(1, getHeader());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (header_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getHeader());
      }
      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.ClusterOuterClass.MetasrvPeersRequest)) {
        return super.equals(obj);
      }
      greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest other = (greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest) obj;

      if (hasHeader() != other.hasHeader()) return false;
      if (hasHeader()) {
        if (!getHeader()
            .equals(other.getHeader())) 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 (hasHeader()) {
        hash = (37 * hash) + HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getHeader().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest 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.ClusterOuterClass.MetasrvPeersRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest 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.ClusterOuterClass.MetasrvPeersRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest 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.ClusterOuterClass.MetasrvPeersRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest 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.ClusterOuterClass.MetasrvPeersRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest 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.ClusterOuterClass.MetasrvPeersRequest 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.MetasrvPeersRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.MetasrvPeersRequest)
        greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.ClusterOuterClass.internal_static_greptime_v1_meta_MetasrvPeersRequest_descriptor;
      }

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

      // Construct using greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest.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 (headerBuilder_ == null) {
          header_ = null;
        } else {
          header_ = null;
          headerBuilder_ = null;
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest buildPartial() {
        greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest result = new greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest(this);
        if (headerBuilder_ == null) {
          result.header_ = header_;
        } else {
          result.header_ = headerBuilder_.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.ClusterOuterClass.MetasrvPeersRequest) {
          return mergeFrom((greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest other) {
        if (other == greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest.getDefaultInstance()) return this;
        if (other.hasHeader()) {
          mergeHeader(other.getHeader());
        }
        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.ClusterOuterClass.MetasrvPeersRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private greptime.v1.meta.Common.RequestHeader header_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> headerBuilder_;
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       * @return Whether the header field is set.
       */
      public boolean hasHeader() {
        return headerBuilder_ != null || header_ != null;
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       * @return The header.
       */
      public greptime.v1.meta.Common.RequestHeader getHeader() {
        if (headerBuilder_ == null) {
          return header_ == null ? greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_;
        } else {
          return headerBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      public Builder setHeader(greptime.v1.meta.Common.RequestHeader value) {
        if (headerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
          onChanged();
        } else {
          headerBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      public Builder setHeader(
          greptime.v1.meta.Common.RequestHeader.Builder builderForValue) {
        if (headerBuilder_ == null) {
          header_ = builderForValue.build();
          onChanged();
        } else {
          headerBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      public Builder mergeHeader(greptime.v1.meta.Common.RequestHeader value) {
        if (headerBuilder_ == null) {
          if (header_ != null) {
            header_ =
              greptime.v1.meta.Common.RequestHeader.newBuilder(header_).mergeFrom(value).buildPartial();
          } else {
            header_ = value;
          }
          onChanged();
        } else {
          headerBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      public Builder clearHeader() {
        if (headerBuilder_ == null) {
          header_ = null;
          onChanged();
        } else {
          header_ = null;
          headerBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      public greptime.v1.meta.Common.RequestHeader.Builder getHeaderBuilder() {
        
        onChanged();
        return getHeaderFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      public greptime.v1.meta.Common.RequestHeaderOrBuilder getHeaderOrBuilder() {
        if (headerBuilder_ != null) {
          return headerBuilder_.getMessageOrBuilder();
        } else {
          return header_ == null ?
              greptime.v1.meta.Common.RequestHeader.getDefaultInstance() : header_;
        }
      }
      /**
       * <code>.greptime.v1.meta.RequestHeader header = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder> 
          getHeaderFieldBuilder() {
        if (headerBuilder_ == null) {
          headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Common.RequestHeader, greptime.v1.meta.Common.RequestHeader.Builder, greptime.v1.meta.Common.RequestHeaderOrBuilder>(
                  getHeader(),
                  getParentForChildren(),
                  isClean());
          header_ = null;
        }
        return headerBuilder_;
      }
      @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.MetasrvPeersRequest)
    }

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

    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

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

    /**
     * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
     * @return Whether the header field is set.
     */
    boolean hasHeader();
    /**
     * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
     * @return The header.
     */
    greptime.v1.meta.Common.ResponseHeader getHeader();
    /**
     * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
     */
    greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder();

    /**
     * <code>.greptime.v1.meta.Peer leader = 2;</code>
     * @return Whether the leader field is set.
     */
    boolean hasLeader();
    /**
     * <code>.greptime.v1.meta.Peer leader = 2;</code>
     * @return The leader.
     */
    greptime.v1.meta.Common.Peer getLeader();
    /**
     * <code>.greptime.v1.meta.Peer leader = 2;</code>
     */
    greptime.v1.meta.Common.PeerOrBuilder getLeaderOrBuilder();

    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    java.util.List<greptime.v1.meta.Common.Peer> 
        getFollowersList();
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    greptime.v1.meta.Common.Peer getFollowers(int index);
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    int getFollowersCount();
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    java.util.List<? extends greptime.v1.meta.Common.PeerOrBuilder> 
        getFollowersOrBuilderList();
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    greptime.v1.meta.Common.PeerOrBuilder getFollowersOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code greptime.v1.meta.MetasrvPeersResponse}
   */
  public static final class MetasrvPeersResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:greptime.v1.meta.MetasrvPeersResponse)
      MetasrvPeersResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MetasrvPeersResponse.newBuilder() to construct.
    private MetasrvPeersResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MetasrvPeersResponse() {
      followers_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MetasrvPeersResponse(
        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.Common.ResponseHeader.Builder subBuilder = null;
              if (header_ != null) {
                subBuilder = header_.toBuilder();
              }
              header_ = input.readMessage(greptime.v1.meta.Common.ResponseHeader.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(header_);
                header_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              greptime.v1.meta.Common.Peer.Builder subBuilder = null;
              if (leader_ != null) {
                subBuilder = leader_.toBuilder();
              }
              leader_ = input.readMessage(greptime.v1.meta.Common.Peer.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(leader_);
                leader_ = subBuilder.buildPartial();
              }

              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                followers_ = new java.util.ArrayList<greptime.v1.meta.Common.Peer>();
                mutable_bitField0_ |= 0x00000001;
              }
              followers_.add(
                  input.readMessage(greptime.v1.meta.Common.Peer.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)) {
          followers_ = java.util.Collections.unmodifiableList(followers_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return greptime.v1.meta.ClusterOuterClass.internal_static_greptime_v1_meta_MetasrvPeersResponse_descriptor;
    }

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

    public static final int HEADER_FIELD_NUMBER = 1;
    private greptime.v1.meta.Common.ResponseHeader header_;
    /**
     * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
     * @return Whether the header field is set.
     */
    @java.lang.Override
    public boolean hasHeader() {
      return header_ != null;
    }
    /**
     * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
     * @return The header.
     */
    @java.lang.Override
    public greptime.v1.meta.Common.ResponseHeader getHeader() {
      return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_;
    }
    /**
     * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() {
      return getHeader();
    }

    public static final int LEADER_FIELD_NUMBER = 2;
    private greptime.v1.meta.Common.Peer leader_;
    /**
     * <code>.greptime.v1.meta.Peer leader = 2;</code>
     * @return Whether the leader field is set.
     */
    @java.lang.Override
    public boolean hasLeader() {
      return leader_ != null;
    }
    /**
     * <code>.greptime.v1.meta.Peer leader = 2;</code>
     * @return The leader.
     */
    @java.lang.Override
    public greptime.v1.meta.Common.Peer getLeader() {
      return leader_ == null ? greptime.v1.meta.Common.Peer.getDefaultInstance() : leader_;
    }
    /**
     * <code>.greptime.v1.meta.Peer leader = 2;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.PeerOrBuilder getLeaderOrBuilder() {
      return getLeader();
    }

    public static final int FOLLOWERS_FIELD_NUMBER = 3;
    private java.util.List<greptime.v1.meta.Common.Peer> followers_;
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    @java.lang.Override
    public java.util.List<greptime.v1.meta.Common.Peer> getFollowersList() {
      return followers_;
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends greptime.v1.meta.Common.PeerOrBuilder> 
        getFollowersOrBuilderList() {
      return followers_;
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    @java.lang.Override
    public int getFollowersCount() {
      return followers_.size();
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.Peer getFollowers(int index) {
      return followers_.get(index);
    }
    /**
     * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
     */
    @java.lang.Override
    public greptime.v1.meta.Common.PeerOrBuilder getFollowersOrBuilder(
        int index) {
      return followers_.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 (header_ != null) {
        output.writeMessage(1, getHeader());
      }
      if (leader_ != null) {
        output.writeMessage(2, getLeader());
      }
      for (int i = 0; i < followers_.size(); i++) {
        output.writeMessage(3, followers_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (header_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getHeader());
      }
      if (leader_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getLeader());
      }
      for (int i = 0; i < followers_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, followers_.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.ClusterOuterClass.MetasrvPeersResponse)) {
        return super.equals(obj);
      }
      greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse other = (greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse) obj;

      if (hasHeader() != other.hasHeader()) return false;
      if (hasHeader()) {
        if (!getHeader()
            .equals(other.getHeader())) return false;
      }
      if (hasLeader() != other.hasLeader()) return false;
      if (hasLeader()) {
        if (!getLeader()
            .equals(other.getLeader())) return false;
      }
      if (!getFollowersList()
          .equals(other.getFollowersList())) 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 (hasHeader()) {
        hash = (37 * hash) + HEADER_FIELD_NUMBER;
        hash = (53 * hash) + getHeader().hashCode();
      }
      if (hasLeader()) {
        hash = (37 * hash) + LEADER_FIELD_NUMBER;
        hash = (53 * hash) + getLeader().hashCode();
      }
      if (getFollowersCount() > 0) {
        hash = (37 * hash) + FOLLOWERS_FIELD_NUMBER;
        hash = (53 * hash) + getFollowersList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse 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.ClusterOuterClass.MetasrvPeersResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse 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.ClusterOuterClass.MetasrvPeersResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse 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.ClusterOuterClass.MetasrvPeersResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse 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.ClusterOuterClass.MetasrvPeersResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse 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.ClusterOuterClass.MetasrvPeersResponse 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.MetasrvPeersResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:greptime.v1.meta.MetasrvPeersResponse)
        greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return greptime.v1.meta.ClusterOuterClass.internal_static_greptime_v1_meta_MetasrvPeersResponse_descriptor;
      }

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

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

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getFollowersFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (headerBuilder_ == null) {
          header_ = null;
        } else {
          header_ = null;
          headerBuilder_ = null;
        }
        if (leaderBuilder_ == null) {
          leader_ = null;
        } else {
          leader_ = null;
          leaderBuilder_ = null;
        }
        if (followersBuilder_ == null) {
          followers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          followersBuilder_.clear();
        }
        return this;
      }

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

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

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

      @java.lang.Override
      public greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse buildPartial() {
        greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse result = new greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse(this);
        int from_bitField0_ = bitField0_;
        if (headerBuilder_ == null) {
          result.header_ = header_;
        } else {
          result.header_ = headerBuilder_.build();
        }
        if (leaderBuilder_ == null) {
          result.leader_ = leader_;
        } else {
          result.leader_ = leaderBuilder_.build();
        }
        if (followersBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            followers_ = java.util.Collections.unmodifiableList(followers_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.followers_ = followers_;
        } else {
          result.followers_ = followersBuilder_.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.ClusterOuterClass.MetasrvPeersResponse) {
          return mergeFrom((greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse other) {
        if (other == greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse.getDefaultInstance()) return this;
        if (other.hasHeader()) {
          mergeHeader(other.getHeader());
        }
        if (other.hasLeader()) {
          mergeLeader(other.getLeader());
        }
        if (followersBuilder_ == null) {
          if (!other.followers_.isEmpty()) {
            if (followers_.isEmpty()) {
              followers_ = other.followers_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureFollowersIsMutable();
              followers_.addAll(other.followers_);
            }
            onChanged();
          }
        } else {
          if (!other.followers_.isEmpty()) {
            if (followersBuilder_.isEmpty()) {
              followersBuilder_.dispose();
              followersBuilder_ = null;
              followers_ = other.followers_;
              bitField0_ = (bitField0_ & ~0x00000001);
              followersBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getFollowersFieldBuilder() : null;
            } else {
              followersBuilder_.addAllMessages(other.followers_);
            }
          }
        }
        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.ClusterOuterClass.MetasrvPeersResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private greptime.v1.meta.Common.ResponseHeader header_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> headerBuilder_;
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       * @return Whether the header field is set.
       */
      public boolean hasHeader() {
        return headerBuilder_ != null || header_ != null;
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       * @return The header.
       */
      public greptime.v1.meta.Common.ResponseHeader getHeader() {
        if (headerBuilder_ == null) {
          return header_ == null ? greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_;
        } else {
          return headerBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      public Builder setHeader(greptime.v1.meta.Common.ResponseHeader value) {
        if (headerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          header_ = value;
          onChanged();
        } else {
          headerBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      public Builder setHeader(
          greptime.v1.meta.Common.ResponseHeader.Builder builderForValue) {
        if (headerBuilder_ == null) {
          header_ = builderForValue.build();
          onChanged();
        } else {
          headerBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      public Builder mergeHeader(greptime.v1.meta.Common.ResponseHeader value) {
        if (headerBuilder_ == null) {
          if (header_ != null) {
            header_ =
              greptime.v1.meta.Common.ResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial();
          } else {
            header_ = value;
          }
          onChanged();
        } else {
          headerBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      public Builder clearHeader() {
        if (headerBuilder_ == null) {
          header_ = null;
          onChanged();
        } else {
          header_ = null;
          headerBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      public greptime.v1.meta.Common.ResponseHeader.Builder getHeaderBuilder() {
        
        onChanged();
        return getHeaderFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      public greptime.v1.meta.Common.ResponseHeaderOrBuilder getHeaderOrBuilder() {
        if (headerBuilder_ != null) {
          return headerBuilder_.getMessageOrBuilder();
        } else {
          return header_ == null ?
              greptime.v1.meta.Common.ResponseHeader.getDefaultInstance() : header_;
        }
      }
      /**
       * <code>.greptime.v1.meta.ResponseHeader header = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder> 
          getHeaderFieldBuilder() {
        if (headerBuilder_ == null) {
          headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Common.ResponseHeader, greptime.v1.meta.Common.ResponseHeader.Builder, greptime.v1.meta.Common.ResponseHeaderOrBuilder>(
                  getHeader(),
                  getParentForChildren(),
                  isClean());
          header_ = null;
        }
        return headerBuilder_;
      }

      private greptime.v1.meta.Common.Peer leader_;
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder> leaderBuilder_;
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       * @return Whether the leader field is set.
       */
      public boolean hasLeader() {
        return leaderBuilder_ != null || leader_ != null;
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       * @return The leader.
       */
      public greptime.v1.meta.Common.Peer getLeader() {
        if (leaderBuilder_ == null) {
          return leader_ == null ? greptime.v1.meta.Common.Peer.getDefaultInstance() : leader_;
        } else {
          return leaderBuilder_.getMessage();
        }
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      public Builder setLeader(greptime.v1.meta.Common.Peer value) {
        if (leaderBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          leader_ = value;
          onChanged();
        } else {
          leaderBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      public Builder setLeader(
          greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (leaderBuilder_ == null) {
          leader_ = builderForValue.build();
          onChanged();
        } else {
          leaderBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      public Builder mergeLeader(greptime.v1.meta.Common.Peer value) {
        if (leaderBuilder_ == null) {
          if (leader_ != null) {
            leader_ =
              greptime.v1.meta.Common.Peer.newBuilder(leader_).mergeFrom(value).buildPartial();
          } else {
            leader_ = value;
          }
          onChanged();
        } else {
          leaderBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      public Builder clearLeader() {
        if (leaderBuilder_ == null) {
          leader_ = null;
          onChanged();
        } else {
          leader_ = null;
          leaderBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder getLeaderBuilder() {
        
        onChanged();
        return getLeaderFieldBuilder().getBuilder();
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      public greptime.v1.meta.Common.PeerOrBuilder getLeaderOrBuilder() {
        if (leaderBuilder_ != null) {
          return leaderBuilder_.getMessageOrBuilder();
        } else {
          return leader_ == null ?
              greptime.v1.meta.Common.Peer.getDefaultInstance() : leader_;
        }
      }
      /**
       * <code>.greptime.v1.meta.Peer leader = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder> 
          getLeaderFieldBuilder() {
        if (leaderBuilder_ == null) {
          leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder>(
                  getLeader(),
                  getParentForChildren(),
                  isClean());
          leader_ = null;
        }
        return leaderBuilder_;
      }

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

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

      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public java.util.List<greptime.v1.meta.Common.Peer> getFollowersList() {
        if (followersBuilder_ == null) {
          return java.util.Collections.unmodifiableList(followers_);
        } else {
          return followersBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public int getFollowersCount() {
        if (followersBuilder_ == null) {
          return followers_.size();
        } else {
          return followersBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public greptime.v1.meta.Common.Peer getFollowers(int index) {
        if (followersBuilder_ == null) {
          return followers_.get(index);
        } else {
          return followersBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder setFollowers(
          int index, greptime.v1.meta.Common.Peer value) {
        if (followersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFollowersIsMutable();
          followers_.set(index, value);
          onChanged();
        } else {
          followersBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder setFollowers(
          int index, greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (followersBuilder_ == null) {
          ensureFollowersIsMutable();
          followers_.set(index, builderForValue.build());
          onChanged();
        } else {
          followersBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder addFollowers(greptime.v1.meta.Common.Peer value) {
        if (followersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFollowersIsMutable();
          followers_.add(value);
          onChanged();
        } else {
          followersBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder addFollowers(
          int index, greptime.v1.meta.Common.Peer value) {
        if (followersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureFollowersIsMutable();
          followers_.add(index, value);
          onChanged();
        } else {
          followersBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder addFollowers(
          greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (followersBuilder_ == null) {
          ensureFollowersIsMutable();
          followers_.add(builderForValue.build());
          onChanged();
        } else {
          followersBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder addFollowers(
          int index, greptime.v1.meta.Common.Peer.Builder builderForValue) {
        if (followersBuilder_ == null) {
          ensureFollowersIsMutable();
          followers_.add(index, builderForValue.build());
          onChanged();
        } else {
          followersBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder addAllFollowers(
          java.lang.Iterable<? extends greptime.v1.meta.Common.Peer> values) {
        if (followersBuilder_ == null) {
          ensureFollowersIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, followers_);
          onChanged();
        } else {
          followersBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder clearFollowers() {
        if (followersBuilder_ == null) {
          followers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          followersBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public Builder removeFollowers(int index) {
        if (followersBuilder_ == null) {
          ensureFollowersIsMutable();
          followers_.remove(index);
          onChanged();
        } else {
          followersBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder getFollowersBuilder(
          int index) {
        return getFollowersFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public greptime.v1.meta.Common.PeerOrBuilder getFollowersOrBuilder(
          int index) {
        if (followersBuilder_ == null) {
          return followers_.get(index);  } else {
          return followersBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public java.util.List<? extends greptime.v1.meta.Common.PeerOrBuilder> 
           getFollowersOrBuilderList() {
        if (followersBuilder_ != null) {
          return followersBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(followers_);
        }
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder addFollowersBuilder() {
        return getFollowersFieldBuilder().addBuilder(
            greptime.v1.meta.Common.Peer.getDefaultInstance());
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public greptime.v1.meta.Common.Peer.Builder addFollowersBuilder(
          int index) {
        return getFollowersFieldBuilder().addBuilder(
            index, greptime.v1.meta.Common.Peer.getDefaultInstance());
      }
      /**
       * <code>repeated .greptime.v1.meta.Peer followers = 3;</code>
       */
      public java.util.List<greptime.v1.meta.Common.Peer.Builder> 
           getFollowersBuilderList() {
        return getFollowersFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder> 
          getFollowersFieldBuilder() {
        if (followersBuilder_ == null) {
          followersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              greptime.v1.meta.Common.Peer, greptime.v1.meta.Common.Peer.Builder, greptime.v1.meta.Common.PeerOrBuilder>(
                  followers_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          followers_ = null;
        }
        return followersBuilder_;
      }
      @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.MetasrvPeersResponse)
    }

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

    public static greptime.v1.meta.ClusterOuterClass.MetasrvPeersResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_MetasrvPeersRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_MetasrvPeersRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_greptime_v1_meta_MetasrvPeersResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_greptime_v1_meta_MetasrvPeersResponse_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\036greptime/v1/meta/cluster.proto\022\020grepti" +
      "me.v1.meta\032\035greptime/v1/meta/common.prot" +
      "o\032\034greptime/v1/meta/store.proto\"F\n\023Metas" +
      "rvPeersRequest\022/\n\006header\030\001 \001(\0132\037.greptim" +
      "e.v1.meta.RequestHeader\"\233\001\n\024MetasrvPeers" +
      "Response\0220\n\006header\030\001 \001(\0132 .greptime.v1.m" +
      "eta.ResponseHeader\022&\n\006leader\030\002 \001(\0132\026.gre" +
      "ptime.v1.meta.Peer\022)\n\tfollowers\030\003 \003(\0132\026." +
      "greptime.v1.meta.Peer2\205\002\n\007Cluster\022Q\n\010Bat" +
      "chGet\022!.greptime.v1.meta.BatchGetRequest" +
      "\032\".greptime.v1.meta.BatchGetResponse\022H\n\005" +
      "Range\022\036.greptime.v1.meta.RangeRequest\032\037." +
      "greptime.v1.meta.RangeResponse\022]\n\014Metasr" +
      "vPeers\022%.greptime.v1.meta.MetasrvPeersRe" +
      "quest\032&.greptime.v1.meta.MetasrvPeersRes" +
      "ponseB<Z:github.com/GreptimeTeam/greptim" +
      "e-proto/go/greptime/v1/metab\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          greptime.v1.meta.Common.getDescriptor(),
          greptime.v1.meta.StoreOuterClass.getDescriptor(),
        });
    internal_static_greptime_v1_meta_MetasrvPeersRequest_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_greptime_v1_meta_MetasrvPeersRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_MetasrvPeersRequest_descriptor,
        new java.lang.String[] { "Header", });
    internal_static_greptime_v1_meta_MetasrvPeersResponse_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_greptime_v1_meta_MetasrvPeersResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_greptime_v1_meta_MetasrvPeersResponse_descriptor,
        new java.lang.String[] { "Header", "Leader", "Followers", });
    greptime.v1.meta.Common.getDescriptor();
    greptime.v1.meta.StoreOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
