public static final class RatelimitV2.RateLimitInitResponse extends com.google.protobuf.GeneratedMessageV3 implements RatelimitV2.RateLimitInitResponseOrBuilder
初始化应答Protobuf type
polaris.metric.v2.RateLimitInitResponse| Modifier and Type | Class and Description |
|---|---|
static class |
RatelimitV2.RateLimitInitResponse.Builder
初始化应答
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CLIENTKEY_FIELD_NUMBER |
static int |
CODE_FIELD_NUMBER |
static int |
COUNTERS_FIELD_NUMBER |
static int |
SLIDECOUNT_FIELD_NUMBER |
static int |
TARGET_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int CODE_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER
public static final int CLIENTKEY_FIELD_NUMBER
public static final int COUNTERS_FIELD_NUMBER
public static final int SLIDECOUNT_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public int getCode()
应答错误码
uint32 code = 1;getCode in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic boolean hasTarget()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2;hasTarget in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic RatelimitV2.LimitTarget getTarget()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2;getTarget in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic RatelimitV2.LimitTargetOrBuilder getTargetOrBuilder()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2;getTargetOrBuilder in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic int getClientKey()
客户端的标识,与clientId对应,一个server全局唯一,上报时候带入
uint32 clientKey = 3;getClientKey in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic List<RatelimitV2.QuotaCounter> getCountersList()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;getCountersList in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic List<? extends RatelimitV2.QuotaCounterOrBuilder> getCountersOrBuilderList()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;getCountersOrBuilderList in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic int getCountersCount()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;getCountersCount in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic RatelimitV2.QuotaCounter getCounters(int index)
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;getCounters in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic RatelimitV2.QuotaCounterOrBuilder getCountersOrBuilder(int index)
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;getCountersOrBuilder in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic int getSlideCount()
实际滑窗个数
uint32 slideCount = 6;getSlideCount in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic long getTimestamp()
限流server绝对时间,单位ms
int64 timestamp = 7;getTimestamp in interface RatelimitV2.RateLimitInitResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RatelimitV2.RateLimitInitResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RatelimitV2.RateLimitInitResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RatelimitV2.RateLimitInitResponse.Builder newBuilder()
public static RatelimitV2.RateLimitInitResponse.Builder newBuilder(RatelimitV2.RateLimitInitResponse prototype)
public RatelimitV2.RateLimitInitResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLitepublic static RatelimitV2.RateLimitInitResponse getDefaultInstance()
public static com.google.protobuf.Parser<RatelimitV2.RateLimitInitResponse> parser()
public com.google.protobuf.Parser<RatelimitV2.RateLimitInitResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RatelimitV2.RateLimitInitResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023. All rights reserved.