public static final class RatelimitV2.QuotaCounter extends com.google.protobuf.GeneratedMessageV3 implements RatelimitV2.QuotaCounterOrBuilder
限流计数器Protobuf type
polaris.metric.v2.QuotaCounter| Modifier and Type | Class and Description |
|---|---|
static class |
RatelimitV2.QuotaCounter.Builder
限流计数器
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getClientCount()
接入的客户端数量
|
int |
getCounterKey()
bucket的标识,上报时候带入:namespace+service+labelStr+duration
|
static RatelimitV2.QuotaCounter |
getDefaultInstance() |
RatelimitV2.QuotaCounter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDuration()
单位秒
|
long |
getLeft()
剩余配额数,应答返回,允许为负数
|
RatelimitV2.Mode |
getMode()
实际限流模式
|
int |
getModeValue()
实际限流模式
|
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 in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public int getDuration()
单位秒
uint32 duration = 1;getDuration in interface RatelimitV2.QuotaCounterOrBuilderpublic int getCounterKey()
bucket的标识,上报时候带入:namespace+service+labelStr+duration
uint32 counterKey = 2;getCounterKey in interface RatelimitV2.QuotaCounterOrBuilderpublic long getLeft()
剩余配额数,应答返回,允许为负数
int64 left = 3;getLeft in interface RatelimitV2.QuotaCounterOrBuilderpublic int getModeValue()
实际限流模式
.polaris.metric.v2.Mode mode = 4;getModeValue in interface RatelimitV2.QuotaCounterOrBuilderpublic RatelimitV2.Mode getMode()
实际限流模式
.polaris.metric.v2.Mode mode = 4;getMode in interface RatelimitV2.QuotaCounterOrBuilderpublic int getClientCount()
接入的客户端数量
uint32 clientCount = 5;getClientCount in interface RatelimitV2.QuotaCounterOrBuilderpublic 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.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 in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RatelimitV2.QuotaCounter.Builder newBuilder()
public static RatelimitV2.QuotaCounter.Builder newBuilder(RatelimitV2.QuotaCounter prototype)
public RatelimitV2.QuotaCounter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface 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 in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RatelimitV2.QuotaCounter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.