public static final class RatelimitV2.QuotaCounter extends com.google.protobuf.GeneratedMessageV3 implements RatelimitV2.QuotaCounterOrBuilder
限流计数器Protobuf type
polaris.metric.v2.QuotaCounter| 限定符和类型 | 类和说明 |
|---|---|
static class |
RatelimitV2.QuotaCounter.Builder
限流计数器
Protobuf type
polaris.metric.v2.QuotaCounter |
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 |
CLIENTCOUNT_FIELD_NUMBER |
static int |
COUNTERKEY_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
LEFT_FIELD_NUMBER |
static int |
MODE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
int |
getClientCount()
接入的客户端数量
uint32 clientCount = 5; |
int |
getCounterKey()
bucket的标识,上报时候带入:namespace+service+labelStr+duration
uint32 counterKey = 2; |
static RatelimitV2.QuotaCounter |
getDefaultInstance() |
RatelimitV2.QuotaCounter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDuration()
单位秒
uint32 duration = 1; |
long |
getLeft()
剩余配额数,应答返回,允许为负数
int64 left = 3; |
RatelimitV2.Mode |
getMode()
实际限流模式
.polaris.metric.v2.Mode mode = 4; |
int |
getModeValue()
实际限流模式
.polaris.metric.v2.Mode mode = 4; |
com.google.protobuf.Parser<RatelimitV2.QuotaCounter> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static RatelimitV2.QuotaCounter.Builder |
newBuilder() |
static RatelimitV2.QuotaCounter.Builder |
newBuilder(RatelimitV2.QuotaCounter prototype) |
RatelimitV2.QuotaCounter.Builder |
newBuilderForType() |
static RatelimitV2.QuotaCounter |
parseDelimitedFrom(InputStream input) |
static RatelimitV2.QuotaCounter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.QuotaCounter |
parseFrom(byte[] data) |
static RatelimitV2.QuotaCounter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.QuotaCounter |
parseFrom(ByteBuffer data) |
static RatelimitV2.QuotaCounter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.QuotaCounter |
parseFrom(com.google.protobuf.ByteString data) |
static RatelimitV2.QuotaCounter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.QuotaCounter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RatelimitV2.QuotaCounter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RatelimitV2.QuotaCounter |
parseFrom(InputStream input) |
static RatelimitV2.QuotaCounter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RatelimitV2.QuotaCounter> |
parser() |
RatelimitV2.QuotaCounter.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 DURATION_FIELD_NUMBER
public static final int COUNTERKEY_FIELD_NUMBER
public static final int LEFT_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
public static final int CLIENTCOUNT_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 getDuration()
单位秒
uint32 duration = 1;getDuration 在接口中 RatelimitV2.QuotaCounterOrBuilderpublic int getCounterKey()
bucket的标识,上报时候带入:namespace+service+labelStr+duration
uint32 counterKey = 2;getCounterKey 在接口中 RatelimitV2.QuotaCounterOrBuilderpublic long getLeft()
剩余配额数,应答返回,允许为负数
int64 left = 3;getLeft 在接口中 RatelimitV2.QuotaCounterOrBuilderpublic int getModeValue()
实际限流模式
.polaris.metric.v2.Mode mode = 4;getModeValue 在接口中 RatelimitV2.QuotaCounterOrBuilderpublic RatelimitV2.Mode getMode()
实际限流模式
.polaris.metric.v2.Mode mode = 4;getMode 在接口中 RatelimitV2.QuotaCounterOrBuilderpublic int getClientCount()
接入的客户端数量
uint32 clientCount = 5;getClientCount 在接口中 RatelimitV2.QuotaCounterOrBuilderpublic 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.QuotaCounter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.QuotaCounter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.QuotaCounter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.QuotaCounter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.QuotaCounter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.QuotaCounter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.QuotaCounter parseFrom(InputStream input) throws IOException
IOExceptionpublic static RatelimitV2.QuotaCounter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RatelimitV2.QuotaCounter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RatelimitV2.QuotaCounter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RatelimitV2.QuotaCounter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RatelimitV2.QuotaCounter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RatelimitV2.QuotaCounter.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static RatelimitV2.QuotaCounter.Builder newBuilder()
public static RatelimitV2.QuotaCounter.Builder newBuilder(RatelimitV2.QuotaCounter prototype)
public RatelimitV2.QuotaCounter.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static RatelimitV2.QuotaCounter getDefaultInstance()
public static com.google.protobuf.Parser<RatelimitV2.QuotaCounter> parser()
public com.google.protobuf.Parser<RatelimitV2.QuotaCounter> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public RatelimitV2.QuotaCounter getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.