public static final class RatelimitV2.QuotaLeft.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder> implements RatelimitV2.QuotaLeftOrBuilder
客户端阈值使用统计,由服务端返回Protobuf type
polaris.metric.v2.QuotaLeftgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForFieldfindInitializationErrors, getInitializationErrorString, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toStringmergeDelimitedFrom, mergeDelimitedFrom, mergeFromequals, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public RatelimitV2.QuotaLeft.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RatelimitV2.QuotaLeft build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RatelimitV2.QuotaLeft buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RatelimitV2.QuotaLeft.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RatelimitV2.QuotaLeft.Builder>public RatelimitV2.QuotaLeft.Builder mergeFrom(RatelimitV2.QuotaLeft other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class 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 in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RatelimitV2.QuotaLeft.Builder>IOExceptionpublic int getCounterKey()
计数器的标识,一个server全局唯一,上报时候带入
uint32 counterKey = 1;getCounterKey in interface 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 in interface 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 in interface 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 in interface 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 in interface 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 in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>public final RatelimitV2.QuotaLeft.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RatelimitV2.QuotaLeft.Builder>Copyright © 2023. All rights reserved.