public static final class RateLimitProto.Rule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder> implements RateLimitProto.RuleOrBuilder
单个限流规则信息Protobuf type
v1.Rule| 限定符和类型 | 方法和说明 |
|---|---|
RateLimitProto.Rule.Builder |
addAllAmounts(Iterable<? extends RateLimitProto.Amount> values)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
addAmounts(int index,
RateLimitProto.Amount.Builder builderForValue)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
addAmounts(int index,
RateLimitProto.Amount value)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
addAmounts(RateLimitProto.Amount.Builder builderForValue)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
addAmounts(RateLimitProto.Amount value)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Amount.Builder |
addAmountsBuilder()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Amount.Builder |
addAmountsBuilder(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RateLimitProto.Rule |
build() |
RateLimitProto.Rule |
buildPartial() |
RateLimitProto.Rule.Builder |
clear() |
RateLimitProto.Rule.Builder |
clearAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.Rule.Builder |
clearAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.Rule.Builder |
clearAmountMode()
.v1.Rule.AmountMode amount_mode = 19; |
RateLimitProto.Rule.Builder |
clearAmounts()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
clearCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.Rule.Builder |
clearCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
RateLimitProto.Rule.Builder |
clearDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
RateLimitProto.Rule.Builder |
clearFailover()
.v1.Rule.FailoverType failover = 20; |
RateLimitProto.Rule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RateLimitProto.Rule.Builder |
clearId()
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
RateLimitProto.Rule.Builder |
clearLabels() |
RateLimitProto.Rule.Builder |
clearMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
RateLimitProto.Rule.Builder |
clearNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
RateLimitProto.Rule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RateLimitProto.Rule.Builder |
clearPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
RateLimitProto.Rule.Builder |
clearRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
RateLimitProto.Rule.Builder |
clearReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.Rule.Builder |
clearResource()
.v1.Rule.Resource resource = 6; |
RateLimitProto.Rule.Builder |
clearRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
RateLimitProto.Rule.Builder |
clearService()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
RateLimitProto.Rule.Builder |
clearServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
RateLimitProto.Rule.Builder |
clearSubset() |
RateLimitProto.Rule.Builder |
clearType()
.v1.Rule.Type type = 7; |
RateLimitProto.Rule.Builder |
clone() |
boolean |
containsLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
boolean |
containsSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
com.google.protobuf.StringValue |
getAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
com.google.protobuf.StringValue.Builder |
getActionBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
com.google.protobuf.StringValueOrBuilder |
getActionOrBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.AmountAdjuster |
getAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.AmountAdjuster.Builder |
getAdjusterBuilder()
配额调整算法
.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; |
RateLimitProto.Amount.Builder |
getAmountsBuilder(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
List<RateLimitProto.Amount.Builder> |
getAmountsBuilderList()
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
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.RateLimitCluster.Builder |
getClusterBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.RateLimitClusterOrBuilder |
getClusterOrBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
com.google.protobuf.StringValue |
getCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
com.google.protobuf.StringValue.Builder |
getCtimeBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
com.google.protobuf.StringValueOrBuilder |
getCtimeOrBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
RateLimitProto.Rule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.BoolValue |
getDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
com.google.protobuf.BoolValue.Builder |
getDisableBuilder()
是否停用该限流规则,默认启用
.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.StringValue.Builder |
getIdBuilder()
限流规则唯一标识
.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.StringValue.Builder |
getMtimeBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
com.google.protobuf.StringValueOrBuilder |
getMtimeOrBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
Map<String,ModelProto.MatchString> |
getMutableLabels()
已过时。
|
Map<String,ModelProto.MatchString> |
getMutableSubset()
已过时。
|
com.google.protobuf.StringValue |
getNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.StringValue.Builder |
getNamespaceBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.StringValueOrBuilder |
getNamespaceOrBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
com.google.protobuf.UInt32Value |
getPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
com.google.protobuf.UInt32Value.Builder |
getPriorityBuilder()
限流规则优先级,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.BoolValue.Builder |
getRegexCombineBuilder()
通配符是否合并计算,默认分开计数
.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.Report.Builder |
getReportBuilder()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.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.StringValue.Builder |
getRevisionBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
com.google.protobuf.StringValueOrBuilder |
getRevisionOrBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
com.google.protobuf.StringValue |
getService()
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
com.google.protobuf.StringValue.Builder |
getServiceBuilder()
限流规则所属服务名
.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.StringValue.Builder |
getServiceTokenBuilder()
服务的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; |
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; |
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() |
RateLimitProto.Rule.Builder |
mergeAction(com.google.protobuf.StringValue value)
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.Rule.Builder |
mergeAdjuster(RateLimitProto.AmountAdjuster value)
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.Rule.Builder |
mergeCluster(RateLimitProto.RateLimitCluster value)
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.Rule.Builder |
mergeCtime(com.google.protobuf.StringValue value)
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
RateLimitProto.Rule.Builder |
mergeDisable(com.google.protobuf.BoolValue value)
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
RateLimitProto.Rule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RateLimitProto.Rule.Builder |
mergeFrom(com.google.protobuf.Message other) |
RateLimitProto.Rule.Builder |
mergeFrom(RateLimitProto.Rule other) |
RateLimitProto.Rule.Builder |
mergeId(com.google.protobuf.StringValue value)
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
RateLimitProto.Rule.Builder |
mergeMtime(com.google.protobuf.StringValue value)
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
RateLimitProto.Rule.Builder |
mergeNamespace(com.google.protobuf.StringValue value)
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
RateLimitProto.Rule.Builder |
mergePriority(com.google.protobuf.UInt32Value value)
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
RateLimitProto.Rule.Builder |
mergeRegexCombine(com.google.protobuf.BoolValue value)
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
RateLimitProto.Rule.Builder |
mergeReport(RateLimitProto.Report value)
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.Rule.Builder |
mergeRevision(com.google.protobuf.StringValue value)
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
RateLimitProto.Rule.Builder |
mergeService(com.google.protobuf.StringValue value)
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
RateLimitProto.Rule.Builder |
mergeServiceToken(com.google.protobuf.StringValue value)
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
RateLimitProto.Rule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RateLimitProto.Rule.Builder |
putAllLabels(Map<String,ModelProto.MatchString> values)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
RateLimitProto.Rule.Builder |
putAllSubset(Map<String,ModelProto.MatchString> values)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
RateLimitProto.Rule.Builder |
putLabels(String key,
ModelProto.MatchString value)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
RateLimitProto.Rule.Builder |
putSubset(String key,
ModelProto.MatchString value)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
RateLimitProto.Rule.Builder |
removeAmounts(int index)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
removeLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8; |
RateLimitProto.Rule.Builder |
removeSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4; |
RateLimitProto.Rule.Builder |
setAction(com.google.protobuf.StringValue.Builder builderForValue)
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.Rule.Builder |
setAction(com.google.protobuf.StringValue value)
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10; |
RateLimitProto.Rule.Builder |
setAdjuster(RateLimitProto.AmountAdjuster.Builder builderForValue)
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.Rule.Builder |
setAdjuster(RateLimitProto.AmountAdjuster value)
配额调整算法
.v1.AmountAdjuster adjuster = 17; |
RateLimitProto.Rule.Builder |
setAmountMode(RateLimitProto.Rule.AmountMode value)
.v1.Rule.AmountMode amount_mode = 19; |
RateLimitProto.Rule.Builder |
setAmountModeValue(int value)
.v1.Rule.AmountMode amount_mode = 19; |
RateLimitProto.Rule.Builder |
setAmounts(int index,
RateLimitProto.Amount.Builder builderForValue)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
setAmounts(int index,
RateLimitProto.Amount value)
限流阈值
可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流
全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9; |
RateLimitProto.Rule.Builder |
setCluster(RateLimitProto.RateLimitCluster.Builder builderForValue)
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.Rule.Builder |
setCluster(RateLimitProto.RateLimitCluster value)
分布式限流服务集群
.v1.RateLimitCluster cluster = 21; |
RateLimitProto.Rule.Builder |
setCtime(com.google.protobuf.StringValue.Builder builderForValue)
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
RateLimitProto.Rule.Builder |
setCtime(com.google.protobuf.StringValue value)
限流规则创建时间
.google.protobuf.StringValue ctime = 13; |
RateLimitProto.Rule.Builder |
setDisable(com.google.protobuf.BoolValue.Builder builderForValue)
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
RateLimitProto.Rule.Builder |
setDisable(com.google.protobuf.BoolValue value)
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11; |
RateLimitProto.Rule.Builder |
setFailover(RateLimitProto.Rule.FailoverType value)
.v1.Rule.FailoverType failover = 20; |
RateLimitProto.Rule.Builder |
setFailoverValue(int value)
.v1.Rule.FailoverType failover = 20; |
RateLimitProto.Rule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RateLimitProto.Rule.Builder |
setId(com.google.protobuf.StringValue.Builder builderForValue)
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
RateLimitProto.Rule.Builder |
setId(com.google.protobuf.StringValue value)
限流规则唯一标识
.google.protobuf.StringValue id = 1; |
RateLimitProto.Rule.Builder |
setMtime(com.google.protobuf.StringValue.Builder builderForValue)
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
RateLimitProto.Rule.Builder |
setMtime(com.google.protobuf.StringValue value)
限流规则修改时间
.google.protobuf.StringValue mtime = 14; |
RateLimitProto.Rule.Builder |
setNamespace(com.google.protobuf.StringValue.Builder builderForValue)
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
RateLimitProto.Rule.Builder |
setNamespace(com.google.protobuf.StringValue value)
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3; |
RateLimitProto.Rule.Builder |
setPriority(com.google.protobuf.UInt32Value.Builder builderForValue)
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
RateLimitProto.Rule.Builder |
setPriority(com.google.protobuf.UInt32Value value)
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5; |
RateLimitProto.Rule.Builder |
setRegexCombine(com.google.protobuf.BoolValue.Builder builderForValue)
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
RateLimitProto.Rule.Builder |
setRegexCombine(com.google.protobuf.BoolValue value)
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18; |
RateLimitProto.Rule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RateLimitProto.Rule.Builder |
setReport(RateLimitProto.Report.Builder builderForValue)
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.Rule.Builder |
setReport(RateLimitProto.Report value)
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12; |
RateLimitProto.Rule.Builder |
setResource(RateLimitProto.Rule.Resource value)
.v1.Rule.Resource resource = 6; |
RateLimitProto.Rule.Builder |
setResourceValue(int value)
.v1.Rule.Resource resource = 6; |
RateLimitProto.Rule.Builder |
setRevision(com.google.protobuf.StringValue.Builder builderForValue)
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
RateLimitProto.Rule.Builder |
setRevision(com.google.protobuf.StringValue value)
限流规则revision信息
.google.protobuf.StringValue revision = 15; |
RateLimitProto.Rule.Builder |
setService(com.google.protobuf.StringValue.Builder builderForValue)
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
RateLimitProto.Rule.Builder |
setService(com.google.protobuf.StringValue value)
限流规则所属服务名
.google.protobuf.StringValue service = 2; |
RateLimitProto.Rule.Builder |
setServiceToken(com.google.protobuf.StringValue.Builder builderForValue)
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
RateLimitProto.Rule.Builder |
setServiceToken(com.google.protobuf.StringValue value)
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"]; |
RateLimitProto.Rule.Builder |
setType(RateLimitProto.Rule.Type value)
.v1.Rule.Type type = 7; |
RateLimitProto.Rule.Builder |
setTypeValue(int value)
.v1.Rule.Type type = 7; |
RateLimitProto.Rule.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 RateLimitProto.Rule.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic RateLimitProto.Rule build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic RateLimitProto.Rule buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic RateLimitProto.Rule.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.Builder mergeFrom(RateLimitProto.Rule other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public RateLimitProto.Rule.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<RateLimitProto.Rule.Builder>IOExceptionpublic boolean hasId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;hasId 在接口中 RateLimitProto.RuleOrBuilderpublic com.google.protobuf.StringValue getId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;getId 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setId(com.google.protobuf.StringValue value)
限流规则唯一标识
.google.protobuf.StringValue id = 1;public RateLimitProto.Rule.Builder setId(com.google.protobuf.StringValue.Builder builderForValue)
限流规则唯一标识
.google.protobuf.StringValue id = 1;public RateLimitProto.Rule.Builder mergeId(com.google.protobuf.StringValue value)
限流规则唯一标识
.google.protobuf.StringValue id = 1;public RateLimitProto.Rule.Builder clearId()
限流规则唯一标识
.google.protobuf.StringValue id = 1;public com.google.protobuf.StringValue.Builder getIdBuilder()
限流规则唯一标识
.google.protobuf.StringValue id = 1;public 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 RateLimitProto.Rule.Builder setService(com.google.protobuf.StringValue value)
限流规则所属服务名
.google.protobuf.StringValue service = 2;public RateLimitProto.Rule.Builder setService(com.google.protobuf.StringValue.Builder builderForValue)
限流规则所属服务名
.google.protobuf.StringValue service = 2;public RateLimitProto.Rule.Builder mergeService(com.google.protobuf.StringValue value)
限流规则所属服务名
.google.protobuf.StringValue service = 2;public RateLimitProto.Rule.Builder clearService()
限流规则所属服务名
.google.protobuf.StringValue service = 2;public com.google.protobuf.StringValue.Builder getServiceBuilder()
限流规则所属服务名
.google.protobuf.StringValue service = 2;public 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 RateLimitProto.Rule.Builder setNamespace(com.google.protobuf.StringValue value)
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;public RateLimitProto.Rule.Builder setNamespace(com.google.protobuf.StringValue.Builder builderForValue)
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;public RateLimitProto.Rule.Builder mergeNamespace(com.google.protobuf.StringValue value)
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;public RateLimitProto.Rule.Builder clearNamespace()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;public com.google.protobuf.StringValue.Builder getNamespaceBuilder()
限流规则所属命名空间
.google.protobuf.StringValue namespace = 3;public 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 RateLimitProto.Rule.Builder clearSubset()
public RateLimitProto.Rule.Builder removeSubset(String key)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;@Deprecated public Map<String,ModelProto.MatchString> getMutableSubset()
public RateLimitProto.Rule.Builder putSubset(String key, ModelProto.MatchString value)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;public RateLimitProto.Rule.Builder putAllSubset(Map<String,ModelProto.MatchString> values)
可选,SUBSET标识
map<string, .v1.MatchString> subset = 4;public 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 RateLimitProto.Rule.Builder setPriority(com.google.protobuf.UInt32Value value)
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public RateLimitProto.Rule.Builder setPriority(com.google.protobuf.UInt32Value.Builder builderForValue)
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public RateLimitProto.Rule.Builder mergePriority(com.google.protobuf.UInt32Value value)
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public RateLimitProto.Rule.Builder clearPriority()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public com.google.protobuf.UInt32Value.Builder getPriorityBuilder()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder()
限流规则优先级,0值最高
.google.protobuf.UInt32Value priority = 5;public int getResourceValue()
.v1.Rule.Resource resource = 6;getResourceValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setResourceValue(int value)
.v1.Rule.Resource resource = 6;value - The enum numeric value on the wire for resource to set.public RateLimitProto.Rule.Resource getResource()
.v1.Rule.Resource resource = 6;getResource 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setResource(RateLimitProto.Rule.Resource value)
.v1.Rule.Resource resource = 6;value - The resource to set.public RateLimitProto.Rule.Builder clearResource()
.v1.Rule.Resource resource = 6;public int getTypeValue()
.v1.Rule.Type type = 7;getTypeValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setTypeValue(int value)
.v1.Rule.Type type = 7;value - The enum numeric value on the wire for type to set.public RateLimitProto.Rule.Type getType()
.v1.Rule.Type type = 7;getType 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setType(RateLimitProto.Rule.Type value)
.v1.Rule.Type type = 7;value - The type to set.public RateLimitProto.Rule.Builder clearType()
.v1.Rule.Type type = 7;public 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 RateLimitProto.Rule.Builder clearLabels()
public RateLimitProto.Rule.Builder removeLabels(String key)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;@Deprecated public Map<String,ModelProto.MatchString> getMutableLabels()
public RateLimitProto.Rule.Builder putLabels(String key, ModelProto.MatchString value)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;public RateLimitProto.Rule.Builder putAllLabels(Map<String,ModelProto.MatchString> values)
业务标签集合,通过KV进行匹配,全部匹配才使用该规则
map<string, .v1.MatchString> labels = 8;public List<RateLimitProto.Amount> getAmountsList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;getAmountsList 在接口中 RateLimitProto.RuleOrBuilderpublic int getAmountsCount()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;getAmountsCount 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Amount getAmounts(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;getAmounts 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setAmounts(int index, RateLimitProto.Amount value)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder setAmounts(int index, RateLimitProto.Amount.Builder builderForValue)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder addAmounts(RateLimitProto.Amount value)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder addAmounts(int index, RateLimitProto.Amount value)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder addAmounts(RateLimitProto.Amount.Builder builderForValue)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder addAmounts(int index, RateLimitProto.Amount.Builder builderForValue)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder addAllAmounts(Iterable<? extends RateLimitProto.Amount> values)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder clearAmounts()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Rule.Builder removeAmounts(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Amount.Builder getAmountsBuilder(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.AmountOrBuilder getAmountsOrBuilder(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public List<? extends RateLimitProto.AmountOrBuilder> getAmountsOrBuilderList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Amount.Builder addAmountsBuilder()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public RateLimitProto.Amount.Builder addAmountsBuilder(int index)
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
repeated .v1.Amount amounts = 9;public List<RateLimitProto.Amount.Builder> getAmountsBuilderList()
限流阈值 可以有多个粒度的配置(比如同时针对秒级,分钟级,天级),匹配一个则进行限流 全局限流模式下,该值为服务配额总量;单机限流模式下,该值为单个节点能处理的配额量
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 RateLimitProto.Rule.Builder setAction(com.google.protobuf.StringValue value)
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;public RateLimitProto.Rule.Builder setAction(com.google.protobuf.StringValue.Builder builderForValue)
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;public RateLimitProto.Rule.Builder mergeAction(com.google.protobuf.StringValue value)
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;public RateLimitProto.Rule.Builder clearAction()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;public com.google.protobuf.StringValue.Builder getActionBuilder()
限流动作,对应着客户端的插件名字
.google.protobuf.StringValue action = 10;public 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 RateLimitProto.Rule.Builder setDisable(com.google.protobuf.BoolValue value)
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;public RateLimitProto.Rule.Builder setDisable(com.google.protobuf.BoolValue.Builder builderForValue)
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;public RateLimitProto.Rule.Builder mergeDisable(com.google.protobuf.BoolValue value)
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;public RateLimitProto.Rule.Builder clearDisable()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;public com.google.protobuf.BoolValue.Builder getDisableBuilder()
是否停用该限流规则,默认启用
.google.protobuf.BoolValue disable = 11;public 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.Rule.Builder setReport(RateLimitProto.Report value)
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;public RateLimitProto.Rule.Builder setReport(RateLimitProto.Report.Builder builderForValue)
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;public RateLimitProto.Rule.Builder mergeReport(RateLimitProto.Report value)
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;public RateLimitProto.Rule.Builder clearReport()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;public RateLimitProto.Report.Builder getReportBuilder()
限流上报方式,同时支持按固定周期上报,以及达到配额百分比后上报
.v1.Report report = 12;public 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 RateLimitProto.Rule.Builder setCtime(com.google.protobuf.StringValue value)
限流规则创建时间
.google.protobuf.StringValue ctime = 13;public RateLimitProto.Rule.Builder setCtime(com.google.protobuf.StringValue.Builder builderForValue)
限流规则创建时间
.google.protobuf.StringValue ctime = 13;public RateLimitProto.Rule.Builder mergeCtime(com.google.protobuf.StringValue value)
限流规则创建时间
.google.protobuf.StringValue ctime = 13;public RateLimitProto.Rule.Builder clearCtime()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;public com.google.protobuf.StringValue.Builder getCtimeBuilder()
限流规则创建时间
.google.protobuf.StringValue ctime = 13;public 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 RateLimitProto.Rule.Builder setMtime(com.google.protobuf.StringValue value)
限流规则修改时间
.google.protobuf.StringValue mtime = 14;public RateLimitProto.Rule.Builder setMtime(com.google.protobuf.StringValue.Builder builderForValue)
限流规则修改时间
.google.protobuf.StringValue mtime = 14;public RateLimitProto.Rule.Builder mergeMtime(com.google.protobuf.StringValue value)
限流规则修改时间
.google.protobuf.StringValue mtime = 14;public RateLimitProto.Rule.Builder clearMtime()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;public com.google.protobuf.StringValue.Builder getMtimeBuilder()
限流规则修改时间
.google.protobuf.StringValue mtime = 14;public 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 RateLimitProto.Rule.Builder setRevision(com.google.protobuf.StringValue value)
限流规则revision信息
.google.protobuf.StringValue revision = 15;public RateLimitProto.Rule.Builder setRevision(com.google.protobuf.StringValue.Builder builderForValue)
限流规则revision信息
.google.protobuf.StringValue revision = 15;public RateLimitProto.Rule.Builder mergeRevision(com.google.protobuf.StringValue value)
限流规则revision信息
.google.protobuf.StringValue revision = 15;public RateLimitProto.Rule.Builder clearRevision()
限流规则revision信息
.google.protobuf.StringValue revision = 15;public com.google.protobuf.StringValue.Builder getRevisionBuilder()
限流规则revision信息
.google.protobuf.StringValue revision = 15;public 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 RateLimitProto.Rule.Builder setServiceToken(com.google.protobuf.StringValue value)
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];public RateLimitProto.Rule.Builder setServiceToken(com.google.protobuf.StringValue.Builder builderForValue)
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];public RateLimitProto.Rule.Builder mergeServiceToken(com.google.protobuf.StringValue value)
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];public RateLimitProto.Rule.Builder clearServiceToken()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];public com.google.protobuf.StringValue.Builder getServiceTokenBuilder()
服务的TOKEN信息,仅用于控制台,discover接口不下发
.google.protobuf.StringValue service_token = 16[json_name = "service_token"];public 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.Rule.Builder setAdjuster(RateLimitProto.AmountAdjuster value)
配额调整算法
.v1.AmountAdjuster adjuster = 17;public RateLimitProto.Rule.Builder setAdjuster(RateLimitProto.AmountAdjuster.Builder builderForValue)
配额调整算法
.v1.AmountAdjuster adjuster = 17;public RateLimitProto.Rule.Builder mergeAdjuster(RateLimitProto.AmountAdjuster value)
配额调整算法
.v1.AmountAdjuster adjuster = 17;public RateLimitProto.Rule.Builder clearAdjuster()
配额调整算法
.v1.AmountAdjuster adjuster = 17;public RateLimitProto.AmountAdjuster.Builder getAdjusterBuilder()
配额调整算法
.v1.AmountAdjuster adjuster = 17;public 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 RateLimitProto.Rule.Builder setRegexCombine(com.google.protobuf.BoolValue value)
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;public RateLimitProto.Rule.Builder setRegexCombine(com.google.protobuf.BoolValue.Builder builderForValue)
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;public RateLimitProto.Rule.Builder mergeRegexCombine(com.google.protobuf.BoolValue value)
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;public RateLimitProto.Rule.Builder clearRegexCombine()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;public com.google.protobuf.BoolValue.Builder getRegexCombineBuilder()
通配符是否合并计算,默认分开计数
.google.protobuf.BoolValue regex_combine = 18;public 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.Builder setAmountModeValue(int value)
.v1.Rule.AmountMode amount_mode = 19;value - The enum numeric value on the wire for amountMode to set.public RateLimitProto.Rule.AmountMode getAmountMode()
.v1.Rule.AmountMode amount_mode = 19;getAmountMode 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setAmountMode(RateLimitProto.Rule.AmountMode value)
.v1.Rule.AmountMode amount_mode = 19;value - The amountMode to set.public RateLimitProto.Rule.Builder clearAmountMode()
.v1.Rule.AmountMode amount_mode = 19;public int getFailoverValue()
.v1.Rule.FailoverType failover = 20;getFailoverValue 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setFailoverValue(int value)
.v1.Rule.FailoverType failover = 20;value - The enum numeric value on the wire for failover to set.public RateLimitProto.Rule.FailoverType getFailover()
.v1.Rule.FailoverType failover = 20;getFailover 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setFailover(RateLimitProto.Rule.FailoverType value)
.v1.Rule.FailoverType failover = 20;value - The failover to set.public RateLimitProto.Rule.Builder clearFailover()
.v1.Rule.FailoverType failover = 20;public boolean hasCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;hasCluster 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.RateLimitCluster getCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;getCluster 在接口中 RateLimitProto.RuleOrBuilderpublic RateLimitProto.Rule.Builder setCluster(RateLimitProto.RateLimitCluster value)
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public RateLimitProto.Rule.Builder setCluster(RateLimitProto.RateLimitCluster.Builder builderForValue)
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public RateLimitProto.Rule.Builder mergeCluster(RateLimitProto.RateLimitCluster value)
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public RateLimitProto.Rule.Builder clearCluster()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public RateLimitProto.RateLimitCluster.Builder getClusterBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public RateLimitProto.RateLimitClusterOrBuilder getClusterOrBuilder()
分布式限流服务集群
.v1.RateLimitCluster cluster = 21;public final RateLimitProto.Rule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>public final RateLimitProto.Rule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<RateLimitProto.Rule.Builder>Copyright © 2022. All rights reserved.