public static final class RatelimitV2.RateLimitInitResponse extends com.google.protobuf.GeneratedMessageV3 implements RatelimitV2.RateLimitInitResponseOrBuilder
初始化应答Protobuf type
polaris.metric.v2.RateLimitInitResponse| 限定符和类型 | 类和说明 |
|---|---|
static class |
RatelimitV2.RateLimitInitResponse.Builder
初始化应答
Protobuf type
polaris.metric.v2.RateLimitInitResponse |
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| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
int |
getClientKey()
客户端的标识,与clientId对应,一个server全局唯一,上报时候带入
uint32 clientKey = 3; |
int |
getCode()
应答错误码
uint32 code = 1; |
RatelimitV2.QuotaCounter |
getCounters(int index)
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5; |
int |
getCountersCount()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5; |
List<RatelimitV2.QuotaCounter> |
getCountersList()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5; |
RatelimitV2.QuotaCounterOrBuilder |
getCountersOrBuilder(int index)
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5; |
List<? extends RatelimitV2.QuotaCounterOrBuilder> |
getCountersOrBuilderList()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5; |
static RatelimitV2.RateLimitInitResponse |
getDefaultInstance() |
RatelimitV2.RateLimitInitResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<RatelimitV2.RateLimitInitResponse> |
getParserForType() |
int |
getSerializedSize() |
int |
getSlideCount()
实际滑窗个数
uint32 slideCount = 6; |
RatelimitV2.LimitTarget |
getTarget()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2; |
RatelimitV2.LimitTargetOrBuilder |
getTargetOrBuilder()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2; |
long |
getTimestamp()
限流server绝对时间,单位ms
int64 timestamp = 7; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasTarget()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2; |
boolean |
isInitialized() |
static RatelimitV2.RateLimitInitResponse.Builder |
newBuilder() |
static RatelimitV2.RateLimitInitResponse.Builder |
newBuilder(RatelimitV2.RateLimitInitResponse prototype) |
RatelimitV2.RateLimitInitResponse.Builder |
newBuilderForType() |
static RatelimitV2.RateLimitInitResponse |
parseDelimitedFrom(InputStream input) |
static RatelimitV2.RateLimitInitResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(byte[] data) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(ByteBuffer data) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(com.google.protobuf.ByteString data) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(InputStream input) |
static RatelimitV2.RateLimitInitResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RatelimitV2.RateLimitInitResponse> |
parser() |
RatelimitV2.RateLimitInitResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public int getCode()
应答错误码
uint32 code = 1;getCode 在接口中 RatelimitV2.RateLimitInitResponseOrBuilderpublic boolean hasTarget()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2;hasTarget 在接口中 RatelimitV2.RateLimitInitResponseOrBuilderpublic RatelimitV2.LimitTarget getTarget()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2;getTarget 在接口中 RatelimitV2.RateLimitInitResponseOrBuilderpublic RatelimitV2.LimitTargetOrBuilder getTargetOrBuilder()
限流目标对象,回传给客户端
.polaris.metric.v2.LimitTarget target = 2;public int getClientKey()
客户端的标识,与clientId对应,一个server全局唯一,上报时候带入
uint32 clientKey = 3;getClientKey 在接口中 RatelimitV2.RateLimitInitResponseOrBuilderpublic List<RatelimitV2.QuotaCounter> getCountersList()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;public List<? extends RatelimitV2.QuotaCounterOrBuilder> getCountersOrBuilderList()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;public int getCountersCount()
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;public RatelimitV2.QuotaCounter getCounters(int index)
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;public RatelimitV2.QuotaCounterOrBuilder getCountersOrBuilder(int index)
计数器的标识
repeated .polaris.metric.v2.QuotaCounter counters = 5;public int getSlideCount()
实际滑窗个数
uint32 slideCount = 6;getSlideCount 在接口中 RatelimitV2.RateLimitInitResponseOrBuilderpublic long getTimestamp()
限流server绝对时间,单位ms
int64 timestamp = 7;getTimestamp 在接口中 RatelimitV2.RateLimitInitResponseOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 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 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static RatelimitV2.RateLimitInitResponse.Builder newBuilder()
public static RatelimitV2.RateLimitInitResponse.Builder newBuilder(RatelimitV2.RateLimitInitResponse prototype)
public RatelimitV2.RateLimitInitResponse.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 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 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public RatelimitV2.RateLimitInitResponse getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.