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

com.tencent.polaris.specification.api.v1.service.manage.RequestProto Maven / Gradle / Ivy

There is a newer version: 2.0.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: request.proto

package com.tencent.polaris.specification.api.v1.service.manage;

public final class RequestProto {
  private RequestProto() {}
  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 DiscoverFilterOrBuilder extends
      // @@protoc_insertion_point(interface_extends:v1.DiscoverFilter)
      com.google.protobuf.MessageOrBuilder {

    /**
     * bool OnlyHealthyInstance = 1;
     * @return The onlyHealthyInstance.
     */
    boolean getOnlyHealthyInstance();
  }
  /**
   * Protobuf type {@code v1.DiscoverFilter}
   */
  public static final class DiscoverFilter extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:v1.DiscoverFilter)
      DiscoverFilterOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DiscoverFilter.newBuilder() to construct.
    private DiscoverFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DiscoverFilter() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverFilter_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverFilter_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.class, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder.class);
    }

    public static final int ONLYHEALTHYINSTANCE_FIELD_NUMBER = 1;
    private boolean onlyHealthyInstance_;
    /**
     * bool OnlyHealthyInstance = 1;
     * @return The onlyHealthyInstance.
     */
    @java.lang.Override
    public boolean getOnlyHealthyInstance() {
      return onlyHealthyInstance_;
    }

    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 (onlyHealthyInstance_ != false) {
        output.writeBool(1, onlyHealthyInstance_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (onlyHealthyInstance_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1, onlyHealthyInstance_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter)) {
        return super.equals(obj);
      }
      com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter other = (com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter) obj;

      if (getOnlyHealthyInstance()
          != other.getOnlyHealthyInstance()) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ONLYHEALTHYINSTANCE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getOnlyHealthyInstance());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter 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 com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter 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 com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter 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(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter 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 v1.DiscoverFilter}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:v1.DiscoverFilter)
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverFilter_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverFilter_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.class, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder.class);
      }

      // Construct using com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        onlyHealthyInstance_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverFilter_descriptor;
      }

      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter getDefaultInstanceForType() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.getDefaultInstance();
      }

      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter build() {
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter buildPartial() {
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter result = new com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter(this);
        result.onlyHealthyInstance_ = onlyHealthyInstance_;
        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 com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter) {
          return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter other) {
        if (other == com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.getDefaultInstance()) return this;
        if (other.getOnlyHealthyInstance() != false) {
          setOnlyHealthyInstance(other.getOnlyHealthyInstance());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                onlyHealthyInstance_ = input.readBool();

                break;
              } // case 8
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private boolean onlyHealthyInstance_ ;
      /**
       * bool OnlyHealthyInstance = 1;
       * @return The onlyHealthyInstance.
       */
      @java.lang.Override
      public boolean getOnlyHealthyInstance() {
        return onlyHealthyInstance_;
      }
      /**
       * bool OnlyHealthyInstance = 1;
       * @param value The onlyHealthyInstance to set.
       * @return This builder for chaining.
       */
      public Builder setOnlyHealthyInstance(boolean value) {
        
        onlyHealthyInstance_ = value;
        onChanged();
        return this;
      }
      /**
       * bool OnlyHealthyInstance = 1;
       * @return This builder for chaining.
       */
      public Builder clearOnlyHealthyInstance() {
        
        onlyHealthyInstance_ = false;
        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:v1.DiscoverFilter)
    }

    // @@protoc_insertion_point(class_scope:v1.DiscoverFilter)
    private static final com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter();
    }

    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public DiscoverFilter parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface DiscoverRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:v1.DiscoverRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .v1.DiscoverRequest.DiscoverRequestType type = 1;
     * @return The enum numeric value on the wire for type.
     */
    int getTypeValue();
    /**
     * .v1.DiscoverRequest.DiscoverRequestType type = 1;
     * @return The type.
     */
    com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType getType();

    /**
     * .v1.Service service = 2;
     * @return Whether the service field is set.
     */
    boolean hasService();
    /**
     * .v1.Service service = 2;
     * @return The service.
     */
    com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService();
    /**
     * .v1.Service service = 2;
     */
    com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder();

    /**
     * .v1.DiscoverFilter Filter = 30;
     * @return Whether the filter field is set.
     */
    boolean hasFilter();
    /**
     * .v1.DiscoverFilter Filter = 30;
     * @return The filter.
     */
    com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter getFilter();
    /**
     * .v1.DiscoverFilter Filter = 30;
     */
    com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder getFilterOrBuilder();
  }
  /**
   * Protobuf type {@code v1.DiscoverRequest}
   */
  public static final class DiscoverRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:v1.DiscoverRequest)
      DiscoverRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use DiscoverRequest.newBuilder() to construct.
    private DiscoverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private DiscoverRequest() {
      type_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.class, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.Builder.class);
    }

    /**
     * Protobuf enum {@code v1.DiscoverRequest.DiscoverRequestType}
     */
    public enum DiscoverRequestType
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * UNKNOWN = 0;
       */
      UNKNOWN(0),
      /**
       * INSTANCE = 1;
       */
      INSTANCE(1),
      /**
       * CLUSTER = 2;
       */
      CLUSTER(2),
      /**
       * ROUTING = 3;
       */
      ROUTING(3),
      /**
       * RATE_LIMIT = 4;
       */
      RATE_LIMIT(4),
      /**
       * CIRCUIT_BREAKER = 5;
       */
      CIRCUIT_BREAKER(5),
      /**
       * SERVICES = 6;
       */
      SERVICES(6),
      /**
       * NAMESPACES = 12;
       */
      NAMESPACES(12),
      /**
       * FAULT_DETECTOR = 13;
       */
      FAULT_DETECTOR(13),
      /**
       * LANE = 100;
       */
      LANE(100),
      UNRECOGNIZED(-1),
      ;

      /**
       * UNKNOWN = 0;
       */
      public static final int UNKNOWN_VALUE = 0;
      /**
       * INSTANCE = 1;
       */
      public static final int INSTANCE_VALUE = 1;
      /**
       * CLUSTER = 2;
       */
      public static final int CLUSTER_VALUE = 2;
      /**
       * ROUTING = 3;
       */
      public static final int ROUTING_VALUE = 3;
      /**
       * RATE_LIMIT = 4;
       */
      public static final int RATE_LIMIT_VALUE = 4;
      /**
       * CIRCUIT_BREAKER = 5;
       */
      public static final int CIRCUIT_BREAKER_VALUE = 5;
      /**
       * SERVICES = 6;
       */
      public static final int SERVICES_VALUE = 6;
      /**
       * NAMESPACES = 12;
       */
      public static final int NAMESPACES_VALUE = 12;
      /**
       * FAULT_DETECTOR = 13;
       */
      public static final int FAULT_DETECTOR_VALUE = 13;
      /**
       * LANE = 100;
       */
      public static final int LANE_VALUE = 100;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static DiscoverRequestType valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static DiscoverRequestType forNumber(int value) {
        switch (value) {
          case 0: return UNKNOWN;
          case 1: return INSTANCE;
          case 2: return CLUSTER;
          case 3: return ROUTING;
          case 4: return RATE_LIMIT;
          case 5: return CIRCUIT_BREAKER;
          case 6: return SERVICES;
          case 12: return NAMESPACES;
          case 13: return FAULT_DETECTOR;
          case 100: return LANE;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          DiscoverRequestType> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap() {
              public DiscoverRequestType findValueByNumber(int number) {
                return DiscoverRequestType.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.getDescriptor().getEnumTypes().get(0);
      }

      private static final DiscoverRequestType[] VALUES = values();

      public static DiscoverRequestType valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private DiscoverRequestType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:v1.DiscoverRequest.DiscoverRequestType)
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    private int type_;
    /**
     * .v1.DiscoverRequest.DiscoverRequestType type = 1;
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override public int getTypeValue() {
      return type_;
    }
    /**
     * .v1.DiscoverRequest.DiscoverRequestType type = 1;
     * @return The type.
     */
    @java.lang.Override public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType getType() {
      @SuppressWarnings("deprecation")
      com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType result = com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType.valueOf(type_);
      return result == null ? com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType.UNRECOGNIZED : result;
    }

    public static final int SERVICE_FIELD_NUMBER = 2;
    private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service service_;
    /**
     * .v1.Service service = 2;
     * @return Whether the service field is set.
     */
    @java.lang.Override
    public boolean hasService() {
      return service_ != null;
    }
    /**
     * .v1.Service service = 2;
     * @return The service.
     */
    @java.lang.Override
    public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService() {
      return service_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
    }
    /**
     * .v1.Service service = 2;
     */
    @java.lang.Override
    public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder() {
      return getService();
    }

    public static final int FILTER_FIELD_NUMBER = 30;
    private com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter filter_;
    /**
     * .v1.DiscoverFilter Filter = 30;
     * @return Whether the filter field is set.
     */
    @java.lang.Override
    public boolean hasFilter() {
      return filter_ != null;
    }
    /**
     * .v1.DiscoverFilter Filter = 30;
     * @return The filter.
     */
    @java.lang.Override
    public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter getFilter() {
      return filter_ == null ? com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.getDefaultInstance() : filter_;
    }
    /**
     * .v1.DiscoverFilter Filter = 30;
     */
    @java.lang.Override
    public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder getFilterOrBuilder() {
      return getFilter();
    }

    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 (type_ != com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType.UNKNOWN.getNumber()) {
        output.writeEnum(1, type_);
      }
      if (service_ != null) {
        output.writeMessage(2, getService());
      }
      if (filter_ != null) {
        output.writeMessage(30, getFilter());
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (type_ != com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType.UNKNOWN.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, type_);
      }
      if (service_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getService());
      }
      if (filter_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(30, getFilter());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest)) {
        return super.equals(obj);
      }
      com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest other = (com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest) obj;

      if (type_ != other.type_) return false;
      if (hasService() != other.hasService()) return false;
      if (hasService()) {
        if (!getService()
            .equals(other.getService())) return false;
      }
      if (hasFilter() != other.hasFilter()) return false;
      if (hasFilter()) {
        if (!getFilter()
            .equals(other.getFilter())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + type_;
      if (hasService()) {
        hash = (37 * hash) + SERVICE_FIELD_NUMBER;
        hash = (53 * hash) + getService().hashCode();
      }
      if (hasFilter()) {
        hash = (37 * hash) + FILTER_FIELD_NUMBER;
        hash = (53 * hash) + getFilter().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest 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 com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest 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 com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest 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(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest 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 v1.DiscoverRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:v1.DiscoverRequest)
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.class, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.Builder.class);
      }

      // Construct using com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        type_ = 0;

        if (serviceBuilder_ == null) {
          service_ = null;
        } else {
          service_ = null;
          serviceBuilder_ = null;
        }
        if (filterBuilder_ == null) {
          filter_ = null;
        } else {
          filter_ = null;
          filterBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.internal_static_v1_DiscoverRequest_descriptor;
      }

      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest getDefaultInstanceForType() {
        return com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest build() {
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest buildPartial() {
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest result = new com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest(this);
        result.type_ = type_;
        if (serviceBuilder_ == null) {
          result.service_ = service_;
        } else {
          result.service_ = serviceBuilder_.build();
        }
        if (filterBuilder_ == null) {
          result.filter_ = filter_;
        } else {
          result.filter_ = filterBuilder_.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 com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest) {
          return mergeFrom((com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest other) {
        if (other == com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.getDefaultInstance()) return this;
        if (other.type_ != 0) {
          setTypeValue(other.getTypeValue());
        }
        if (other.hasService()) {
          mergeService(other.getService());
        }
        if (other.hasFilter()) {
          mergeFilter(other.getFilter());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                type_ = input.readEnum();

                break;
              } // case 8
              case 18: {
                input.readMessage(
                    getServiceFieldBuilder().getBuilder(),
                    extensionRegistry);

                break;
              } // case 18
              case 242: {
                input.readMessage(
                    getFilterFieldBuilder().getBuilder(),
                    extensionRegistry);

                break;
              } // case 242
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int type_ = 0;
      /**
       * .v1.DiscoverRequest.DiscoverRequestType type = 1;
       * @return The enum numeric value on the wire for type.
       */
      @java.lang.Override public int getTypeValue() {
        return type_;
      }
      /**
       * .v1.DiscoverRequest.DiscoverRequestType type = 1;
       * @param value The enum numeric value on the wire for type to set.
       * @return This builder for chaining.
       */
      public Builder setTypeValue(int value) {
        
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * .v1.DiscoverRequest.DiscoverRequestType type = 1;
       * @return The type.
       */
      @java.lang.Override
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType getType() {
        @SuppressWarnings("deprecation")
        com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType result = com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType.valueOf(type_);
        return result == null ? com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType.UNRECOGNIZED : result;
      }
      /**
       * .v1.DiscoverRequest.DiscoverRequestType type = 1;
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.DiscoverRequestType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .v1.DiscoverRequest.DiscoverRequestType type = 1;
       * @return This builder for chaining.
       */
      public Builder clearType() {
        
        type_ = 0;
        onChanged();
        return this;
      }

      private com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service service_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> serviceBuilder_;
      /**
       * .v1.Service service = 2;
       * @return Whether the service field is set.
       */
      public boolean hasService() {
        return serviceBuilder_ != null || service_ != null;
      }
      /**
       * .v1.Service service = 2;
       * @return The service.
       */
      public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service getService() {
        if (serviceBuilder_ == null) {
          return service_ == null ? com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
        } else {
          return serviceBuilder_.getMessage();
        }
      }
      /**
       * .v1.Service service = 2;
       */
      public Builder setService(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
        if (serviceBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          service_ = value;
          onChanged();
        } else {
          serviceBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .v1.Service service = 2;
       */
      public Builder setService(
          com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder builderForValue) {
        if (serviceBuilder_ == null) {
          service_ = builderForValue.build();
          onChanged();
        } else {
          serviceBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .v1.Service service = 2;
       */
      public Builder mergeService(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service value) {
        if (serviceBuilder_ == null) {
          if (service_ != null) {
            service_ =
              com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.newBuilder(service_).mergeFrom(value).buildPartial();
          } else {
            service_ = value;
          }
          onChanged();
        } else {
          serviceBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .v1.Service service = 2;
       */
      public Builder clearService() {
        if (serviceBuilder_ == null) {
          service_ = null;
          onChanged();
        } else {
          service_ = null;
          serviceBuilder_ = null;
        }

        return this;
      }
      /**
       * .v1.Service service = 2;
       */
      public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder getServiceBuilder() {
        
        onChanged();
        return getServiceFieldBuilder().getBuilder();
      }
      /**
       * .v1.Service service = 2;
       */
      public com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder getServiceOrBuilder() {
        if (serviceBuilder_ != null) {
          return serviceBuilder_.getMessageOrBuilder();
        } else {
          return service_ == null ?
              com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.getDefaultInstance() : service_;
        }
      }
      /**
       * .v1.Service service = 2;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder> 
          getServiceFieldBuilder() {
        if (serviceBuilder_ == null) {
          serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Service.Builder, com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.ServiceOrBuilder>(
                  getService(),
                  getParentForChildren(),
                  isClean());
          service_ = null;
        }
        return serviceBuilder_;
      }

      private com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter filter_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder> filterBuilder_;
      /**
       * .v1.DiscoverFilter Filter = 30;
       * @return Whether the filter field is set.
       */
      public boolean hasFilter() {
        return filterBuilder_ != null || filter_ != null;
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       * @return The filter.
       */
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter getFilter() {
        if (filterBuilder_ == null) {
          return filter_ == null ? com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.getDefaultInstance() : filter_;
        } else {
          return filterBuilder_.getMessage();
        }
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      public Builder setFilter(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter value) {
        if (filterBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          filter_ = value;
          onChanged();
        } else {
          filterBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      public Builder setFilter(
          com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder builderForValue) {
        if (filterBuilder_ == null) {
          filter_ = builderForValue.build();
          onChanged();
        } else {
          filterBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      public Builder mergeFilter(com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter value) {
        if (filterBuilder_ == null) {
          if (filter_ != null) {
            filter_ =
              com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
          } else {
            filter_ = value;
          }
          onChanged();
        } else {
          filterBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      public Builder clearFilter() {
        if (filterBuilder_ == null) {
          filter_ = null;
          onChanged();
        } else {
          filter_ = null;
          filterBuilder_ = null;
        }

        return this;
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder getFilterBuilder() {
        
        onChanged();
        return getFilterFieldBuilder().getBuilder();
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder getFilterOrBuilder() {
        if (filterBuilder_ != null) {
          return filterBuilder_.getMessageOrBuilder();
        } else {
          return filter_ == null ?
              com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.getDefaultInstance() : filter_;
        }
      }
      /**
       * .v1.DiscoverFilter Filter = 30;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder> 
          getFilterFieldBuilder() {
        if (filterBuilder_ == null) {
          filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilter.Builder, com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverFilterOrBuilder>(
                  getFilter(),
                  getParentForChildren(),
                  isClean());
          filter_ = null;
        }
        return filterBuilder_;
      }
      @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:v1.DiscoverRequest)
    }

    // @@protoc_insertion_point(class_scope:v1.DiscoverRequest)
    private static final com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest();
    }

    public static com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public DiscoverRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

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

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

    @java.lang.Override
    public com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_v1_DiscoverFilter_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_v1_DiscoverFilter_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_v1_DiscoverRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_v1_DiscoverRequest_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\rrequest.proto\022\002v1\032\rservice.proto\032\016cont" +
      "ract.proto\"-\n\016DiscoverFilter\022\033\n\023OnlyHeal" +
      "thyInstance\030\001 \001(\010\"\312\002\n\017DiscoverRequest\0225\n" +
      "\004type\030\001 \001(\0162\'.v1.DiscoverRequest.Discove" +
      "rRequestType\022\034\n\007service\030\002 \001(\0132\013.v1.Servi" +
      "ce\022\"\n\006Filter\030\036 \001(\0132\022.v1.DiscoverFilter\"\267" +
      "\001\n\023DiscoverRequestType\022\013\n\007UNKNOWN\020\000\022\014\n\010I" +
      "NSTANCE\020\001\022\013\n\007CLUSTER\020\002\022\013\n\007ROUTING\020\003\022\016\n\nR" +
      "ATE_LIMIT\020\004\022\023\n\017CIRCUIT_BREAKER\020\005\022\014\n\010SERV" +
      "ICES\020\006\022\016\n\nNAMESPACES\020\014\022\022\n\016FAULT_DETECTOR" +
      "\020\r\022\010\n\004LANE\020d\"\004\010\007\020\013\"\004\010\016\020cJ\004\010\003\020\005B\215\001\n7com.t" +
      "encent.polaris.specification.api.v1.serv" +
      "ice.manageB\014RequestProtoZDgithub.com/pol" +
      "arismesh/specification/source/go/api/v1/" +
      "service_manageb\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.getDescriptor(),
          com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.getDescriptor(),
        });
    internal_static_v1_DiscoverFilter_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_v1_DiscoverFilter_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_v1_DiscoverFilter_descriptor,
        new java.lang.String[] { "OnlyHealthyInstance", });
    internal_static_v1_DiscoverRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_v1_DiscoverRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_v1_DiscoverRequest_descriptor,
        new java.lang.String[] { "Type", "Service", "Filter", });
    com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.getDescriptor();
    com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy