public static final class RatelimitV2.QuotaLeft.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder> implements RatelimitV2.QuotaLeftOrBuilder
客户端阈值使用统计,由服务端返回Protobuf type
polaris.metric.v2.QuotaLeft| 限定符和类型 | 方法和说明 |
|---|---|
RatelimitV2.QuotaLeft.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RatelimitV2.QuotaLeft |
build() |
RatelimitV2.QuotaLeft |
buildPartial() |
RatelimitV2.QuotaLeft.Builder |
clear() |
RatelimitV2.QuotaLeft.Builder |
clearClientCount()
接入的客户端数量
uint32 clientCount = 4; |
RatelimitV2.QuotaLeft.Builder |
clearCounterKey()
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1; |
RatelimitV2.QuotaLeft.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RatelimitV2.QuotaLeft.Builder |
clearLeft()
剩余配额数,应答返回,允许为负数
int64 left = 2; |
RatelimitV2.QuotaLeft.Builder |
clearMode()
当前限流模式
.polaris.metric.v2.Mode mode = 3; |
RatelimitV2.QuotaLeft.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RatelimitV2.QuotaLeft.Builder |
clone() |
int |
getClientCount()
接入的客户端数量
uint32 clientCount = 4; |
int |
getCounterKey()
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1; |
RatelimitV2.QuotaLeft |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getLeft()
剩余配额数,应答返回,允许为负数
int64 left = 2; |
RatelimitV2.Mode |
getMode()
当前限流模式
.polaris.metric.v2.Mode mode = 3; |
int |
getModeValue()
当前限流模式
.polaris.metric.v2.Mode mode = 3; |
boolean |
isInitialized() |
RatelimitV2.QuotaLeft.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RatelimitV2.QuotaLeft.Builder |
mergeFrom(com.google.protobuf.Message other) |
RatelimitV2.QuotaLeft.Builder |
mergeFrom(RatelimitV2.QuotaLeft other) |
RatelimitV2.QuotaLeft.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RatelimitV2.QuotaLeft.Builder |
setClientCount(int value)
接入的客户端数量
uint32 clientCount = 4; |
RatelimitV2.QuotaLeft.Builder |
setCounterKey(int value)
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1; |
RatelimitV2.QuotaLeft.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RatelimitV2.QuotaLeft.Builder |
setLeft(long value)
剩余配额数,应答返回,允许为负数
int64 left = 2; |
RatelimitV2.QuotaLeft.Builder |
setMode(RatelimitV2.Mode value)
当前限流模式
.polaris.metric.v2.Mode mode = 3; |
RatelimitV2.QuotaLeft.Builder |
setModeValue(int value)
当前限流模式
.polaris.metric.v2.Mode mode = 3; |
RatelimitV2.QuotaLeft.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RatelimitV2.QuotaLeft.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForFieldfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public RatelimitV2.QuotaLeft.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic RatelimitV2.QuotaLeft build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic RatelimitV2.QuotaLeft buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic RatelimitV2.QuotaLeft.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder mergeFrom(RatelimitV2.QuotaLeft other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<RatelimitV2.QuotaLeft.Builder>IOExceptionpublic int getCounterKey()
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1;getCounterKey 在接口中 RatelimitV2.QuotaLeftOrBuilderpublic RatelimitV2.QuotaLeft.Builder setCounterKey(int value)
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1;value - The counterKey to set.public RatelimitV2.QuotaLeft.Builder clearCounterKey()
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1;public long getLeft()
剩余配额数,应答返回,允许为负数
int64 left = 2;getLeft 在接口中 RatelimitV2.QuotaLeftOrBuilderpublic RatelimitV2.QuotaLeft.Builder setLeft(long value)
剩余配额数,应答返回,允许为负数
int64 left = 2;value - The left to set.public RatelimitV2.QuotaLeft.Builder clearLeft()
剩余配额数,应答返回,允许为负数
int64 left = 2;public int getModeValue()
当前限流模式
.polaris.metric.v2.Mode mode = 3;getModeValue 在接口中 RatelimitV2.QuotaLeftOrBuilderpublic RatelimitV2.QuotaLeft.Builder setModeValue(int value)
当前限流模式
.polaris.metric.v2.Mode mode = 3;value - The enum numeric value on the wire for mode to set.public RatelimitV2.Mode getMode()
当前限流模式
.polaris.metric.v2.Mode mode = 3;getMode 在接口中 RatelimitV2.QuotaLeftOrBuilderpublic RatelimitV2.QuotaLeft.Builder setMode(RatelimitV2.Mode value)
当前限流模式
.polaris.metric.v2.Mode mode = 3;value - The mode to set.public RatelimitV2.QuotaLeft.Builder clearMode()
当前限流模式
.polaris.metric.v2.Mode mode = 3;public int getClientCount()
接入的客户端数量
uint32 clientCount = 4;getClientCount 在接口中 RatelimitV2.QuotaLeftOrBuilderpublic RatelimitV2.QuotaLeft.Builder setClientCount(int value)
接入的客户端数量
uint32 clientCount = 4;value - The clientCount to set.public RatelimitV2.QuotaLeft.Builder clearClientCount()
接入的客户端数量
uint32 clientCount = 4;public final RatelimitV2.QuotaLeft.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public final RatelimitV2.QuotaLeft.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>Copyright © 2022. All rights reserved.