public static final class RatelimitV2.RateLimitInitRequest extends com.google.protobuf.GeneratedMessageV3 implements RatelimitV2.RateLimitInitRequestOrBuilder
初始化请求Protobuf type
polaris.metric.v2.RateLimitInitRequest| Modifier and Type | Class and Description |
|---|---|
static class |
RatelimitV2.RateLimitInitRequest.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 |
CLIENTID_FIELD_NUMBER |
static int |
MODE_FIELD_NUMBER |
static int |
SLIDECOUNT_FIELD_NUMBER |
static int |
TARGET_FIELD_NUMBER |
static int |
TOTALS_FIELD_NUMBER |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TARGET_FIELD_NUMBER
public static final int CLIENTID_FIELD_NUMBER
public static final int TOTALS_FIELD_NUMBER
public static final int SLIDECOUNT_FIELD_NUMBER
public static final int MODE_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 boolean hasTarget()
限流目标对象数据
.polaris.metric.v2.LimitTarget target = 1;hasTarget in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic RatelimitV2.LimitTarget getTarget()
限流目标对象数据
.polaris.metric.v2.LimitTarget target = 1;getTarget in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic RatelimitV2.LimitTargetOrBuilder getTargetOrBuilder()
限流目标对象数据
.polaris.metric.v2.LimitTarget target = 1;getTargetOrBuilder in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic String getClientId()
客户端唯一标识
string clientId = 2;getClientId in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic com.google.protobuf.ByteString getClientIdBytes()
客户端唯一标识
string clientId = 2;getClientIdBytes in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic List<RatelimitV2.QuotaTotal> getTotalsList()
限流规则信息
repeated .polaris.metric.v2.QuotaTotal totals = 3;getTotalsList in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic List<? extends RatelimitV2.QuotaTotalOrBuilder> getTotalsOrBuilderList()
限流规则信息
repeated .polaris.metric.v2.QuotaTotal totals = 3;getTotalsOrBuilderList in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic int getTotalsCount()
限流规则信息
repeated .polaris.metric.v2.QuotaTotal totals = 3;getTotalsCount in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic RatelimitV2.QuotaTotal getTotals(int index)
限流规则信息
repeated .polaris.metric.v2.QuotaTotal totals = 3;getTotals in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic RatelimitV2.QuotaTotalOrBuilder getTotalsOrBuilder(int index)
限流规则信息
repeated .polaris.metric.v2.QuotaTotal totals = 3;getTotalsOrBuilder in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic int getSlideCount()
客户端可指定滑窗数,不指定用默认值
uint32 slideCount = 4;getSlideCount in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic int getModeValue()
限流模式
.polaris.metric.v2.Mode mode = 5;getModeValue in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic RatelimitV2.Mode getMode()
限流模式
.polaris.metric.v2.Mode mode = 5;getMode in interface RatelimitV2.RateLimitInitRequestOrBuilderpublic 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.RateLimitInitRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RatelimitV2.RateLimitInitRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RatelimitV2.RateLimitInitRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RatelimitV2.RateLimitInitRequest.Builder newBuilder()
public static RatelimitV2.RateLimitInitRequest.Builder newBuilder(RatelimitV2.RateLimitInitRequest prototype)
public RatelimitV2.RateLimitInitRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLitepublic static RatelimitV2.RateLimitInitRequest getDefaultInstance()
public static com.google.protobuf.Parser<RatelimitV2.RateLimitInitRequest> parser()
public com.google.protobuf.Parser<RatelimitV2.RateLimitInitRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RatelimitV2.RateLimitInitRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024. All rights reserved.