类 RatelimitV2.RateLimitInitResponse

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

public static final class RatelimitV2.RateLimitInitResponse
extends com.google.protobuf.GeneratedMessageV3
implements RatelimitV2.RateLimitInitResponseOrBuilder
初始化应答
 
Protobuf type polaris.metric.v2.RateLimitInitResponse
另请参阅:
序列化表格
  • 字段详细资料

    • CODE_FIELD_NUMBER

      public static final int CODE_FIELD_NUMBER
      另请参阅:
      常量字段值
    • TARGET_FIELD_NUMBER

      public static final int TARGET_FIELD_NUMBER
      另请参阅:
      常量字段值
    • CLIENTKEY_FIELD_NUMBER

      public static final int CLIENTKEY_FIELD_NUMBER
      另请参阅:
      常量字段值
    • COUNTERS_FIELD_NUMBER

      public static final int COUNTERS_FIELD_NUMBER
      另请参阅:
      常量字段值
    • SLIDECOUNT_FIELD_NUMBER

      public static final int SLIDECOUNT_FIELD_NUMBER
      另请参阅:
      常量字段值
    • TIMESTAMP_FIELD_NUMBER

      public static final int TIMESTAMP_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()
    • getCode

      public int getCode()
      应答错误码
       
      uint32 code = 1;
      指定者:
      getCode 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
      返回:
      The code.
    • hasTarget

      public boolean hasTarget()
      限流目标对象,回传给客户端
       
      .polaris.metric.v2.LimitTarget target = 2;
      指定者:
      hasTarget 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
      返回:
      Whether the target field is set.
    • getTarget

      public RatelimitV2.LimitTarget getTarget()
      限流目标对象,回传给客户端
       
      .polaris.metric.v2.LimitTarget target = 2;
      指定者:
      getTarget 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
      返回:
      The target.
    • getTargetOrBuilder

      public RatelimitV2.LimitTargetOrBuilder getTargetOrBuilder()
      限流目标对象,回传给客户端
       
      .polaris.metric.v2.LimitTarget target = 2;
      指定者:
      getTargetOrBuilder 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
    • getClientKey

      public int getClientKey()
      客户端的标识,与clientId对应,一个server全局唯一,上报时候带入
       
      uint32 clientKey = 3;
      指定者:
      getClientKey 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
      返回:
      The clientKey.
    • getCountersList

      public java.util.List<RatelimitV2.QuotaCounter> getCountersList()
      计数器的标识
       
      repeated .polaris.metric.v2.QuotaCounter counters = 5;
      指定者:
      getCountersList 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
    • getCountersOrBuilderList

      public java.util.List<? extends RatelimitV2.QuotaCounterOrBuilder> getCountersOrBuilderList()
      计数器的标识
       
      repeated .polaris.metric.v2.QuotaCounter counters = 5;
      指定者:
      getCountersOrBuilderList 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
    • getCountersCount

      public int getCountersCount()
      计数器的标识
       
      repeated .polaris.metric.v2.QuotaCounter counters = 5;
      指定者:
      getCountersCount 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
    • getCounters

      public RatelimitV2.QuotaCounter getCounters​(int index)
      计数器的标识
       
      repeated .polaris.metric.v2.QuotaCounter counters = 5;
      指定者:
      getCounters 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
    • getCountersOrBuilder

      public RatelimitV2.QuotaCounterOrBuilder getCountersOrBuilder​(int index)
      计数器的标识
       
      repeated .polaris.metric.v2.QuotaCounter counters = 5;
      指定者:
      getCountersOrBuilder 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
    • getSlideCount

      public int getSlideCount()
      实际滑窗个数
       
      uint32 slideCount = 6;
      指定者:
      getSlideCount 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
      返回:
      The slideCount.
    • getTimestamp

      public long getTimestamp()
      限流server绝对时间,单位ms
       
      int64 timestamp = 7;
      指定者:
      getTimestamp 在接口中 RatelimitV2.RateLimitInitResponseOrBuilder
      返回:
      The timestamp.
    • 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.RateLimitInitResponse parseFrom​(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

    • toBuilder

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

      public static RatelimitV2.RateLimitInitResponse getDefaultInstance()
    • parser

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

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

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