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

com.tencent.polaris.client.pb.RateLimitProto Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ratelimit.proto

package com.tencent.polaris.client.pb;

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

    /**
     * 
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ java.util.List getRulesList(); /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ com.tencent.polaris.client.pb.RateLimitProto.Rule getRules(int index); /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ int getRulesCount(); /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ java.util.List getRulesOrBuilderList(); /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder getRulesOrBuilder( int index); /** *
     * 限流规则汇总的revision信息
     * 
* * .google.protobuf.StringValue revision = 2; * @return Whether the revision field is set. */ boolean hasRevision(); /** *
     * 限流规则汇总的revision信息
     * 
* * .google.protobuf.StringValue revision = 2; * @return The revision. */ com.google.protobuf.StringValue getRevision(); /** *
     * 限流规则汇总的revision信息
     * 
* * .google.protobuf.StringValue revision = 2; */ com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder(); } /** *
   * 同一服务下限流规则集合
   * 
* * Protobuf type {@code v1.RateLimit} */ public static final class RateLimit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.RateLimit) RateLimitOrBuilder { private static final long serialVersionUID = 0L; // Use RateLimit.newBuilder() to construct. private RateLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RateLimit() { rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RateLimit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RateLimit( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rules_.add( input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.Rule.parser(), extensionRegistry)); break; } case 18: { com.google.protobuf.StringValue.Builder subBuilder = null; if (revision_ != null) { subBuilder = revision_.toBuilder(); } revision_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revision_); revision_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.RateLimit.class, com.tencent.polaris.client.pb.RateLimitProto.RateLimit.Builder.class); } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule getRules(int index) { return rules_.get(index); } /** *
     * 限流规则集合
     * 
* * repeated .v1.Rule rules = 1; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } public static final int REVISION_FIELD_NUMBER = 2; private com.google.protobuf.StringValue revision_; /** *
     * 限流规则汇总的revision信息
     * 
* * .google.protobuf.StringValue revision = 2; * @return Whether the revision field is set. */ @java.lang.Override public boolean hasRevision() { return revision_ != null; } /** *
     * 限流规则汇总的revision信息
     * 
* * .google.protobuf.StringValue revision = 2; * @return The revision. */ @java.lang.Override public com.google.protobuf.StringValue getRevision() { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } /** *
     * 限流规则汇总的revision信息
     * 
* * .google.protobuf.StringValue revision = 2; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder() { return getRevision(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rules_.size(); i++) { output.writeMessage(1, rules_.get(i)); } if (revision_ != null) { output.writeMessage(2, getRevision()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rules_.get(i)); } if (revision_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRevision()); } 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 com.tencent.polaris.client.pb.RateLimitProto.RateLimit)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.RateLimit other = (com.tencent.polaris.client.pb.RateLimitProto.RateLimit) obj; if (!getRulesList() .equals(other.getRulesList())) return false; if (hasRevision() != other.hasRevision()) return false; if (hasRevision()) { if (!getRevision() .equals(other.getRevision())) 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 (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } if (hasRevision()) { hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit 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.client.pb.RateLimitProto.RateLimit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit 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.client.pb.RateLimitProto.RateLimit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit 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.client.pb.RateLimitProto.RateLimit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit 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.client.pb.RateLimitProto.RateLimit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit 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.client.pb.RateLimitProto.RateLimit 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.RateLimit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.RateLimit) com.tencent.polaris.client.pb.RateLimitProto.RateLimitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.RateLimit.class, com.tencent.polaris.client.pb.RateLimitProto.RateLimit.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.RateLimit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rulesBuilder_.clear(); } if (revisionBuilder_ == null) { revision_ = null; } else { revision_ = null; revisionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimit_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimit getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.RateLimit.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimit build() { com.tencent.polaris.client.pb.RateLimitProto.RateLimit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimit buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.RateLimit result = new com.tencent.polaris.client.pb.RateLimitProto.RateLimit(this); int from_bitField0_ = bitField0_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000001); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } if (revisionBuilder_ == null) { result.revision_ = revision_; } else { result.revision_ = revisionBuilder_.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.client.pb.RateLimitProto.RateLimit) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.RateLimit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.RateLimit other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.RateLimit.getDefaultInstance()) return this; if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } if (other.hasRevision()) { mergeRevision(other.getRevision()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.RateLimit parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.RateLimit) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Rule, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder, com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder> rulesBuilder_; /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.Rule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder setRules( int index, com.tencent.polaris.client.pb.RateLimitProto.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder setRules( int index, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder addRules(com.tencent.polaris.client.pb.RateLimitProto.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder addRules( int index, com.tencent.polaris.client.pb.RateLimitProto.Rule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder addRules( com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder addRules( int index, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( com.tencent.polaris.client.pb.RateLimitProto.Rule.getDefaultInstance()); } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, com.tencent.polaris.client.pb.RateLimitProto.Rule.getDefaultInstance()); } /** *
       * 限流规则集合
       * 
* * repeated .v1.Rule rules = 1; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Rule, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder, com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Rule, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder, com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder>( rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private com.google.protobuf.StringValue revision_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> revisionBuilder_; /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; * @return Whether the revision field is set. */ public boolean hasRevision() { return revisionBuilder_ != null || revision_ != null; } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; * @return The revision. */ public com.google.protobuf.StringValue getRevision() { if (revisionBuilder_ == null) { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } else { return revisionBuilder_.getMessage(); } } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ public Builder setRevision(com.google.protobuf.StringValue value) { if (revisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revision_ = value; onChanged(); } else { revisionBuilder_.setMessage(value); } return this; } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ public Builder setRevision( com.google.protobuf.StringValue.Builder builderForValue) { if (revisionBuilder_ == null) { revision_ = builderForValue.build(); onChanged(); } else { revisionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ public Builder mergeRevision(com.google.protobuf.StringValue value) { if (revisionBuilder_ == null) { if (revision_ != null) { revision_ = com.google.protobuf.StringValue.newBuilder(revision_).mergeFrom(value).buildPartial(); } else { revision_ = value; } onChanged(); } else { revisionBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ public Builder clearRevision() { if (revisionBuilder_ == null) { revision_ = null; onChanged(); } else { revision_ = null; revisionBuilder_ = null; } return this; } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ public com.google.protobuf.StringValue.Builder getRevisionBuilder() { onChanged(); return getRevisionFieldBuilder().getBuilder(); } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ public com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder() { if (revisionBuilder_ != null) { return revisionBuilder_.getMessageOrBuilder(); } else { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } } /** *
       * 限流规则汇总的revision信息
       * 
* * .google.protobuf.StringValue revision = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getRevisionFieldBuilder() { if (revisionBuilder_ == null) { revisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getRevision(), getParentForChildren(), isClean()); revision_ = null; } return revisionBuilder_; } @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.RateLimit) } // @@protoc_insertion_point(class_scope:v1.RateLimit) private static final com.tencent.polaris.client.pb.RateLimitProto.RateLimit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.RateLimit(); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RateLimit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RateLimit(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.RateLimit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Rule) com.google.protobuf.MessageOrBuilder { /** *
     * 限流规则唯一标识
     * 
* * .google.protobuf.StringValue id = 1; * @return Whether the id field is set. */ boolean hasId(); /** *
     * 限流规则唯一标识
     * 
* * .google.protobuf.StringValue id = 1; * @return The id. */ com.google.protobuf.StringValue getId(); /** *
     * 限流规则唯一标识
     * 
* * .google.protobuf.StringValue id = 1; */ com.google.protobuf.StringValueOrBuilder getIdOrBuilder(); /** *
     * 限流规则所属服务名
     * 
* * .google.protobuf.StringValue service = 2; * @return Whether the service field is set. */ boolean hasService(); /** *
     * 限流规则所属服务名
     * 
* * .google.protobuf.StringValue service = 2; * @return The service. */ com.google.protobuf.StringValue getService(); /** *
     * 限流规则所属服务名
     * 
* * .google.protobuf.StringValue service = 2; */ com.google.protobuf.StringValueOrBuilder getServiceOrBuilder(); /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 3; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 3; * @return The namespace. */ com.google.protobuf.StringValue getNamespace(); /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 3; */ com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder(); /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ int getSubsetCount(); /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ boolean containsSubset( java.lang.String key); /** * Use {@link #getSubsetMap()} instead. */ @java.lang.Deprecated java.util.Map getSubset(); /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ java.util.Map getSubsetMap(); /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ com.tencent.polaris.client.pb.ModelProto.MatchString getSubsetOrDefault( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString defaultValue); /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ com.tencent.polaris.client.pb.ModelProto.MatchString getSubsetOrThrow( java.lang.String key); /** *
     * 限流规则优先级,0值最高
     * 
* * .google.protobuf.UInt32Value priority = 5; * @return Whether the priority field is set. */ boolean hasPriority(); /** *
     * 限流规则优先级,0值最高
     * 
* * .google.protobuf.UInt32Value priority = 5; * @return The priority. */ com.google.protobuf.UInt32Value getPriority(); /** *
     * 限流规则优先级,0值最高
     * 
* * .google.protobuf.UInt32Value priority = 5; */ com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder(); /** * .v1.Rule.Resource resource = 6; * @return The enum numeric value on the wire for resource. */ int getResourceValue(); /** * .v1.Rule.Resource resource = 6; * @return The resource. */ com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource getResource(); /** * .v1.Rule.Type type = 7; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .v1.Rule.Type type = 7; * @return The type. */ com.tencent.polaris.client.pb.RateLimitProto.Rule.Type getType(); /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ int getLabelsCount(); /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ java.util.Map getLabelsMap(); /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ com.tencent.polaris.client.pb.ModelProto.MatchString getLabelsOrDefault( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString defaultValue); /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ com.tencent.polaris.client.pb.ModelProto.MatchString getLabelsOrThrow( java.lang.String key); /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ java.util.List getAmountsList(); /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ com.tencent.polaris.client.pb.RateLimitProto.Amount getAmounts(int index); /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ int getAmountsCount(); /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ java.util.List getAmountsOrBuilderList(); /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder getAmountsOrBuilder( int index); /** *
     * 限流动作,对应着客户端的插件名字
     * 
* * .google.protobuf.StringValue action = 10; * @return Whether the action field is set. */ boolean hasAction(); /** *
     * 限流动作,对应着客户端的插件名字
     * 
* * .google.protobuf.StringValue action = 10; * @return The action. */ com.google.protobuf.StringValue getAction(); /** *
     * 限流动作,对应着客户端的插件名字
     * 
* * .google.protobuf.StringValue action = 10; */ com.google.protobuf.StringValueOrBuilder getActionOrBuilder(); /** *
     * 是否停用该限流规则,默认启用
     * 
* * .google.protobuf.BoolValue disable = 11; * @return Whether the disable field is set. */ boolean hasDisable(); /** *
     * 是否停用该限流规则,默认启用
     * 
* * .google.protobuf.BoolValue disable = 11; * @return The disable. */ com.google.protobuf.BoolValue getDisable(); /** *
     * 是否停用该限流规则,默认启用
     * 
* * .google.protobuf.BoolValue disable = 11; */ com.google.protobuf.BoolValueOrBuilder getDisableOrBuilder(); /** *
     * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
     * 
* * .v1.Report report = 12; * @return Whether the report field is set. */ boolean hasReport(); /** *
     * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
     * 
* * .v1.Report report = 12; * @return The report. */ com.tencent.polaris.client.pb.RateLimitProto.Report getReport(); /** *
     * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
     * 
* * .v1.Report report = 12; */ com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder getReportOrBuilder(); /** *
     * 限流规则创建时间
     * 
* * .google.protobuf.StringValue ctime = 13; * @return Whether the ctime field is set. */ boolean hasCtime(); /** *
     * 限流规则创建时间
     * 
* * .google.protobuf.StringValue ctime = 13; * @return The ctime. */ com.google.protobuf.StringValue getCtime(); /** *
     * 限流规则创建时间
     * 
* * .google.protobuf.StringValue ctime = 13; */ com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder(); /** *
     * 限流规则修改时间
     * 
* * .google.protobuf.StringValue mtime = 14; * @return Whether the mtime field is set. */ boolean hasMtime(); /** *
     * 限流规则修改时间
     * 
* * .google.protobuf.StringValue mtime = 14; * @return The mtime. */ com.google.protobuf.StringValue getMtime(); /** *
     * 限流规则修改时间
     * 
* * .google.protobuf.StringValue mtime = 14; */ com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder(); /** *
     * 限流规则revision信息
     * 
* * .google.protobuf.StringValue revision = 15; * @return Whether the revision field is set. */ boolean hasRevision(); /** *
     * 限流规则revision信息
     * 
* * .google.protobuf.StringValue revision = 15; * @return The revision. */ com.google.protobuf.StringValue getRevision(); /** *
     * 限流规则revision信息
     * 
* * .google.protobuf.StringValue revision = 15; */ com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder(); /** *
     * 服务的TOKEN信息,仅用于控制台,discover接口不下发
     * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; * @return Whether the serviceToken field is set. */ boolean hasServiceToken(); /** *
     * 服务的TOKEN信息,仅用于控制台,discover接口不下发
     * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; * @return The serviceToken. */ com.google.protobuf.StringValue getServiceToken(); /** *
     * 服务的TOKEN信息,仅用于控制台,discover接口不下发
     * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder(); /** *
     * 配额调整算法
     * 
* * .v1.AmountAdjuster adjuster = 17; * @return Whether the adjuster field is set. */ boolean hasAdjuster(); /** *
     * 配额调整算法
     * 
* * .v1.AmountAdjuster adjuster = 17; * @return The adjuster. */ com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster getAdjuster(); /** *
     * 配额调整算法
     * 
* * .v1.AmountAdjuster adjuster = 17; */ com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder getAdjusterOrBuilder(); /** *
     * 通配符是否合并计算,默认分开计数
     * 
* * .google.protobuf.BoolValue regex_combine = 18; * @return Whether the regexCombine field is set. */ boolean hasRegexCombine(); /** *
     * 通配符是否合并计算,默认分开计数
     * 
* * .google.protobuf.BoolValue regex_combine = 18; * @return The regexCombine. */ com.google.protobuf.BoolValue getRegexCombine(); /** *
     * 通配符是否合并计算,默认分开计数
     * 
* * .google.protobuf.BoolValue regex_combine = 18; */ com.google.protobuf.BoolValueOrBuilder getRegexCombineOrBuilder(); /** * .v1.Rule.AmountMode amount_mode = 19; * @return The enum numeric value on the wire for amountMode. */ int getAmountModeValue(); /** * .v1.Rule.AmountMode amount_mode = 19; * @return The amountMode. */ com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode getAmountMode(); /** * .v1.Rule.FailoverType failover = 20; * @return The enum numeric value on the wire for failover. */ int getFailoverValue(); /** * .v1.Rule.FailoverType failover = 20; * @return The failover. */ com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType getFailover(); /** *
     * 分布式限流服务集群
     * 
* * .v1.RateLimitCluster cluster = 21; * @return Whether the cluster field is set. */ boolean hasCluster(); /** *
     * 分布式限流服务集群
     * 
* * .v1.RateLimitCluster cluster = 21; * @return The cluster. */ com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster getCluster(); /** *
     * 分布式限流服务集群
     * 
* * .v1.RateLimitCluster cluster = 21; */ com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder getClusterOrBuilder(); } /** *
   * 单个限流规则信息
   * 
* * Protobuf type {@code v1.Rule} */ public static final class Rule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Rule) RuleOrBuilder { private static final long serialVersionUID = 0L; // Use Rule.newBuilder() to construct. private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Rule() { resource_ = 0; type_ = 0; amounts_ = java.util.Collections.emptyList(); amountMode_ = 0; failover_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Rule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Rule( 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: { com.google.protobuf.StringValue.Builder subBuilder = null; if (id_ != null) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.StringValue.Builder subBuilder = null; if (service_ != null) { subBuilder = service_.toBuilder(); } service_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(service_); service_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.StringValue.Builder subBuilder = null; if (namespace_ != null) { subBuilder = namespace_.toBuilder(); } namespace_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(namespace_); namespace_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { subset_ = com.google.protobuf.MapField.newMapField( SubsetDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry subset__ = input.readMessage( SubsetDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); subset_.getMutableMap().put( subset__.getKey(), subset__.getValue()); break; } case 42: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (priority_ != null) { subBuilder = priority_.toBuilder(); } priority_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(priority_); priority_ = subBuilder.buildPartial(); } break; } case 48: { int rawValue = input.readEnum(); resource_ = rawValue; break; } case 56: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 74: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { amounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } amounts_.add( input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.Amount.parser(), extensionRegistry)); break; } case 82: { com.google.protobuf.StringValue.Builder subBuilder = null; if (action_ != null) { subBuilder = action_.toBuilder(); } action_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(action_); action_ = subBuilder.buildPartial(); } break; } case 90: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (disable_ != null) { subBuilder = disable_.toBuilder(); } disable_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disable_); disable_ = subBuilder.buildPartial(); } break; } case 98: { com.tencent.polaris.client.pb.RateLimitProto.Report.Builder subBuilder = null; if (report_ != null) { subBuilder = report_.toBuilder(); } report_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.Report.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(report_); report_ = subBuilder.buildPartial(); } break; } case 106: { com.google.protobuf.StringValue.Builder subBuilder = null; if (ctime_ != null) { subBuilder = ctime_.toBuilder(); } ctime_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ctime_); ctime_ = subBuilder.buildPartial(); } break; } case 114: { com.google.protobuf.StringValue.Builder subBuilder = null; if (mtime_ != null) { subBuilder = mtime_.toBuilder(); } mtime_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mtime_); mtime_ = subBuilder.buildPartial(); } break; } case 122: { com.google.protobuf.StringValue.Builder subBuilder = null; if (revision_ != null) { subBuilder = revision_.toBuilder(); } revision_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(revision_); revision_ = subBuilder.buildPartial(); } break; } case 130: { com.google.protobuf.StringValue.Builder subBuilder = null; if (serviceToken_ != null) { subBuilder = serviceToken_.toBuilder(); } serviceToken_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serviceToken_); serviceToken_ = subBuilder.buildPartial(); } break; } case 138: { com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder subBuilder = null; if (adjuster_ != null) { subBuilder = adjuster_.toBuilder(); } adjuster_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adjuster_); adjuster_ = subBuilder.buildPartial(); } break; } case 146: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (regexCombine_ != null) { subBuilder = regexCombine_.toBuilder(); } regexCombine_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regexCombine_); regexCombine_ = subBuilder.buildPartial(); } break; } case 152: { int rawValue = input.readEnum(); amountMode_ = rawValue; break; } case 160: { int rawValue = input.readEnum(); failover_ = rawValue; break; } case 170: { com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder subBuilder = null; if (cluster_ != null) { subBuilder = cluster_.toBuilder(); } cluster_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cluster_); cluster_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { amounts_ = java.util.Collections.unmodifiableList(amounts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetSubset(); case 8: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.Rule.class, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder.class); } /** *
     * 限流资源
     * 
* * Protobuf enum {@code v1.Rule.Resource} */ public enum Resource implements com.google.protobuf.ProtocolMessageEnum { /** *
       * 针对QPS进行限流
       * 
* * QPS = 0; */ QPS(0), /** *
       * 针对并发数进行限流
       * 
* * CONCURRENCY = 1; */ CONCURRENCY(1), UNRECOGNIZED(-1), ; /** *
       * 针对QPS进行限流
       * 
* * QPS = 0; */ public static final int QPS_VALUE = 0; /** *
       * 针对并发数进行限流
       * 
* * CONCURRENCY = 1; */ public static final int CONCURRENCY_VALUE = 1; 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 Resource 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 Resource forNumber(int value) { switch (value) { case 0: return QPS; case 1: return CONCURRENCY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Resource> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Resource findValueByNumber(int number) { return Resource.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.client.pb.RateLimitProto.Rule.getDescriptor().getEnumTypes().get(0); } private static final Resource[] VALUES = values(); public static Resource 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 Resource(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.Rule.Resource) } /** *
     * 限流类型
     * global全局限流(默认)或者local单机限流
     * 
* * Protobuf enum {@code v1.Rule.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * GLOBAL = 0; */ GLOBAL(0), /** * LOCAL = 1; */ LOCAL(1), UNRECOGNIZED(-1), ; /** * GLOBAL = 0; */ public static final int GLOBAL_VALUE = 0; /** * LOCAL = 1; */ public static final int LOCAL_VALUE = 1; 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 Type 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 Type forNumber(int value) { switch (value) { case 0: return GLOBAL; case 1: return LOCAL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.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.client.pb.RateLimitProto.Rule.getDescriptor().getEnumTypes().get(1); } private static final Type[] VALUES = values(); public static Type 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 Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.Rule.Type) } /** *
     * 限流阈值模式
     * 
* * Protobuf enum {@code v1.Rule.AmountMode} */ public enum AmountMode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * 总体阈值
       * 
* * GLOBAL_TOTAL = 0; */ GLOBAL_TOTAL(0), /** *
       * 单机均摊阈值
       * 
* * SHARE_EQUALLY = 1; */ SHARE_EQUALLY(1), UNRECOGNIZED(-1), ; /** *
       * 总体阈值
       * 
* * GLOBAL_TOTAL = 0; */ public static final int GLOBAL_TOTAL_VALUE = 0; /** *
       * 单机均摊阈值
       * 
* * SHARE_EQUALLY = 1; */ public static final int SHARE_EQUALLY_VALUE = 1; 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 AmountMode 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 AmountMode forNumber(int value) { switch (value) { case 0: return GLOBAL_TOTAL; case 1: return SHARE_EQUALLY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AmountMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AmountMode findValueByNumber(int number) { return AmountMode.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.client.pb.RateLimitProto.Rule.getDescriptor().getEnumTypes().get(2); } private static final AmountMode[] VALUES = values(); public static AmountMode 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 AmountMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.Rule.AmountMode) } /** *
     * 与限流集群连接失败时降级模式
     * 
* * Protobuf enum {@code v1.Rule.FailoverType} */ public enum FailoverType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * 降级成本地阈值
       * 
* * FAILOVER_LOCAL = 0; */ FAILOVER_LOCAL(0), /** *
       * 降级成直接通过
       * 
* * FAILOVER_PASS = 1; */ FAILOVER_PASS(1), UNRECOGNIZED(-1), ; /** *
       * 降级成本地阈值
       * 
* * FAILOVER_LOCAL = 0; */ public static final int FAILOVER_LOCAL_VALUE = 0; /** *
       * 降级成直接通过
       * 
* * FAILOVER_PASS = 1; */ public static final int FAILOVER_PASS_VALUE = 1; 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 FailoverType 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 FailoverType forNumber(int value) { switch (value) { case 0: return FAILOVER_LOCAL; case 1: return FAILOVER_PASS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FailoverType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FailoverType findValueByNumber(int number) { return FailoverType.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.client.pb.RateLimitProto.Rule.getDescriptor().getEnumTypes().get(3); } private static final FailoverType[] VALUES = values(); public static FailoverType 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 FailoverType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.Rule.FailoverType) } public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.StringValue id_; /** *
     * 限流规则唯一标识
     * 
* * .google.protobuf.StringValue id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return id_ != null; } /** *
     * 限流规则唯一标识
     * 
* * .google.protobuf.StringValue id = 1; * @return The id. */ @java.lang.Override public com.google.protobuf.StringValue getId() { return id_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : id_; } /** *
     * 限流规则唯一标识
     * 
* * .google.protobuf.StringValue id = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getIdOrBuilder() { return getId(); } public static final int SERVICE_FIELD_NUMBER = 2; private com.google.protobuf.StringValue service_; /** *
     * 限流规则所属服务名
     * 
* * .google.protobuf.StringValue service = 2; * @return Whether the service field is set. */ @java.lang.Override public boolean hasService() { return service_ != null; } /** *
     * 限流规则所属服务名
     * 
* * .google.protobuf.StringValue service = 2; * @return The service. */ @java.lang.Override public com.google.protobuf.StringValue getService() { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } /** *
     * 限流规则所属服务名
     * 
* * .google.protobuf.StringValue service = 2; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { return getService(); } public static final int NAMESPACE_FIELD_NUMBER = 3; private com.google.protobuf.StringValue namespace_; /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 3; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return namespace_ != null; } /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 3; * @return The namespace. */ @java.lang.Override public com.google.protobuf.StringValue getNamespace() { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 3; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { return getNamespace(); } public static final int SUBSET_FIELD_NUMBER = 4; private static final class SubsetDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.tencent.polaris.client.pb.ModelProto.MatchString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_SubsetEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.tencent.polaris.client.pb.ModelProto.MatchString.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.client.pb.ModelProto.MatchString> subset_; private com.google.protobuf.MapField internalGetSubset() { if (subset_ == null) { return com.google.protobuf.MapField.emptyMapField( SubsetDefaultEntryHolder.defaultEntry); } return subset_; } public int getSubsetCount() { return internalGetSubset().getMap().size(); } /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public boolean containsSubset( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSubset().getMap().containsKey(key); } /** * Use {@link #getSubsetMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSubset() { return getSubsetMap(); } /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public java.util.Map getSubsetMap() { return internalGetSubset().getMap(); } /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getSubsetOrDefault( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSubset().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * 可选,SUBSET标识
     * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getSubsetOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSubset().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PRIORITY_FIELD_NUMBER = 5; private com.google.protobuf.UInt32Value priority_; /** *
     * 限流规则优先级,0值最高
     * 
* * .google.protobuf.UInt32Value priority = 5; * @return Whether the priority field is set. */ @java.lang.Override public boolean hasPriority() { return priority_ != null; } /** *
     * 限流规则优先级,0值最高
     * 
* * .google.protobuf.UInt32Value priority = 5; * @return The priority. */ @java.lang.Override public com.google.protobuf.UInt32Value getPriority() { return priority_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : priority_; } /** *
     * 限流规则优先级,0值最高
     * 
* * .google.protobuf.UInt32Value priority = 5; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder() { return getPriority(); } public static final int RESOURCE_FIELD_NUMBER = 6; private int resource_; /** * .v1.Rule.Resource resource = 6; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .v1.Rule.Resource resource = 6; * @return The resource. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource getResource() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource result = com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource.valueOf(resource_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource.UNRECOGNIZED : result; } public static final int TYPE_FIELD_NUMBER = 7; private int type_; /** * .v1.Rule.Type type = 7; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .v1.Rule.Type type = 7; * @return The type. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.Type getType() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.Type result = com.tencent.polaris.client.pb.RateLimitProto.Rule.Type.valueOf(type_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.Type.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 8; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.tencent.polaris.client.pb.ModelProto.MatchString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.tencent.polaris.client.pb.ModelProto.MatchString.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.client.pb.ModelProto.MatchString> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getLabelsOrDefault( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
     * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int AMOUNTS_FIELD_NUMBER = 9; private java.util.List amounts_; /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ @java.lang.Override public java.util.List getAmountsList() { return amounts_; } /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ @java.lang.Override public java.util.List getAmountsOrBuilderList() { return amounts_; } /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ @java.lang.Override public int getAmountsCount() { return amounts_.size(); } /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Amount getAmounts(int index) { return amounts_.get(index); } /** *
     * 限流阈值
     * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
     * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
     * 
* * repeated .v1.Amount amounts = 9; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder getAmountsOrBuilder( int index) { return amounts_.get(index); } public static final int ACTION_FIELD_NUMBER = 10; private com.google.protobuf.StringValue action_; /** *
     * 限流动作,对应着客户端的插件名字
     * 
* * .google.protobuf.StringValue action = 10; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return action_ != null; } /** *
     * 限流动作,对应着客户端的插件名字
     * 
* * .google.protobuf.StringValue action = 10; * @return The action. */ @java.lang.Override public com.google.protobuf.StringValue getAction() { return action_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : action_; } /** *
     * 限流动作,对应着客户端的插件名字
     * 
* * .google.protobuf.StringValue action = 10; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getActionOrBuilder() { return getAction(); } public static final int DISABLE_FIELD_NUMBER = 11; private com.google.protobuf.BoolValue disable_; /** *
     * 是否停用该限流规则,默认启用
     * 
* * .google.protobuf.BoolValue disable = 11; * @return Whether the disable field is set. */ @java.lang.Override public boolean hasDisable() { return disable_ != null; } /** *
     * 是否停用该限流规则,默认启用
     * 
* * .google.protobuf.BoolValue disable = 11; * @return The disable. */ @java.lang.Override public com.google.protobuf.BoolValue getDisable() { return disable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disable_; } /** *
     * 是否停用该限流规则,默认启用
     * 
* * .google.protobuf.BoolValue disable = 11; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getDisableOrBuilder() { return getDisable(); } public static final int REPORT_FIELD_NUMBER = 12; private com.tencent.polaris.client.pb.RateLimitProto.Report report_; /** *
     * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
     * 
* * .v1.Report report = 12; * @return Whether the report field is set. */ @java.lang.Override public boolean hasReport() { return report_ != null; } /** *
     * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
     * 
* * .v1.Report report = 12; * @return The report. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Report getReport() { return report_ == null ? com.tencent.polaris.client.pb.RateLimitProto.Report.getDefaultInstance() : report_; } /** *
     * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
     * 
* * .v1.Report report = 12; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder getReportOrBuilder() { return getReport(); } public static final int CTIME_FIELD_NUMBER = 13; private com.google.protobuf.StringValue ctime_; /** *
     * 限流规则创建时间
     * 
* * .google.protobuf.StringValue ctime = 13; * @return Whether the ctime field is set. */ @java.lang.Override public boolean hasCtime() { return ctime_ != null; } /** *
     * 限流规则创建时间
     * 
* * .google.protobuf.StringValue ctime = 13; * @return The ctime. */ @java.lang.Override public com.google.protobuf.StringValue getCtime() { return ctime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : ctime_; } /** *
     * 限流规则创建时间
     * 
* * .google.protobuf.StringValue ctime = 13; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder() { return getCtime(); } public static final int MTIME_FIELD_NUMBER = 14; private com.google.protobuf.StringValue mtime_; /** *
     * 限流规则修改时间
     * 
* * .google.protobuf.StringValue mtime = 14; * @return Whether the mtime field is set. */ @java.lang.Override public boolean hasMtime() { return mtime_ != null; } /** *
     * 限流规则修改时间
     * 
* * .google.protobuf.StringValue mtime = 14; * @return The mtime. */ @java.lang.Override public com.google.protobuf.StringValue getMtime() { return mtime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mtime_; } /** *
     * 限流规则修改时间
     * 
* * .google.protobuf.StringValue mtime = 14; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder() { return getMtime(); } public static final int REVISION_FIELD_NUMBER = 15; private com.google.protobuf.StringValue revision_; /** *
     * 限流规则revision信息
     * 
* * .google.protobuf.StringValue revision = 15; * @return Whether the revision field is set. */ @java.lang.Override public boolean hasRevision() { return revision_ != null; } /** *
     * 限流规则revision信息
     * 
* * .google.protobuf.StringValue revision = 15; * @return The revision. */ @java.lang.Override public com.google.protobuf.StringValue getRevision() { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } /** *
     * 限流规则revision信息
     * 
* * .google.protobuf.StringValue revision = 15; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder() { return getRevision(); } public static final int SERVICE_TOKEN_FIELD_NUMBER = 16; private com.google.protobuf.StringValue serviceToken_; /** *
     * 服务的TOKEN信息,仅用于控制台,discover接口不下发
     * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; * @return Whether the serviceToken field is set. */ @java.lang.Override public boolean hasServiceToken() { return serviceToken_ != null; } /** *
     * 服务的TOKEN信息,仅用于控制台,discover接口不下发
     * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; * @return The serviceToken. */ @java.lang.Override public com.google.protobuf.StringValue getServiceToken() { return serviceToken_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceToken_; } /** *
     * 服务的TOKEN信息,仅用于控制台,discover接口不下发
     * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder() { return getServiceToken(); } public static final int ADJUSTER_FIELD_NUMBER = 17; private com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster adjuster_; /** *
     * 配额调整算法
     * 
* * .v1.AmountAdjuster adjuster = 17; * @return Whether the adjuster field is set. */ @java.lang.Override public boolean hasAdjuster() { return adjuster_ != null; } /** *
     * 配额调整算法
     * 
* * .v1.AmountAdjuster adjuster = 17; * @return The adjuster. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster getAdjuster() { return adjuster_ == null ? com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.getDefaultInstance() : adjuster_; } /** *
     * 配额调整算法
     * 
* * .v1.AmountAdjuster adjuster = 17; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder getAdjusterOrBuilder() { return getAdjuster(); } public static final int REGEX_COMBINE_FIELD_NUMBER = 18; private com.google.protobuf.BoolValue regexCombine_; /** *
     * 通配符是否合并计算,默认分开计数
     * 
* * .google.protobuf.BoolValue regex_combine = 18; * @return Whether the regexCombine field is set. */ @java.lang.Override public boolean hasRegexCombine() { return regexCombine_ != null; } /** *
     * 通配符是否合并计算,默认分开计数
     * 
* * .google.protobuf.BoolValue regex_combine = 18; * @return The regexCombine. */ @java.lang.Override public com.google.protobuf.BoolValue getRegexCombine() { return regexCombine_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : regexCombine_; } /** *
     * 通配符是否合并计算,默认分开计数
     * 
* * .google.protobuf.BoolValue regex_combine = 18; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getRegexCombineOrBuilder() { return getRegexCombine(); } public static final int AMOUNT_MODE_FIELD_NUMBER = 19; private int amountMode_; /** * .v1.Rule.AmountMode amount_mode = 19; * @return The enum numeric value on the wire for amountMode. */ @java.lang.Override public int getAmountModeValue() { return amountMode_; } /** * .v1.Rule.AmountMode amount_mode = 19; * @return The amountMode. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode getAmountMode() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode result = com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode.valueOf(amountMode_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode.UNRECOGNIZED : result; } public static final int FAILOVER_FIELD_NUMBER = 20; private int failover_; /** * .v1.Rule.FailoverType failover = 20; * @return The enum numeric value on the wire for failover. */ @java.lang.Override public int getFailoverValue() { return failover_; } /** * .v1.Rule.FailoverType failover = 20; * @return The failover. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType getFailover() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType result = com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType.valueOf(failover_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType.UNRECOGNIZED : result; } public static final int CLUSTER_FIELD_NUMBER = 21; private com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster cluster_; /** *
     * 分布式限流服务集群
     * 
* * .v1.RateLimitCluster cluster = 21; * @return Whether the cluster field is set. */ @java.lang.Override public boolean hasCluster() { return cluster_ != null; } /** *
     * 分布式限流服务集群
     * 
* * .v1.RateLimitCluster cluster = 21; * @return The cluster. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster getCluster() { return cluster_ == null ? com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.getDefaultInstance() : cluster_; } /** *
     * 分布式限流服务集群
     * 
* * .v1.RateLimitCluster cluster = 21; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder getClusterOrBuilder() { return getCluster(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (service_ != null) { output.writeMessage(2, getService()); } if (namespace_ != null) { output.writeMessage(3, getNamespace()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSubset(), SubsetDefaultEntryHolder.defaultEntry, 4); if (priority_ != null) { output.writeMessage(5, getPriority()); } if (resource_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource.QPS.getNumber()) { output.writeEnum(6, resource_); } if (type_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.Type.GLOBAL.getNumber()) { output.writeEnum(7, type_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); for (int i = 0; i < amounts_.size(); i++) { output.writeMessage(9, amounts_.get(i)); } if (action_ != null) { output.writeMessage(10, getAction()); } if (disable_ != null) { output.writeMessage(11, getDisable()); } if (report_ != null) { output.writeMessage(12, getReport()); } if (ctime_ != null) { output.writeMessage(13, getCtime()); } if (mtime_ != null) { output.writeMessage(14, getMtime()); } if (revision_ != null) { output.writeMessage(15, getRevision()); } if (serviceToken_ != null) { output.writeMessage(16, getServiceToken()); } if (adjuster_ != null) { output.writeMessage(17, getAdjuster()); } if (regexCombine_ != null) { output.writeMessage(18, getRegexCombine()); } if (amountMode_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode.GLOBAL_TOTAL.getNumber()) { output.writeEnum(19, amountMode_); } if (failover_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType.FAILOVER_LOCAL.getNumber()) { output.writeEnum(20, failover_); } if (cluster_ != null) { output.writeMessage(21, getCluster()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (service_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getService()); } if (namespace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getNamespace()); } for (java.util.Map.Entry entry : internalGetSubset().getMap().entrySet()) { com.google.protobuf.MapEntry subset__ = SubsetDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, subset__); } if (priority_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPriority()); } if (resource_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource.QPS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, resource_); } if (type_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.Type.GLOBAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, type_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, labels__); } for (int i = 0; i < amounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, amounts_.get(i)); } if (action_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getAction()); } if (disable_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getDisable()); } if (report_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getReport()); } if (ctime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getCtime()); } if (mtime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getMtime()); } if (revision_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getRevision()); } if (serviceToken_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getServiceToken()); } if (adjuster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getAdjuster()); } if (regexCombine_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getRegexCombine()); } if (amountMode_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode.GLOBAL_TOTAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(19, amountMode_); } if (failover_ != com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType.FAILOVER_LOCAL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(20, failover_); } if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, getCluster()); } 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 com.tencent.polaris.client.pb.RateLimitProto.Rule)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.Rule other = (com.tencent.polaris.client.pb.RateLimitProto.Rule) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasService() != other.hasService()) return false; if (hasService()) { if (!getService() .equals(other.getService())) return false; } if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!internalGetSubset().equals( other.internalGetSubset())) return false; if (hasPriority() != other.hasPriority()) return false; if (hasPriority()) { if (!getPriority() .equals(other.getPriority())) return false; } if (resource_ != other.resource_) return false; if (type_ != other.type_) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getAmountsList() .equals(other.getAmountsList())) return false; if (hasAction() != other.hasAction()) return false; if (hasAction()) { if (!getAction() .equals(other.getAction())) return false; } if (hasDisable() != other.hasDisable()) return false; if (hasDisable()) { if (!getDisable() .equals(other.getDisable())) return false; } if (hasReport() != other.hasReport()) return false; if (hasReport()) { if (!getReport() .equals(other.getReport())) return false; } if (hasCtime() != other.hasCtime()) return false; if (hasCtime()) { if (!getCtime() .equals(other.getCtime())) return false; } if (hasMtime() != other.hasMtime()) return false; if (hasMtime()) { if (!getMtime() .equals(other.getMtime())) return false; } if (hasRevision() != other.hasRevision()) return false; if (hasRevision()) { if (!getRevision() .equals(other.getRevision())) return false; } if (hasServiceToken() != other.hasServiceToken()) return false; if (hasServiceToken()) { if (!getServiceToken() .equals(other.getServiceToken())) return false; } if (hasAdjuster() != other.hasAdjuster()) return false; if (hasAdjuster()) { if (!getAdjuster() .equals(other.getAdjuster())) return false; } if (hasRegexCombine() != other.hasRegexCombine()) return false; if (hasRegexCombine()) { if (!getRegexCombine() .equals(other.getRegexCombine())) return false; } if (amountMode_ != other.amountMode_) return false; if (failover_ != other.failover_) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { if (!getCluster() .equals(other.getCluster())) 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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (!internalGetSubset().getMap().isEmpty()) { hash = (37 * hash) + SUBSET_FIELD_NUMBER; hash = (53 * hash) + internalGetSubset().hashCode(); } if (hasPriority()) { hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority().hashCode(); } hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + resource_; hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (getAmountsCount() > 0) { hash = (37 * hash) + AMOUNTS_FIELD_NUMBER; hash = (53 * hash) + getAmountsList().hashCode(); } if (hasAction()) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); } if (hasDisable()) { hash = (37 * hash) + DISABLE_FIELD_NUMBER; hash = (53 * hash) + getDisable().hashCode(); } if (hasReport()) { hash = (37 * hash) + REPORT_FIELD_NUMBER; hash = (53 * hash) + getReport().hashCode(); } if (hasCtime()) { hash = (37 * hash) + CTIME_FIELD_NUMBER; hash = (53 * hash) + getCtime().hashCode(); } if (hasMtime()) { hash = (37 * hash) + MTIME_FIELD_NUMBER; hash = (53 * hash) + getMtime().hashCode(); } if (hasRevision()) { hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); } if (hasServiceToken()) { hash = (37 * hash) + SERVICE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getServiceToken().hashCode(); } if (hasAdjuster()) { hash = (37 * hash) + ADJUSTER_FIELD_NUMBER; hash = (53 * hash) + getAdjuster().hashCode(); } if (hasRegexCombine()) { hash = (37 * hash) + REGEX_COMBINE_FIELD_NUMBER; hash = (53 * hash) + getRegexCombine().hashCode(); } hash = (37 * hash) + AMOUNT_MODE_FIELD_NUMBER; hash = (53 * hash) + amountMode_; hash = (37 * hash) + FAILOVER_FIELD_NUMBER; hash = (53 * hash) + failover_; if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.Rule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule 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.client.pb.RateLimitProto.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule 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.client.pb.RateLimitProto.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule 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.client.pb.RateLimitProto.Rule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule 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.client.pb.RateLimitProto.Rule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule 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.client.pb.RateLimitProto.Rule 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.Rule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Rule) com.tencent.polaris.client.pb.RateLimitProto.RuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetSubset(); case 8: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableSubset(); case 8: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.Rule.class, com.tencent.polaris.client.pb.RateLimitProto.Rule.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.Rule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAmountsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (idBuilder_ == null) { id_ = null; } else { id_ = null; idBuilder_ = null; } if (serviceBuilder_ == null) { service_ = null; } else { service_ = null; serviceBuilder_ = null; } if (namespaceBuilder_ == null) { namespace_ = null; } else { namespace_ = null; namespaceBuilder_ = null; } internalGetMutableSubset().clear(); if (priorityBuilder_ == null) { priority_ = null; } else { priority_ = null; priorityBuilder_ = null; } resource_ = 0; type_ = 0; internalGetMutableLabels().clear(); if (amountsBuilder_ == null) { amounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { amountsBuilder_.clear(); } if (actionBuilder_ == null) { action_ = null; } else { action_ = null; actionBuilder_ = null; } if (disableBuilder_ == null) { disable_ = null; } else { disable_ = null; disableBuilder_ = null; } if (reportBuilder_ == null) { report_ = null; } else { report_ = null; reportBuilder_ = null; } if (ctimeBuilder_ == null) { ctime_ = null; } else { ctime_ = null; ctimeBuilder_ = null; } if (mtimeBuilder_ == null) { mtime_ = null; } else { mtime_ = null; mtimeBuilder_ = null; } if (revisionBuilder_ == null) { revision_ = null; } else { revision_ = null; revisionBuilder_ = null; } if (serviceTokenBuilder_ == null) { serviceToken_ = null; } else { serviceToken_ = null; serviceTokenBuilder_ = null; } if (adjusterBuilder_ == null) { adjuster_ = null; } else { adjuster_ = null; adjusterBuilder_ = null; } if (regexCombineBuilder_ == null) { regexCombine_ = null; } else { regexCombine_ = null; regexCombineBuilder_ = null; } amountMode_ = 0; failover_ = 0; if (clusterBuilder_ == null) { cluster_ = null; } else { cluster_ = null; clusterBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Rule_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.Rule.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule build() { com.tencent.polaris.client.pb.RateLimitProto.Rule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.Rule result = new com.tencent.polaris.client.pb.RateLimitProto.Rule(this); int from_bitField0_ = bitField0_; if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (namespaceBuilder_ == null) { result.namespace_ = namespace_; } else { result.namespace_ = namespaceBuilder_.build(); } result.subset_ = internalGetSubset(); result.subset_.makeImmutable(); if (priorityBuilder_ == null) { result.priority_ = priority_; } else { result.priority_ = priorityBuilder_.build(); } result.resource_ = resource_; result.type_ = type_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (amountsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { amounts_ = java.util.Collections.unmodifiableList(amounts_); bitField0_ = (bitField0_ & ~0x00000004); } result.amounts_ = amounts_; } else { result.amounts_ = amountsBuilder_.build(); } if (actionBuilder_ == null) { result.action_ = action_; } else { result.action_ = actionBuilder_.build(); } if (disableBuilder_ == null) { result.disable_ = disable_; } else { result.disable_ = disableBuilder_.build(); } if (reportBuilder_ == null) { result.report_ = report_; } else { result.report_ = reportBuilder_.build(); } if (ctimeBuilder_ == null) { result.ctime_ = ctime_; } else { result.ctime_ = ctimeBuilder_.build(); } if (mtimeBuilder_ == null) { result.mtime_ = mtime_; } else { result.mtime_ = mtimeBuilder_.build(); } if (revisionBuilder_ == null) { result.revision_ = revision_; } else { result.revision_ = revisionBuilder_.build(); } if (serviceTokenBuilder_ == null) { result.serviceToken_ = serviceToken_; } else { result.serviceToken_ = serviceTokenBuilder_.build(); } if (adjusterBuilder_ == null) { result.adjuster_ = adjuster_; } else { result.adjuster_ = adjusterBuilder_.build(); } if (regexCombineBuilder_ == null) { result.regexCombine_ = regexCombine_; } else { result.regexCombine_ = regexCombineBuilder_.build(); } result.amountMode_ = amountMode_; result.failover_ = failover_; if (clusterBuilder_ == null) { result.cluster_ = cluster_; } else { result.cluster_ = clusterBuilder_.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.client.pb.RateLimitProto.Rule) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.Rule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.Rule other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.Rule.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (other.hasService()) { mergeService(other.getService()); } if (other.hasNamespace()) { mergeNamespace(other.getNamespace()); } internalGetMutableSubset().mergeFrom( other.internalGetSubset()); if (other.hasPriority()) { mergePriority(other.getPriority()); } if (other.resource_ != 0) { setResourceValue(other.getResourceValue()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (amountsBuilder_ == null) { if (!other.amounts_.isEmpty()) { if (amounts_.isEmpty()) { amounts_ = other.amounts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAmountsIsMutable(); amounts_.addAll(other.amounts_); } onChanged(); } } else { if (!other.amounts_.isEmpty()) { if (amountsBuilder_.isEmpty()) { amountsBuilder_.dispose(); amountsBuilder_ = null; amounts_ = other.amounts_; bitField0_ = (bitField0_ & ~0x00000004); amountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAmountsFieldBuilder() : null; } else { amountsBuilder_.addAllMessages(other.amounts_); } } } if (other.hasAction()) { mergeAction(other.getAction()); } if (other.hasDisable()) { mergeDisable(other.getDisable()); } if (other.hasReport()) { mergeReport(other.getReport()); } if (other.hasCtime()) { mergeCtime(other.getCtime()); } if (other.hasMtime()) { mergeMtime(other.getMtime()); } if (other.hasRevision()) { mergeRevision(other.getRevision()); } if (other.hasServiceToken()) { mergeServiceToken(other.getServiceToken()); } if (other.hasAdjuster()) { mergeAdjuster(other.getAdjuster()); } if (other.hasRegexCombine()) { mergeRegexCombine(other.getRegexCombine()); } if (other.amountMode_ != 0) { setAmountModeValue(other.getAmountModeValue()); } if (other.failover_ != 0) { setFailoverValue(other.getFailoverValue()); } if (other.hasCluster()) { mergeCluster(other.getCluster()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.Rule parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.Rule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.StringValue id_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> idBuilder_; /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; * @return Whether the id field is set. */ public boolean hasId() { return idBuilder_ != null || id_ != null; } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; * @return The id. */ public com.google.protobuf.StringValue getId() { if (idBuilder_ == null) { return id_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder setId(com.google.protobuf.StringValue value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder setId( com.google.protobuf.StringValue.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder mergeId(com.google.protobuf.StringValue value) { if (idBuilder_ == null) { if (id_ != null) { id_ = com.google.protobuf.StringValue.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ public com.google.protobuf.StringValue.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ public com.google.protobuf.StringValueOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : id_; } } /** *
       * 限流规则唯一标识
       * 
* * .google.protobuf.StringValue id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private com.google.protobuf.StringValue service_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceBuilder_; /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; * @return The service. */ public com.google.protobuf.StringValue getService() { if (serviceBuilder_ == null) { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ public Builder setService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } return this; } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ public Builder setService( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ public Builder mergeService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = com.google.protobuf.StringValue.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { service_ = null; serviceBuilder_ = null; } return this; } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ public com.google.protobuf.StringValue.Builder getServiceBuilder() { onChanged(); return getServiceFieldBuilder().getBuilder(); } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } } /** *
       * 限流规则所属服务名
       * 
* * .google.protobuf.StringValue service = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.StringValue namespace_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> namespaceBuilder_; /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return namespaceBuilder_ != null || namespace_ != null; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; * @return The namespace. */ public com.google.protobuf.StringValue getNamespace() { if (namespaceBuilder_ == null) { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } else { return namespaceBuilder_.getMessage(); } } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ public Builder setNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); } else { namespaceBuilder_.setMessage(value); } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ public Builder setNamespace( com.google.protobuf.StringValue.Builder builderForValue) { if (namespaceBuilder_ == null) { namespace_ = builderForValue.build(); onChanged(); } else { namespaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ public Builder mergeNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (namespace_ != null) { namespace_ = com.google.protobuf.StringValue.newBuilder(namespace_).mergeFrom(value).buildPartial(); } else { namespace_ = value; } onChanged(); } else { namespaceBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ public Builder clearNamespace() { if (namespaceBuilder_ == null) { namespace_ = null; onChanged(); } else { namespace_ = null; namespaceBuilder_ = null; } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ public com.google.protobuf.StringValue.Builder getNamespaceBuilder() { onChanged(); return getNamespaceFieldBuilder().getBuilder(); } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { if (namespaceBuilder_ != null) { return namespaceBuilder_.getMessageOrBuilder(); } else { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getNamespaceFieldBuilder() { if (namespaceBuilder_ == null) { namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getNamespace(), getParentForChildren(), isClean()); namespace_ = null; } return namespaceBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.client.pb.ModelProto.MatchString> subset_; private com.google.protobuf.MapField internalGetSubset() { if (subset_ == null) { return com.google.protobuf.MapField.emptyMapField( SubsetDefaultEntryHolder.defaultEntry); } return subset_; } private com.google.protobuf.MapField internalGetMutableSubset() { onChanged();; if (subset_ == null) { subset_ = com.google.protobuf.MapField.newMapField( SubsetDefaultEntryHolder.defaultEntry); } if (!subset_.isMutable()) { subset_ = subset_.copy(); } return subset_; } public int getSubsetCount() { return internalGetSubset().getMap().size(); } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public boolean containsSubset( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetSubset().getMap().containsKey(key); } /** * Use {@link #getSubsetMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSubset() { return getSubsetMap(); } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public java.util.Map getSubsetMap() { return internalGetSubset().getMap(); } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getSubsetOrDefault( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSubset().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getSubsetOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetSubset().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearSubset() { internalGetMutableSubset().getMutableMap() .clear(); return this; } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ public Builder removeSubset( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableSubset().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSubset() { return internalGetMutableSubset().getMutableMap(); } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ public Builder putSubset( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableSubset().getMutableMap() .put(key, value); return this; } /** *
       * 可选,SUBSET标识
       * 
* * map<string, .v1.MatchString> subset = 4; */ public Builder putAllSubset( java.util.Map values) { internalGetMutableSubset().getMutableMap() .putAll(values); return this; } private com.google.protobuf.UInt32Value priority_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> priorityBuilder_; /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; * @return Whether the priority field is set. */ public boolean hasPriority() { return priorityBuilder_ != null || priority_ != null; } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; * @return The priority. */ public com.google.protobuf.UInt32Value getPriority() { if (priorityBuilder_ == null) { return priority_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : priority_; } else { return priorityBuilder_.getMessage(); } } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ public Builder setPriority(com.google.protobuf.UInt32Value value) { if (priorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } priority_ = value; onChanged(); } else { priorityBuilder_.setMessage(value); } return this; } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ public Builder setPriority( com.google.protobuf.UInt32Value.Builder builderForValue) { if (priorityBuilder_ == null) { priority_ = builderForValue.build(); onChanged(); } else { priorityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ public Builder mergePriority(com.google.protobuf.UInt32Value value) { if (priorityBuilder_ == null) { if (priority_ != null) { priority_ = com.google.protobuf.UInt32Value.newBuilder(priority_).mergeFrom(value).buildPartial(); } else { priority_ = value; } onChanged(); } else { priorityBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ public Builder clearPriority() { if (priorityBuilder_ == null) { priority_ = null; onChanged(); } else { priority_ = null; priorityBuilder_ = null; } return this; } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ public com.google.protobuf.UInt32Value.Builder getPriorityBuilder() { onChanged(); return getPriorityFieldBuilder().getBuilder(); } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ public com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder() { if (priorityBuilder_ != null) { return priorityBuilder_.getMessageOrBuilder(); } else { return priority_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : priority_; } } /** *
       * 限流规则优先级,0值最高
       * 
* * .google.protobuf.UInt32Value priority = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getPriorityFieldBuilder() { if (priorityBuilder_ == null) { priorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getPriority(), getParentForChildren(), isClean()); priority_ = null; } return priorityBuilder_; } private int resource_ = 0; /** * .v1.Rule.Resource resource = 6; * @return The enum numeric value on the wire for resource. */ @java.lang.Override public int getResourceValue() { return resource_; } /** * .v1.Rule.Resource resource = 6; * @param value The enum numeric value on the wire for resource to set. * @return This builder for chaining. */ public Builder setResourceValue(int value) { resource_ = value; onChanged(); return this; } /** * .v1.Rule.Resource resource = 6; * @return The resource. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource getResource() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource result = com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource.valueOf(resource_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource.UNRECOGNIZED : result; } /** * .v1.Rule.Resource resource = 6; * @param value The resource to set. * @return This builder for chaining. */ public Builder setResource(com.tencent.polaris.client.pb.RateLimitProto.Rule.Resource value) { if (value == null) { throw new NullPointerException(); } resource_ = value.getNumber(); onChanged(); return this; } /** * .v1.Rule.Resource resource = 6; * @return This builder for chaining. */ public Builder clearResource() { resource_ = 0; onChanged(); return this; } private int type_ = 0; /** * .v1.Rule.Type type = 7; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .v1.Rule.Type type = 7; * @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.Rule.Type type = 7; * @return The type. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.Type getType() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.Type result = com.tencent.polaris.client.pb.RateLimitProto.Rule.Type.valueOf(type_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.Type.UNRECOGNIZED : result; } /** * .v1.Rule.Type type = 7; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.tencent.polaris.client.pb.RateLimitProto.Rule.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .v1.Rule.Type type = 7; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.client.pb.ModelProto.MatchString> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getLabelsOrDefault( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ @java.lang.Override public com.tencent.polaris.client.pb.ModelProto.MatchString getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ public Builder putLabels( java.lang.String key, com.tencent.polaris.client.pb.ModelProto.MatchString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * 业务标签集合,通过KV进行匹配,全部匹配才使用该规则
       * 
* * map<string, .v1.MatchString> labels = 8; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.util.List amounts_ = java.util.Collections.emptyList(); private void ensureAmountsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { amounts_ = new java.util.ArrayList(amounts_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Amount, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder, com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder> amountsBuilder_; /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public java.util.List getAmountsList() { if (amountsBuilder_ == null) { return java.util.Collections.unmodifiableList(amounts_); } else { return amountsBuilder_.getMessageList(); } } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public int getAmountsCount() { if (amountsBuilder_ == null) { return amounts_.size(); } else { return amountsBuilder_.getCount(); } } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public com.tencent.polaris.client.pb.RateLimitProto.Amount getAmounts(int index) { if (amountsBuilder_ == null) { return amounts_.get(index); } else { return amountsBuilder_.getMessage(index); } } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder setAmounts( int index, com.tencent.polaris.client.pb.RateLimitProto.Amount value) { if (amountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAmountsIsMutable(); amounts_.set(index, value); onChanged(); } else { amountsBuilder_.setMessage(index, value); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder setAmounts( int index, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder builderForValue) { if (amountsBuilder_ == null) { ensureAmountsIsMutable(); amounts_.set(index, builderForValue.build()); onChanged(); } else { amountsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder addAmounts(com.tencent.polaris.client.pb.RateLimitProto.Amount value) { if (amountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAmountsIsMutable(); amounts_.add(value); onChanged(); } else { amountsBuilder_.addMessage(value); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder addAmounts( int index, com.tencent.polaris.client.pb.RateLimitProto.Amount value) { if (amountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAmountsIsMutable(); amounts_.add(index, value); onChanged(); } else { amountsBuilder_.addMessage(index, value); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder addAmounts( com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder builderForValue) { if (amountsBuilder_ == null) { ensureAmountsIsMutable(); amounts_.add(builderForValue.build()); onChanged(); } else { amountsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder addAmounts( int index, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder builderForValue) { if (amountsBuilder_ == null) { ensureAmountsIsMutable(); amounts_.add(index, builderForValue.build()); onChanged(); } else { amountsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder addAllAmounts( java.lang.Iterable values) { if (amountsBuilder_ == null) { ensureAmountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, amounts_); onChanged(); } else { amountsBuilder_.addAllMessages(values); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder clearAmounts() { if (amountsBuilder_ == null) { amounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { amountsBuilder_.clear(); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public Builder removeAmounts(int index) { if (amountsBuilder_ == null) { ensureAmountsIsMutable(); amounts_.remove(index); onChanged(); } else { amountsBuilder_.remove(index); } return this; } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder getAmountsBuilder( int index) { return getAmountsFieldBuilder().getBuilder(index); } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder getAmountsOrBuilder( int index) { if (amountsBuilder_ == null) { return amounts_.get(index); } else { return amountsBuilder_.getMessageOrBuilder(index); } } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public java.util.List getAmountsOrBuilderList() { if (amountsBuilder_ != null) { return amountsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(amounts_); } } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder addAmountsBuilder() { return getAmountsFieldBuilder().addBuilder( com.tencent.polaris.client.pb.RateLimitProto.Amount.getDefaultInstance()); } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder addAmountsBuilder( int index) { return getAmountsFieldBuilder().addBuilder( index, com.tencent.polaris.client.pb.RateLimitProto.Amount.getDefaultInstance()); } /** *
       * 限流阈值
       * 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
       * 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
       * 
* * repeated .v1.Amount amounts = 9; */ public java.util.List getAmountsBuilderList() { return getAmountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Amount, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder, com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder> getAmountsFieldBuilder() { if (amountsBuilder_ == null) { amountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Amount, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder, com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder>( amounts_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); amounts_ = null; } return amountsBuilder_; } private com.google.protobuf.StringValue action_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> actionBuilder_; /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; * @return Whether the action field is set. */ public boolean hasAction() { return actionBuilder_ != null || action_ != null; } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; * @return The action. */ public com.google.protobuf.StringValue getAction() { if (actionBuilder_ == null) { return action_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ public Builder setAction(com.google.protobuf.StringValue value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } return this; } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ public Builder setAction( com.google.protobuf.StringValue.Builder builderForValue) { if (actionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ public Builder mergeAction(com.google.protobuf.StringValue value) { if (actionBuilder_ == null) { if (action_ != null) { action_ = com.google.protobuf.StringValue.newBuilder(action_).mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { actionBuilder_.mergeFrom(value); } return this; } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ public Builder clearAction() { if (actionBuilder_ == null) { action_ = null; onChanged(); } else { action_ = null; actionBuilder_ = null; } return this; } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ public com.google.protobuf.StringValue.Builder getActionBuilder() { onChanged(); return getActionFieldBuilder().getBuilder(); } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ public com.google.protobuf.StringValueOrBuilder getActionOrBuilder() { if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { return action_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : action_; } } /** *
       * 限流动作,对应着客户端的插件名字
       * 
* * .google.protobuf.StringValue action = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getAction(), getParentForChildren(), isClean()); action_ = null; } return actionBuilder_; } private com.google.protobuf.BoolValue disable_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> disableBuilder_; /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; * @return Whether the disable field is set. */ public boolean hasDisable() { return disableBuilder_ != null || disable_ != null; } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; * @return The disable. */ public com.google.protobuf.BoolValue getDisable() { if (disableBuilder_ == null) { return disable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disable_; } else { return disableBuilder_.getMessage(); } } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ public Builder setDisable(com.google.protobuf.BoolValue value) { if (disableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disable_ = value; onChanged(); } else { disableBuilder_.setMessage(value); } return this; } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ public Builder setDisable( com.google.protobuf.BoolValue.Builder builderForValue) { if (disableBuilder_ == null) { disable_ = builderForValue.build(); onChanged(); } else { disableBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ public Builder mergeDisable(com.google.protobuf.BoolValue value) { if (disableBuilder_ == null) { if (disable_ != null) { disable_ = com.google.protobuf.BoolValue.newBuilder(disable_).mergeFrom(value).buildPartial(); } else { disable_ = value; } onChanged(); } else { disableBuilder_.mergeFrom(value); } return this; } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ public Builder clearDisable() { if (disableBuilder_ == null) { disable_ = null; onChanged(); } else { disable_ = null; disableBuilder_ = null; } return this; } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ public com.google.protobuf.BoolValue.Builder getDisableBuilder() { onChanged(); return getDisableFieldBuilder().getBuilder(); } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ public com.google.protobuf.BoolValueOrBuilder getDisableOrBuilder() { if (disableBuilder_ != null) { return disableBuilder_.getMessageOrBuilder(); } else { return disable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : disable_; } } /** *
       * 是否停用该限流规则,默认启用
       * 
* * .google.protobuf.BoolValue disable = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getDisableFieldBuilder() { if (disableBuilder_ == null) { disableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getDisable(), getParentForChildren(), isClean()); disable_ = null; } return disableBuilder_; } private com.tencent.polaris.client.pb.RateLimitProto.Report report_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Report, com.tencent.polaris.client.pb.RateLimitProto.Report.Builder, com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder> reportBuilder_; /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; * @return Whether the report field is set. */ public boolean hasReport() { return reportBuilder_ != null || report_ != null; } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; * @return The report. */ public com.tencent.polaris.client.pb.RateLimitProto.Report getReport() { if (reportBuilder_ == null) { return report_ == null ? com.tencent.polaris.client.pb.RateLimitProto.Report.getDefaultInstance() : report_; } else { return reportBuilder_.getMessage(); } } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ public Builder setReport(com.tencent.polaris.client.pb.RateLimitProto.Report value) { if (reportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } report_ = value; onChanged(); } else { reportBuilder_.setMessage(value); } return this; } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ public Builder setReport( com.tencent.polaris.client.pb.RateLimitProto.Report.Builder builderForValue) { if (reportBuilder_ == null) { report_ = builderForValue.build(); onChanged(); } else { reportBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ public Builder mergeReport(com.tencent.polaris.client.pb.RateLimitProto.Report value) { if (reportBuilder_ == null) { if (report_ != null) { report_ = com.tencent.polaris.client.pb.RateLimitProto.Report.newBuilder(report_).mergeFrom(value).buildPartial(); } else { report_ = value; } onChanged(); } else { reportBuilder_.mergeFrom(value); } return this; } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ public Builder clearReport() { if (reportBuilder_ == null) { report_ = null; onChanged(); } else { report_ = null; reportBuilder_ = null; } return this; } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ public com.tencent.polaris.client.pb.RateLimitProto.Report.Builder getReportBuilder() { onChanged(); return getReportFieldBuilder().getBuilder(); } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ public com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder getReportOrBuilder() { if (reportBuilder_ != null) { return reportBuilder_.getMessageOrBuilder(); } else { return report_ == null ? com.tencent.polaris.client.pb.RateLimitProto.Report.getDefaultInstance() : report_; } } /** *
       * 限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
       * 
* * .v1.Report report = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Report, com.tencent.polaris.client.pb.RateLimitProto.Report.Builder, com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder> getReportFieldBuilder() { if (reportBuilder_ == null) { reportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.Report, com.tencent.polaris.client.pb.RateLimitProto.Report.Builder, com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder>( getReport(), getParentForChildren(), isClean()); report_ = null; } return reportBuilder_; } private com.google.protobuf.StringValue ctime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> ctimeBuilder_; /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; * @return Whether the ctime field is set. */ public boolean hasCtime() { return ctimeBuilder_ != null || ctime_ != null; } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; * @return The ctime. */ public com.google.protobuf.StringValue getCtime() { if (ctimeBuilder_ == null) { return ctime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : ctime_; } else { return ctimeBuilder_.getMessage(); } } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ public Builder setCtime(com.google.protobuf.StringValue value) { if (ctimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ctime_ = value; onChanged(); } else { ctimeBuilder_.setMessage(value); } return this; } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ public Builder setCtime( com.google.protobuf.StringValue.Builder builderForValue) { if (ctimeBuilder_ == null) { ctime_ = builderForValue.build(); onChanged(); } else { ctimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ public Builder mergeCtime(com.google.protobuf.StringValue value) { if (ctimeBuilder_ == null) { if (ctime_ != null) { ctime_ = com.google.protobuf.StringValue.newBuilder(ctime_).mergeFrom(value).buildPartial(); } else { ctime_ = value; } onChanged(); } else { ctimeBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ public Builder clearCtime() { if (ctimeBuilder_ == null) { ctime_ = null; onChanged(); } else { ctime_ = null; ctimeBuilder_ = null; } return this; } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ public com.google.protobuf.StringValue.Builder getCtimeBuilder() { onChanged(); return getCtimeFieldBuilder().getBuilder(); } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ public com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder() { if (ctimeBuilder_ != null) { return ctimeBuilder_.getMessageOrBuilder(); } else { return ctime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : ctime_; } } /** *
       * 限流规则创建时间
       * 
* * .google.protobuf.StringValue ctime = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getCtimeFieldBuilder() { if (ctimeBuilder_ == null) { ctimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getCtime(), getParentForChildren(), isClean()); ctime_ = null; } return ctimeBuilder_; } private com.google.protobuf.StringValue mtime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> mtimeBuilder_; /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; * @return Whether the mtime field is set. */ public boolean hasMtime() { return mtimeBuilder_ != null || mtime_ != null; } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; * @return The mtime. */ public com.google.protobuf.StringValue getMtime() { if (mtimeBuilder_ == null) { return mtime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mtime_; } else { return mtimeBuilder_.getMessage(); } } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ public Builder setMtime(com.google.protobuf.StringValue value) { if (mtimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mtime_ = value; onChanged(); } else { mtimeBuilder_.setMessage(value); } return this; } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ public Builder setMtime( com.google.protobuf.StringValue.Builder builderForValue) { if (mtimeBuilder_ == null) { mtime_ = builderForValue.build(); onChanged(); } else { mtimeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ public Builder mergeMtime(com.google.protobuf.StringValue value) { if (mtimeBuilder_ == null) { if (mtime_ != null) { mtime_ = com.google.protobuf.StringValue.newBuilder(mtime_).mergeFrom(value).buildPartial(); } else { mtime_ = value; } onChanged(); } else { mtimeBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ public Builder clearMtime() { if (mtimeBuilder_ == null) { mtime_ = null; onChanged(); } else { mtime_ = null; mtimeBuilder_ = null; } return this; } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ public com.google.protobuf.StringValue.Builder getMtimeBuilder() { onChanged(); return getMtimeFieldBuilder().getBuilder(); } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ public com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder() { if (mtimeBuilder_ != null) { return mtimeBuilder_.getMessageOrBuilder(); } else { return mtime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mtime_; } } /** *
       * 限流规则修改时间
       * 
* * .google.protobuf.StringValue mtime = 14; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getMtimeFieldBuilder() { if (mtimeBuilder_ == null) { mtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getMtime(), getParentForChildren(), isClean()); mtime_ = null; } return mtimeBuilder_; } private com.google.protobuf.StringValue revision_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> revisionBuilder_; /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; * @return Whether the revision field is set. */ public boolean hasRevision() { return revisionBuilder_ != null || revision_ != null; } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; * @return The revision. */ public com.google.protobuf.StringValue getRevision() { if (revisionBuilder_ == null) { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } else { return revisionBuilder_.getMessage(); } } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ public Builder setRevision(com.google.protobuf.StringValue value) { if (revisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revision_ = value; onChanged(); } else { revisionBuilder_.setMessage(value); } return this; } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ public Builder setRevision( com.google.protobuf.StringValue.Builder builderForValue) { if (revisionBuilder_ == null) { revision_ = builderForValue.build(); onChanged(); } else { revisionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ public Builder mergeRevision(com.google.protobuf.StringValue value) { if (revisionBuilder_ == null) { if (revision_ != null) { revision_ = com.google.protobuf.StringValue.newBuilder(revision_).mergeFrom(value).buildPartial(); } else { revision_ = value; } onChanged(); } else { revisionBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ public Builder clearRevision() { if (revisionBuilder_ == null) { revision_ = null; onChanged(); } else { revision_ = null; revisionBuilder_ = null; } return this; } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ public com.google.protobuf.StringValue.Builder getRevisionBuilder() { onChanged(); return getRevisionFieldBuilder().getBuilder(); } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ public com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder() { if (revisionBuilder_ != null) { return revisionBuilder_.getMessageOrBuilder(); } else { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } } /** *
       * 限流规则revision信息
       * 
* * .google.protobuf.StringValue revision = 15; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getRevisionFieldBuilder() { if (revisionBuilder_ == null) { revisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getRevision(), getParentForChildren(), isClean()); revision_ = null; } return revisionBuilder_; } private com.google.protobuf.StringValue serviceToken_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceTokenBuilder_; /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; * @return Whether the serviceToken field is set. */ public boolean hasServiceToken() { return serviceTokenBuilder_ != null || serviceToken_ != null; } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; * @return The serviceToken. */ public com.google.protobuf.StringValue getServiceToken() { if (serviceTokenBuilder_ == null) { return serviceToken_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceToken_; } else { return serviceTokenBuilder_.getMessage(); } } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ public Builder setServiceToken(com.google.protobuf.StringValue value) { if (serviceTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceToken_ = value; onChanged(); } else { serviceTokenBuilder_.setMessage(value); } return this; } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ public Builder setServiceToken( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceTokenBuilder_ == null) { serviceToken_ = builderForValue.build(); onChanged(); } else { serviceTokenBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ public Builder mergeServiceToken(com.google.protobuf.StringValue value) { if (serviceTokenBuilder_ == null) { if (serviceToken_ != null) { serviceToken_ = com.google.protobuf.StringValue.newBuilder(serviceToken_).mergeFrom(value).buildPartial(); } else { serviceToken_ = value; } onChanged(); } else { serviceTokenBuilder_.mergeFrom(value); } return this; } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ public Builder clearServiceToken() { if (serviceTokenBuilder_ == null) { serviceToken_ = null; onChanged(); } else { serviceToken_ = null; serviceTokenBuilder_ = null; } return this; } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ public com.google.protobuf.StringValue.Builder getServiceTokenBuilder() { onChanged(); return getServiceTokenFieldBuilder().getBuilder(); } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ public com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder() { if (serviceTokenBuilder_ != null) { return serviceTokenBuilder_.getMessageOrBuilder(); } else { return serviceToken_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceToken_; } } /** *
       * 服务的TOKEN信息,仅用于控制台,discover接口不下发
       * 
* * .google.protobuf.StringValue service_token = 16[json_name = "service_token"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceTokenFieldBuilder() { if (serviceTokenBuilder_ == null) { serviceTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getServiceToken(), getParentForChildren(), isClean()); serviceToken_ = null; } return serviceTokenBuilder_; } private com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster adjuster_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder> adjusterBuilder_; /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; * @return Whether the adjuster field is set. */ public boolean hasAdjuster() { return adjusterBuilder_ != null || adjuster_ != null; } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; * @return The adjuster. */ public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster getAdjuster() { if (adjusterBuilder_ == null) { return adjuster_ == null ? com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.getDefaultInstance() : adjuster_; } else { return adjusterBuilder_.getMessage(); } } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ public Builder setAdjuster(com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster value) { if (adjusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adjuster_ = value; onChanged(); } else { adjusterBuilder_.setMessage(value); } return this; } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ public Builder setAdjuster( com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder builderForValue) { if (adjusterBuilder_ == null) { adjuster_ = builderForValue.build(); onChanged(); } else { adjusterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ public Builder mergeAdjuster(com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster value) { if (adjusterBuilder_ == null) { if (adjuster_ != null) { adjuster_ = com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.newBuilder(adjuster_).mergeFrom(value).buildPartial(); } else { adjuster_ = value; } onChanged(); } else { adjusterBuilder_.mergeFrom(value); } return this; } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ public Builder clearAdjuster() { if (adjusterBuilder_ == null) { adjuster_ = null; onChanged(); } else { adjuster_ = null; adjusterBuilder_ = null; } return this; } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder getAdjusterBuilder() { onChanged(); return getAdjusterFieldBuilder().getBuilder(); } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder getAdjusterOrBuilder() { if (adjusterBuilder_ != null) { return adjusterBuilder_.getMessageOrBuilder(); } else { return adjuster_ == null ? com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.getDefaultInstance() : adjuster_; } } /** *
       * 配额调整算法
       * 
* * .v1.AmountAdjuster adjuster = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder> getAdjusterFieldBuilder() { if (adjusterBuilder_ == null) { adjusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder>( getAdjuster(), getParentForChildren(), isClean()); adjuster_ = null; } return adjusterBuilder_; } private com.google.protobuf.BoolValue regexCombine_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> regexCombineBuilder_; /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; * @return Whether the regexCombine field is set. */ public boolean hasRegexCombine() { return regexCombineBuilder_ != null || regexCombine_ != null; } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; * @return The regexCombine. */ public com.google.protobuf.BoolValue getRegexCombine() { if (regexCombineBuilder_ == null) { return regexCombine_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : regexCombine_; } else { return regexCombineBuilder_.getMessage(); } } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ public Builder setRegexCombine(com.google.protobuf.BoolValue value) { if (regexCombineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regexCombine_ = value; onChanged(); } else { regexCombineBuilder_.setMessage(value); } return this; } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ public Builder setRegexCombine( com.google.protobuf.BoolValue.Builder builderForValue) { if (regexCombineBuilder_ == null) { regexCombine_ = builderForValue.build(); onChanged(); } else { regexCombineBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ public Builder mergeRegexCombine(com.google.protobuf.BoolValue value) { if (regexCombineBuilder_ == null) { if (regexCombine_ != null) { regexCombine_ = com.google.protobuf.BoolValue.newBuilder(regexCombine_).mergeFrom(value).buildPartial(); } else { regexCombine_ = value; } onChanged(); } else { regexCombineBuilder_.mergeFrom(value); } return this; } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ public Builder clearRegexCombine() { if (regexCombineBuilder_ == null) { regexCombine_ = null; onChanged(); } else { regexCombine_ = null; regexCombineBuilder_ = null; } return this; } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ public com.google.protobuf.BoolValue.Builder getRegexCombineBuilder() { onChanged(); return getRegexCombineFieldBuilder().getBuilder(); } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ public com.google.protobuf.BoolValueOrBuilder getRegexCombineOrBuilder() { if (regexCombineBuilder_ != null) { return regexCombineBuilder_.getMessageOrBuilder(); } else { return regexCombine_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : regexCombine_; } } /** *
       * 通配符是否合并计算,默认分开计数
       * 
* * .google.protobuf.BoolValue regex_combine = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getRegexCombineFieldBuilder() { if (regexCombineBuilder_ == null) { regexCombineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getRegexCombine(), getParentForChildren(), isClean()); regexCombine_ = null; } return regexCombineBuilder_; } private int amountMode_ = 0; /** * .v1.Rule.AmountMode amount_mode = 19; * @return The enum numeric value on the wire for amountMode. */ @java.lang.Override public int getAmountModeValue() { return amountMode_; } /** * .v1.Rule.AmountMode amount_mode = 19; * @param value The enum numeric value on the wire for amountMode to set. * @return This builder for chaining. */ public Builder setAmountModeValue(int value) { amountMode_ = value; onChanged(); return this; } /** * .v1.Rule.AmountMode amount_mode = 19; * @return The amountMode. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode getAmountMode() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode result = com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode.valueOf(amountMode_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode.UNRECOGNIZED : result; } /** * .v1.Rule.AmountMode amount_mode = 19; * @param value The amountMode to set. * @return This builder for chaining. */ public Builder setAmountMode(com.tencent.polaris.client.pb.RateLimitProto.Rule.AmountMode value) { if (value == null) { throw new NullPointerException(); } amountMode_ = value.getNumber(); onChanged(); return this; } /** * .v1.Rule.AmountMode amount_mode = 19; * @return This builder for chaining. */ public Builder clearAmountMode() { amountMode_ = 0; onChanged(); return this; } private int failover_ = 0; /** * .v1.Rule.FailoverType failover = 20; * @return The enum numeric value on the wire for failover. */ @java.lang.Override public int getFailoverValue() { return failover_; } /** * .v1.Rule.FailoverType failover = 20; * @param value The enum numeric value on the wire for failover to set. * @return This builder for chaining. */ public Builder setFailoverValue(int value) { failover_ = value; onChanged(); return this; } /** * .v1.Rule.FailoverType failover = 20; * @return The failover. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType getFailover() { @SuppressWarnings("deprecation") com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType result = com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType.valueOf(failover_); return result == null ? com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType.UNRECOGNIZED : result; } /** * .v1.Rule.FailoverType failover = 20; * @param value The failover to set. * @return This builder for chaining. */ public Builder setFailover(com.tencent.polaris.client.pb.RateLimitProto.Rule.FailoverType value) { if (value == null) { throw new NullPointerException(); } failover_ = value.getNumber(); onChanged(); return this; } /** * .v1.Rule.FailoverType failover = 20; * @return This builder for chaining. */ public Builder clearFailover() { failover_ = 0; onChanged(); return this; } private com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster, com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder, com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder> clusterBuilder_; /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; * @return The cluster. */ public com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster getCluster() { if (clusterBuilder_ == null) { return cluster_ == null ? com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ public Builder setCluster(com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster value) { if (clusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cluster_ = value; onChanged(); } else { clusterBuilder_.setMessage(value); } return this; } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ public Builder setCluster( com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); } else { clusterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ public Builder mergeCluster(com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } onChanged(); } else { clusterBuilder_.mergeFrom(value); } return this; } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ public Builder clearCluster() { if (clusterBuilder_ == null) { cluster_ = null; onChanged(); } else { cluster_ = null; clusterBuilder_ = null; } return this; } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ public com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder getClusterBuilder() { onChanged(); return getClusterFieldBuilder().getBuilder(); } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ public com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { return cluster_ == null ? com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.getDefaultInstance() : cluster_; } } /** *
       * 分布式限流服务集群
       * 
* * .v1.RateLimitCluster cluster = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster, com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder, com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster, com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder, com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder>( getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } @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.Rule) } // @@protoc_insertion_point(class_scope:v1.Rule) private static final com.tencent.polaris.client.pb.RateLimitProto.Rule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.Rule(); } public static com.tencent.polaris.client.pb.RateLimitProto.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Rule parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Rule(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RateLimitClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.RateLimitCluster) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ boolean hasService(); /** * .google.protobuf.StringValue service = 1; * @return The service. */ com.google.protobuf.StringValue getService(); /** * .google.protobuf.StringValue service = 1; */ com.google.protobuf.StringValueOrBuilder getServiceOrBuilder(); /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ com.google.protobuf.StringValue getNamespace(); /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 2; */ com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder(); } /** *
   * 分布式限流服务集群
   * 
* * Protobuf type {@code v1.RateLimitCluster} */ public static final class RateLimitCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.RateLimitCluster) RateLimitClusterOrBuilder { private static final long serialVersionUID = 0L; // Use RateLimitCluster.newBuilder() to construct. private RateLimitCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RateLimitCluster() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RateLimitCluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RateLimitCluster( 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: { com.google.protobuf.StringValue.Builder subBuilder = null; if (service_ != null) { subBuilder = service_.toBuilder(); } service_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(service_); service_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.StringValue.Builder subBuilder = null; if (namespace_ != null) { subBuilder = namespace_.toBuilder(); } namespace_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(namespace_); namespace_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimitCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimitCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.class, com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.protobuf.StringValue service_; /** * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ @java.lang.Override public boolean hasService() { return service_ != null; } /** * .google.protobuf.StringValue service = 1; * @return The service. */ @java.lang.Override public com.google.protobuf.StringValue getService() { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } /** * .google.protobuf.StringValue service = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { return getService(); } public static final int NAMESPACE_FIELD_NUMBER = 2; private com.google.protobuf.StringValue namespace_; /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return namespace_ != null; } /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ @java.lang.Override public com.google.protobuf.StringValue getNamespace() { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } /** *
     * 限流规则所属命名空间
     * 
* * .google.protobuf.StringValue namespace = 2; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { return getNamespace(); } 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 (service_ != null) { output.writeMessage(1, getService()); } if (namespace_ != null) { output.writeMessage(2, getNamespace()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (service_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getService()); } if (namespace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNamespace()); } 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 com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster other = (com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster) obj; if (hasService() != other.hasService()) return false; if (hasService()) { if (!getService() .equals(other.getService())) return false; } if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) 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 (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster 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.client.pb.RateLimitProto.RateLimitCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster 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.client.pb.RateLimitProto.RateLimitCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster 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.client.pb.RateLimitProto.RateLimitCluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster 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.client.pb.RateLimitProto.RateLimitCluster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster 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.client.pb.RateLimitProto.RateLimitCluster 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.RateLimitCluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.RateLimitCluster) com.tencent.polaris.client.pb.RateLimitProto.RateLimitClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimitCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimitCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.class, com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.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 (serviceBuilder_ == null) { service_ = null; } else { service_ = null; serviceBuilder_ = null; } if (namespaceBuilder_ == null) { namespace_ = null; } else { namespace_ = null; namespaceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_RateLimitCluster_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster build() { com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster result = new com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster(this); if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (namespaceBuilder_ == null) { result.namespace_ = namespace_; } else { result.namespace_ = namespaceBuilder_.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.client.pb.RateLimitProto.RateLimitCluster) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster.getDefaultInstance()) return this; if (other.hasService()) { mergeService(other.getService()); } if (other.hasNamespace()) { mergeNamespace(other.getNamespace()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.StringValue service_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceBuilder_; /** * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** * .google.protobuf.StringValue service = 1; * @return The service. */ public com.google.protobuf.StringValue getService() { if (serviceBuilder_ == null) { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** * .google.protobuf.StringValue service = 1; */ public Builder setService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue service = 1; */ public Builder setService( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue service = 1; */ public Builder mergeService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = com.google.protobuf.StringValue.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue service = 1; */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { service_ = null; serviceBuilder_ = null; } return this; } /** * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValue.Builder getServiceBuilder() { onChanged(); return getServiceFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } } /** * .google.protobuf.StringValue service = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.StringValue namespace_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> namespaceBuilder_; /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return namespaceBuilder_ != null || namespace_ != null; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ public com.google.protobuf.StringValue getNamespace() { if (namespaceBuilder_ == null) { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } else { return namespaceBuilder_.getMessage(); } } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); } else { namespaceBuilder_.setMessage(value); } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace( com.google.protobuf.StringValue.Builder builderForValue) { if (namespaceBuilder_ == null) { namespace_ = builderForValue.build(); onChanged(); } else { namespaceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ public Builder mergeNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (namespace_ != null) { namespace_ = com.google.protobuf.StringValue.newBuilder(namespace_).mergeFrom(value).buildPartial(); } else { namespace_ = value; } onChanged(); } else { namespaceBuilder_.mergeFrom(value); } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ public Builder clearNamespace() { if (namespaceBuilder_ == null) { namespace_ = null; onChanged(); } else { namespace_ = null; namespaceBuilder_ = null; } return this; } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValue.Builder getNamespaceBuilder() { onChanged(); return getNamespaceFieldBuilder().getBuilder(); } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { if (namespaceBuilder_ != null) { return namespaceBuilder_.getMessageOrBuilder(); } else { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } } /** *
       * 限流规则所属命名空间
       * 
* * .google.protobuf.StringValue namespace = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getNamespaceFieldBuilder() { if (namespaceBuilder_ == null) { namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getNamespace(), getParentForChildren(), isClean()); namespace_ = null; } return namespaceBuilder_; } @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.RateLimitCluster) } // @@protoc_insertion_point(class_scope:v1.RateLimitCluster) private static final com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster(); } public static com.tencent.polaris.client.pb.RateLimitProto.RateLimitCluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RateLimitCluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RateLimitCluster(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.RateLimitCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AmountOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Amount) com.google.protobuf.MessageOrBuilder { /** *
     * 时间周期内的最大配额数
     * 
* * .google.protobuf.UInt32Value maxAmount = 1; * @return Whether the maxAmount field is set. */ boolean hasMaxAmount(); /** *
     * 时间周期内的最大配额数
     * 
* * .google.protobuf.UInt32Value maxAmount = 1; * @return The maxAmount. */ com.google.protobuf.UInt32Value getMaxAmount(); /** *
     * 时间周期内的最大配额数
     * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ com.google.protobuf.UInt32ValueOrBuilder getMaxAmountOrBuilder(); /** *
     * 配额生效的时间周期,必须大于等于1s
     * 
* * .google.protobuf.Duration validDuration = 2; * @return Whether the validDuration field is set. */ boolean hasValidDuration(); /** *
     * 配额生效的时间周期,必须大于等于1s
     * 
* * .google.protobuf.Duration validDuration = 2; * @return The validDuration. */ com.google.protobuf.Duration getValidDuration(); /** *
     * 配额生效的时间周期,必须大于等于1s
     * 
* * .google.protobuf.Duration validDuration = 2; */ com.google.protobuf.DurationOrBuilder getValidDurationOrBuilder(); /** *
     * 请求统计精度
     * 
* * .google.protobuf.UInt32Value precision = 3; * @return Whether the precision field is set. */ boolean hasPrecision(); /** *
     * 请求统计精度
     * 
* * .google.protobuf.UInt32Value precision = 3; * @return The precision. */ com.google.protobuf.UInt32Value getPrecision(); /** *
     * 请求统计精度
     * 
* * .google.protobuf.UInt32Value precision = 3; */ com.google.protobuf.UInt32ValueOrBuilder getPrecisionOrBuilder(); /** *
     * 可选,起始限流阈值,爬坡起始值
     * 
* * .google.protobuf.UInt32Value startAmount = 4; * @return Whether the startAmount field is set. */ boolean hasStartAmount(); /** *
     * 可选,起始限流阈值,爬坡起始值
     * 
* * .google.protobuf.UInt32Value startAmount = 4; * @return The startAmount. */ com.google.protobuf.UInt32Value getStartAmount(); /** *
     * 可选,起始限流阈值,爬坡起始值
     * 
* * .google.protobuf.UInt32Value startAmount = 4; */ com.google.protobuf.UInt32ValueOrBuilder getStartAmountOrBuilder(); /** *
     * 可选,最小限流阈值,降低时最小值
     * 
* * .google.protobuf.UInt32Value minAmount = 5; * @return Whether the minAmount field is set. */ boolean hasMinAmount(); /** *
     * 可选,最小限流阈值,降低时最小值
     * 
* * .google.protobuf.UInt32Value minAmount = 5; * @return The minAmount. */ com.google.protobuf.UInt32Value getMinAmount(); /** *
     * 可选,最小限流阈值,降低时最小值
     * 
* * .google.protobuf.UInt32Value minAmount = 5; */ com.google.protobuf.UInt32ValueOrBuilder getMinAmountOrBuilder(); } /** *
   * 限流配额
   * 
* * Protobuf type {@code v1.Amount} */ public static final class Amount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Amount) AmountOrBuilder { private static final long serialVersionUID = 0L; // Use Amount.newBuilder() to construct. private Amount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Amount() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Amount(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Amount( 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: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (maxAmount_ != null) { subBuilder = maxAmount_.toBuilder(); } maxAmount_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxAmount_); maxAmount_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (validDuration_ != null) { subBuilder = validDuration_.toBuilder(); } validDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(validDuration_); validDuration_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (precision_ != null) { subBuilder = precision_.toBuilder(); } precision_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(precision_); precision_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (startAmount_ != null) { subBuilder = startAmount_.toBuilder(); } startAmount_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(startAmount_); startAmount_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (minAmount_ != null) { subBuilder = minAmount_.toBuilder(); } minAmount_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(minAmount_); minAmount_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Amount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Amount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.Amount.class, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder.class); } public static final int MAXAMOUNT_FIELD_NUMBER = 1; private com.google.protobuf.UInt32Value maxAmount_; /** *
     * 时间周期内的最大配额数
     * 
* * .google.protobuf.UInt32Value maxAmount = 1; * @return Whether the maxAmount field is set. */ @java.lang.Override public boolean hasMaxAmount() { return maxAmount_ != null; } /** *
     * 时间周期内的最大配额数
     * 
* * .google.protobuf.UInt32Value maxAmount = 1; * @return The maxAmount. */ @java.lang.Override public com.google.protobuf.UInt32Value getMaxAmount() { return maxAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxAmount_; } /** *
     * 时间周期内的最大配额数
     * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxAmountOrBuilder() { return getMaxAmount(); } public static final int VALIDDURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration validDuration_; /** *
     * 配额生效的时间周期,必须大于等于1s
     * 
* * .google.protobuf.Duration validDuration = 2; * @return Whether the validDuration field is set. */ @java.lang.Override public boolean hasValidDuration() { return validDuration_ != null; } /** *
     * 配额生效的时间周期,必须大于等于1s
     * 
* * .google.protobuf.Duration validDuration = 2; * @return The validDuration. */ @java.lang.Override public com.google.protobuf.Duration getValidDuration() { return validDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : validDuration_; } /** *
     * 配额生效的时间周期,必须大于等于1s
     * 
* * .google.protobuf.Duration validDuration = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getValidDurationOrBuilder() { return getValidDuration(); } public static final int PRECISION_FIELD_NUMBER = 3; private com.google.protobuf.UInt32Value precision_; /** *
     * 请求统计精度
     * 
* * .google.protobuf.UInt32Value precision = 3; * @return Whether the precision field is set. */ @java.lang.Override public boolean hasPrecision() { return precision_ != null; } /** *
     * 请求统计精度
     * 
* * .google.protobuf.UInt32Value precision = 3; * @return The precision. */ @java.lang.Override public com.google.protobuf.UInt32Value getPrecision() { return precision_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : precision_; } /** *
     * 请求统计精度
     * 
* * .google.protobuf.UInt32Value precision = 3; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getPrecisionOrBuilder() { return getPrecision(); } public static final int STARTAMOUNT_FIELD_NUMBER = 4; private com.google.protobuf.UInt32Value startAmount_; /** *
     * 可选,起始限流阈值,爬坡起始值
     * 
* * .google.protobuf.UInt32Value startAmount = 4; * @return Whether the startAmount field is set. */ @java.lang.Override public boolean hasStartAmount() { return startAmount_ != null; } /** *
     * 可选,起始限流阈值,爬坡起始值
     * 
* * .google.protobuf.UInt32Value startAmount = 4; * @return The startAmount. */ @java.lang.Override public com.google.protobuf.UInt32Value getStartAmount() { return startAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : startAmount_; } /** *
     * 可选,起始限流阈值,爬坡起始值
     * 
* * .google.protobuf.UInt32Value startAmount = 4; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getStartAmountOrBuilder() { return getStartAmount(); } public static final int MINAMOUNT_FIELD_NUMBER = 5; private com.google.protobuf.UInt32Value minAmount_; /** *
     * 可选,最小限流阈值,降低时最小值
     * 
* * .google.protobuf.UInt32Value minAmount = 5; * @return Whether the minAmount field is set. */ @java.lang.Override public boolean hasMinAmount() { return minAmount_ != null; } /** *
     * 可选,最小限流阈值,降低时最小值
     * 
* * .google.protobuf.UInt32Value minAmount = 5; * @return The minAmount. */ @java.lang.Override public com.google.protobuf.UInt32Value getMinAmount() { return minAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minAmount_; } /** *
     * 可选,最小限流阈值,降低时最小值
     * 
* * .google.protobuf.UInt32Value minAmount = 5; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMinAmountOrBuilder() { return getMinAmount(); } 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 (maxAmount_ != null) { output.writeMessage(1, getMaxAmount()); } if (validDuration_ != null) { output.writeMessage(2, getValidDuration()); } if (precision_ != null) { output.writeMessage(3, getPrecision()); } if (startAmount_ != null) { output.writeMessage(4, getStartAmount()); } if (minAmount_ != null) { output.writeMessage(5, getMinAmount()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxAmount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMaxAmount()); } if (validDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValidDuration()); } if (precision_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPrecision()); } if (startAmount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getStartAmount()); } if (minAmount_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMinAmount()); } 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 com.tencent.polaris.client.pb.RateLimitProto.Amount)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.Amount other = (com.tencent.polaris.client.pb.RateLimitProto.Amount) obj; if (hasMaxAmount() != other.hasMaxAmount()) return false; if (hasMaxAmount()) { if (!getMaxAmount() .equals(other.getMaxAmount())) return false; } if (hasValidDuration() != other.hasValidDuration()) return false; if (hasValidDuration()) { if (!getValidDuration() .equals(other.getValidDuration())) return false; } if (hasPrecision() != other.hasPrecision()) return false; if (hasPrecision()) { if (!getPrecision() .equals(other.getPrecision())) return false; } if (hasStartAmount() != other.hasStartAmount()) return false; if (hasStartAmount()) { if (!getStartAmount() .equals(other.getStartAmount())) return false; } if (hasMinAmount() != other.hasMinAmount()) return false; if (hasMinAmount()) { if (!getMinAmount() .equals(other.getMinAmount())) 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 (hasMaxAmount()) { hash = (37 * hash) + MAXAMOUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxAmount().hashCode(); } if (hasValidDuration()) { hash = (37 * hash) + VALIDDURATION_FIELD_NUMBER; hash = (53 * hash) + getValidDuration().hashCode(); } if (hasPrecision()) { hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision().hashCode(); } if (hasStartAmount()) { hash = (37 * hash) + STARTAMOUNT_FIELD_NUMBER; hash = (53 * hash) + getStartAmount().hashCode(); } if (hasMinAmount()) { hash = (37 * hash) + MINAMOUNT_FIELD_NUMBER; hash = (53 * hash) + getMinAmount().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.Amount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount 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.client.pb.RateLimitProto.Amount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount 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.client.pb.RateLimitProto.Amount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount 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.client.pb.RateLimitProto.Amount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount 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.client.pb.RateLimitProto.Amount parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount 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.client.pb.RateLimitProto.Amount 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.Amount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Amount) com.tencent.polaris.client.pb.RateLimitProto.AmountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Amount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Amount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.Amount.class, com.tencent.polaris.client.pb.RateLimitProto.Amount.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.Amount.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 (maxAmountBuilder_ == null) { maxAmount_ = null; } else { maxAmount_ = null; maxAmountBuilder_ = null; } if (validDurationBuilder_ == null) { validDuration_ = null; } else { validDuration_ = null; validDurationBuilder_ = null; } if (precisionBuilder_ == null) { precision_ = null; } else { precision_ = null; precisionBuilder_ = null; } if (startAmountBuilder_ == null) { startAmount_ = null; } else { startAmount_ = null; startAmountBuilder_ = null; } if (minAmountBuilder_ == null) { minAmount_ = null; } else { minAmount_ = null; minAmountBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Amount_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Amount getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.Amount.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Amount build() { com.tencent.polaris.client.pb.RateLimitProto.Amount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Amount buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.Amount result = new com.tencent.polaris.client.pb.RateLimitProto.Amount(this); if (maxAmountBuilder_ == null) { result.maxAmount_ = maxAmount_; } else { result.maxAmount_ = maxAmountBuilder_.build(); } if (validDurationBuilder_ == null) { result.validDuration_ = validDuration_; } else { result.validDuration_ = validDurationBuilder_.build(); } if (precisionBuilder_ == null) { result.precision_ = precision_; } else { result.precision_ = precisionBuilder_.build(); } if (startAmountBuilder_ == null) { result.startAmount_ = startAmount_; } else { result.startAmount_ = startAmountBuilder_.build(); } if (minAmountBuilder_ == null) { result.minAmount_ = minAmount_; } else { result.minAmount_ = minAmountBuilder_.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.client.pb.RateLimitProto.Amount) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.Amount)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.Amount other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.Amount.getDefaultInstance()) return this; if (other.hasMaxAmount()) { mergeMaxAmount(other.getMaxAmount()); } if (other.hasValidDuration()) { mergeValidDuration(other.getValidDuration()); } if (other.hasPrecision()) { mergePrecision(other.getPrecision()); } if (other.hasStartAmount()) { mergeStartAmount(other.getStartAmount()); } if (other.hasMinAmount()) { mergeMinAmount(other.getMinAmount()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.Amount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.Amount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.UInt32Value maxAmount_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxAmountBuilder_; /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; * @return Whether the maxAmount field is set. */ public boolean hasMaxAmount() { return maxAmountBuilder_ != null || maxAmount_ != null; } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; * @return The maxAmount. */ public com.google.protobuf.UInt32Value getMaxAmount() { if (maxAmountBuilder_ == null) { return maxAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxAmount_; } else { return maxAmountBuilder_.getMessage(); } } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ public Builder setMaxAmount(com.google.protobuf.UInt32Value value) { if (maxAmountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxAmount_ = value; onChanged(); } else { maxAmountBuilder_.setMessage(value); } return this; } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ public Builder setMaxAmount( com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxAmountBuilder_ == null) { maxAmount_ = builderForValue.build(); onChanged(); } else { maxAmountBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ public Builder mergeMaxAmount(com.google.protobuf.UInt32Value value) { if (maxAmountBuilder_ == null) { if (maxAmount_ != null) { maxAmount_ = com.google.protobuf.UInt32Value.newBuilder(maxAmount_).mergeFrom(value).buildPartial(); } else { maxAmount_ = value; } onChanged(); } else { maxAmountBuilder_.mergeFrom(value); } return this; } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ public Builder clearMaxAmount() { if (maxAmountBuilder_ == null) { maxAmount_ = null; onChanged(); } else { maxAmount_ = null; maxAmountBuilder_ = null; } return this; } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ public com.google.protobuf.UInt32Value.Builder getMaxAmountBuilder() { onChanged(); return getMaxAmountFieldBuilder().getBuilder(); } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ public com.google.protobuf.UInt32ValueOrBuilder getMaxAmountOrBuilder() { if (maxAmountBuilder_ != null) { return maxAmountBuilder_.getMessageOrBuilder(); } else { return maxAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxAmount_; } } /** *
       * 时间周期内的最大配额数
       * 
* * .google.protobuf.UInt32Value maxAmount = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMaxAmountFieldBuilder() { if (maxAmountBuilder_ == null) { maxAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getMaxAmount(), getParentForChildren(), isClean()); maxAmount_ = null; } return maxAmountBuilder_; } private com.google.protobuf.Duration validDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> validDurationBuilder_; /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; * @return Whether the validDuration field is set. */ public boolean hasValidDuration() { return validDurationBuilder_ != null || validDuration_ != null; } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; * @return The validDuration. */ public com.google.protobuf.Duration getValidDuration() { if (validDurationBuilder_ == null) { return validDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : validDuration_; } else { return validDurationBuilder_.getMessage(); } } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ public Builder setValidDuration(com.google.protobuf.Duration value) { if (validDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } validDuration_ = value; onChanged(); } else { validDurationBuilder_.setMessage(value); } return this; } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ public Builder setValidDuration( com.google.protobuf.Duration.Builder builderForValue) { if (validDurationBuilder_ == null) { validDuration_ = builderForValue.build(); onChanged(); } else { validDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ public Builder mergeValidDuration(com.google.protobuf.Duration value) { if (validDurationBuilder_ == null) { if (validDuration_ != null) { validDuration_ = com.google.protobuf.Duration.newBuilder(validDuration_).mergeFrom(value).buildPartial(); } else { validDuration_ = value; } onChanged(); } else { validDurationBuilder_.mergeFrom(value); } return this; } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ public Builder clearValidDuration() { if (validDurationBuilder_ == null) { validDuration_ = null; onChanged(); } else { validDuration_ = null; validDurationBuilder_ = null; } return this; } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ public com.google.protobuf.Duration.Builder getValidDurationBuilder() { onChanged(); return getValidDurationFieldBuilder().getBuilder(); } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ public com.google.protobuf.DurationOrBuilder getValidDurationOrBuilder() { if (validDurationBuilder_ != null) { return validDurationBuilder_.getMessageOrBuilder(); } else { return validDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : validDuration_; } } /** *
       * 配额生效的时间周期,必须大于等于1s
       * 
* * .google.protobuf.Duration validDuration = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getValidDurationFieldBuilder() { if (validDurationBuilder_ == null) { validDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getValidDuration(), getParentForChildren(), isClean()); validDuration_ = null; } return validDurationBuilder_; } private com.google.protobuf.UInt32Value precision_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> precisionBuilder_; /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; * @return Whether the precision field is set. */ public boolean hasPrecision() { return precisionBuilder_ != null || precision_ != null; } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; * @return The precision. */ public com.google.protobuf.UInt32Value getPrecision() { if (precisionBuilder_ == null) { return precision_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : precision_; } else { return precisionBuilder_.getMessage(); } } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ public Builder setPrecision(com.google.protobuf.UInt32Value value) { if (precisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } precision_ = value; onChanged(); } else { precisionBuilder_.setMessage(value); } return this; } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ public Builder setPrecision( com.google.protobuf.UInt32Value.Builder builderForValue) { if (precisionBuilder_ == null) { precision_ = builderForValue.build(); onChanged(); } else { precisionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ public Builder mergePrecision(com.google.protobuf.UInt32Value value) { if (precisionBuilder_ == null) { if (precision_ != null) { precision_ = com.google.protobuf.UInt32Value.newBuilder(precision_).mergeFrom(value).buildPartial(); } else { precision_ = value; } onChanged(); } else { precisionBuilder_.mergeFrom(value); } return this; } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ public Builder clearPrecision() { if (precisionBuilder_ == null) { precision_ = null; onChanged(); } else { precision_ = null; precisionBuilder_ = null; } return this; } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ public com.google.protobuf.UInt32Value.Builder getPrecisionBuilder() { onChanged(); return getPrecisionFieldBuilder().getBuilder(); } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ public com.google.protobuf.UInt32ValueOrBuilder getPrecisionOrBuilder() { if (precisionBuilder_ != null) { return precisionBuilder_.getMessageOrBuilder(); } else { return precision_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : precision_; } } /** *
       * 请求统计精度
       * 
* * .google.protobuf.UInt32Value precision = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getPrecisionFieldBuilder() { if (precisionBuilder_ == null) { precisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getPrecision(), getParentForChildren(), isClean()); precision_ = null; } return precisionBuilder_; } private com.google.protobuf.UInt32Value startAmount_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> startAmountBuilder_; /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; * @return Whether the startAmount field is set. */ public boolean hasStartAmount() { return startAmountBuilder_ != null || startAmount_ != null; } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; * @return The startAmount. */ public com.google.protobuf.UInt32Value getStartAmount() { if (startAmountBuilder_ == null) { return startAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : startAmount_; } else { return startAmountBuilder_.getMessage(); } } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ public Builder setStartAmount(com.google.protobuf.UInt32Value value) { if (startAmountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startAmount_ = value; onChanged(); } else { startAmountBuilder_.setMessage(value); } return this; } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ public Builder setStartAmount( com.google.protobuf.UInt32Value.Builder builderForValue) { if (startAmountBuilder_ == null) { startAmount_ = builderForValue.build(); onChanged(); } else { startAmountBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ public Builder mergeStartAmount(com.google.protobuf.UInt32Value value) { if (startAmountBuilder_ == null) { if (startAmount_ != null) { startAmount_ = com.google.protobuf.UInt32Value.newBuilder(startAmount_).mergeFrom(value).buildPartial(); } else { startAmount_ = value; } onChanged(); } else { startAmountBuilder_.mergeFrom(value); } return this; } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ public Builder clearStartAmount() { if (startAmountBuilder_ == null) { startAmount_ = null; onChanged(); } else { startAmount_ = null; startAmountBuilder_ = null; } return this; } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ public com.google.protobuf.UInt32Value.Builder getStartAmountBuilder() { onChanged(); return getStartAmountFieldBuilder().getBuilder(); } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ public com.google.protobuf.UInt32ValueOrBuilder getStartAmountOrBuilder() { if (startAmountBuilder_ != null) { return startAmountBuilder_.getMessageOrBuilder(); } else { return startAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : startAmount_; } } /** *
       * 可选,起始限流阈值,爬坡起始值
       * 
* * .google.protobuf.UInt32Value startAmount = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getStartAmountFieldBuilder() { if (startAmountBuilder_ == null) { startAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getStartAmount(), getParentForChildren(), isClean()); startAmount_ = null; } return startAmountBuilder_; } private com.google.protobuf.UInt32Value minAmount_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> minAmountBuilder_; /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; * @return Whether the minAmount field is set. */ public boolean hasMinAmount() { return minAmountBuilder_ != null || minAmount_ != null; } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; * @return The minAmount. */ public com.google.protobuf.UInt32Value getMinAmount() { if (minAmountBuilder_ == null) { return minAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minAmount_; } else { return minAmountBuilder_.getMessage(); } } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ public Builder setMinAmount(com.google.protobuf.UInt32Value value) { if (minAmountBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minAmount_ = value; onChanged(); } else { minAmountBuilder_.setMessage(value); } return this; } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ public Builder setMinAmount( com.google.protobuf.UInt32Value.Builder builderForValue) { if (minAmountBuilder_ == null) { minAmount_ = builderForValue.build(); onChanged(); } else { minAmountBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ public Builder mergeMinAmount(com.google.protobuf.UInt32Value value) { if (minAmountBuilder_ == null) { if (minAmount_ != null) { minAmount_ = com.google.protobuf.UInt32Value.newBuilder(minAmount_).mergeFrom(value).buildPartial(); } else { minAmount_ = value; } onChanged(); } else { minAmountBuilder_.mergeFrom(value); } return this; } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ public Builder clearMinAmount() { if (minAmountBuilder_ == null) { minAmount_ = null; onChanged(); } else { minAmount_ = null; minAmountBuilder_ = null; } return this; } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ public com.google.protobuf.UInt32Value.Builder getMinAmountBuilder() { onChanged(); return getMinAmountFieldBuilder().getBuilder(); } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ public com.google.protobuf.UInt32ValueOrBuilder getMinAmountOrBuilder() { if (minAmountBuilder_ != null) { return minAmountBuilder_.getMessageOrBuilder(); } else { return minAmount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : minAmount_; } } /** *
       * 可选,最小限流阈值,降低时最小值
       * 
* * .google.protobuf.UInt32Value minAmount = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMinAmountFieldBuilder() { if (minAmountBuilder_ == null) { minAmountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getMinAmount(), getParentForChildren(), isClean()); minAmount_ = null; } return minAmountBuilder_; } @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.Amount) } // @@protoc_insertion_point(class_scope:v1.Amount) private static final com.tencent.polaris.client.pb.RateLimitProto.Amount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.Amount(); } public static com.tencent.polaris.client.pb.RateLimitProto.Amount getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Amount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Amount(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.Amount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReportOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Report) com.google.protobuf.MessageOrBuilder { /** *
     * 配额固定上报周期,单位毫秒
     * 
* * .google.protobuf.Duration interval = 1; * @return Whether the interval field is set. */ boolean hasInterval(); /** *
     * 配额固定上报周期,单位毫秒
     * 
* * .google.protobuf.Duration interval = 1; * @return The interval. */ com.google.protobuf.Duration getInterval(); /** *
     * 配额固定上报周期,单位毫秒
     * 
* * .google.protobuf.Duration interval = 1; */ com.google.protobuf.DurationOrBuilder getIntervalOrBuilder(); /** *
     * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
     * 
* * .google.protobuf.UInt32Value amountPercent = 2; * @return Whether the amountPercent field is set. */ boolean hasAmountPercent(); /** *
     * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
     * 
* * .google.protobuf.UInt32Value amountPercent = 2; * @return The amountPercent. */ com.google.protobuf.UInt32Value getAmountPercent(); /** *
     * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
     * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ com.google.protobuf.UInt32ValueOrBuilder getAmountPercentOrBuilder(); } /** *
   * 限流上报方式
   * 
* * Protobuf type {@code v1.Report} */ public static final class Report extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Report) ReportOrBuilder { private static final long serialVersionUID = 0L; // Use Report.newBuilder() to construct. private Report(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Report() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Report(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Report( 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: { com.google.protobuf.Duration.Builder subBuilder = null; if (interval_ != null) { subBuilder = interval_.toBuilder(); } interval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interval_); interval_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (amountPercent_ != null) { subBuilder = amountPercent_.toBuilder(); } amountPercent_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(amountPercent_); amountPercent_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Report_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Report_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.Report.class, com.tencent.polaris.client.pb.RateLimitProto.Report.Builder.class); } public static final int INTERVAL_FIELD_NUMBER = 1; private com.google.protobuf.Duration interval_; /** *
     * 配额固定上报周期,单位毫秒
     * 
* * .google.protobuf.Duration interval = 1; * @return Whether the interval field is set. */ @java.lang.Override public boolean hasInterval() { return interval_ != null; } /** *
     * 配额固定上报周期,单位毫秒
     * 
* * .google.protobuf.Duration interval = 1; * @return The interval. */ @java.lang.Override public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } /** *
     * 配额固定上报周期,单位毫秒
     * 
* * .google.protobuf.Duration interval = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() { return getInterval(); } public static final int AMOUNTPERCENT_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value amountPercent_; /** *
     * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
     * 
* * .google.protobuf.UInt32Value amountPercent = 2; * @return Whether the amountPercent field is set. */ @java.lang.Override public boolean hasAmountPercent() { return amountPercent_ != null; } /** *
     * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
     * 
* * .google.protobuf.UInt32Value amountPercent = 2; * @return The amountPercent. */ @java.lang.Override public com.google.protobuf.UInt32Value getAmountPercent() { return amountPercent_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : amountPercent_; } /** *
     * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
     * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getAmountPercentOrBuilder() { return getAmountPercent(); } 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 (interval_ != null) { output.writeMessage(1, getInterval()); } if (amountPercent_ != null) { output.writeMessage(2, getAmountPercent()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (interval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInterval()); } if (amountPercent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAmountPercent()); } 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 com.tencent.polaris.client.pb.RateLimitProto.Report)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.Report other = (com.tencent.polaris.client.pb.RateLimitProto.Report) obj; if (hasInterval() != other.hasInterval()) return false; if (hasInterval()) { if (!getInterval() .equals(other.getInterval())) return false; } if (hasAmountPercent() != other.hasAmountPercent()) return false; if (hasAmountPercent()) { if (!getAmountPercent() .equals(other.getAmountPercent())) 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 (hasInterval()) { hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getInterval().hashCode(); } if (hasAmountPercent()) { hash = (37 * hash) + AMOUNTPERCENT_FIELD_NUMBER; hash = (53 * hash) + getAmountPercent().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.Report parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Report 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.client.pb.RateLimitProto.Report parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Report 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.client.pb.RateLimitProto.Report parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.Report parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.Report parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Report 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.client.pb.RateLimitProto.Report parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Report 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.client.pb.RateLimitProto.Report parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.Report 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.client.pb.RateLimitProto.Report 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.Report} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Report) com.tencent.polaris.client.pb.RateLimitProto.ReportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Report_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Report_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.Report.class, com.tencent.polaris.client.pb.RateLimitProto.Report.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.Report.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 (intervalBuilder_ == null) { interval_ = null; } else { interval_ = null; intervalBuilder_ = null; } if (amountPercentBuilder_ == null) { amountPercent_ = null; } else { amountPercent_ = null; amountPercentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_Report_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Report getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.Report.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Report build() { com.tencent.polaris.client.pb.RateLimitProto.Report result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.Report buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.Report result = new com.tencent.polaris.client.pb.RateLimitProto.Report(this); if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } if (amountPercentBuilder_ == null) { result.amountPercent_ = amountPercent_; } else { result.amountPercent_ = amountPercentBuilder_.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.client.pb.RateLimitProto.Report) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.Report)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.Report other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.Report.getDefaultInstance()) return this; if (other.hasInterval()) { mergeInterval(other.getInterval()); } if (other.hasAmountPercent()) { mergeAmountPercent(other.getAmountPercent()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.Report parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.Report) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Duration interval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } else { return intervalBuilder_.getMessage(); } } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ public Builder setInterval(com.google.protobuf.Duration value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } return this; } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ public Builder setInterval( com.google.protobuf.Duration.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ public Builder mergeInterval(com.google.protobuf.Duration value) { if (intervalBuilder_ == null) { if (interval_ != null) { interval_ = com.google.protobuf.Duration.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } return this; } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = null; onChanged(); } else { interval_ = null; intervalBuilder_ = null; } return this; } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ public com.google.protobuf.Duration.Builder getIntervalBuilder() { onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; } } /** *
       * 配额固定上报周期,单位毫秒
       * 
* * .google.protobuf.Duration interval = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } private com.google.protobuf.UInt32Value amountPercent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> amountPercentBuilder_; /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; * @return Whether the amountPercent field is set. */ public boolean hasAmountPercent() { return amountPercentBuilder_ != null || amountPercent_ != null; } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; * @return The amountPercent. */ public com.google.protobuf.UInt32Value getAmountPercent() { if (amountPercentBuilder_ == null) { return amountPercent_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : amountPercent_; } else { return amountPercentBuilder_.getMessage(); } } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ public Builder setAmountPercent(com.google.protobuf.UInt32Value value) { if (amountPercentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } amountPercent_ = value; onChanged(); } else { amountPercentBuilder_.setMessage(value); } return this; } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ public Builder setAmountPercent( com.google.protobuf.UInt32Value.Builder builderForValue) { if (amountPercentBuilder_ == null) { amountPercent_ = builderForValue.build(); onChanged(); } else { amountPercentBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ public Builder mergeAmountPercent(com.google.protobuf.UInt32Value value) { if (amountPercentBuilder_ == null) { if (amountPercent_ != null) { amountPercent_ = com.google.protobuf.UInt32Value.newBuilder(amountPercent_).mergeFrom(value).buildPartial(); } else { amountPercent_ = value; } onChanged(); } else { amountPercentBuilder_.mergeFrom(value); } return this; } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ public Builder clearAmountPercent() { if (amountPercentBuilder_ == null) { amountPercent_ = null; onChanged(); } else { amountPercent_ = null; amountPercentBuilder_ = null; } return this; } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ public com.google.protobuf.UInt32Value.Builder getAmountPercentBuilder() { onChanged(); return getAmountPercentFieldBuilder().getBuilder(); } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ public com.google.protobuf.UInt32ValueOrBuilder getAmountPercentOrBuilder() { if (amountPercentBuilder_ != null) { return amountPercentBuilder_.getMessageOrBuilder(); } else { return amountPercent_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : amountPercent_; } } /** *
       * 使用了百分之多少配额后启动一次实时上报,值范围(0,100]
       * 
* * .google.protobuf.UInt32Value amountPercent = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getAmountPercentFieldBuilder() { if (amountPercentBuilder_ == null) { amountPercentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getAmountPercent(), getParentForChildren(), isClean()); amountPercent_ = null; } return amountPercentBuilder_; } @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.Report) } // @@protoc_insertion_point(class_scope:v1.Report) private static final com.tencent.polaris.client.pb.RateLimitProto.Report DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.Report(); } public static com.tencent.polaris.client.pb.RateLimitProto.Report getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Report parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Report(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.Report getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AmountAdjusterOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.AmountAdjuster) com.google.protobuf.MessageOrBuilder { /** * .v1.ClimbConfig climb = 1; * @return Whether the climb field is set. */ boolean hasClimb(); /** * .v1.ClimbConfig climb = 1; * @return The climb. */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig getClimb(); /** * .v1.ClimbConfig climb = 1; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder getClimbOrBuilder(); } /** *
   * 配额调整算法
   * 
* * Protobuf type {@code v1.AmountAdjuster} */ public static final class AmountAdjuster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.AmountAdjuster) AmountAdjusterOrBuilder { private static final long serialVersionUID = 0L; // Use AmountAdjuster.newBuilder() to construct. private AmountAdjuster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AmountAdjuster() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AmountAdjuster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AmountAdjuster( 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: { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder subBuilder = null; if (climb_ != null) { subBuilder = climb_.toBuilder(); } climb_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(climb_); climb_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_AmountAdjuster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_AmountAdjuster_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.class, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder.class); } public static final int CLIMB_FIELD_NUMBER = 1; private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig climb_; /** * .v1.ClimbConfig climb = 1; * @return Whether the climb field is set. */ @java.lang.Override public boolean hasClimb() { return climb_ != null; } /** * .v1.ClimbConfig climb = 1; * @return The climb. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig getClimb() { return climb_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.getDefaultInstance() : climb_; } /** * .v1.ClimbConfig climb = 1; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder getClimbOrBuilder() { return getClimb(); } 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 (climb_ != null) { output.writeMessage(1, getClimb()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (climb_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getClimb()); } 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 com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster other = (com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster) obj; if (hasClimb() != other.hasClimb()) return false; if (hasClimb()) { if (!getClimb() .equals(other.getClimb())) 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 (hasClimb()) { hash = (37 * hash) + CLIMB_FIELD_NUMBER; hash = (53 * hash) + getClimb().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster 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.client.pb.RateLimitProto.AmountAdjuster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster 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.client.pb.RateLimitProto.AmountAdjuster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster 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.client.pb.RateLimitProto.AmountAdjuster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster 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.client.pb.RateLimitProto.AmountAdjuster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster 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.client.pb.RateLimitProto.AmountAdjuster 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.AmountAdjuster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.AmountAdjuster) com.tencent.polaris.client.pb.RateLimitProto.AmountAdjusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_AmountAdjuster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_AmountAdjuster_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.class, com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.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 (climbBuilder_ == null) { climb_ = null; } else { climb_ = null; climbBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_AmountAdjuster_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster build() { com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster result = new com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster(this); if (climbBuilder_ == null) { result.climb_ = climb_; } else { result.climb_ = climbBuilder_.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.client.pb.RateLimitProto.AmountAdjuster) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster.getDefaultInstance()) return this; if (other.hasClimb()) { mergeClimb(other.getClimb()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig climb_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder> climbBuilder_; /** * .v1.ClimbConfig climb = 1; * @return Whether the climb field is set. */ public boolean hasClimb() { return climbBuilder_ != null || climb_ != null; } /** * .v1.ClimbConfig climb = 1; * @return The climb. */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig getClimb() { if (climbBuilder_ == null) { return climb_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.getDefaultInstance() : climb_; } else { return climbBuilder_.getMessage(); } } /** * .v1.ClimbConfig climb = 1; */ public Builder setClimb(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig value) { if (climbBuilder_ == null) { if (value == null) { throw new NullPointerException(); } climb_ = value; onChanged(); } else { climbBuilder_.setMessage(value); } return this; } /** * .v1.ClimbConfig climb = 1; */ public Builder setClimb( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder builderForValue) { if (climbBuilder_ == null) { climb_ = builderForValue.build(); onChanged(); } else { climbBuilder_.setMessage(builderForValue.build()); } return this; } /** * .v1.ClimbConfig climb = 1; */ public Builder mergeClimb(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig value) { if (climbBuilder_ == null) { if (climb_ != null) { climb_ = com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.newBuilder(climb_).mergeFrom(value).buildPartial(); } else { climb_ = value; } onChanged(); } else { climbBuilder_.mergeFrom(value); } return this; } /** * .v1.ClimbConfig climb = 1; */ public Builder clearClimb() { if (climbBuilder_ == null) { climb_ = null; onChanged(); } else { climb_ = null; climbBuilder_ = null; } return this; } /** * .v1.ClimbConfig climb = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder getClimbBuilder() { onChanged(); return getClimbFieldBuilder().getBuilder(); } /** * .v1.ClimbConfig climb = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder getClimbOrBuilder() { if (climbBuilder_ != null) { return climbBuilder_.getMessageOrBuilder(); } else { return climb_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.getDefaultInstance() : climb_; } } /** * .v1.ClimbConfig climb = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder> getClimbFieldBuilder() { if (climbBuilder_ == null) { climbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder>( getClimb(), getParentForChildren(), isClean()); climb_ = null; } return climbBuilder_; } @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.AmountAdjuster) } // @@protoc_insertion_point(class_scope:v1.AmountAdjuster) private static final com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster(); } public static com.tencent.polaris.client.pb.RateLimitProto.AmountAdjuster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AmountAdjuster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AmountAdjuster(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.AmountAdjuster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClimbConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig) com.google.protobuf.MessageOrBuilder { /** *
     * 是否开启
     * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ boolean hasEnable(); /** *
     * 是否开启
     * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ com.google.protobuf.BoolValue getEnable(); /** *
     * 是否开启
     * 
* * .google.protobuf.BoolValue enable = 1; */ com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder(); /** *
     * 限流数据统计配置
     * 
* * .v1.ClimbConfig.MetricConfig metric = 2; * @return Whether the metric field is set. */ boolean hasMetric(); /** *
     * 限流数据统计配置
     * 
* * .v1.ClimbConfig.MetricConfig metric = 2; * @return The metric. */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig getMetric(); /** *
     * 限流数据统计配置
     * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder getMetricOrBuilder(); /** *
     * 触发调整策略
     * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; * @return Whether the policy field is set. */ boolean hasPolicy(); /** *
     * 触发调整策略
     * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; * @return The policy. */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy getPolicy(); /** *
     * 触发调整策略
     * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder getPolicyOrBuilder(); /** *
     * 限流调整相关参数
     * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; * @return Whether the throttling field is set. */ boolean hasThrottling(); /** *
     * 限流调整相关参数
     * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; * @return The throttling. */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling getThrottling(); /** *
     * 限流调整相关参数
     * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder getThrottlingOrBuilder(); } /** *
   * 限流调整算法Climb相关配置
   * 
* * Protobuf type {@code v1.ClimbConfig} */ public static final class ClimbConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig) ClimbConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ClimbConfig.newBuilder() to construct. private ClimbConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClimbConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClimbConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClimbConfig( 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: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (enable_ != null) { subBuilder = enable_.toBuilder(); } enable_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(enable_); enable_ = subBuilder.buildPartial(); } break; } case 18: { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder subBuilder = null; if (metric_ != null) { subBuilder = metric_.toBuilder(); } metric_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metric_); metric_ = subBuilder.buildPartial(); } break; } case 26: { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder subBuilder = null; if (policy_ != null) { subBuilder = policy_.toBuilder(); } policy_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(policy_); policy_ = subBuilder.buildPartial(); } break; } case 34: { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder subBuilder = null; if (throttling_ != null) { subBuilder = throttling_.toBuilder(); } throttling_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(throttling_); throttling_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder.class); } public interface MetricConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig.MetricConfig) com.google.protobuf.MessageOrBuilder { /** *
       * 限流数据度量周期,默认60s
       * 
* * .google.protobuf.Duration window = 1; * @return Whether the window field is set. */ boolean hasWindow(); /** *
       * 限流数据度量周期,默认60s
       * 
* * .google.protobuf.Duration window = 1; * @return The window. */ com.google.protobuf.Duration getWindow(); /** *
       * 限流数据度量周期,默认60s
       * 
* * .google.protobuf.Duration window = 1; */ com.google.protobuf.DurationOrBuilder getWindowOrBuilder(); /** *
       * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
       * 
* * .google.protobuf.UInt32Value precision = 2; * @return Whether the precision field is set. */ boolean hasPrecision(); /** *
       * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
       * 
* * .google.protobuf.UInt32Value precision = 2; * @return The precision. */ com.google.protobuf.UInt32Value getPrecision(); /** *
       * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
       * 
* * .google.protobuf.UInt32Value precision = 2; */ com.google.protobuf.UInt32ValueOrBuilder getPrecisionOrBuilder(); /** *
       * 上报周期,默认20s
       * 
* * .google.protobuf.Duration reportInterval = 3; * @return Whether the reportInterval field is set. */ boolean hasReportInterval(); /** *
       * 上报周期,默认20s
       * 
* * .google.protobuf.Duration reportInterval = 3; * @return The reportInterval. */ com.google.protobuf.Duration getReportInterval(); /** *
       * 上报周期,默认20s
       * 
* * .google.protobuf.Duration reportInterval = 3; */ com.google.protobuf.DurationOrBuilder getReportIntervalOrBuilder(); } /** *
     * 限流数据统计配置
     * 
* * Protobuf type {@code v1.ClimbConfig.MetricConfig} */ public static final class MetricConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig.MetricConfig) MetricConfigOrBuilder { private static final long serialVersionUID = 0L; // Use MetricConfig.newBuilder() to construct. private MetricConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetricConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetricConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MetricConfig( 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: { com.google.protobuf.Duration.Builder subBuilder = null; if (window_ != null) { subBuilder = window_.toBuilder(); } window_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(window_); window_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (precision_ != null) { subBuilder = precision_.toBuilder(); } precision_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(precision_); precision_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Duration.Builder subBuilder = null; if (reportInterval_ != null) { subBuilder = reportInterval_.toBuilder(); } reportInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reportInterval_); reportInterval_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_MetricConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_MetricConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder.class); } public static final int WINDOW_FIELD_NUMBER = 1; private com.google.protobuf.Duration window_; /** *
       * 限流数据度量周期,默认60s
       * 
* * .google.protobuf.Duration window = 1; * @return Whether the window field is set. */ @java.lang.Override public boolean hasWindow() { return window_ != null; } /** *
       * 限流数据度量周期,默认60s
       * 
* * .google.protobuf.Duration window = 1; * @return The window. */ @java.lang.Override public com.google.protobuf.Duration getWindow() { return window_ == null ? com.google.protobuf.Duration.getDefaultInstance() : window_; } /** *
       * 限流数据度量周期,默认60s
       * 
* * .google.protobuf.Duration window = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getWindowOrBuilder() { return getWindow(); } public static final int PRECISION_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value precision_; /** *
       * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
       * 
* * .google.protobuf.UInt32Value precision = 2; * @return Whether the precision field is set. */ @java.lang.Override public boolean hasPrecision() { return precision_ != null; } /** *
       * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
       * 
* * .google.protobuf.UInt32Value precision = 2; * @return The precision. */ @java.lang.Override public com.google.protobuf.UInt32Value getPrecision() { return precision_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : precision_; } /** *
       * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
       * 
* * .google.protobuf.UInt32Value precision = 2; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getPrecisionOrBuilder() { return getPrecision(); } public static final int REPORTINTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration reportInterval_; /** *
       * 上报周期,默认20s
       * 
* * .google.protobuf.Duration reportInterval = 3; * @return Whether the reportInterval field is set. */ @java.lang.Override public boolean hasReportInterval() { return reportInterval_ != null; } /** *
       * 上报周期,默认20s
       * 
* * .google.protobuf.Duration reportInterval = 3; * @return The reportInterval. */ @java.lang.Override public com.google.protobuf.Duration getReportInterval() { return reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_; } /** *
       * 上报周期,默认20s
       * 
* * .google.protobuf.Duration reportInterval = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getReportIntervalOrBuilder() { return getReportInterval(); } 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 (window_ != null) { output.writeMessage(1, getWindow()); } if (precision_ != null) { output.writeMessage(2, getPrecision()); } if (reportInterval_ != null) { output.writeMessage(3, getReportInterval()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (window_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWindow()); } if (precision_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPrecision()); } if (reportInterval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getReportInterval()); } 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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig) obj; if (hasWindow() != other.hasWindow()) return false; if (hasWindow()) { if (!getWindow() .equals(other.getWindow())) return false; } if (hasPrecision() != other.hasPrecision()) return false; if (hasPrecision()) { if (!getPrecision() .equals(other.getPrecision())) return false; } if (hasReportInterval() != other.hasReportInterval()) return false; if (hasReportInterval()) { if (!getReportInterval() .equals(other.getReportInterval())) 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 (hasWindow()) { hash = (37 * hash) + WINDOW_FIELD_NUMBER; hash = (53 * hash) + getWindow().hashCode(); } if (hasPrecision()) { hash = (37 * hash) + PRECISION_FIELD_NUMBER; hash = (53 * hash) + getPrecision().hashCode(); } if (hasReportInterval()) { hash = (37 * hash) + REPORTINTERVAL_FIELD_NUMBER; hash = (53 * hash) + getReportInterval().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig 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.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig 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.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig 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.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig 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.client.pb.RateLimitProto.ClimbConfig.MetricConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig 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.client.pb.RateLimitProto.ClimbConfig.MetricConfig 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.ClimbConfig.MetricConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig.MetricConfig) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_MetricConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_MetricConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.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 (windowBuilder_ == null) { window_ = null; } else { window_ = null; windowBuilder_ = null; } if (precisionBuilder_ == null) { precision_ = null; } else { precision_ = null; precisionBuilder_ = null; } if (reportIntervalBuilder_ == null) { reportInterval_ = null; } else { reportInterval_ = null; reportIntervalBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_MetricConfig_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig(this); if (windowBuilder_ == null) { result.window_ = window_; } else { result.window_ = windowBuilder_.build(); } if (precisionBuilder_ == null) { result.precision_ = precision_; } else { result.precision_ = precisionBuilder_.build(); } if (reportIntervalBuilder_ == null) { result.reportInterval_ = reportInterval_; } else { result.reportInterval_ = reportIntervalBuilder_.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.client.pb.RateLimitProto.ClimbConfig.MetricConfig) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.getDefaultInstance()) return this; if (other.hasWindow()) { mergeWindow(other.getWindow()); } if (other.hasPrecision()) { mergePrecision(other.getPrecision()); } if (other.hasReportInterval()) { mergeReportInterval(other.getReportInterval()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Duration window_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> windowBuilder_; /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; * @return The window. */ public com.google.protobuf.Duration getWindow() { if (windowBuilder_ == null) { return window_ == null ? com.google.protobuf.Duration.getDefaultInstance() : window_; } else { return windowBuilder_.getMessage(); } } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ public Builder setWindow(com.google.protobuf.Duration value) { if (windowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } window_ = value; onChanged(); } else { windowBuilder_.setMessage(value); } return this; } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ public Builder setWindow( com.google.protobuf.Duration.Builder builderForValue) { if (windowBuilder_ == null) { window_ = builderForValue.build(); onChanged(); } else { windowBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ public Builder mergeWindow(com.google.protobuf.Duration value) { if (windowBuilder_ == null) { if (window_ != null) { window_ = com.google.protobuf.Duration.newBuilder(window_).mergeFrom(value).buildPartial(); } else { window_ = value; } onChanged(); } else { windowBuilder_.mergeFrom(value); } return this; } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ public Builder clearWindow() { if (windowBuilder_ == null) { window_ = null; onChanged(); } else { window_ = null; windowBuilder_ = null; } return this; } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ public com.google.protobuf.Duration.Builder getWindowBuilder() { onChanged(); return getWindowFieldBuilder().getBuilder(); } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ public com.google.protobuf.DurationOrBuilder getWindowOrBuilder() { if (windowBuilder_ != null) { return windowBuilder_.getMessageOrBuilder(); } else { return window_ == null ? com.google.protobuf.Duration.getDefaultInstance() : window_; } } /** *
         * 限流数据度量周期,默认60s
         * 
* * .google.protobuf.Duration window = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWindowFieldBuilder() { if (windowBuilder_ == null) { windowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWindow(), getParentForChildren(), isClean()); window_ = null; } return windowBuilder_; } private com.google.protobuf.UInt32Value precision_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> precisionBuilder_; /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; * @return Whether the precision field is set. */ public boolean hasPrecision() { return precisionBuilder_ != null || precision_ != null; } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; * @return The precision. */ public com.google.protobuf.UInt32Value getPrecision() { if (precisionBuilder_ == null) { return precision_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : precision_; } else { return precisionBuilder_.getMessage(); } } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ public Builder setPrecision(com.google.protobuf.UInt32Value value) { if (precisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } precision_ = value; onChanged(); } else { precisionBuilder_.setMessage(value); } return this; } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ public Builder setPrecision( com.google.protobuf.UInt32Value.Builder builderForValue) { if (precisionBuilder_ == null) { precision_ = builderForValue.build(); onChanged(); } else { precisionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ public Builder mergePrecision(com.google.protobuf.UInt32Value value) { if (precisionBuilder_ == null) { if (precision_ != null) { precision_ = com.google.protobuf.UInt32Value.newBuilder(precision_).mergeFrom(value).buildPartial(); } else { precision_ = value; } onChanged(); } else { precisionBuilder_.mergeFrom(value); } return this; } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ public Builder clearPrecision() { if (precisionBuilder_ == null) { precision_ = null; onChanged(); } else { precision_ = null; precisionBuilder_ = null; } return this; } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ public com.google.protobuf.UInt32Value.Builder getPrecisionBuilder() { onChanged(); return getPrecisionFieldBuilder().getBuilder(); } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ public com.google.protobuf.UInt32ValueOrBuilder getPrecisionOrBuilder() { if (precisionBuilder_ != null) { return precisionBuilder_.getMessageOrBuilder(); } else { return precision_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : precision_; } } /** *
         * 数据统计精度,决定数据度量的最小周期,度量滑窗的步长=window/precision
         * 
* * .google.protobuf.UInt32Value precision = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getPrecisionFieldBuilder() { if (precisionBuilder_ == null) { precisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getPrecision(), getParentForChildren(), isClean()); precision_ = null; } return precisionBuilder_; } private com.google.protobuf.Duration reportInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> reportIntervalBuilder_; /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; * @return Whether the reportInterval field is set. */ public boolean hasReportInterval() { return reportIntervalBuilder_ != null || reportInterval_ != null; } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; * @return The reportInterval. */ public com.google.protobuf.Duration getReportInterval() { if (reportIntervalBuilder_ == null) { return reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_; } else { return reportIntervalBuilder_.getMessage(); } } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ public Builder setReportInterval(com.google.protobuf.Duration value) { if (reportIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reportInterval_ = value; onChanged(); } else { reportIntervalBuilder_.setMessage(value); } return this; } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ public Builder setReportInterval( com.google.protobuf.Duration.Builder builderForValue) { if (reportIntervalBuilder_ == null) { reportInterval_ = builderForValue.build(); onChanged(); } else { reportIntervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ public Builder mergeReportInterval(com.google.protobuf.Duration value) { if (reportIntervalBuilder_ == null) { if (reportInterval_ != null) { reportInterval_ = com.google.protobuf.Duration.newBuilder(reportInterval_).mergeFrom(value).buildPartial(); } else { reportInterval_ = value; } onChanged(); } else { reportIntervalBuilder_.mergeFrom(value); } return this; } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ public Builder clearReportInterval() { if (reportIntervalBuilder_ == null) { reportInterval_ = null; onChanged(); } else { reportInterval_ = null; reportIntervalBuilder_ = null; } return this; } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ public com.google.protobuf.Duration.Builder getReportIntervalBuilder() { onChanged(); return getReportIntervalFieldBuilder().getBuilder(); } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ public com.google.protobuf.DurationOrBuilder getReportIntervalOrBuilder() { if (reportIntervalBuilder_ != null) { return reportIntervalBuilder_.getMessageOrBuilder(); } else { return reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_; } } /** *
         * 上报周期,默认20s
         * 
* * .google.protobuf.Duration reportInterval = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getReportIntervalFieldBuilder() { if (reportIntervalBuilder_ == null) { reportIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getReportInterval(), getParentForChildren(), isClean()); reportInterval_ = null; } return reportIntervalBuilder_; } @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.ClimbConfig.MetricConfig) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig.MetricConfig) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetricConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetricConfig(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig.MetricConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TriggerPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig.TriggerPolicy) com.google.protobuf.MessageOrBuilder { /** *
       * 按错误率阈值调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; * @return Whether the errorRate field is set. */ boolean hasErrorRate(); /** *
       * 按错误率阈值调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; * @return The errorRate. */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate getErrorRate(); /** *
       * 按错误率阈值调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder getErrorRateOrBuilder(); /** *
       * 慢调用进行触发调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; * @return Whether the slowRate field is set. */ boolean hasSlowRate(); /** *
       * 慢调用进行触发调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; * @return The slowRate. */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate getSlowRate(); /** *
       * 慢调用进行触发调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder getSlowRateOrBuilder(); } /** *
     * 触发调整的策略
     * 
* * Protobuf type {@code v1.ClimbConfig.TriggerPolicy} */ public static final class TriggerPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig.TriggerPolicy) TriggerPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use TriggerPolicy.newBuilder() to construct. private TriggerPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TriggerPolicy() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TriggerPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TriggerPolicy( 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: { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder subBuilder = null; if (errorRate_ != null) { subBuilder = errorRate_.toBuilder(); } errorRate_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorRate_); errorRate_ = subBuilder.buildPartial(); } break; } case 18: { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder subBuilder = null; if (slowRate_ != null) { subBuilder = slowRate_.toBuilder(); } slowRate_ = input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(slowRate_); slowRate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder.class); } public interface ErrorRateOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig.TriggerPolicy.ErrorRate) com.google.protobuf.MessageOrBuilder { /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ boolean hasEnable(); /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ com.google.protobuf.BoolValue getEnable(); /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; */ com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder(); /** *
         * 触发限流调整的最小的请求数
         * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; * @return Whether the requestVolumeThreshold field is set. */ boolean hasRequestVolumeThreshold(); /** *
         * 触发限流调整的最小的请求数
         * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; * @return The requestVolumeThreshold. */ com.google.protobuf.UInt32Value getRequestVolumeThreshold(); /** *
         * 触发限流调整的最小的请求数
         * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ com.google.protobuf.UInt32ValueOrBuilder getRequestVolumeThresholdOrBuilder(); /** *
         * 触发限流的错误率配置
         * 
* * .google.protobuf.Int32Value errorRate = 3; * @return Whether the errorRate field is set. */ boolean hasErrorRate(); /** *
         * 触发限流的错误率配置
         * 
* * .google.protobuf.Int32Value errorRate = 3; * @return The errorRate. */ com.google.protobuf.Int32Value getErrorRate(); /** *
         * 触发限流的错误率配置
         * 
* * .google.protobuf.Int32Value errorRate = 3; */ com.google.protobuf.Int32ValueOrBuilder getErrorRateOrBuilder(); /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ java.util.List getSpecialsList(); /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig getSpecials(int index); /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ int getSpecialsCount(); /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ java.util.List getSpecialsOrBuilderList(); /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder getSpecialsOrBuilder( int index); } /** *
       * 错误率触发调整配置
       * 
* * Protobuf type {@code v1.ClimbConfig.TriggerPolicy.ErrorRate} */ public static final class ErrorRate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig.TriggerPolicy.ErrorRate) ErrorRateOrBuilder { private static final long serialVersionUID = 0L; // Use ErrorRate.newBuilder() to construct. private ErrorRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ErrorRate() { specials_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ErrorRate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ErrorRate( 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: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (enable_ != null) { subBuilder = enable_.toBuilder(); } enable_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(enable_); enable_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.UInt32Value.Builder subBuilder = null; if (requestVolumeThreshold_ != null) { subBuilder = requestVolumeThreshold_.toBuilder(); } requestVolumeThreshold_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requestVolumeThreshold_); requestVolumeThreshold_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (errorRate_ != null) { subBuilder = errorRate_.toBuilder(); } errorRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorRate_); errorRate_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { specials_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } specials_.add( input.readMessage(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { specials_ = java.util.Collections.unmodifiableList(specials_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder.class); } public interface SpecialConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) com.google.protobuf.MessageOrBuilder { /** *
           * 自定义错误类型
           * 
* * .google.protobuf.StringValue type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
           * 自定义错误类型
           * 
* * .google.protobuf.StringValue type = 1; * @return The type. */ com.google.protobuf.StringValue getType(); /** *
           * 自定义错误类型
           * 
* * .google.protobuf.StringValue type = 1; */ com.google.protobuf.StringValueOrBuilder getTypeOrBuilder(); /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ java.util.List getErrorCodesList(); /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ com.google.protobuf.Int64Value getErrorCodes(int index); /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ int getErrorCodesCount(); /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ java.util.List getErrorCodesOrBuilderList(); /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ com.google.protobuf.Int64ValueOrBuilder getErrorCodesOrBuilder( int index); /** *
           *特定规则错误率
           * 
* * .google.protobuf.Int32Value errorRate = 3; * @return Whether the errorRate field is set. */ boolean hasErrorRate(); /** *
           *特定规则错误率
           * 
* * .google.protobuf.Int32Value errorRate = 3; * @return The errorRate. */ com.google.protobuf.Int32Value getErrorRate(); /** *
           *特定规则错误率
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ com.google.protobuf.Int32ValueOrBuilder getErrorRateOrBuilder(); } /** *
         * 特殊错误码触发调整配置
         * 
* * Protobuf type {@code v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig} */ public static final class SpecialConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) SpecialConfigOrBuilder { private static final long serialVersionUID = 0L; // Use SpecialConfig.newBuilder() to construct. private SpecialConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpecialConfig() { errorCodes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpecialConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SpecialConfig( 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: { com.google.protobuf.StringValue.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(com.google.protobuf.StringValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { errorCodes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } errorCodes_.add( input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry)); break; } case 26: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (errorRate_ != null) { subBuilder = errorRate_.toBuilder(); } errorRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(errorRate_); errorRate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorCodes_ = java.util.Collections.unmodifiableList(errorCodes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private com.google.protobuf.StringValue type_; /** *
           * 自定义错误类型
           * 
* * .google.protobuf.StringValue type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
           * 自定义错误类型
           * 
* * .google.protobuf.StringValue type = 1; * @return The type. */ @java.lang.Override public com.google.protobuf.StringValue getType() { return type_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : type_; } /** *
           * 自定义错误类型
           * 
* * .google.protobuf.StringValue type = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getTypeOrBuilder() { return getType(); } public static final int ERRORCODES_FIELD_NUMBER = 2; private java.util.List errorCodes_; /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ @java.lang.Override public java.util.List getErrorCodesList() { return errorCodes_; } /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ @java.lang.Override public java.util.List getErrorCodesOrBuilderList() { return errorCodes_; } /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ @java.lang.Override public int getErrorCodesCount() { return errorCodes_.size(); } /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ @java.lang.Override public com.google.protobuf.Int64Value getErrorCodes(int index) { return errorCodes_.get(index); } /** *
           * 特定规则针对的错误码
           * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getErrorCodesOrBuilder( int index) { return errorCodes_.get(index); } public static final int ERRORRATE_FIELD_NUMBER = 3; private com.google.protobuf.Int32Value errorRate_; /** *
           *特定规则错误率
           * 
* * .google.protobuf.Int32Value errorRate = 3; * @return Whether the errorRate field is set. */ @java.lang.Override public boolean hasErrorRate() { return errorRate_ != null; } /** *
           *特定规则错误率
           * 
* * .google.protobuf.Int32Value errorRate = 3; * @return The errorRate. */ @java.lang.Override public com.google.protobuf.Int32Value getErrorRate() { return errorRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : errorRate_; } /** *
           *特定规则错误率
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getErrorRateOrBuilder() { return getErrorRate(); } 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_ != null) { output.writeMessage(1, getType()); } for (int i = 0; i < errorCodes_.size(); i++) { output.writeMessage(2, errorCodes_.get(i)); } if (errorRate_ != null) { output.writeMessage(3, getErrorRate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getType()); } for (int i = 0; i < errorCodes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, errorCodes_.get(i)); } if (errorRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getErrorRate()); } 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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (!getType() .equals(other.getType())) return false; } if (!getErrorCodesList() .equals(other.getErrorCodesList())) return false; if (hasErrorRate() != other.hasErrorRate()) return false; if (hasErrorRate()) { if (!getErrorRate() .equals(other.getErrorRate())) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (getErrorCodesCount() > 0) { hash = (37 * hash) + ERRORCODES_FIELD_NUMBER; hash = (53 * hash) + getErrorCodesList().hashCode(); } if (hasErrorRate()) { hash = (37 * hash) + ERRORRATE_FIELD_NUMBER; hash = (53 * hash) + getErrorRate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig 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.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getErrorCodesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } if (errorCodesBuilder_ == null) { errorCodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { errorCodesBuilder_.clear(); } if (errorRateBuilder_ == null) { errorRate_ = null; } else { errorRate_ = null; errorRateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig(this); int from_bitField0_ = bitField0_; if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } if (errorCodesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errorCodes_ = java.util.Collections.unmodifiableList(errorCodes_); bitField0_ = (bitField0_ & ~0x00000001); } result.errorCodes_ = errorCodes_; } else { result.errorCodes_ = errorCodesBuilder_.build(); } if (errorRateBuilder_ == null) { result.errorRate_ = errorRate_; } else { result.errorRate_ = errorRateBuilder_.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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.getDefaultInstance()) return this; if (other.hasType()) { mergeType(other.getType()); } if (errorCodesBuilder_ == null) { if (!other.errorCodes_.isEmpty()) { if (errorCodes_.isEmpty()) { errorCodes_ = other.errorCodes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureErrorCodesIsMutable(); errorCodes_.addAll(other.errorCodes_); } onChanged(); } } else { if (!other.errorCodes_.isEmpty()) { if (errorCodesBuilder_.isEmpty()) { errorCodesBuilder_.dispose(); errorCodesBuilder_ = null; errorCodes_ = other.errorCodes_; bitField0_ = (bitField0_ & ~0x00000001); errorCodesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getErrorCodesFieldBuilder() : null; } else { errorCodesBuilder_.addAllMessages(other.errorCodes_); } } } if (other.hasErrorRate()) { mergeErrorRate(other.getErrorRate()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.StringValue type_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> typeBuilder_; /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; * @return The type. */ public com.google.protobuf.StringValue getType() { if (typeBuilder_ == null) { return type_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ public Builder setType(com.google.protobuf.StringValue value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ public Builder setType( com.google.protobuf.StringValue.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ public Builder mergeType(com.google.protobuf.StringValue value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = com.google.protobuf.StringValue.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ public com.google.protobuf.StringValue.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ public com.google.protobuf.StringValueOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : type_; } } /** *
             * 自定义错误类型
             * 
* * .google.protobuf.StringValue type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } private java.util.List errorCodes_ = java.util.Collections.emptyList(); private void ensureErrorCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { errorCodes_ = new java.util.ArrayList(errorCodes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> errorCodesBuilder_; /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public java.util.List getErrorCodesList() { if (errorCodesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorCodes_); } else { return errorCodesBuilder_.getMessageList(); } } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public int getErrorCodesCount() { if (errorCodesBuilder_ == null) { return errorCodes_.size(); } else { return errorCodesBuilder_.getCount(); } } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public com.google.protobuf.Int64Value getErrorCodes(int index) { if (errorCodesBuilder_ == null) { return errorCodes_.get(index); } else { return errorCodesBuilder_.getMessage(index); } } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder setErrorCodes( int index, com.google.protobuf.Int64Value value) { if (errorCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorCodesIsMutable(); errorCodes_.set(index, value); onChanged(); } else { errorCodesBuilder_.setMessage(index, value); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder setErrorCodes( int index, com.google.protobuf.Int64Value.Builder builderForValue) { if (errorCodesBuilder_ == null) { ensureErrorCodesIsMutable(); errorCodes_.set(index, builderForValue.build()); onChanged(); } else { errorCodesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder addErrorCodes(com.google.protobuf.Int64Value value) { if (errorCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorCodesIsMutable(); errorCodes_.add(value); onChanged(); } else { errorCodesBuilder_.addMessage(value); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder addErrorCodes( int index, com.google.protobuf.Int64Value value) { if (errorCodesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorCodesIsMutable(); errorCodes_.add(index, value); onChanged(); } else { errorCodesBuilder_.addMessage(index, value); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder addErrorCodes( com.google.protobuf.Int64Value.Builder builderForValue) { if (errorCodesBuilder_ == null) { ensureErrorCodesIsMutable(); errorCodes_.add(builderForValue.build()); onChanged(); } else { errorCodesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder addErrorCodes( int index, com.google.protobuf.Int64Value.Builder builderForValue) { if (errorCodesBuilder_ == null) { ensureErrorCodesIsMutable(); errorCodes_.add(index, builderForValue.build()); onChanged(); } else { errorCodesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder addAllErrorCodes( java.lang.Iterable values) { if (errorCodesBuilder_ == null) { ensureErrorCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, errorCodes_); onChanged(); } else { errorCodesBuilder_.addAllMessages(values); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder clearErrorCodes() { if (errorCodesBuilder_ == null) { errorCodes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { errorCodesBuilder_.clear(); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public Builder removeErrorCodes(int index) { if (errorCodesBuilder_ == null) { ensureErrorCodesIsMutable(); errorCodes_.remove(index); onChanged(); } else { errorCodesBuilder_.remove(index); } return this; } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public com.google.protobuf.Int64Value.Builder getErrorCodesBuilder( int index) { return getErrorCodesFieldBuilder().getBuilder(index); } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public com.google.protobuf.Int64ValueOrBuilder getErrorCodesOrBuilder( int index) { if (errorCodesBuilder_ == null) { return errorCodes_.get(index); } else { return errorCodesBuilder_.getMessageOrBuilder(index); } } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public java.util.List getErrorCodesOrBuilderList() { if (errorCodesBuilder_ != null) { return errorCodesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(errorCodes_); } } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public com.google.protobuf.Int64Value.Builder addErrorCodesBuilder() { return getErrorCodesFieldBuilder().addBuilder( com.google.protobuf.Int64Value.getDefaultInstance()); } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public com.google.protobuf.Int64Value.Builder addErrorCodesBuilder( int index) { return getErrorCodesFieldBuilder().addBuilder( index, com.google.protobuf.Int64Value.getDefaultInstance()); } /** *
             * 特定规则针对的错误码
             * 
* * repeated .google.protobuf.Int64Value errorCodes = 2; */ public java.util.List getErrorCodesBuilderList() { return getErrorCodesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getErrorCodesFieldBuilder() { if (errorCodesBuilder_ == null) { errorCodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( errorCodes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errorCodes_ = null; } return errorCodesBuilder_; } private com.google.protobuf.Int32Value errorRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> errorRateBuilder_; /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; * @return Whether the errorRate field is set. */ public boolean hasErrorRate() { return errorRateBuilder_ != null || errorRate_ != null; } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; * @return The errorRate. */ public com.google.protobuf.Int32Value getErrorRate() { if (errorRateBuilder_ == null) { return errorRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : errorRate_; } else { return errorRateBuilder_.getMessage(); } } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder setErrorRate(com.google.protobuf.Int32Value value) { if (errorRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errorRate_ = value; onChanged(); } else { errorRateBuilder_.setMessage(value); } return this; } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder setErrorRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (errorRateBuilder_ == null) { errorRate_ = builderForValue.build(); onChanged(); } else { errorRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder mergeErrorRate(com.google.protobuf.Int32Value value) { if (errorRateBuilder_ == null) { if (errorRate_ != null) { errorRate_ = com.google.protobuf.Int32Value.newBuilder(errorRate_).mergeFrom(value).buildPartial(); } else { errorRate_ = value; } onChanged(); } else { errorRateBuilder_.mergeFrom(value); } return this; } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder clearErrorRate() { if (errorRateBuilder_ == null) { errorRate_ = null; onChanged(); } else { errorRate_ = null; errorRateBuilder_ = null; } return this; } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ public com.google.protobuf.Int32Value.Builder getErrorRateBuilder() { onChanged(); return getErrorRateFieldBuilder().getBuilder(); } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ public com.google.protobuf.Int32ValueOrBuilder getErrorRateOrBuilder() { if (errorRateBuilder_ != null) { return errorRateBuilder_.getMessageOrBuilder(); } else { return errorRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : errorRate_; } } /** *
             *特定规则错误率
             * 
* * .google.protobuf.Int32Value errorRate = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getErrorRateFieldBuilder() { if (errorRateBuilder_ == null) { errorRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getErrorRate(), getParentForChildren(), isClean()); errorRate_ = null; } return errorRateBuilder_; } @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.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpecialConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SpecialConfig(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENABLE_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue enable_; /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ @java.lang.Override public boolean hasEnable() { return enable_ != null; } /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ @java.lang.Override public com.google.protobuf.BoolValue getEnable() { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder() { return getEnable(); } public static final int REQUESTVOLUMETHRESHOLD_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value requestVolumeThreshold_; /** *
         * 触发限流调整的最小的请求数
         * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; * @return Whether the requestVolumeThreshold field is set. */ @java.lang.Override public boolean hasRequestVolumeThreshold() { return requestVolumeThreshold_ != null; } /** *
         * 触发限流调整的最小的请求数
         * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; * @return The requestVolumeThreshold. */ @java.lang.Override public com.google.protobuf.UInt32Value getRequestVolumeThreshold() { return requestVolumeThreshold_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : requestVolumeThreshold_; } /** *
         * 触发限流调整的最小的请求数
         * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getRequestVolumeThresholdOrBuilder() { return getRequestVolumeThreshold(); } public static final int ERRORRATE_FIELD_NUMBER = 3; private com.google.protobuf.Int32Value errorRate_; /** *
         * 触发限流的错误率配置
         * 
* * .google.protobuf.Int32Value errorRate = 3; * @return Whether the errorRate field is set. */ @java.lang.Override public boolean hasErrorRate() { return errorRate_ != null; } /** *
         * 触发限流的错误率配置
         * 
* * .google.protobuf.Int32Value errorRate = 3; * @return The errorRate. */ @java.lang.Override public com.google.protobuf.Int32Value getErrorRate() { return errorRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : errorRate_; } /** *
         * 触发限流的错误率配置
         * 
* * .google.protobuf.Int32Value errorRate = 3; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getErrorRateOrBuilder() { return getErrorRate(); } public static final int SPECIALS_FIELD_NUMBER = 4; private java.util.List specials_; /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ @java.lang.Override public java.util.List getSpecialsList() { return specials_; } /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ @java.lang.Override public java.util.List getSpecialsOrBuilderList() { return specials_; } /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ @java.lang.Override public int getSpecialsCount() { return specials_.size(); } /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig getSpecials(int index) { return specials_.get(index); } /** *
         * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
         * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder getSpecialsOrBuilder( int index) { return specials_.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 (enable_ != null) { output.writeMessage(1, getEnable()); } if (requestVolumeThreshold_ != null) { output.writeMessage(2, getRequestVolumeThreshold()); } if (errorRate_ != null) { output.writeMessage(3, getErrorRate()); } for (int i = 0; i < specials_.size(); i++) { output.writeMessage(4, specials_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEnable()); } if (requestVolumeThreshold_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRequestVolumeThreshold()); } if (errorRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getErrorRate()); } for (int i = 0; i < specials_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, specials_.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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate) obj; if (hasEnable() != other.hasEnable()) return false; if (hasEnable()) { if (!getEnable() .equals(other.getEnable())) return false; } if (hasRequestVolumeThreshold() != other.hasRequestVolumeThreshold()) return false; if (hasRequestVolumeThreshold()) { if (!getRequestVolumeThreshold() .equals(other.getRequestVolumeThreshold())) return false; } if (hasErrorRate() != other.hasErrorRate()) return false; if (hasErrorRate()) { if (!getErrorRate() .equals(other.getErrorRate())) return false; } if (!getSpecialsList() .equals(other.getSpecialsList())) 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 (hasEnable()) { hash = (37 * hash) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + getEnable().hashCode(); } if (hasRequestVolumeThreshold()) { hash = (37 * hash) + REQUESTVOLUMETHRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getRequestVolumeThreshold().hashCode(); } if (hasErrorRate()) { hash = (37 * hash) + ERRORRATE_FIELD_NUMBER; hash = (53 * hash) + getErrorRate().hashCode(); } if (getSpecialsCount() > 0) { hash = (37 * hash) + SPECIALS_FIELD_NUMBER; hash = (53 * hash) + getSpecialsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate 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.ClimbConfig.TriggerPolicy.ErrorRate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig.TriggerPolicy.ErrorRate) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSpecialsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (enableBuilder_ == null) { enable_ = null; } else { enable_ = null; enableBuilder_ = null; } if (requestVolumeThresholdBuilder_ == null) { requestVolumeThreshold_ = null; } else { requestVolumeThreshold_ = null; requestVolumeThresholdBuilder_ = null; } if (errorRateBuilder_ == null) { errorRate_ = null; } else { errorRate_ = null; errorRateBuilder_ = null; } if (specialsBuilder_ == null) { specials_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { specialsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate(this); int from_bitField0_ = bitField0_; if (enableBuilder_ == null) { result.enable_ = enable_; } else { result.enable_ = enableBuilder_.build(); } if (requestVolumeThresholdBuilder_ == null) { result.requestVolumeThreshold_ = requestVolumeThreshold_; } else { result.requestVolumeThreshold_ = requestVolumeThresholdBuilder_.build(); } if (errorRateBuilder_ == null) { result.errorRate_ = errorRate_; } else { result.errorRate_ = errorRateBuilder_.build(); } if (specialsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { specials_ = java.util.Collections.unmodifiableList(specials_); bitField0_ = (bitField0_ & ~0x00000001); } result.specials_ = specials_; } else { result.specials_ = specialsBuilder_.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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.getDefaultInstance()) return this; if (other.hasEnable()) { mergeEnable(other.getEnable()); } if (other.hasRequestVolumeThreshold()) { mergeRequestVolumeThreshold(other.getRequestVolumeThreshold()); } if (other.hasErrorRate()) { mergeErrorRate(other.getErrorRate()); } if (specialsBuilder_ == null) { if (!other.specials_.isEmpty()) { if (specials_.isEmpty()) { specials_ = other.specials_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpecialsIsMutable(); specials_.addAll(other.specials_); } onChanged(); } } else { if (!other.specials_.isEmpty()) { if (specialsBuilder_.isEmpty()) { specialsBuilder_.dispose(); specialsBuilder_ = null; specials_ = other.specials_; bitField0_ = (bitField0_ & ~0x00000001); specialsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpecialsFieldBuilder() : null; } else { specialsBuilder_.addAllMessages(other.specials_); } } } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.BoolValue enable_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableBuilder_; /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ public boolean hasEnable() { return enableBuilder_ != null || enable_ != null; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ public com.google.protobuf.BoolValue getEnable() { if (enableBuilder_ == null) { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } else { return enableBuilder_.getMessage(); } } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder setEnable(com.google.protobuf.BoolValue value) { if (enableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } enable_ = value; onChanged(); } else { enableBuilder_.setMessage(value); } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder setEnable( com.google.protobuf.BoolValue.Builder builderForValue) { if (enableBuilder_ == null) { enable_ = builderForValue.build(); onChanged(); } else { enableBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder mergeEnable(com.google.protobuf.BoolValue value) { if (enableBuilder_ == null) { if (enable_ != null) { enable_ = com.google.protobuf.BoolValue.newBuilder(enable_).mergeFrom(value).buildPartial(); } else { enable_ = value; } onChanged(); } else { enableBuilder_.mergeFrom(value); } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder clearEnable() { if (enableBuilder_ == null) { enable_ = null; onChanged(); } else { enable_ = null; enableBuilder_ = null; } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public com.google.protobuf.BoolValue.Builder getEnableBuilder() { onChanged(); return getEnableFieldBuilder().getBuilder(); } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder() { if (enableBuilder_ != null) { return enableBuilder_.getMessageOrBuilder(); } else { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getEnableFieldBuilder() { if (enableBuilder_ == null) { enableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getEnable(), getParentForChildren(), isClean()); enable_ = null; } return enableBuilder_; } private com.google.protobuf.UInt32Value requestVolumeThreshold_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> requestVolumeThresholdBuilder_; /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; * @return Whether the requestVolumeThreshold field is set. */ public boolean hasRequestVolumeThreshold() { return requestVolumeThresholdBuilder_ != null || requestVolumeThreshold_ != null; } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; * @return The requestVolumeThreshold. */ public com.google.protobuf.UInt32Value getRequestVolumeThreshold() { if (requestVolumeThresholdBuilder_ == null) { return requestVolumeThreshold_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : requestVolumeThreshold_; } else { return requestVolumeThresholdBuilder_.getMessage(); } } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ public Builder setRequestVolumeThreshold(com.google.protobuf.UInt32Value value) { if (requestVolumeThresholdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestVolumeThreshold_ = value; onChanged(); } else { requestVolumeThresholdBuilder_.setMessage(value); } return this; } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ public Builder setRequestVolumeThreshold( com.google.protobuf.UInt32Value.Builder builderForValue) { if (requestVolumeThresholdBuilder_ == null) { requestVolumeThreshold_ = builderForValue.build(); onChanged(); } else { requestVolumeThresholdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ public Builder mergeRequestVolumeThreshold(com.google.protobuf.UInt32Value value) { if (requestVolumeThresholdBuilder_ == null) { if (requestVolumeThreshold_ != null) { requestVolumeThreshold_ = com.google.protobuf.UInt32Value.newBuilder(requestVolumeThreshold_).mergeFrom(value).buildPartial(); } else { requestVolumeThreshold_ = value; } onChanged(); } else { requestVolumeThresholdBuilder_.mergeFrom(value); } return this; } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ public Builder clearRequestVolumeThreshold() { if (requestVolumeThresholdBuilder_ == null) { requestVolumeThreshold_ = null; onChanged(); } else { requestVolumeThreshold_ = null; requestVolumeThresholdBuilder_ = null; } return this; } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ public com.google.protobuf.UInt32Value.Builder getRequestVolumeThresholdBuilder() { onChanged(); return getRequestVolumeThresholdFieldBuilder().getBuilder(); } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ public com.google.protobuf.UInt32ValueOrBuilder getRequestVolumeThresholdOrBuilder() { if (requestVolumeThresholdBuilder_ != null) { return requestVolumeThresholdBuilder_.getMessageOrBuilder(); } else { return requestVolumeThreshold_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : requestVolumeThreshold_; } } /** *
           * 触发限流调整的最小的请求数
           * 
* * .google.protobuf.UInt32Value requestVolumeThreshold = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getRequestVolumeThresholdFieldBuilder() { if (requestVolumeThresholdBuilder_ == null) { requestVolumeThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getRequestVolumeThreshold(), getParentForChildren(), isClean()); requestVolumeThreshold_ = null; } return requestVolumeThresholdBuilder_; } private com.google.protobuf.Int32Value errorRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> errorRateBuilder_; /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; * @return Whether the errorRate field is set. */ public boolean hasErrorRate() { return errorRateBuilder_ != null || errorRate_ != null; } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; * @return The errorRate. */ public com.google.protobuf.Int32Value getErrorRate() { if (errorRateBuilder_ == null) { return errorRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : errorRate_; } else { return errorRateBuilder_.getMessage(); } } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder setErrorRate(com.google.protobuf.Int32Value value) { if (errorRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errorRate_ = value; onChanged(); } else { errorRateBuilder_.setMessage(value); } return this; } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder setErrorRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (errorRateBuilder_ == null) { errorRate_ = builderForValue.build(); onChanged(); } else { errorRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder mergeErrorRate(com.google.protobuf.Int32Value value) { if (errorRateBuilder_ == null) { if (errorRate_ != null) { errorRate_ = com.google.protobuf.Int32Value.newBuilder(errorRate_).mergeFrom(value).buildPartial(); } else { errorRate_ = value; } onChanged(); } else { errorRateBuilder_.mergeFrom(value); } return this; } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ public Builder clearErrorRate() { if (errorRateBuilder_ == null) { errorRate_ = null; onChanged(); } else { errorRate_ = null; errorRateBuilder_ = null; } return this; } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ public com.google.protobuf.Int32Value.Builder getErrorRateBuilder() { onChanged(); return getErrorRateFieldBuilder().getBuilder(); } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ public com.google.protobuf.Int32ValueOrBuilder getErrorRateOrBuilder() { if (errorRateBuilder_ != null) { return errorRateBuilder_.getMessageOrBuilder(); } else { return errorRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : errorRate_; } } /** *
           * 触发限流的错误率配置
           * 
* * .google.protobuf.Int32Value errorRate = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getErrorRateFieldBuilder() { if (errorRateBuilder_ == null) { errorRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getErrorRate(), getParentForChildren(), isClean()); errorRate_ = null; } return errorRateBuilder_; } private java.util.List specials_ = java.util.Collections.emptyList(); private void ensureSpecialsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { specials_ = new java.util.ArrayList(specials_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder> specialsBuilder_; /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public java.util.List getSpecialsList() { if (specialsBuilder_ == null) { return java.util.Collections.unmodifiableList(specials_); } else { return specialsBuilder_.getMessageList(); } } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public int getSpecialsCount() { if (specialsBuilder_ == null) { return specials_.size(); } else { return specialsBuilder_.getCount(); } } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig getSpecials(int index) { if (specialsBuilder_ == null) { return specials_.get(index); } else { return specialsBuilder_.getMessage(index); } } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder setSpecials( int index, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig value) { if (specialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpecialsIsMutable(); specials_.set(index, value); onChanged(); } else { specialsBuilder_.setMessage(index, value); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder setSpecials( int index, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder builderForValue) { if (specialsBuilder_ == null) { ensureSpecialsIsMutable(); specials_.set(index, builderForValue.build()); onChanged(); } else { specialsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder addSpecials(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig value) { if (specialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpecialsIsMutable(); specials_.add(value); onChanged(); } else { specialsBuilder_.addMessage(value); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder addSpecials( int index, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig value) { if (specialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpecialsIsMutable(); specials_.add(index, value); onChanged(); } else { specialsBuilder_.addMessage(index, value); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder addSpecials( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder builderForValue) { if (specialsBuilder_ == null) { ensureSpecialsIsMutable(); specials_.add(builderForValue.build()); onChanged(); } else { specialsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder addSpecials( int index, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder builderForValue) { if (specialsBuilder_ == null) { ensureSpecialsIsMutable(); specials_.add(index, builderForValue.build()); onChanged(); } else { specialsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder addAllSpecials( java.lang.Iterable values) { if (specialsBuilder_ == null) { ensureSpecialsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, specials_); onChanged(); } else { specialsBuilder_.addAllMessages(values); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder clearSpecials() { if (specialsBuilder_ == null) { specials_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { specialsBuilder_.clear(); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public Builder removeSpecials(int index) { if (specialsBuilder_ == null) { ensureSpecialsIsMutable(); specials_.remove(index); onChanged(); } else { specialsBuilder_.remove(index); } return this; } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder getSpecialsBuilder( int index) { return getSpecialsFieldBuilder().getBuilder(index); } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder getSpecialsOrBuilder( int index) { if (specialsBuilder_ == null) { return specials_.get(index); } else { return specialsBuilder_.getMessageOrBuilder(index); } } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public java.util.List getSpecialsOrBuilderList() { if (specialsBuilder_ != null) { return specialsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(specials_); } } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder addSpecialsBuilder() { return getSpecialsFieldBuilder().addBuilder( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.getDefaultInstance()); } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder addSpecialsBuilder( int index) { return getSpecialsFieldBuilder().addBuilder( index, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.getDefaultInstance()); } /** *
           * 针对部分错误码,使用额外的错误率统计,可设置多组特殊规则
           * 
* * repeated .v1.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig specials = 4; */ public java.util.List getSpecialsBuilderList() { return getSpecialsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder> getSpecialsFieldBuilder() { if (specialsBuilder_ == null) { specialsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.SpecialConfigOrBuilder>( specials_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); specials_ = null; } return specialsBuilder_; } @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.ClimbConfig.TriggerPolicy.ErrorRate) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig.TriggerPolicy.ErrorRate) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ErrorRate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ErrorRate(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SlowRateOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig.TriggerPolicy.SlowRate) com.google.protobuf.MessageOrBuilder { /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ boolean hasEnable(); /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ com.google.protobuf.BoolValue getEnable(); /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; */ com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder(); /** *
         * 最大响应时间,超过该响应时间属于慢调用
         * 
* * .google.protobuf.Duration maxRt = 2; * @return Whether the maxRt field is set. */ boolean hasMaxRt(); /** *
         * 最大响应时间,超过该响应时间属于慢调用
         * 
* * .google.protobuf.Duration maxRt = 2; * @return The maxRt. */ com.google.protobuf.Duration getMaxRt(); /** *
         * 最大响应时间,超过该响应时间属于慢调用
         * 
* * .google.protobuf.Duration maxRt = 2; */ com.google.protobuf.DurationOrBuilder getMaxRtOrBuilder(); /** *
         * 慢请求率阈值,达到该阈值进行限流
         * 
* * .google.protobuf.Int32Value slowRate = 3; * @return Whether the slowRate field is set. */ boolean hasSlowRate(); /** *
         * 慢请求率阈值,达到该阈值进行限流
         * 
* * .google.protobuf.Int32Value slowRate = 3; * @return The slowRate. */ com.google.protobuf.Int32Value getSlowRate(); /** *
         * 慢请求率阈值,达到该阈值进行限流
         * 
* * .google.protobuf.Int32Value slowRate = 3; */ com.google.protobuf.Int32ValueOrBuilder getSlowRateOrBuilder(); } /** *
       * 慢调用触发调整配置
       * 
* * Protobuf type {@code v1.ClimbConfig.TriggerPolicy.SlowRate} */ public static final class SlowRate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig.TriggerPolicy.SlowRate) SlowRateOrBuilder { private static final long serialVersionUID = 0L; // Use SlowRate.newBuilder() to construct. private SlowRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SlowRate() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SlowRate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SlowRate( 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: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (enable_ != null) { subBuilder = enable_.toBuilder(); } enable_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(enable_); enable_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Duration.Builder subBuilder = null; if (maxRt_ != null) { subBuilder = maxRt_.toBuilder(); } maxRt_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxRt_); maxRt_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (slowRate_ != null) { subBuilder = slowRate_.toBuilder(); } slowRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(slowRate_); slowRate_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder.class); } public static final int ENABLE_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue enable_; /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ @java.lang.Override public boolean hasEnable() { return enable_ != null; } /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ @java.lang.Override public com.google.protobuf.BoolValue getEnable() { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } /** *
         * 是否开启
         * 
* * .google.protobuf.BoolValue enable = 1; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder() { return getEnable(); } public static final int MAXRT_FIELD_NUMBER = 2; private com.google.protobuf.Duration maxRt_; /** *
         * 最大响应时间,超过该响应时间属于慢调用
         * 
* * .google.protobuf.Duration maxRt = 2; * @return Whether the maxRt field is set. */ @java.lang.Override public boolean hasMaxRt() { return maxRt_ != null; } /** *
         * 最大响应时间,超过该响应时间属于慢调用
         * 
* * .google.protobuf.Duration maxRt = 2; * @return The maxRt. */ @java.lang.Override public com.google.protobuf.Duration getMaxRt() { return maxRt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRt_; } /** *
         * 最大响应时间,超过该响应时间属于慢调用
         * 
* * .google.protobuf.Duration maxRt = 2; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxRtOrBuilder() { return getMaxRt(); } public static final int SLOWRATE_FIELD_NUMBER = 3; private com.google.protobuf.Int32Value slowRate_; /** *
         * 慢请求率阈值,达到该阈值进行限流
         * 
* * .google.protobuf.Int32Value slowRate = 3; * @return Whether the slowRate field is set. */ @java.lang.Override public boolean hasSlowRate() { return slowRate_ != null; } /** *
         * 慢请求率阈值,达到该阈值进行限流
         * 
* * .google.protobuf.Int32Value slowRate = 3; * @return The slowRate. */ @java.lang.Override public com.google.protobuf.Int32Value getSlowRate() { return slowRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : slowRate_; } /** *
         * 慢请求率阈值,达到该阈值进行限流
         * 
* * .google.protobuf.Int32Value slowRate = 3; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getSlowRateOrBuilder() { return getSlowRate(); } 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 (enable_ != null) { output.writeMessage(1, getEnable()); } if (maxRt_ != null) { output.writeMessage(2, getMaxRt()); } if (slowRate_ != null) { output.writeMessage(3, getSlowRate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEnable()); } if (maxRt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMaxRt()); } if (slowRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSlowRate()); } 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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate) obj; if (hasEnable() != other.hasEnable()) return false; if (hasEnable()) { if (!getEnable() .equals(other.getEnable())) return false; } if (hasMaxRt() != other.hasMaxRt()) return false; if (hasMaxRt()) { if (!getMaxRt() .equals(other.getMaxRt())) return false; } if (hasSlowRate() != other.hasSlowRate()) return false; if (hasSlowRate()) { if (!getSlowRate() .equals(other.getSlowRate())) 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 (hasEnable()) { hash = (37 * hash) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + getEnable().hashCode(); } if (hasMaxRt()) { hash = (37 * hash) + MAXRT_FIELD_NUMBER; hash = (53 * hash) + getMaxRt().hashCode(); } if (hasSlowRate()) { hash = (37 * hash) + SLOWRATE_FIELD_NUMBER; hash = (53 * hash) + getSlowRate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate 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.ClimbConfig.TriggerPolicy.SlowRate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig.TriggerPolicy.SlowRate) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.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 (enableBuilder_ == null) { enable_ = null; } else { enable_ = null; enableBuilder_ = null; } if (maxRtBuilder_ == null) { maxRt_ = null; } else { maxRt_ = null; maxRtBuilder_ = null; } if (slowRateBuilder_ == null) { slowRate_ = null; } else { slowRate_ = null; slowRateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate(this); if (enableBuilder_ == null) { result.enable_ = enable_; } else { result.enable_ = enableBuilder_.build(); } if (maxRtBuilder_ == null) { result.maxRt_ = maxRt_; } else { result.maxRt_ = maxRtBuilder_.build(); } if (slowRateBuilder_ == null) { result.slowRate_ = slowRate_; } else { result.slowRate_ = slowRateBuilder_.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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.getDefaultInstance()) return this; if (other.hasEnable()) { mergeEnable(other.getEnable()); } if (other.hasMaxRt()) { mergeMaxRt(other.getMaxRt()); } if (other.hasSlowRate()) { mergeSlowRate(other.getSlowRate()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.BoolValue enable_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableBuilder_; /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ public boolean hasEnable() { return enableBuilder_ != null || enable_ != null; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ public com.google.protobuf.BoolValue getEnable() { if (enableBuilder_ == null) { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } else { return enableBuilder_.getMessage(); } } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder setEnable(com.google.protobuf.BoolValue value) { if (enableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } enable_ = value; onChanged(); } else { enableBuilder_.setMessage(value); } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder setEnable( com.google.protobuf.BoolValue.Builder builderForValue) { if (enableBuilder_ == null) { enable_ = builderForValue.build(); onChanged(); } else { enableBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder mergeEnable(com.google.protobuf.BoolValue value) { if (enableBuilder_ == null) { if (enable_ != null) { enable_ = com.google.protobuf.BoolValue.newBuilder(enable_).mergeFrom(value).buildPartial(); } else { enable_ = value; } onChanged(); } else { enableBuilder_.mergeFrom(value); } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder clearEnable() { if (enableBuilder_ == null) { enable_ = null; onChanged(); } else { enable_ = null; enableBuilder_ = null; } return this; } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public com.google.protobuf.BoolValue.Builder getEnableBuilder() { onChanged(); return getEnableFieldBuilder().getBuilder(); } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ public com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder() { if (enableBuilder_ != null) { return enableBuilder_.getMessageOrBuilder(); } else { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } } /** *
           * 是否开启
           * 
* * .google.protobuf.BoolValue enable = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getEnableFieldBuilder() { if (enableBuilder_ == null) { enableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getEnable(), getParentForChildren(), isClean()); enable_ = null; } return enableBuilder_; } private com.google.protobuf.Duration maxRt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxRtBuilder_; /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; * @return Whether the maxRt field is set. */ public boolean hasMaxRt() { return maxRtBuilder_ != null || maxRt_ != null; } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; * @return The maxRt. */ public com.google.protobuf.Duration getMaxRt() { if (maxRtBuilder_ == null) { return maxRt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRt_; } else { return maxRtBuilder_.getMessage(); } } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ public Builder setMaxRt(com.google.protobuf.Duration value) { if (maxRtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxRt_ = value; onChanged(); } else { maxRtBuilder_.setMessage(value); } return this; } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ public Builder setMaxRt( com.google.protobuf.Duration.Builder builderForValue) { if (maxRtBuilder_ == null) { maxRt_ = builderForValue.build(); onChanged(); } else { maxRtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ public Builder mergeMaxRt(com.google.protobuf.Duration value) { if (maxRtBuilder_ == null) { if (maxRt_ != null) { maxRt_ = com.google.protobuf.Duration.newBuilder(maxRt_).mergeFrom(value).buildPartial(); } else { maxRt_ = value; } onChanged(); } else { maxRtBuilder_.mergeFrom(value); } return this; } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ public Builder clearMaxRt() { if (maxRtBuilder_ == null) { maxRt_ = null; onChanged(); } else { maxRt_ = null; maxRtBuilder_ = null; } return this; } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ public com.google.protobuf.Duration.Builder getMaxRtBuilder() { onChanged(); return getMaxRtFieldBuilder().getBuilder(); } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ public com.google.protobuf.DurationOrBuilder getMaxRtOrBuilder() { if (maxRtBuilder_ != null) { return maxRtBuilder_.getMessageOrBuilder(); } else { return maxRt_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxRt_; } } /** *
           * 最大响应时间,超过该响应时间属于慢调用
           * 
* * .google.protobuf.Duration maxRt = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getMaxRtFieldBuilder() { if (maxRtBuilder_ == null) { maxRtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getMaxRt(), getParentForChildren(), isClean()); maxRt_ = null; } return maxRtBuilder_; } private com.google.protobuf.Int32Value slowRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> slowRateBuilder_; /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; * @return Whether the slowRate field is set. */ public boolean hasSlowRate() { return slowRateBuilder_ != null || slowRate_ != null; } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; * @return The slowRate. */ public com.google.protobuf.Int32Value getSlowRate() { if (slowRateBuilder_ == null) { return slowRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : slowRate_; } else { return slowRateBuilder_.getMessage(); } } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ public Builder setSlowRate(com.google.protobuf.Int32Value value) { if (slowRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } slowRate_ = value; onChanged(); } else { slowRateBuilder_.setMessage(value); } return this; } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ public Builder setSlowRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (slowRateBuilder_ == null) { slowRate_ = builderForValue.build(); onChanged(); } else { slowRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ public Builder mergeSlowRate(com.google.protobuf.Int32Value value) { if (slowRateBuilder_ == null) { if (slowRate_ != null) { slowRate_ = com.google.protobuf.Int32Value.newBuilder(slowRate_).mergeFrom(value).buildPartial(); } else { slowRate_ = value; } onChanged(); } else { slowRateBuilder_.mergeFrom(value); } return this; } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ public Builder clearSlowRate() { if (slowRateBuilder_ == null) { slowRate_ = null; onChanged(); } else { slowRate_ = null; slowRateBuilder_ = null; } return this; } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ public com.google.protobuf.Int32Value.Builder getSlowRateBuilder() { onChanged(); return getSlowRateFieldBuilder().getBuilder(); } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ public com.google.protobuf.Int32ValueOrBuilder getSlowRateOrBuilder() { if (slowRateBuilder_ != null) { return slowRateBuilder_.getMessageOrBuilder(); } else { return slowRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : slowRate_; } } /** *
           * 慢请求率阈值,达到该阈值进行限流
           * 
* * .google.protobuf.Int32Value slowRate = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getSlowRateFieldBuilder() { if (slowRateBuilder_ == null) { slowRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getSlowRate(), getParentForChildren(), isClean()); slowRate_ = null; } return slowRateBuilder_; } @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.ClimbConfig.TriggerPolicy.SlowRate) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig.TriggerPolicy.SlowRate) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SlowRate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SlowRate(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ERRORRATE_FIELD_NUMBER = 1; private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate errorRate_; /** *
       * 按错误率阈值调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; * @return Whether the errorRate field is set. */ @java.lang.Override public boolean hasErrorRate() { return errorRate_ != null; } /** *
       * 按错误率阈值调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; * @return The errorRate. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate getErrorRate() { return errorRate_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.getDefaultInstance() : errorRate_; } /** *
       * 按错误率阈值调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder getErrorRateOrBuilder() { return getErrorRate(); } public static final int SLOWRATE_FIELD_NUMBER = 2; private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate slowRate_; /** *
       * 慢调用进行触发调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; * @return Whether the slowRate field is set. */ @java.lang.Override public boolean hasSlowRate() { return slowRate_ != null; } /** *
       * 慢调用进行触发调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; * @return The slowRate. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate getSlowRate() { return slowRate_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.getDefaultInstance() : slowRate_; } /** *
       * 慢调用进行触发调整
       * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder getSlowRateOrBuilder() { return getSlowRate(); } 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 (errorRate_ != null) { output.writeMessage(1, getErrorRate()); } if (slowRate_ != null) { output.writeMessage(2, getSlowRate()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (errorRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getErrorRate()); } if (slowRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSlowRate()); } 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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy) obj; if (hasErrorRate() != other.hasErrorRate()) return false; if (hasErrorRate()) { if (!getErrorRate() .equals(other.getErrorRate())) return false; } if (hasSlowRate() != other.hasSlowRate()) return false; if (hasSlowRate()) { if (!getSlowRate() .equals(other.getSlowRate())) 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 (hasErrorRate()) { hash = (37 * hash) + ERRORRATE_FIELD_NUMBER; hash = (53 * hash) + getErrorRate().hashCode(); } if (hasSlowRate()) { hash = (37 * hash) + SLOWRATE_FIELD_NUMBER; hash = (53 * hash) + getSlowRate().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy 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.ClimbConfig.TriggerPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig.TriggerPolicy) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.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 (errorRateBuilder_ == null) { errorRate_ = null; } else { errorRate_ = null; errorRateBuilder_ = null; } if (slowRateBuilder_ == null) { slowRate_ = null; } else { slowRate_ = null; slowRateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_TriggerPolicy_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy(this); if (errorRateBuilder_ == null) { result.errorRate_ = errorRate_; } else { result.errorRate_ = errorRateBuilder_.build(); } if (slowRateBuilder_ == null) { result.slowRate_ = slowRate_; } else { result.slowRate_ = slowRateBuilder_.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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.getDefaultInstance()) return this; if (other.hasErrorRate()) { mergeErrorRate(other.getErrorRate()); } if (other.hasSlowRate()) { mergeSlowRate(other.getSlowRate()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate errorRate_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder> errorRateBuilder_; /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; * @return Whether the errorRate field is set. */ public boolean hasErrorRate() { return errorRateBuilder_ != null || errorRate_ != null; } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; * @return The errorRate. */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate getErrorRate() { if (errorRateBuilder_ == null) { return errorRate_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.getDefaultInstance() : errorRate_; } else { return errorRateBuilder_.getMessage(); } } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ public Builder setErrorRate(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate value) { if (errorRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } errorRate_ = value; onChanged(); } else { errorRateBuilder_.setMessage(value); } return this; } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ public Builder setErrorRate( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder builderForValue) { if (errorRateBuilder_ == null) { errorRate_ = builderForValue.build(); onChanged(); } else { errorRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ public Builder mergeErrorRate(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate value) { if (errorRateBuilder_ == null) { if (errorRate_ != null) { errorRate_ = com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.newBuilder(errorRate_).mergeFrom(value).buildPartial(); } else { errorRate_ = value; } onChanged(); } else { errorRateBuilder_.mergeFrom(value); } return this; } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ public Builder clearErrorRate() { if (errorRateBuilder_ == null) { errorRate_ = null; onChanged(); } else { errorRate_ = null; errorRateBuilder_ = null; } return this; } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder getErrorRateBuilder() { onChanged(); return getErrorRateFieldBuilder().getBuilder(); } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder getErrorRateOrBuilder() { if (errorRateBuilder_ != null) { return errorRateBuilder_.getMessageOrBuilder(); } else { return errorRate_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.getDefaultInstance() : errorRate_; } } /** *
         * 按错误率阈值调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.ErrorRate errorRate = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder> getErrorRateFieldBuilder() { if (errorRateBuilder_ == null) { errorRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRate.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.ErrorRateOrBuilder>( getErrorRate(), getParentForChildren(), isClean()); errorRate_ = null; } return errorRateBuilder_; } private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate slowRate_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder> slowRateBuilder_; /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; * @return Whether the slowRate field is set. */ public boolean hasSlowRate() { return slowRateBuilder_ != null || slowRate_ != null; } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; * @return The slowRate. */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate getSlowRate() { if (slowRateBuilder_ == null) { return slowRate_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.getDefaultInstance() : slowRate_; } else { return slowRateBuilder_.getMessage(); } } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ public Builder setSlowRate(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate value) { if (slowRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } slowRate_ = value; onChanged(); } else { slowRateBuilder_.setMessage(value); } return this; } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ public Builder setSlowRate( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder builderForValue) { if (slowRateBuilder_ == null) { slowRate_ = builderForValue.build(); onChanged(); } else { slowRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ public Builder mergeSlowRate(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate value) { if (slowRateBuilder_ == null) { if (slowRate_ != null) { slowRate_ = com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.newBuilder(slowRate_).mergeFrom(value).buildPartial(); } else { slowRate_ = value; } onChanged(); } else { slowRateBuilder_.mergeFrom(value); } return this; } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ public Builder clearSlowRate() { if (slowRateBuilder_ == null) { slowRate_ = null; onChanged(); } else { slowRate_ = null; slowRateBuilder_ = null; } return this; } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder getSlowRateBuilder() { onChanged(); return getSlowRateFieldBuilder().getBuilder(); } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder getSlowRateOrBuilder() { if (slowRateBuilder_ != null) { return slowRateBuilder_.getMessageOrBuilder(); } else { return slowRate_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.getDefaultInstance() : slowRate_; } } /** *
         * 慢调用进行触发调整
         * 
* * .v1.ClimbConfig.TriggerPolicy.SlowRate slowRate = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder> getSlowRateFieldBuilder() { if (slowRateBuilder_ == null) { slowRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRate.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.SlowRateOrBuilder>( getSlowRate(), getParentForChildren(), isClean()); slowRate_ = null; } return slowRateBuilder_; } @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.ClimbConfig.TriggerPolicy) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig.TriggerPolicy) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TriggerPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TriggerPolicy(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClimbThrottlingOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ClimbConfig.ClimbThrottling) com.google.protobuf.MessageOrBuilder { /** *
       * 冷水位以下区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; * @return Whether the coldBelowTuneDownRate field is set. */ boolean hasColdBelowTuneDownRate(); /** *
       * 冷水位以下区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; * @return The coldBelowTuneDownRate. */ com.google.protobuf.Int32Value getColdBelowTuneDownRate(); /** *
       * 冷水位以下区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ com.google.protobuf.Int32ValueOrBuilder getColdBelowTuneDownRateOrBuilder(); /** *
       * 冷水位以下区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; * @return Whether the coldBelowTuneUpRate field is set. */ boolean hasColdBelowTuneUpRate(); /** *
       * 冷水位以下区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; * @return The coldBelowTuneUpRate. */ com.google.protobuf.Int32Value getColdBelowTuneUpRate(); /** *
       * 冷水位以下区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ com.google.protobuf.Int32ValueOrBuilder getColdBelowTuneUpRateOrBuilder(); /** *
       * 冷水位以上区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; * @return Whether the coldAboveTuneDownRate field is set. */ boolean hasColdAboveTuneDownRate(); /** *
       * 冷水位以上区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; * @return The coldAboveTuneDownRate. */ com.google.protobuf.Int32Value getColdAboveTuneDownRate(); /** *
       * 冷水位以上区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ com.google.protobuf.Int32ValueOrBuilder getColdAboveTuneDownRateOrBuilder(); /** *
       * 冷水位以上区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; * @return Whether the coldAboveTuneUpRate field is set. */ boolean hasColdAboveTuneUpRate(); /** *
       * 冷水位以上区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; * @return The coldAboveTuneUpRate. */ com.google.protobuf.Int32Value getColdAboveTuneUpRate(); /** *
       * 冷水位以上区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ com.google.protobuf.Int32ValueOrBuilder getColdAboveTuneUpRateOrBuilder(); /** *
       * 冷水位以上,超过该百分的请求被限流后进行阈值上调
       * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; * @return Whether the limitThresholdToTuneUp field is set. */ boolean hasLimitThresholdToTuneUp(); /** *
       * 冷水位以上,超过该百分的请求被限流后进行阈值上调
       * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; * @return The limitThresholdToTuneUp. */ com.google.protobuf.Int32Value getLimitThresholdToTuneUp(); /** *
       * 冷水位以上,超过该百分的请求被限流后进行阈值上调
       * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ com.google.protobuf.Int32ValueOrBuilder getLimitThresholdToTuneUpOrBuilder(); /** *
       * 阈值调整规则的决策间隔
       * 
* * .google.protobuf.Duration judgeDuration = 6; * @return Whether the judgeDuration field is set. */ boolean hasJudgeDuration(); /** *
       * 阈值调整规则的决策间隔
       * 
* * .google.protobuf.Duration judgeDuration = 6; * @return The judgeDuration. */ com.google.protobuf.Duration getJudgeDuration(); /** *
       * 阈值调整规则的决策间隔
       * 
* * .google.protobuf.Duration judgeDuration = 6; */ com.google.protobuf.DurationOrBuilder getJudgeDurationOrBuilder(); /** *
       * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
       * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; * @return Whether the tuneUpPeriod field is set. */ boolean hasTuneUpPeriod(); /** *
       * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
       * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; * @return The tuneUpPeriod. */ com.google.protobuf.Int32Value getTuneUpPeriod(); /** *
       * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
       * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ com.google.protobuf.Int32ValueOrBuilder getTuneUpPeriodOrBuilder(); /** *
       * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
       * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; * @return Whether the tuneDownPeriod field is set. */ boolean hasTuneDownPeriod(); /** *
       * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
       * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; * @return The tuneDownPeriod. */ com.google.protobuf.Int32Value getTuneDownPeriod(); /** *
       * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
       * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ com.google.protobuf.Int32ValueOrBuilder getTuneDownPeriodOrBuilder(); } /** *
     * 爬坡调整相关参数
     * 
* * Protobuf type {@code v1.ClimbConfig.ClimbThrottling} */ public static final class ClimbThrottling extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ClimbConfig.ClimbThrottling) ClimbThrottlingOrBuilder { private static final long serialVersionUID = 0L; // Use ClimbThrottling.newBuilder() to construct. private ClimbThrottling(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClimbThrottling() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClimbThrottling(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClimbThrottling( 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: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (coldBelowTuneDownRate_ != null) { subBuilder = coldBelowTuneDownRate_.toBuilder(); } coldBelowTuneDownRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(coldBelowTuneDownRate_); coldBelowTuneDownRate_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (coldBelowTuneUpRate_ != null) { subBuilder = coldBelowTuneUpRate_.toBuilder(); } coldBelowTuneUpRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(coldBelowTuneUpRate_); coldBelowTuneUpRate_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (coldAboveTuneDownRate_ != null) { subBuilder = coldAboveTuneDownRate_.toBuilder(); } coldAboveTuneDownRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(coldAboveTuneDownRate_); coldAboveTuneDownRate_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (coldAboveTuneUpRate_ != null) { subBuilder = coldAboveTuneUpRate_.toBuilder(); } coldAboveTuneUpRate_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(coldAboveTuneUpRate_); coldAboveTuneUpRate_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (limitThresholdToTuneUp_ != null) { subBuilder = limitThresholdToTuneUp_.toBuilder(); } limitThresholdToTuneUp_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(limitThresholdToTuneUp_); limitThresholdToTuneUp_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Duration.Builder subBuilder = null; if (judgeDuration_ != null) { subBuilder = judgeDuration_.toBuilder(); } judgeDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(judgeDuration_); judgeDuration_ = subBuilder.buildPartial(); } break; } case 58: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (tuneUpPeriod_ != null) { subBuilder = tuneUpPeriod_.toBuilder(); } tuneUpPeriod_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tuneUpPeriod_); tuneUpPeriod_ = subBuilder.buildPartial(); } break; } case 66: { com.google.protobuf.Int32Value.Builder subBuilder = null; if (tuneDownPeriod_ != null) { subBuilder = tuneDownPeriod_.toBuilder(); } tuneDownPeriod_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tuneDownPeriod_); tuneDownPeriod_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_ClimbThrottling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_ClimbThrottling_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder.class); } public static final int COLDBELOWTUNEDOWNRATE_FIELD_NUMBER = 1; private com.google.protobuf.Int32Value coldBelowTuneDownRate_; /** *
       * 冷水位以下区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; * @return Whether the coldBelowTuneDownRate field is set. */ @java.lang.Override public boolean hasColdBelowTuneDownRate() { return coldBelowTuneDownRate_ != null; } /** *
       * 冷水位以下区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; * @return The coldBelowTuneDownRate. */ @java.lang.Override public com.google.protobuf.Int32Value getColdBelowTuneDownRate() { return coldBelowTuneDownRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldBelowTuneDownRate_; } /** *
       * 冷水位以下区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getColdBelowTuneDownRateOrBuilder() { return getColdBelowTuneDownRate(); } public static final int COLDBELOWTUNEUPRATE_FIELD_NUMBER = 2; private com.google.protobuf.Int32Value coldBelowTuneUpRate_; /** *
       * 冷水位以下区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; * @return Whether the coldBelowTuneUpRate field is set. */ @java.lang.Override public boolean hasColdBelowTuneUpRate() { return coldBelowTuneUpRate_ != null; } /** *
       * 冷水位以下区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; * @return The coldBelowTuneUpRate. */ @java.lang.Override public com.google.protobuf.Int32Value getColdBelowTuneUpRate() { return coldBelowTuneUpRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldBelowTuneUpRate_; } /** *
       * 冷水位以下区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getColdBelowTuneUpRateOrBuilder() { return getColdBelowTuneUpRate(); } public static final int COLDABOVETUNEDOWNRATE_FIELD_NUMBER = 3; private com.google.protobuf.Int32Value coldAboveTuneDownRate_; /** *
       * 冷水位以上区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; * @return Whether the coldAboveTuneDownRate field is set. */ @java.lang.Override public boolean hasColdAboveTuneDownRate() { return coldAboveTuneDownRate_ != null; } /** *
       * 冷水位以上区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; * @return The coldAboveTuneDownRate. */ @java.lang.Override public com.google.protobuf.Int32Value getColdAboveTuneDownRate() { return coldAboveTuneDownRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldAboveTuneDownRate_; } /** *
       * 冷水位以上区间的下调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getColdAboveTuneDownRateOrBuilder() { return getColdAboveTuneDownRate(); } public static final int COLDABOVETUNEUPRATE_FIELD_NUMBER = 4; private com.google.protobuf.Int32Value coldAboveTuneUpRate_; /** *
       * 冷水位以上区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; * @return Whether the coldAboveTuneUpRate field is set. */ @java.lang.Override public boolean hasColdAboveTuneUpRate() { return coldAboveTuneUpRate_ != null; } /** *
       * 冷水位以上区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; * @return The coldAboveTuneUpRate. */ @java.lang.Override public com.google.protobuf.Int32Value getColdAboveTuneUpRate() { return coldAboveTuneUpRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldAboveTuneUpRate_; } /** *
       * 冷水位以上区间的上调百分比
       * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getColdAboveTuneUpRateOrBuilder() { return getColdAboveTuneUpRate(); } public static final int LIMITTHRESHOLDTOTUNEUP_FIELD_NUMBER = 5; private com.google.protobuf.Int32Value limitThresholdToTuneUp_; /** *
       * 冷水位以上,超过该百分的请求被限流后进行阈值上调
       * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; * @return Whether the limitThresholdToTuneUp field is set. */ @java.lang.Override public boolean hasLimitThresholdToTuneUp() { return limitThresholdToTuneUp_ != null; } /** *
       * 冷水位以上,超过该百分的请求被限流后进行阈值上调
       * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; * @return The limitThresholdToTuneUp. */ @java.lang.Override public com.google.protobuf.Int32Value getLimitThresholdToTuneUp() { return limitThresholdToTuneUp_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limitThresholdToTuneUp_; } /** *
       * 冷水位以上,超过该百分的请求被限流后进行阈值上调
       * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getLimitThresholdToTuneUpOrBuilder() { return getLimitThresholdToTuneUp(); } public static final int JUDGEDURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration judgeDuration_; /** *
       * 阈值调整规则的决策间隔
       * 
* * .google.protobuf.Duration judgeDuration = 6; * @return Whether the judgeDuration field is set. */ @java.lang.Override public boolean hasJudgeDuration() { return judgeDuration_ != null; } /** *
       * 阈值调整规则的决策间隔
       * 
* * .google.protobuf.Duration judgeDuration = 6; * @return The judgeDuration. */ @java.lang.Override public com.google.protobuf.Duration getJudgeDuration() { return judgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : judgeDuration_; } /** *
       * 阈值调整规则的决策间隔
       * 
* * .google.protobuf.Duration judgeDuration = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getJudgeDurationOrBuilder() { return getJudgeDuration(); } public static final int TUNEUPPERIOD_FIELD_NUMBER = 7; private com.google.protobuf.Int32Value tuneUpPeriod_; /** *
       * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
       * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; * @return Whether the tuneUpPeriod field is set. */ @java.lang.Override public boolean hasTuneUpPeriod() { return tuneUpPeriod_ != null; } /** *
       * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
       * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; * @return The tuneUpPeriod. */ @java.lang.Override public com.google.protobuf.Int32Value getTuneUpPeriod() { return tuneUpPeriod_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : tuneUpPeriod_; } /** *
       * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
       * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getTuneUpPeriodOrBuilder() { return getTuneUpPeriod(); } public static final int TUNEDOWNPERIOD_FIELD_NUMBER = 8; private com.google.protobuf.Int32Value tuneDownPeriod_; /** *
       * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
       * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; * @return Whether the tuneDownPeriod field is set. */ @java.lang.Override public boolean hasTuneDownPeriod() { return tuneDownPeriod_ != null; } /** *
       * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
       * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; * @return The tuneDownPeriod. */ @java.lang.Override public com.google.protobuf.Int32Value getTuneDownPeriod() { return tuneDownPeriod_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : tuneDownPeriod_; } /** *
       * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
       * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getTuneDownPeriodOrBuilder() { return getTuneDownPeriod(); } 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 (coldBelowTuneDownRate_ != null) { output.writeMessage(1, getColdBelowTuneDownRate()); } if (coldBelowTuneUpRate_ != null) { output.writeMessage(2, getColdBelowTuneUpRate()); } if (coldAboveTuneDownRate_ != null) { output.writeMessage(3, getColdAboveTuneDownRate()); } if (coldAboveTuneUpRate_ != null) { output.writeMessage(4, getColdAboveTuneUpRate()); } if (limitThresholdToTuneUp_ != null) { output.writeMessage(5, getLimitThresholdToTuneUp()); } if (judgeDuration_ != null) { output.writeMessage(6, getJudgeDuration()); } if (tuneUpPeriod_ != null) { output.writeMessage(7, getTuneUpPeriod()); } if (tuneDownPeriod_ != null) { output.writeMessage(8, getTuneDownPeriod()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (coldBelowTuneDownRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getColdBelowTuneDownRate()); } if (coldBelowTuneUpRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getColdBelowTuneUpRate()); } if (coldAboveTuneDownRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getColdAboveTuneDownRate()); } if (coldAboveTuneUpRate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getColdAboveTuneUpRate()); } if (limitThresholdToTuneUp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getLimitThresholdToTuneUp()); } if (judgeDuration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getJudgeDuration()); } if (tuneUpPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getTuneUpPeriod()); } if (tuneDownPeriod_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getTuneDownPeriod()); } 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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling) obj; if (hasColdBelowTuneDownRate() != other.hasColdBelowTuneDownRate()) return false; if (hasColdBelowTuneDownRate()) { if (!getColdBelowTuneDownRate() .equals(other.getColdBelowTuneDownRate())) return false; } if (hasColdBelowTuneUpRate() != other.hasColdBelowTuneUpRate()) return false; if (hasColdBelowTuneUpRate()) { if (!getColdBelowTuneUpRate() .equals(other.getColdBelowTuneUpRate())) return false; } if (hasColdAboveTuneDownRate() != other.hasColdAboveTuneDownRate()) return false; if (hasColdAboveTuneDownRate()) { if (!getColdAboveTuneDownRate() .equals(other.getColdAboveTuneDownRate())) return false; } if (hasColdAboveTuneUpRate() != other.hasColdAboveTuneUpRate()) return false; if (hasColdAboveTuneUpRate()) { if (!getColdAboveTuneUpRate() .equals(other.getColdAboveTuneUpRate())) return false; } if (hasLimitThresholdToTuneUp() != other.hasLimitThresholdToTuneUp()) return false; if (hasLimitThresholdToTuneUp()) { if (!getLimitThresholdToTuneUp() .equals(other.getLimitThresholdToTuneUp())) return false; } if (hasJudgeDuration() != other.hasJudgeDuration()) return false; if (hasJudgeDuration()) { if (!getJudgeDuration() .equals(other.getJudgeDuration())) return false; } if (hasTuneUpPeriod() != other.hasTuneUpPeriod()) return false; if (hasTuneUpPeriod()) { if (!getTuneUpPeriod() .equals(other.getTuneUpPeriod())) return false; } if (hasTuneDownPeriod() != other.hasTuneDownPeriod()) return false; if (hasTuneDownPeriod()) { if (!getTuneDownPeriod() .equals(other.getTuneDownPeriod())) 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 (hasColdBelowTuneDownRate()) { hash = (37 * hash) + COLDBELOWTUNEDOWNRATE_FIELD_NUMBER; hash = (53 * hash) + getColdBelowTuneDownRate().hashCode(); } if (hasColdBelowTuneUpRate()) { hash = (37 * hash) + COLDBELOWTUNEUPRATE_FIELD_NUMBER; hash = (53 * hash) + getColdBelowTuneUpRate().hashCode(); } if (hasColdAboveTuneDownRate()) { hash = (37 * hash) + COLDABOVETUNEDOWNRATE_FIELD_NUMBER; hash = (53 * hash) + getColdAboveTuneDownRate().hashCode(); } if (hasColdAboveTuneUpRate()) { hash = (37 * hash) + COLDABOVETUNEUPRATE_FIELD_NUMBER; hash = (53 * hash) + getColdAboveTuneUpRate().hashCode(); } if (hasLimitThresholdToTuneUp()) { hash = (37 * hash) + LIMITTHRESHOLDTOTUNEUP_FIELD_NUMBER; hash = (53 * hash) + getLimitThresholdToTuneUp().hashCode(); } if (hasJudgeDuration()) { hash = (37 * hash) + JUDGEDURATION_FIELD_NUMBER; hash = (53 * hash) + getJudgeDuration().hashCode(); } if (hasTuneUpPeriod()) { hash = (37 * hash) + TUNEUPPERIOD_FIELD_NUMBER; hash = (53 * hash) + getTuneUpPeriod().hashCode(); } if (hasTuneDownPeriod()) { hash = (37 * hash) + TUNEDOWNPERIOD_FIELD_NUMBER; hash = (53 * hash) + getTuneDownPeriod().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling 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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling 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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling 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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling 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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling 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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling 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.ClimbConfig.ClimbThrottling} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig.ClimbThrottling) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_ClimbThrottling_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_ClimbThrottling_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.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 (coldBelowTuneDownRateBuilder_ == null) { coldBelowTuneDownRate_ = null; } else { coldBelowTuneDownRate_ = null; coldBelowTuneDownRateBuilder_ = null; } if (coldBelowTuneUpRateBuilder_ == null) { coldBelowTuneUpRate_ = null; } else { coldBelowTuneUpRate_ = null; coldBelowTuneUpRateBuilder_ = null; } if (coldAboveTuneDownRateBuilder_ == null) { coldAboveTuneDownRate_ = null; } else { coldAboveTuneDownRate_ = null; coldAboveTuneDownRateBuilder_ = null; } if (coldAboveTuneUpRateBuilder_ == null) { coldAboveTuneUpRate_ = null; } else { coldAboveTuneUpRate_ = null; coldAboveTuneUpRateBuilder_ = null; } if (limitThresholdToTuneUpBuilder_ == null) { limitThresholdToTuneUp_ = null; } else { limitThresholdToTuneUp_ = null; limitThresholdToTuneUpBuilder_ = null; } if (judgeDurationBuilder_ == null) { judgeDuration_ = null; } else { judgeDuration_ = null; judgeDurationBuilder_ = null; } if (tuneUpPeriodBuilder_ == null) { tuneUpPeriod_ = null; } else { tuneUpPeriod_ = null; tuneUpPeriodBuilder_ = null; } if (tuneDownPeriodBuilder_ == null) { tuneDownPeriod_ = null; } else { tuneDownPeriod_ = null; tuneDownPeriodBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_ClimbThrottling_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling(this); if (coldBelowTuneDownRateBuilder_ == null) { result.coldBelowTuneDownRate_ = coldBelowTuneDownRate_; } else { result.coldBelowTuneDownRate_ = coldBelowTuneDownRateBuilder_.build(); } if (coldBelowTuneUpRateBuilder_ == null) { result.coldBelowTuneUpRate_ = coldBelowTuneUpRate_; } else { result.coldBelowTuneUpRate_ = coldBelowTuneUpRateBuilder_.build(); } if (coldAboveTuneDownRateBuilder_ == null) { result.coldAboveTuneDownRate_ = coldAboveTuneDownRate_; } else { result.coldAboveTuneDownRate_ = coldAboveTuneDownRateBuilder_.build(); } if (coldAboveTuneUpRateBuilder_ == null) { result.coldAboveTuneUpRate_ = coldAboveTuneUpRate_; } else { result.coldAboveTuneUpRate_ = coldAboveTuneUpRateBuilder_.build(); } if (limitThresholdToTuneUpBuilder_ == null) { result.limitThresholdToTuneUp_ = limitThresholdToTuneUp_; } else { result.limitThresholdToTuneUp_ = limitThresholdToTuneUpBuilder_.build(); } if (judgeDurationBuilder_ == null) { result.judgeDuration_ = judgeDuration_; } else { result.judgeDuration_ = judgeDurationBuilder_.build(); } if (tuneUpPeriodBuilder_ == null) { result.tuneUpPeriod_ = tuneUpPeriod_; } else { result.tuneUpPeriod_ = tuneUpPeriodBuilder_.build(); } if (tuneDownPeriodBuilder_ == null) { result.tuneDownPeriod_ = tuneDownPeriod_; } else { result.tuneDownPeriod_ = tuneDownPeriodBuilder_.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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.getDefaultInstance()) return this; if (other.hasColdBelowTuneDownRate()) { mergeColdBelowTuneDownRate(other.getColdBelowTuneDownRate()); } if (other.hasColdBelowTuneUpRate()) { mergeColdBelowTuneUpRate(other.getColdBelowTuneUpRate()); } if (other.hasColdAboveTuneDownRate()) { mergeColdAboveTuneDownRate(other.getColdAboveTuneDownRate()); } if (other.hasColdAboveTuneUpRate()) { mergeColdAboveTuneUpRate(other.getColdAboveTuneUpRate()); } if (other.hasLimitThresholdToTuneUp()) { mergeLimitThresholdToTuneUp(other.getLimitThresholdToTuneUp()); } if (other.hasJudgeDuration()) { mergeJudgeDuration(other.getJudgeDuration()); } if (other.hasTuneUpPeriod()) { mergeTuneUpPeriod(other.getTuneUpPeriod()); } if (other.hasTuneDownPeriod()) { mergeTuneDownPeriod(other.getTuneDownPeriod()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Int32Value coldBelowTuneDownRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> coldBelowTuneDownRateBuilder_; /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; * @return Whether the coldBelowTuneDownRate field is set. */ public boolean hasColdBelowTuneDownRate() { return coldBelowTuneDownRateBuilder_ != null || coldBelowTuneDownRate_ != null; } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; * @return The coldBelowTuneDownRate. */ public com.google.protobuf.Int32Value getColdBelowTuneDownRate() { if (coldBelowTuneDownRateBuilder_ == null) { return coldBelowTuneDownRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldBelowTuneDownRate_; } else { return coldBelowTuneDownRateBuilder_.getMessage(); } } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ public Builder setColdBelowTuneDownRate(com.google.protobuf.Int32Value value) { if (coldBelowTuneDownRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coldBelowTuneDownRate_ = value; onChanged(); } else { coldBelowTuneDownRateBuilder_.setMessage(value); } return this; } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ public Builder setColdBelowTuneDownRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (coldBelowTuneDownRateBuilder_ == null) { coldBelowTuneDownRate_ = builderForValue.build(); onChanged(); } else { coldBelowTuneDownRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ public Builder mergeColdBelowTuneDownRate(com.google.protobuf.Int32Value value) { if (coldBelowTuneDownRateBuilder_ == null) { if (coldBelowTuneDownRate_ != null) { coldBelowTuneDownRate_ = com.google.protobuf.Int32Value.newBuilder(coldBelowTuneDownRate_).mergeFrom(value).buildPartial(); } else { coldBelowTuneDownRate_ = value; } onChanged(); } else { coldBelowTuneDownRateBuilder_.mergeFrom(value); } return this; } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ public Builder clearColdBelowTuneDownRate() { if (coldBelowTuneDownRateBuilder_ == null) { coldBelowTuneDownRate_ = null; onChanged(); } else { coldBelowTuneDownRate_ = null; coldBelowTuneDownRateBuilder_ = null; } return this; } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ public com.google.protobuf.Int32Value.Builder getColdBelowTuneDownRateBuilder() { onChanged(); return getColdBelowTuneDownRateFieldBuilder().getBuilder(); } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ public com.google.protobuf.Int32ValueOrBuilder getColdBelowTuneDownRateOrBuilder() { if (coldBelowTuneDownRateBuilder_ != null) { return coldBelowTuneDownRateBuilder_.getMessageOrBuilder(); } else { return coldBelowTuneDownRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldBelowTuneDownRate_; } } /** *
         * 冷水位以下区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneDownRate = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getColdBelowTuneDownRateFieldBuilder() { if (coldBelowTuneDownRateBuilder_ == null) { coldBelowTuneDownRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getColdBelowTuneDownRate(), getParentForChildren(), isClean()); coldBelowTuneDownRate_ = null; } return coldBelowTuneDownRateBuilder_; } private com.google.protobuf.Int32Value coldBelowTuneUpRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> coldBelowTuneUpRateBuilder_; /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; * @return Whether the coldBelowTuneUpRate field is set. */ public boolean hasColdBelowTuneUpRate() { return coldBelowTuneUpRateBuilder_ != null || coldBelowTuneUpRate_ != null; } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; * @return The coldBelowTuneUpRate. */ public com.google.protobuf.Int32Value getColdBelowTuneUpRate() { if (coldBelowTuneUpRateBuilder_ == null) { return coldBelowTuneUpRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldBelowTuneUpRate_; } else { return coldBelowTuneUpRateBuilder_.getMessage(); } } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ public Builder setColdBelowTuneUpRate(com.google.protobuf.Int32Value value) { if (coldBelowTuneUpRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coldBelowTuneUpRate_ = value; onChanged(); } else { coldBelowTuneUpRateBuilder_.setMessage(value); } return this; } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ public Builder setColdBelowTuneUpRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (coldBelowTuneUpRateBuilder_ == null) { coldBelowTuneUpRate_ = builderForValue.build(); onChanged(); } else { coldBelowTuneUpRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ public Builder mergeColdBelowTuneUpRate(com.google.protobuf.Int32Value value) { if (coldBelowTuneUpRateBuilder_ == null) { if (coldBelowTuneUpRate_ != null) { coldBelowTuneUpRate_ = com.google.protobuf.Int32Value.newBuilder(coldBelowTuneUpRate_).mergeFrom(value).buildPartial(); } else { coldBelowTuneUpRate_ = value; } onChanged(); } else { coldBelowTuneUpRateBuilder_.mergeFrom(value); } return this; } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ public Builder clearColdBelowTuneUpRate() { if (coldBelowTuneUpRateBuilder_ == null) { coldBelowTuneUpRate_ = null; onChanged(); } else { coldBelowTuneUpRate_ = null; coldBelowTuneUpRateBuilder_ = null; } return this; } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ public com.google.protobuf.Int32Value.Builder getColdBelowTuneUpRateBuilder() { onChanged(); return getColdBelowTuneUpRateFieldBuilder().getBuilder(); } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ public com.google.protobuf.Int32ValueOrBuilder getColdBelowTuneUpRateOrBuilder() { if (coldBelowTuneUpRateBuilder_ != null) { return coldBelowTuneUpRateBuilder_.getMessageOrBuilder(); } else { return coldBelowTuneUpRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldBelowTuneUpRate_; } } /** *
         * 冷水位以下区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldBelowTuneUpRate = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getColdBelowTuneUpRateFieldBuilder() { if (coldBelowTuneUpRateBuilder_ == null) { coldBelowTuneUpRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getColdBelowTuneUpRate(), getParentForChildren(), isClean()); coldBelowTuneUpRate_ = null; } return coldBelowTuneUpRateBuilder_; } private com.google.protobuf.Int32Value coldAboveTuneDownRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> coldAboveTuneDownRateBuilder_; /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; * @return Whether the coldAboveTuneDownRate field is set. */ public boolean hasColdAboveTuneDownRate() { return coldAboveTuneDownRateBuilder_ != null || coldAboveTuneDownRate_ != null; } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; * @return The coldAboveTuneDownRate. */ public com.google.protobuf.Int32Value getColdAboveTuneDownRate() { if (coldAboveTuneDownRateBuilder_ == null) { return coldAboveTuneDownRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldAboveTuneDownRate_; } else { return coldAboveTuneDownRateBuilder_.getMessage(); } } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ public Builder setColdAboveTuneDownRate(com.google.protobuf.Int32Value value) { if (coldAboveTuneDownRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coldAboveTuneDownRate_ = value; onChanged(); } else { coldAboveTuneDownRateBuilder_.setMessage(value); } return this; } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ public Builder setColdAboveTuneDownRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (coldAboveTuneDownRateBuilder_ == null) { coldAboveTuneDownRate_ = builderForValue.build(); onChanged(); } else { coldAboveTuneDownRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ public Builder mergeColdAboveTuneDownRate(com.google.protobuf.Int32Value value) { if (coldAboveTuneDownRateBuilder_ == null) { if (coldAboveTuneDownRate_ != null) { coldAboveTuneDownRate_ = com.google.protobuf.Int32Value.newBuilder(coldAboveTuneDownRate_).mergeFrom(value).buildPartial(); } else { coldAboveTuneDownRate_ = value; } onChanged(); } else { coldAboveTuneDownRateBuilder_.mergeFrom(value); } return this; } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ public Builder clearColdAboveTuneDownRate() { if (coldAboveTuneDownRateBuilder_ == null) { coldAboveTuneDownRate_ = null; onChanged(); } else { coldAboveTuneDownRate_ = null; coldAboveTuneDownRateBuilder_ = null; } return this; } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ public com.google.protobuf.Int32Value.Builder getColdAboveTuneDownRateBuilder() { onChanged(); return getColdAboveTuneDownRateFieldBuilder().getBuilder(); } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ public com.google.protobuf.Int32ValueOrBuilder getColdAboveTuneDownRateOrBuilder() { if (coldAboveTuneDownRateBuilder_ != null) { return coldAboveTuneDownRateBuilder_.getMessageOrBuilder(); } else { return coldAboveTuneDownRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldAboveTuneDownRate_; } } /** *
         * 冷水位以上区间的下调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneDownRate = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getColdAboveTuneDownRateFieldBuilder() { if (coldAboveTuneDownRateBuilder_ == null) { coldAboveTuneDownRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getColdAboveTuneDownRate(), getParentForChildren(), isClean()); coldAboveTuneDownRate_ = null; } return coldAboveTuneDownRateBuilder_; } private com.google.protobuf.Int32Value coldAboveTuneUpRate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> coldAboveTuneUpRateBuilder_; /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; * @return Whether the coldAboveTuneUpRate field is set. */ public boolean hasColdAboveTuneUpRate() { return coldAboveTuneUpRateBuilder_ != null || coldAboveTuneUpRate_ != null; } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; * @return The coldAboveTuneUpRate. */ public com.google.protobuf.Int32Value getColdAboveTuneUpRate() { if (coldAboveTuneUpRateBuilder_ == null) { return coldAboveTuneUpRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldAboveTuneUpRate_; } else { return coldAboveTuneUpRateBuilder_.getMessage(); } } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ public Builder setColdAboveTuneUpRate(com.google.protobuf.Int32Value value) { if (coldAboveTuneUpRateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coldAboveTuneUpRate_ = value; onChanged(); } else { coldAboveTuneUpRateBuilder_.setMessage(value); } return this; } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ public Builder setColdAboveTuneUpRate( com.google.protobuf.Int32Value.Builder builderForValue) { if (coldAboveTuneUpRateBuilder_ == null) { coldAboveTuneUpRate_ = builderForValue.build(); onChanged(); } else { coldAboveTuneUpRateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ public Builder mergeColdAboveTuneUpRate(com.google.protobuf.Int32Value value) { if (coldAboveTuneUpRateBuilder_ == null) { if (coldAboveTuneUpRate_ != null) { coldAboveTuneUpRate_ = com.google.protobuf.Int32Value.newBuilder(coldAboveTuneUpRate_).mergeFrom(value).buildPartial(); } else { coldAboveTuneUpRate_ = value; } onChanged(); } else { coldAboveTuneUpRateBuilder_.mergeFrom(value); } return this; } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ public Builder clearColdAboveTuneUpRate() { if (coldAboveTuneUpRateBuilder_ == null) { coldAboveTuneUpRate_ = null; onChanged(); } else { coldAboveTuneUpRate_ = null; coldAboveTuneUpRateBuilder_ = null; } return this; } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ public com.google.protobuf.Int32Value.Builder getColdAboveTuneUpRateBuilder() { onChanged(); return getColdAboveTuneUpRateFieldBuilder().getBuilder(); } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ public com.google.protobuf.Int32ValueOrBuilder getColdAboveTuneUpRateOrBuilder() { if (coldAboveTuneUpRateBuilder_ != null) { return coldAboveTuneUpRateBuilder_.getMessageOrBuilder(); } else { return coldAboveTuneUpRate_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : coldAboveTuneUpRate_; } } /** *
         * 冷水位以上区间的上调百分比
         * 
* * .google.protobuf.Int32Value coldAboveTuneUpRate = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getColdAboveTuneUpRateFieldBuilder() { if (coldAboveTuneUpRateBuilder_ == null) { coldAboveTuneUpRateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getColdAboveTuneUpRate(), getParentForChildren(), isClean()); coldAboveTuneUpRate_ = null; } return coldAboveTuneUpRateBuilder_; } private com.google.protobuf.Int32Value limitThresholdToTuneUp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> limitThresholdToTuneUpBuilder_; /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; * @return Whether the limitThresholdToTuneUp field is set. */ public boolean hasLimitThresholdToTuneUp() { return limitThresholdToTuneUpBuilder_ != null || limitThresholdToTuneUp_ != null; } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; * @return The limitThresholdToTuneUp. */ public com.google.protobuf.Int32Value getLimitThresholdToTuneUp() { if (limitThresholdToTuneUpBuilder_ == null) { return limitThresholdToTuneUp_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limitThresholdToTuneUp_; } else { return limitThresholdToTuneUpBuilder_.getMessage(); } } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ public Builder setLimitThresholdToTuneUp(com.google.protobuf.Int32Value value) { if (limitThresholdToTuneUpBuilder_ == null) { if (value == null) { throw new NullPointerException(); } limitThresholdToTuneUp_ = value; onChanged(); } else { limitThresholdToTuneUpBuilder_.setMessage(value); } return this; } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ public Builder setLimitThresholdToTuneUp( com.google.protobuf.Int32Value.Builder builderForValue) { if (limitThresholdToTuneUpBuilder_ == null) { limitThresholdToTuneUp_ = builderForValue.build(); onChanged(); } else { limitThresholdToTuneUpBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ public Builder mergeLimitThresholdToTuneUp(com.google.protobuf.Int32Value value) { if (limitThresholdToTuneUpBuilder_ == null) { if (limitThresholdToTuneUp_ != null) { limitThresholdToTuneUp_ = com.google.protobuf.Int32Value.newBuilder(limitThresholdToTuneUp_).mergeFrom(value).buildPartial(); } else { limitThresholdToTuneUp_ = value; } onChanged(); } else { limitThresholdToTuneUpBuilder_.mergeFrom(value); } return this; } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ public Builder clearLimitThresholdToTuneUp() { if (limitThresholdToTuneUpBuilder_ == null) { limitThresholdToTuneUp_ = null; onChanged(); } else { limitThresholdToTuneUp_ = null; limitThresholdToTuneUpBuilder_ = null; } return this; } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ public com.google.protobuf.Int32Value.Builder getLimitThresholdToTuneUpBuilder() { onChanged(); return getLimitThresholdToTuneUpFieldBuilder().getBuilder(); } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ public com.google.protobuf.Int32ValueOrBuilder getLimitThresholdToTuneUpOrBuilder() { if (limitThresholdToTuneUpBuilder_ != null) { return limitThresholdToTuneUpBuilder_.getMessageOrBuilder(); } else { return limitThresholdToTuneUp_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limitThresholdToTuneUp_; } } /** *
         * 冷水位以上,超过该百分的请求被限流后进行阈值上调
         * 
* * .google.protobuf.Int32Value limitThresholdToTuneUp = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getLimitThresholdToTuneUpFieldBuilder() { if (limitThresholdToTuneUpBuilder_ == null) { limitThresholdToTuneUpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getLimitThresholdToTuneUp(), getParentForChildren(), isClean()); limitThresholdToTuneUp_ = null; } return limitThresholdToTuneUpBuilder_; } private com.google.protobuf.Duration judgeDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> judgeDurationBuilder_; /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; * @return Whether the judgeDuration field is set. */ public boolean hasJudgeDuration() { return judgeDurationBuilder_ != null || judgeDuration_ != null; } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; * @return The judgeDuration. */ public com.google.protobuf.Duration getJudgeDuration() { if (judgeDurationBuilder_ == null) { return judgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : judgeDuration_; } else { return judgeDurationBuilder_.getMessage(); } } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ public Builder setJudgeDuration(com.google.protobuf.Duration value) { if (judgeDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } judgeDuration_ = value; onChanged(); } else { judgeDurationBuilder_.setMessage(value); } return this; } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ public Builder setJudgeDuration( com.google.protobuf.Duration.Builder builderForValue) { if (judgeDurationBuilder_ == null) { judgeDuration_ = builderForValue.build(); onChanged(); } else { judgeDurationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ public Builder mergeJudgeDuration(com.google.protobuf.Duration value) { if (judgeDurationBuilder_ == null) { if (judgeDuration_ != null) { judgeDuration_ = com.google.protobuf.Duration.newBuilder(judgeDuration_).mergeFrom(value).buildPartial(); } else { judgeDuration_ = value; } onChanged(); } else { judgeDurationBuilder_.mergeFrom(value); } return this; } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ public Builder clearJudgeDuration() { if (judgeDurationBuilder_ == null) { judgeDuration_ = null; onChanged(); } else { judgeDuration_ = null; judgeDurationBuilder_ = null; } return this; } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ public com.google.protobuf.Duration.Builder getJudgeDurationBuilder() { onChanged(); return getJudgeDurationFieldBuilder().getBuilder(); } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ public com.google.protobuf.DurationOrBuilder getJudgeDurationOrBuilder() { if (judgeDurationBuilder_ != null) { return judgeDurationBuilder_.getMessageOrBuilder(); } else { return judgeDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : judgeDuration_; } } /** *
         * 阈值调整规则的决策间隔
         * 
* * .google.protobuf.Duration judgeDuration = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getJudgeDurationFieldBuilder() { if (judgeDurationBuilder_ == null) { judgeDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getJudgeDuration(), getParentForChildren(), isClean()); judgeDuration_ = null; } return judgeDurationBuilder_; } private com.google.protobuf.Int32Value tuneUpPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> tuneUpPeriodBuilder_; /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; * @return Whether the tuneUpPeriod field is set. */ public boolean hasTuneUpPeriod() { return tuneUpPeriodBuilder_ != null || tuneUpPeriod_ != null; } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; * @return The tuneUpPeriod. */ public com.google.protobuf.Int32Value getTuneUpPeriod() { if (tuneUpPeriodBuilder_ == null) { return tuneUpPeriod_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : tuneUpPeriod_; } else { return tuneUpPeriodBuilder_.getMessage(); } } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ public Builder setTuneUpPeriod(com.google.protobuf.Int32Value value) { if (tuneUpPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tuneUpPeriod_ = value; onChanged(); } else { tuneUpPeriodBuilder_.setMessage(value); } return this; } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ public Builder setTuneUpPeriod( com.google.protobuf.Int32Value.Builder builderForValue) { if (tuneUpPeriodBuilder_ == null) { tuneUpPeriod_ = builderForValue.build(); onChanged(); } else { tuneUpPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ public Builder mergeTuneUpPeriod(com.google.protobuf.Int32Value value) { if (tuneUpPeriodBuilder_ == null) { if (tuneUpPeriod_ != null) { tuneUpPeriod_ = com.google.protobuf.Int32Value.newBuilder(tuneUpPeriod_).mergeFrom(value).buildPartial(); } else { tuneUpPeriod_ = value; } onChanged(); } else { tuneUpPeriodBuilder_.mergeFrom(value); } return this; } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ public Builder clearTuneUpPeriod() { if (tuneUpPeriodBuilder_ == null) { tuneUpPeriod_ = null; onChanged(); } else { tuneUpPeriod_ = null; tuneUpPeriodBuilder_ = null; } return this; } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ public com.google.protobuf.Int32Value.Builder getTuneUpPeriodBuilder() { onChanged(); return getTuneUpPeriodFieldBuilder().getBuilder(); } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ public com.google.protobuf.Int32ValueOrBuilder getTuneUpPeriodOrBuilder() { if (tuneUpPeriodBuilder_ != null) { return tuneUpPeriodBuilder_.getMessageOrBuilder(); } else { return tuneUpPeriod_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : tuneUpPeriod_; } } /** *
         * 阈值上调周期数,连续N个决策间隔都为上调,才执行上调
         * 
* * .google.protobuf.Int32Value tuneUpPeriod = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getTuneUpPeriodFieldBuilder() { if (tuneUpPeriodBuilder_ == null) { tuneUpPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getTuneUpPeriod(), getParentForChildren(), isClean()); tuneUpPeriod_ = null; } return tuneUpPeriodBuilder_; } private com.google.protobuf.Int32Value tuneDownPeriod_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> tuneDownPeriodBuilder_; /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; * @return Whether the tuneDownPeriod field is set. */ public boolean hasTuneDownPeriod() { return tuneDownPeriodBuilder_ != null || tuneDownPeriod_ != null; } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; * @return The tuneDownPeriod. */ public com.google.protobuf.Int32Value getTuneDownPeriod() { if (tuneDownPeriodBuilder_ == null) { return tuneDownPeriod_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : tuneDownPeriod_; } else { return tuneDownPeriodBuilder_.getMessage(); } } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ public Builder setTuneDownPeriod(com.google.protobuf.Int32Value value) { if (tuneDownPeriodBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tuneDownPeriod_ = value; onChanged(); } else { tuneDownPeriodBuilder_.setMessage(value); } return this; } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ public Builder setTuneDownPeriod( com.google.protobuf.Int32Value.Builder builderForValue) { if (tuneDownPeriodBuilder_ == null) { tuneDownPeriod_ = builderForValue.build(); onChanged(); } else { tuneDownPeriodBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ public Builder mergeTuneDownPeriod(com.google.protobuf.Int32Value value) { if (tuneDownPeriodBuilder_ == null) { if (tuneDownPeriod_ != null) { tuneDownPeriod_ = com.google.protobuf.Int32Value.newBuilder(tuneDownPeriod_).mergeFrom(value).buildPartial(); } else { tuneDownPeriod_ = value; } onChanged(); } else { tuneDownPeriodBuilder_.mergeFrom(value); } return this; } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ public Builder clearTuneDownPeriod() { if (tuneDownPeriodBuilder_ == null) { tuneDownPeriod_ = null; onChanged(); } else { tuneDownPeriod_ = null; tuneDownPeriodBuilder_ = null; } return this; } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ public com.google.protobuf.Int32Value.Builder getTuneDownPeriodBuilder() { onChanged(); return getTuneDownPeriodFieldBuilder().getBuilder(); } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ public com.google.protobuf.Int32ValueOrBuilder getTuneDownPeriodOrBuilder() { if (tuneDownPeriodBuilder_ != null) { return tuneDownPeriodBuilder_.getMessageOrBuilder(); } else { return tuneDownPeriod_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : tuneDownPeriod_; } } /** *
         * 阈值下调周期数,连续N个决策间隔都为下调,才执行下调
         * 
* * .google.protobuf.Int32Value tuneDownPeriod = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getTuneDownPeriodFieldBuilder() { if (tuneDownPeriodBuilder_ == null) { tuneDownPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getTuneDownPeriod(), getParentForChildren(), isClean()); tuneDownPeriod_ = null; } return tuneDownPeriodBuilder_; } @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.ClimbConfig.ClimbThrottling) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig.ClimbThrottling) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClimbThrottling parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClimbThrottling(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int ENABLE_FIELD_NUMBER = 1; private com.google.protobuf.BoolValue enable_; /** *
     * 是否开启
     * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ @java.lang.Override public boolean hasEnable() { return enable_ != null; } /** *
     * 是否开启
     * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ @java.lang.Override public com.google.protobuf.BoolValue getEnable() { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } /** *
     * 是否开启
     * 
* * .google.protobuf.BoolValue enable = 1; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder() { return getEnable(); } public static final int METRIC_FIELD_NUMBER = 2; private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig metric_; /** *
     * 限流数据统计配置
     * 
* * .v1.ClimbConfig.MetricConfig metric = 2; * @return Whether the metric field is set. */ @java.lang.Override public boolean hasMetric() { return metric_ != null; } /** *
     * 限流数据统计配置
     * 
* * .v1.ClimbConfig.MetricConfig metric = 2; * @return The metric. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig getMetric() { return metric_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.getDefaultInstance() : metric_; } /** *
     * 限流数据统计配置
     * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder getMetricOrBuilder() { return getMetric(); } public static final int POLICY_FIELD_NUMBER = 3; private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy policy_; /** *
     * 触发调整策略
     * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; * @return Whether the policy field is set. */ @java.lang.Override public boolean hasPolicy() { return policy_ != null; } /** *
     * 触发调整策略
     * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; * @return The policy. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy getPolicy() { return policy_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.getDefaultInstance() : policy_; } /** *
     * 触发调整策略
     * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder getPolicyOrBuilder() { return getPolicy(); } public static final int THROTTLING_FIELD_NUMBER = 4; private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling throttling_; /** *
     * 限流调整相关参数
     * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; * @return Whether the throttling field is set. */ @java.lang.Override public boolean hasThrottling() { return throttling_ != null; } /** *
     * 限流调整相关参数
     * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; * @return The throttling. */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling getThrottling() { return throttling_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.getDefaultInstance() : throttling_; } /** *
     * 限流调整相关参数
     * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder getThrottlingOrBuilder() { return getThrottling(); } 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 (enable_ != null) { output.writeMessage(1, getEnable()); } if (metric_ != null) { output.writeMessage(2, getMetric()); } if (policy_ != null) { output.writeMessage(3, getPolicy()); } if (throttling_ != null) { output.writeMessage(4, getThrottling()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enable_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEnable()); } if (metric_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMetric()); } if (policy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPolicy()); } if (throttling_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getThrottling()); } 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 com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig)) { return super.equals(obj); } com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig other = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig) obj; if (hasEnable() != other.hasEnable()) return false; if (hasEnable()) { if (!getEnable() .equals(other.getEnable())) return false; } if (hasMetric() != other.hasMetric()) return false; if (hasMetric()) { if (!getMetric() .equals(other.getMetric())) return false; } if (hasPolicy() != other.hasPolicy()) return false; if (hasPolicy()) { if (!getPolicy() .equals(other.getPolicy())) return false; } if (hasThrottling() != other.hasThrottling()) return false; if (hasThrottling()) { if (!getThrottling() .equals(other.getThrottling())) 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 (hasEnable()) { hash = (37 * hash) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + getEnable().hashCode(); } if (hasMetric()) { hash = (37 * hash) + METRIC_FIELD_NUMBER; hash = (53 * hash) + getMetric().hashCode(); } if (hasPolicy()) { hash = (37 * hash) + POLICY_FIELD_NUMBER; hash = (53 * hash) + getPolicy().hashCode(); } if (hasThrottling()) { hash = (37 * hash) + THROTTLING_FIELD_NUMBER; hash = (53 * hash) + getThrottling().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig 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.client.pb.RateLimitProto.ClimbConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig 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.client.pb.RateLimitProto.ClimbConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig 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.client.pb.RateLimitProto.ClimbConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig 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.client.pb.RateLimitProto.ClimbConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig 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.client.pb.RateLimitProto.ClimbConfig 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; } /** *
     * 限流调整算法Climb相关配置
     * 
* * Protobuf type {@code v1.ClimbConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ClimbConfig) com.tencent.polaris.client.pb.RateLimitProto.ClimbConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.class, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.Builder.class); } // Construct using com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.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 (enableBuilder_ == null) { enable_ = null; } else { enable_ = null; enableBuilder_ = null; } if (metricBuilder_ == null) { metric_ = null; } else { metric_ = null; metricBuilder_ = null; } if (policyBuilder_ == null) { policy_ = null; } else { policy_ = null; policyBuilder_ = null; } if (throttlingBuilder_ == null) { throttling_ = null; } else { throttling_ = null; throttlingBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.client.pb.RateLimitProto.internal_static_v1_ClimbConfig_descriptor; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig getDefaultInstanceForType() { return com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig build() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig buildPartial() { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig result = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig(this); if (enableBuilder_ == null) { result.enable_ = enable_; } else { result.enable_ = enableBuilder_.build(); } if (metricBuilder_ == null) { result.metric_ = metric_; } else { result.metric_ = metricBuilder_.build(); } if (policyBuilder_ == null) { result.policy_ = policy_; } else { result.policy_ = policyBuilder_.build(); } if (throttlingBuilder_ == null) { result.throttling_ = throttling_; } else { result.throttling_ = throttlingBuilder_.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.client.pb.RateLimitProto.ClimbConfig) { return mergeFrom((com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig other) { if (other == com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.getDefaultInstance()) return this; if (other.hasEnable()) { mergeEnable(other.getEnable()); } if (other.hasMetric()) { mergeMetric(other.getMetric()); } if (other.hasPolicy()) { mergePolicy(other.getPolicy()); } if (other.hasThrottling()) { mergeThrottling(other.getThrottling()); } 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 { com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.BoolValue enable_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableBuilder_; /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; * @return Whether the enable field is set. */ public boolean hasEnable() { return enableBuilder_ != null || enable_ != null; } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; * @return The enable. */ public com.google.protobuf.BoolValue getEnable() { if (enableBuilder_ == null) { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } else { return enableBuilder_.getMessage(); } } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder setEnable(com.google.protobuf.BoolValue value) { if (enableBuilder_ == null) { if (value == null) { throw new NullPointerException(); } enable_ = value; onChanged(); } else { enableBuilder_.setMessage(value); } return this; } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder setEnable( com.google.protobuf.BoolValue.Builder builderForValue) { if (enableBuilder_ == null) { enable_ = builderForValue.build(); onChanged(); } else { enableBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder mergeEnable(com.google.protobuf.BoolValue value) { if (enableBuilder_ == null) { if (enable_ != null) { enable_ = com.google.protobuf.BoolValue.newBuilder(enable_).mergeFrom(value).buildPartial(); } else { enable_ = value; } onChanged(); } else { enableBuilder_.mergeFrom(value); } return this; } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ public Builder clearEnable() { if (enableBuilder_ == null) { enable_ = null; onChanged(); } else { enable_ = null; enableBuilder_ = null; } return this; } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ public com.google.protobuf.BoolValue.Builder getEnableBuilder() { onChanged(); return getEnableFieldBuilder().getBuilder(); } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ public com.google.protobuf.BoolValueOrBuilder getEnableOrBuilder() { if (enableBuilder_ != null) { return enableBuilder_.getMessageOrBuilder(); } else { return enable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enable_; } } /** *
       * 是否开启
       * 
* * .google.protobuf.BoolValue enable = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getEnableFieldBuilder() { if (enableBuilder_ == null) { enableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getEnable(), getParentForChildren(), isClean()); enable_ = null; } return enableBuilder_; } private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig metric_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder> metricBuilder_; /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; * @return Whether the metric field is set. */ public boolean hasMetric() { return metricBuilder_ != null || metric_ != null; } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; * @return The metric. */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig getMetric() { if (metricBuilder_ == null) { return metric_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.getDefaultInstance() : metric_; } else { return metricBuilder_.getMessage(); } } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ public Builder setMetric(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig value) { if (metricBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metric_ = value; onChanged(); } else { metricBuilder_.setMessage(value); } return this; } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ public Builder setMetric( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder builderForValue) { if (metricBuilder_ == null) { metric_ = builderForValue.build(); onChanged(); } else { metricBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ public Builder mergeMetric(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig value) { if (metricBuilder_ == null) { if (metric_ != null) { metric_ = com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.newBuilder(metric_).mergeFrom(value).buildPartial(); } else { metric_ = value; } onChanged(); } else { metricBuilder_.mergeFrom(value); } return this; } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ public Builder clearMetric() { if (metricBuilder_ == null) { metric_ = null; onChanged(); } else { metric_ = null; metricBuilder_ = null; } return this; } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder getMetricBuilder() { onChanged(); return getMetricFieldBuilder().getBuilder(); } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { return metric_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.getDefaultInstance() : metric_; } } /** *
       * 限流数据统计配置
       * 
* * .v1.ClimbConfig.MetricConfig metric = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder> getMetricFieldBuilder() { if (metricBuilder_ == null) { metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfig.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.MetricConfigOrBuilder>( getMetric(), getParentForChildren(), isClean()); metric_ = null; } return metricBuilder_; } private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy policy_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder> policyBuilder_; /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; * @return Whether the policy field is set. */ public boolean hasPolicy() { return policyBuilder_ != null || policy_ != null; } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; * @return The policy. */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy getPolicy() { if (policyBuilder_ == null) { return policy_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.getDefaultInstance() : policy_; } else { return policyBuilder_.getMessage(); } } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ public Builder setPolicy(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy value) { if (policyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policy_ = value; onChanged(); } else { policyBuilder_.setMessage(value); } return this; } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ public Builder setPolicy( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder builderForValue) { if (policyBuilder_ == null) { policy_ = builderForValue.build(); onChanged(); } else { policyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ public Builder mergePolicy(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy value) { if (policyBuilder_ == null) { if (policy_ != null) { policy_ = com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.newBuilder(policy_).mergeFrom(value).buildPartial(); } else { policy_ = value; } onChanged(); } else { policyBuilder_.mergeFrom(value); } return this; } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ public Builder clearPolicy() { if (policyBuilder_ == null) { policy_ = null; onChanged(); } else { policy_ = null; policyBuilder_ = null; } return this; } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder getPolicyBuilder() { onChanged(); return getPolicyFieldBuilder().getBuilder(); } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder getPolicyOrBuilder() { if (policyBuilder_ != null) { return policyBuilder_.getMessageOrBuilder(); } else { return policy_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.getDefaultInstance() : policy_; } } /** *
       * 触发调整策略
       * 
* * .v1.ClimbConfig.TriggerPolicy policy = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder> getPolicyFieldBuilder() { if (policyBuilder_ == null) { policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicy.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.TriggerPolicyOrBuilder>( getPolicy(), getParentForChildren(), isClean()); policy_ = null; } return policyBuilder_; } private com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling throttling_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder> throttlingBuilder_; /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; * @return Whether the throttling field is set. */ public boolean hasThrottling() { return throttlingBuilder_ != null || throttling_ != null; } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; * @return The throttling. */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling getThrottling() { if (throttlingBuilder_ == null) { return throttling_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.getDefaultInstance() : throttling_; } else { return throttlingBuilder_.getMessage(); } } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ public Builder setThrottling(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling value) { if (throttlingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } throttling_ = value; onChanged(); } else { throttlingBuilder_.setMessage(value); } return this; } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ public Builder setThrottling( com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder builderForValue) { if (throttlingBuilder_ == null) { throttling_ = builderForValue.build(); onChanged(); } else { throttlingBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ public Builder mergeThrottling(com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling value) { if (throttlingBuilder_ == null) { if (throttling_ != null) { throttling_ = com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.newBuilder(throttling_).mergeFrom(value).buildPartial(); } else { throttling_ = value; } onChanged(); } else { throttlingBuilder_.mergeFrom(value); } return this; } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ public Builder clearThrottling() { if (throttlingBuilder_ == null) { throttling_ = null; onChanged(); } else { throttling_ = null; throttlingBuilder_ = null; } return this; } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder getThrottlingBuilder() { onChanged(); return getThrottlingFieldBuilder().getBuilder(); } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ public com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder getThrottlingOrBuilder() { if (throttlingBuilder_ != null) { return throttlingBuilder_.getMessageOrBuilder(); } else { return throttling_ == null ? com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.getDefaultInstance() : throttling_; } } /** *
       * 限流调整相关参数
       * 
* * .v1.ClimbConfig.ClimbThrottling throttling = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder> getThrottlingFieldBuilder() { if (throttlingBuilder_ == null) { throttlingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottling.Builder, com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig.ClimbThrottlingOrBuilder>( getThrottling(), getParentForChildren(), isClean()); throttling_ = null; } return throttlingBuilder_; } @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.ClimbConfig) } // @@protoc_insertion_point(class_scope:v1.ClimbConfig) private static final com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig(); } public static com.tencent.polaris.client.pb.RateLimitProto.ClimbConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClimbConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClimbConfig(input, extensionRegistry); } }; 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.client.pb.RateLimitProto.ClimbConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_RateLimit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_RateLimit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Rule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Rule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Rule_SubsetEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Rule_SubsetEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Rule_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Rule_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_RateLimitCluster_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_RateLimitCluster_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Amount_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Amount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Report_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Report_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_AmountAdjuster_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_AmountAdjuster_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_MetricConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_MetricConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_TriggerPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_TriggerPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ClimbConfig_ClimbThrottling_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ClimbConfig_ClimbThrottling_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\017ratelimit.proto\022\002v1\032\036google/protobuf/w" + "rappers.proto\032\036google/protobuf/duration." + "proto\032\013model.proto\"T\n\tRateLimit\022\027\n\005rules" + "\030\001 \003(\0132\010.v1.Rule\022.\n\010revision\030\002 \001(\0132\034.goo" + "gle.protobuf.StringValue\"\262\t\n\004Rule\022(\n\002id\030" + "\001 \001(\0132\034.google.protobuf.StringValue\022-\n\007s" + "ervice\030\002 \001(\0132\034.google.protobuf.StringVal" + "ue\022/\n\tnamespace\030\003 \001(\0132\034.google.protobuf." + "StringValue\022$\n\006subset\030\004 \003(\0132\024.v1.Rule.Su" + "bsetEntry\022.\n\010priority\030\005 \001(\0132\034.google.pro" + "tobuf.UInt32Value\022#\n\010resource\030\006 \001(\0162\021.v1" + ".Rule.Resource\022\033\n\004type\030\007 \001(\0162\r.v1.Rule.T" + "ype\022$\n\006labels\030\010 \003(\0132\024.v1.Rule.LabelsEntr" + "y\022\033\n\007amounts\030\t \003(\0132\n.v1.Amount\022,\n\006action" + "\030\n \001(\0132\034.google.protobuf.StringValue\022+\n\007" + "disable\030\013 \001(\0132\032.google.protobuf.BoolValu" + "e\022\032\n\006report\030\014 \001(\0132\n.v1.Report\022+\n\005ctime\030\r" + " \001(\0132\034.google.protobuf.StringValue\022+\n\005mt" + "ime\030\016 \001(\0132\034.google.protobuf.StringValue\022" + ".\n\010revision\030\017 \001(\0132\034.google.protobuf.Stri" + "ngValue\022B\n\rservice_token\030\020 \001(\0132\034.google." + "protobuf.StringValueR\rservice_token\022$\n\010a" + "djuster\030\021 \001(\0132\022.v1.AmountAdjuster\0221\n\rreg" + "ex_combine\030\022 \001(\0132\032.google.protobuf.BoolV" + "alue\022(\n\013amount_mode\030\023 \001(\0162\023.v1.Rule.Amou" + "ntMode\022\'\n\010failover\030\024 \001(\0162\025.v1.Rule.Failo" + "verType\022%\n\007cluster\030\025 \001(\0132\024.v1.RateLimitC" + "luster\032>\n\013SubsetEntry\022\013\n\003key\030\001 \001(\t\022\036\n\005va" + "lue\030\002 \001(\0132\017.v1.MatchString:\0028\001\032>\n\013Labels" + "Entry\022\013\n\003key\030\001 \001(\t\022\036\n\005value\030\002 \001(\0132\017.v1.M" + "atchString:\0028\001\"$\n\010Resource\022\007\n\003QPS\020\000\022\017\n\013C" + "ONCURRENCY\020\001\"\035\n\004Type\022\n\n\006GLOBAL\020\000\022\t\n\005LOCA" + "L\020\001\"1\n\nAmountMode\022\020\n\014GLOBAL_TOTAL\020\000\022\021\n\rS" + "HARE_EQUALLY\020\001\"5\n\014FailoverType\022\022\n\016FAILOV" + "ER_LOCAL\020\000\022\021\n\rFAILOVER_PASS\020\001\"r\n\020RateLim" + "itCluster\022-\n\007service\030\001 \001(\0132\034.google.prot" + "obuf.StringValue\022/\n\tnamespace\030\002 \001(\0132\034.go" + "ogle.protobuf.StringValue\"\200\002\n\006Amount\022/\n\t" + "maxAmount\030\001 \001(\0132\034.google.protobuf.UInt32" + "Value\0220\n\rvalidDuration\030\002 \001(\0132\031.google.pr" + "otobuf.Duration\022/\n\tprecision\030\003 \001(\0132\034.goo" + "gle.protobuf.UInt32Value\0221\n\013startAmount\030" + "\004 \001(\0132\034.google.protobuf.UInt32Value\022/\n\tm" + "inAmount\030\005 \001(\0132\034.google.protobuf.UInt32V" + "alue\"j\n\006Report\022+\n\010interval\030\001 \001(\0132\031.googl" + "e.protobuf.Duration\0223\n\ramountPercent\030\002 \001" + "(\0132\034.google.protobuf.UInt32Value\"0\n\016Amou" + "ntAdjuster\022\036\n\005climb\030\001 \001(\0132\017.v1.ClimbConf" + "ig\"\354\013\n\013ClimbConfig\022*\n\006enable\030\001 \001(\0132\032.goo" + "gle.protobuf.BoolValue\022,\n\006metric\030\002 \001(\0132\034" + ".v1.ClimbConfig.MetricConfig\022-\n\006policy\030\003" + " \001(\0132\035.v1.ClimbConfig.TriggerPolicy\0223\n\nt" + "hrottling\030\004 \001(\0132\037.v1.ClimbConfig.ClimbTh" + "rottling\032\235\001\n\014MetricConfig\022)\n\006window\030\001 \001(" + "\0132\031.google.protobuf.Duration\022/\n\tprecisio" + "n\030\002 \001(\0132\034.google.protobuf.UInt32Value\0221\n" + "\016reportInterval\030\003 \001(\0132\031.google.protobuf." + "Duration\032\247\005\n\rTriggerPolicy\022:\n\terrorRate\030" + "\001 \001(\0132\'.v1.ClimbConfig.TriggerPolicy.Err" + "orRate\0228\n\010slowRate\030\002 \001(\0132&.v1.ClimbConfi" + "g.TriggerPolicy.SlowRate\032\215\003\n\tErrorRate\022*" + "\n\006enable\030\001 \001(\0132\032.google.protobuf.BoolVal" + "ue\022<\n\026requestVolumeThreshold\030\002 \001(\0132\034.goo" + "gle.protobuf.UInt32Value\022.\n\terrorRate\030\003 " + "\001(\0132\033.google.protobuf.Int32Value\022G\n\010spec" + "ials\030\004 \003(\01325.v1.ClimbConfig.TriggerPolic" + "y.ErrorRate.SpecialConfig\032\234\001\n\rSpecialCon" + "fig\022*\n\004type\030\001 \001(\0132\034.google.protobuf.Stri" + "ngValue\022/\n\nerrorCodes\030\002 \003(\0132\033.google.pro" + "tobuf.Int64Value\022.\n\terrorRate\030\003 \001(\0132\033.go" + "ogle.protobuf.Int32Value\032\217\001\n\010SlowRate\022*\n" + "\006enable\030\001 \001(\0132\032.google.protobuf.BoolValu" + "e\022(\n\005maxRt\030\002 \001(\0132\031.google.protobuf.Durat" + "ion\022-\n\010slowRate\030\003 \001(\0132\033.google.protobuf." + "Int32Value\032\324\003\n\017ClimbThrottling\022:\n\025coldBe" + "lowTuneDownRate\030\001 \001(\0132\033.google.protobuf." + "Int32Value\0228\n\023coldBelowTuneUpRate\030\002 \001(\0132" + "\033.google.protobuf.Int32Value\022:\n\025coldAbov" + "eTuneDownRate\030\003 \001(\0132\033.google.protobuf.In" + "t32Value\0228\n\023coldAboveTuneUpRate\030\004 \001(\0132\033." + "google.protobuf.Int32Value\022;\n\026limitThres" + "holdToTuneUp\030\005 \001(\0132\033.google.protobuf.Int" + "32Value\0220\n\rjudgeDuration\030\006 \001(\0132\031.google." + "protobuf.Duration\0221\n\014tuneUpPeriod\030\007 \001(\0132" + "\033.google.protobuf.Int32Value\0223\n\016tuneDown" + "Period\030\010 \001(\0132\033.google.protobuf.Int32Valu" + "eB/\n\035com.tencent.polaris.client.pbB\016Rate" + "LimitProtob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.WrappersProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.tencent.polaris.client.pb.ModelProto.getDescriptor(), }); internal_static_v1_RateLimit_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_v1_RateLimit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_RateLimit_descriptor, new java.lang.String[] { "Rules", "Revision", }); internal_static_v1_Rule_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_v1_Rule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Rule_descriptor, new java.lang.String[] { "Id", "Service", "Namespace", "Subset", "Priority", "Resource", "Type", "Labels", "Amounts", "Action", "Disable", "Report", "Ctime", "Mtime", "Revision", "ServiceToken", "Adjuster", "RegexCombine", "AmountMode", "Failover", "Cluster", }); internal_static_v1_Rule_SubsetEntry_descriptor = internal_static_v1_Rule_descriptor.getNestedTypes().get(0); internal_static_v1_Rule_SubsetEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Rule_SubsetEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_Rule_LabelsEntry_descriptor = internal_static_v1_Rule_descriptor.getNestedTypes().get(1); internal_static_v1_Rule_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Rule_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_RateLimitCluster_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_v1_RateLimitCluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_RateLimitCluster_descriptor, new java.lang.String[] { "Service", "Namespace", }); internal_static_v1_Amount_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_v1_Amount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Amount_descriptor, new java.lang.String[] { "MaxAmount", "ValidDuration", "Precision", "StartAmount", "MinAmount", }); internal_static_v1_Report_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_v1_Report_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Report_descriptor, new java.lang.String[] { "Interval", "AmountPercent", }); internal_static_v1_AmountAdjuster_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_v1_AmountAdjuster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_AmountAdjuster_descriptor, new java.lang.String[] { "Climb", }); internal_static_v1_ClimbConfig_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_v1_ClimbConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_descriptor, new java.lang.String[] { "Enable", "Metric", "Policy", "Throttling", }); internal_static_v1_ClimbConfig_MetricConfig_descriptor = internal_static_v1_ClimbConfig_descriptor.getNestedTypes().get(0); internal_static_v1_ClimbConfig_MetricConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_MetricConfig_descriptor, new java.lang.String[] { "Window", "Precision", "ReportInterval", }); internal_static_v1_ClimbConfig_TriggerPolicy_descriptor = internal_static_v1_ClimbConfig_descriptor.getNestedTypes().get(1); internal_static_v1_ClimbConfig_TriggerPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_TriggerPolicy_descriptor, new java.lang.String[] { "ErrorRate", "SlowRate", }); internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor = internal_static_v1_ClimbConfig_TriggerPolicy_descriptor.getNestedTypes().get(0); internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor, new java.lang.String[] { "Enable", "RequestVolumeThreshold", "ErrorRate", "Specials", }); internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_descriptor = internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_descriptor.getNestedTypes().get(0); internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_TriggerPolicy_ErrorRate_SpecialConfig_descriptor, new java.lang.String[] { "Type", "ErrorCodes", "ErrorRate", }); internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_descriptor = internal_static_v1_ClimbConfig_TriggerPolicy_descriptor.getNestedTypes().get(1); internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_TriggerPolicy_SlowRate_descriptor, new java.lang.String[] { "Enable", "MaxRt", "SlowRate", }); internal_static_v1_ClimbConfig_ClimbThrottling_descriptor = internal_static_v1_ClimbConfig_descriptor.getNestedTypes().get(2); internal_static_v1_ClimbConfig_ClimbThrottling_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ClimbConfig_ClimbThrottling_descriptor, new java.lang.String[] { "ColdBelowTuneDownRate", "ColdBelowTuneUpRate", "ColdAboveTuneDownRate", "ColdAboveTuneUpRate", "LimitThresholdToTuneUp", "JudgeDuration", "TuneUpPeriod", "TuneDownPeriod", }); com.google.protobuf.WrappersProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.tencent.polaris.client.pb.ModelProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy