public static final class RateLimitProto.Rule extends com.google.protobuf.GeneratedMessageV3 implements RateLimitProto.RuleOrBuilder
单个限流规则信息Protobuf type
v1.Rule| 限定符和类型 | 类和说明 |
|---|---|
static class |
RateLimitProto.Rule.AmountMode
限流阈值模式
Protobuf enum
v1.Rule.AmountMode |
static class |
RateLimitProto.Rule.Builder
单个限流规则信息
Protobuf type
v1.Rule |
static class |
RateLimitProto.Rule.FailoverType
与限流集群连接失败时降级模式
Protobuf enum
v1.Rule.FailoverType |
static class |
RateLimitProto.Rule.Resource
限流资源
Protobuf enum
v1.Rule.Resource |
static class |
RateLimitProto.Rule.Type
限流类型
global全局限流(默认)或者local单机限流
Protobuf enum
v1.Rule.Type |
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 |
ACTION_FIELD_NUMBER |
static int |
ADJUSTER_FIELD_NUMBER |
static int |
AMOUNT_MODE_FIELD_NUMBER |
static int |
AMOUNTS_FIELD_NUMBER |
static int |
CLUSTER_FIELD_NUMBER |
static int |
CTIME_FIELD_NUMBER |
static int |
DISABLE_FIELD_NUMBER |
static int |
FAILOVER_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
MTIME_FIELD_NUMBER |
static int |
NAMESPACE_FIELD_NUMBER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
REGEX_COMBINE_FIELD_NUMBER |
static int |
REPORT_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
REVISION_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
SERVICE_TOKEN_FIELD_NUMBER |
static int |
SUBSET_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
boolean |
containsSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
boolean |
equals(Object obj) |
com.google.protobuf.StringValue |
getAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
com.google.protobuf.StringValueOrBuilder |
getActionOrBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.AmountAdjuster |
getAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.AmountAdjusterOrBuilder |
getAdjusterOrBuilder()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.Rule.AmountMode |
getAmountMode()
.v1.Rule.AmountMode amount_mode = 19; |
int |
getAmountModeValue()
.v1.Rule.AmountMode amount_mode = 19; |
RateLimitProto.Amount |
getAmounts(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
int |
getAmountsCount()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
List<RateLimitProto.Amount> |
getAmountsList()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.AmountOrBuilder |
getAmountsOrBuilder(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
List<? extends RateLimitProto.AmountOrBuilder> |
getAmountsOrBuilderList()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.RateLimitCluster |
getCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.RateLimitClusterOrBuilder |
getClusterOrBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
com.google.protobuf.StringValue |
getCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
com.google.protobuf.StringValueOrBuilder |
getCtimeOrBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
static RateLimitProto.Rule |
getDefaultInstance() |
RateLimitProto.Rule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.BoolValue |
getDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
com.google.protobuf.BoolValueOrBuilder |
getDisableOrBuilder()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
RateLimitProto.Rule.FailoverType |
getFailover()
.v1.Rule.FailoverType failover = 20; |
int |
getFailoverValue()
.v1.Rule.FailoverType failover = 20; |
com.google.protobuf.StringValue |
getId()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
com.google.protobuf.StringValueOrBuilder |
getIdOrBuilder()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
Map<String,ModelProto.MatchString> |
getLabels()
已过时。
|
int |
getLabelsCount()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
Map<String,ModelProto.MatchString> |
getLabelsMap()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
ModelProto.MatchString |
getLabelsOrDefault(String key,
ModelProto.MatchString defaultValue)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
ModelProto.MatchString |
getLabelsOrThrow(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
com.google.protobuf.StringValue |
getMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
com.google.protobuf.StringValueOrBuilder |
getMtimeOrBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
com.google.protobuf.StringValue |
getNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.StringValueOrBuilder |
getNamespaceOrBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.Parser<RateLimitProto.Rule> |
getParserForType() |
com.google.protobuf.UInt32Value |
getPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
com.google.protobuf.UInt32ValueOrBuilder |
getPriorityOrBuilder()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
com.google.protobuf.BoolValue |
getRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
com.google.protobuf.BoolValueOrBuilder |
getRegexCombineOrBuilder()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
RateLimitProto.Report |
getReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.ReportOrBuilder |
getReportOrBuilder()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.Rule.Resource |
getResource()
.v1.Rule.Resource resource = 6; |
int |
getResourceValue()
.v1.Rule.Resource resource = 6; |
com.google.protobuf.StringValue |
getRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
com.google.protobuf.StringValueOrBuilder |
getRevisionOrBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
int |
getSerializedSize() |
com.google.protobuf.StringValue |
getService()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
com.google.protobuf.StringValueOrBuilder |
getServiceOrBuilder()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
com.google.protobuf.StringValue |
getServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
com.google.protobuf.StringValueOrBuilder |
getServiceTokenOrBuilder()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
Map<String,ModelProto.MatchString> |
getSubset()
已过时。
|
int |
getSubsetCount()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
Map<String,ModelProto.MatchString> |
getSubsetMap()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
ModelProto.MatchString |
getSubsetOrDefault(String key,
ModelProto.MatchString defaultValue)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
ModelProto.MatchString |
getSubsetOrThrow(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
RateLimitProto.Rule.Type |
getType()
.v1.Rule.Type type = 7; |
int |
getTypeValue()
.v1.Rule.Type type = 7; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
boolean |
hasAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
boolean |
hasCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
boolean |
hasCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
boolean |
hasDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
int |
hashCode() |
boolean |
hasId()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
boolean |
hasMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
boolean |
hasNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
boolean |
hasPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
boolean |
hasRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
boolean |
hasReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
boolean |
hasRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
boolean |
hasService()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
boolean |
hasServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
boolean |
isInitialized() |
static RateLimitProto.Rule.Builder |
newBuilder() |
static RateLimitProto.Rule.Builder |
newBuilder(RateLimitProto.Rule prototype) |
RateLimitProto.Rule.Builder |
newBuilderForType() |
static RateLimitProto.Rule |
parseDelimitedFrom(InputStream input) |
static RateLimitProto.Rule |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RateLimitProto.Rule |
parseFrom(byte[] data) |
static RateLimitProto.Rule |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RateLimitProto.Rule |
parseFrom(ByteBuffer data) |
static RateLimitProto.Rule |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RateLimitProto.Rule |
parseFrom(com.google.protobuf.ByteString data) |
static RateLimitProto.Rule |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RateLimitProto.Rule |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RateLimitProto.Rule |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RateLimitProto.Rule |
parseFrom(InputStream input) |
static RateLimitProto.Rule |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RateLimitProto.Rule> |
parser() |
RateLimitProto.Rule.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 ID_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER
public static final int SUBSET_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int AMOUNTS_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
public static final int DISABLE_FIELD_NUMBER
public static final int REPORT_FIELD_NUMBER
public static final int CTIME_FIELD_NUMBER
public static final int MTIME_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
public static final int SERVICE_TOKEN_FIELD_NUMBER
public static final int ADJUSTER_FIELD_NUMBER
public static final int REGEX_COMBINE_FIELD_NUMBER
public static final int AMOUNT_MODE_FIELD_NUMBER
public static final int FAILOVER_FIELD_NUMBER
public static final int CLUSTER_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 boolean hasId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;hasId 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;getId 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getIdOrBuilder()
限流规则唯一标识
.google.protobuf.StringValue id = 1;getIdOrBuilder 在接口中 RateLimitProto.RuleOrBuilderpublic boolean hasService()
限流规则所属服务名
.google.protobuf.StringValue service = 2;hasService 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getService()
限流规则所属服务名
.google.protobuf.StringValue service = 2;getService 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getServiceOrBuilder()
限流规则所属服务名
.google.protobuf.StringValue service = 2;public boolean hasNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;hasNamespace 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;getNamespace 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;public int getSubsetCount()
RateLimitProto.RuleOrBuilder可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;getSubsetCount 在接口中 RateLimitProto.RuleOrBuilderpublic boolean containsSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;containsSubset 在接口中 RateLimitProto.RuleOrBuilder@Deprecated public Map<String,ModelProto.MatchString> getSubset()
getSubsetMap() instead.getSubset 在接口中 RateLimitProto.RuleOrBuilderpublic Map<String,ModelProto.MatchString> getSubsetMap()
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;getSubsetMap 在接口中 RateLimitProto.RuleOrBuilderpublic ModelProto.MatchString getSubsetOrDefault(String key, ModelProto.MatchString defaultValue)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;public ModelProto.MatchString getSubsetOrThrow(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;getSubsetOrThrow 在接口中 RateLimitProto.RuleOrBuilderpublic boolean hasPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;hasPriority 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.UInt32Value getPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;getPriority 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public int getResourceValue()
.v1.Rule.Resource resource = 6;getResourceValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Resource getResource()
.v1.Rule.Resource resource = 6;getResource 在接口中 RateLimitProto.RuleOrBuilderpublic int getTypeValue()
.v1.Rule.Type type = 7;getTypeValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Type getType()
.v1.Rule.Type type = 7;getType 在接口中 RateLimitProto.RuleOrBuilderpublic int getLabelsCount()
RateLimitProto.RuleOrBuilder业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;getLabelsCount 在接口中 RateLimitProto.RuleOrBuilderpublic boolean containsLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;containsLabels 在接口中 RateLimitProto.RuleOrBuilder@Deprecated public Map<String,ModelProto.MatchString> getLabels()
getLabelsMap() instead.getLabels 在接口中 RateLimitProto.RuleOrBuilderpublic Map<String,ModelProto.MatchString> getLabelsMap()
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;getLabelsMap 在接口中 RateLimitProto.RuleOrBuilderpublic ModelProto.MatchString getLabelsOrDefault(String key, ModelProto.MatchString defaultValue)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;public ModelProto.MatchString getLabelsOrThrow(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;getLabelsOrThrow 在接口中 RateLimitProto.RuleOrBuilderpublic List<RateLimitProto.Amount> getAmountsList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;getAmountsList 在接口中 RateLimitProto.RuleOrBuilderpublic List<? extends RateLimitProto.AmountOrBuilder> getAmountsOrBuilderList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public int getAmountsCount()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;getAmountsCount 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Amount getAmounts(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;getAmounts 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.AmountOrBuilder getAmountsOrBuilder(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public boolean hasAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;hasAction 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;getAction 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getActionOrBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;public boolean hasDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;hasDisable 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.BoolValue getDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;getDisable 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getDisableOrBuilder()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;public boolean hasReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;hasReport 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Report getReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;getReport 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.ReportOrBuilder getReportOrBuilder()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;public boolean hasCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;hasCtime 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;getCtime 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;public boolean hasMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;hasMtime 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;getMtime 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;public boolean hasRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15;hasRevision 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15;getRevision 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15;public boolean hasServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];hasServiceToken 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];getServiceToken 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];public boolean hasAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17;hasAdjuster 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.AmountAdjuster getAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17;getAdjuster 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.AmountAdjusterOrBuilder getAdjusterOrBuilder()
配额调整算法
.v1.AmountAdjuster adjuster = 17;public boolean hasRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;hasRegexCombine 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.BoolValue getRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;getRegexCombine 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getRegexCombineOrBuilder()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;public int getAmountModeValue()
.v1.Rule.AmountMode amount_mode = 19;getAmountModeValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.AmountMode getAmountMode()
.v1.Rule.AmountMode amount_mode = 19;getAmountMode 在接口中 RateLimitProto.RuleOrBuilderpublic int getFailoverValue()
.v1.Rule.FailoverType failover = 20;getFailoverValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.FailoverType getFailover()
.v1.Rule.FailoverType failover = 20;getFailover 在接口中 RateLimitProto.RuleOrBuilderpublic boolean hasCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;hasCluster 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.RateLimitCluster getCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;getCluster 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.RateLimitClusterOrBuilder getClusterOrBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public 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 RateLimitProto.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RateLimitProto.Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RateLimitProto.Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RateLimitProto.Rule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RateLimitProto.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RateLimitProto.Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RateLimitProto.Rule parseFrom(InputStream input) throws IOException
IOExceptionpublic static RateLimitProto.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RateLimitProto.Rule parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RateLimitProto.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RateLimitProto.Rule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RateLimitProto.Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RateLimitProto.Rule.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static RateLimitProto.Rule.Builder newBuilder()
public static RateLimitProto.Rule.Builder newBuilder(RateLimitProto.Rule prototype)
public RateLimitProto.Rule.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static RateLimitProto.Rule getDefaultInstance()
public static com.google.protobuf.Parser<RateLimitProto.Rule> parser()
public com.google.protobuf.Parser<RateLimitProto.Rule> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public RateLimitProto.Rule getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2022. All rights reserved.