类 RatelimitV2.QuotaCounter

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.tencent.polaris.ratelimit.client.pb.RatelimitV2.QuotaCounter
所有已实现的接口:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RatelimitV2.QuotaCounterOrBuilder, java.io.Serializable
封闭类:
RatelimitV2

public static final class RatelimitV2.QuotaCounter
extends com.google.protobuf.GeneratedMessageV3
implements RatelimitV2.QuotaCounterOrBuilder
限流计数器
 
Protobuf type polaris.metric.v2.QuotaCounter
另请参阅:
序列化表格
  • 字段详细资料

    • DURATION_FIELD_NUMBER

      public static final int DURATION_FIELD_NUMBER
      另请参阅:
      常量字段值
    • COUNTERKEY_FIELD_NUMBER

      public static final int COUNTERKEY_FIELD_NUMBER
      另请参阅:
      常量字段值
    • LEFT_FIELD_NUMBER

      public static final int LEFT_FIELD_NUMBER
      另请参阅:
      常量字段值
    • MODE_FIELD_NUMBER

      public static final int MODE_FIELD_NUMBER
      另请参阅:
      常量字段值
    • CLIENTCOUNT_FIELD_NUMBER

      public static final int CLIENTCOUNT_FIELD_NUMBER
      另请参阅:
      常量字段值
  • 方法详细资料

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      指定者:
      getUnknownFields 在接口中 com.google.protobuf.MessageOrBuilder
      覆盖:
      getUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getDuration

      public int getDuration()
      单位秒
       
      uint32 duration = 1;
      指定者:
      getDuration 在接口中 RatelimitV2.QuotaCounterOrBuilder
      返回:
      The duration.
    • getCounterKey

      public int getCounterKey()
      bucket的标识,上报时候带入:namespace+service+labelStr+duration
       
      uint32 counterKey = 2;
      指定者:
      getCounterKey 在接口中 RatelimitV2.QuotaCounterOrBuilder
      返回:
      The counterKey.
    • getLeft

      public long getLeft()
      剩余配额数,应答返回,允许为负数
       
      int64 left = 3;
      指定者:
      getLeft 在接口中 RatelimitV2.QuotaCounterOrBuilder
      返回:
      The left.
    • getModeValue

      public int getModeValue()
      实际限流模式
       
      .polaris.metric.v2.Mode mode = 4;
      指定者:
      getModeValue 在接口中 RatelimitV2.QuotaCounterOrBuilder
      返回:
      The enum numeric value on the wire for mode.
    • getMode

      public RatelimitV2.Mode getMode()
      实际限流模式
       
      .polaris.metric.v2.Mode mode = 4;
      指定者:
      getMode 在接口中 RatelimitV2.QuotaCounterOrBuilder
      返回:
      The mode.
    • getClientCount

      public int getClientCount()
      接入的客户端数量
       
      uint32 clientCount = 5;
      指定者:
      getClientCount 在接口中 RatelimitV2.QuotaCounterOrBuilder
      返回:
      The clientCount.
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo​(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.GeneratedMessageV3
      抛出:
      java.io.IOException
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals​(java.lang.Object obj)
      指定者:
      equals 在接口中 com.google.protobuf.Message
      覆盖:
      equals 在类中 com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 com.google.protobuf.Message
      覆盖:
      hashCode 在类中 com.google.protobuf.AbstractMessage
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(java.io.InputStream input) throws java.io.IOException
      抛出:
      java.io.IOException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      抛出:
      java.io.IOException
    • parseDelimitedFrom

      public static RatelimitV2.QuotaCounter parseDelimitedFrom​(java.io.InputStream input) throws java.io.IOException
      抛出:
      java.io.IOException
    • parseDelimitedFrom

      public static RatelimitV2.QuotaCounter parseDelimitedFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      抛出:
      java.io.IOException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(com.google.protobuf.CodedInputStream input) throws java.io.IOException
      抛出:
      java.io.IOException
    • parseFrom

      public static RatelimitV2.QuotaCounter parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
      抛出:
      java.io.IOException
    • newBuilderForType

      public RatelimitV2.QuotaCounter.Builder newBuilderForType()
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.Message
      指定者:
      newBuilderForType 在接口中 com.google.protobuf.MessageLite
    • newBuilder

      public static RatelimitV2.QuotaCounter.Builder newBuilder()
    • newBuilder

      public static RatelimitV2.QuotaCounter.Builder newBuilder​(RatelimitV2.QuotaCounter prototype)
    • toBuilder

      指定者:
      toBuilder 在接口中 com.google.protobuf.Message
      指定者:
      toBuilder 在接口中 com.google.protobuf.MessageLite
    • getDefaultInstance

      public static RatelimitV2.QuotaCounter getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RatelimitV2.QuotaCounter> parser()
    • getParserForType

      public com.google.protobuf.Parser<RatelimitV2.QuotaCounter> getParserForType()
      指定者:
      getParserForType 在接口中 com.google.protobuf.Message
      指定者:
      getParserForType 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public RatelimitV2.QuotaCounter getDefaultInstanceForType()
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
      指定者:
      getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder