| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.30.0 |
| 4 |
// protoc v5.29.1 |
| 5 |
// source: envoy/extensions/common/ratelimit/v3/ratelimit.proto |
| 6 |
|
| 7 |
package ratelimitv3 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" |
| 12 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" |
| 16 |
reflect "reflect" |
| 17 |
sync "sync" |
| 18 |
) |
| 19 |
|
| 20 |
const ( |
| 21 |
// Verify that this generated code is sufficiently up-to-date. |
| 22 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 24 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 |
) |
| 26 |
|
| 27 |
// Defines the version of the standard to use for X-RateLimit headers. |
| 28 |
type XRateLimitHeadersRFCVersion int32 |
| 29 |
|
| 30 |
const ( |
| 31 |
// X-RateLimit headers disabled. |
| 32 |
XRateLimitHeadersRFCVersion_OFF XRateLimitHeadersRFCVersion = 0 |
| 33 |
// Use `draft RFC Version 03 <https://tools.ietf.org/id/draft-polli-ratelimit-headers-03.html>`_ where 3 headers will be added: |
| 34 |
// |
| 35 |
// - “X-RateLimit-Limit“ - indicates the request-quota associated to the |
| 36 |
// client in the current time-window followed by the description of the |
| 37 |
// quota policy. The value is returned by the maximum tokens of the token bucket. |
| 38 |
// - “X-RateLimit-Remaining“ - indicates the remaining requests in the |
| 39 |
// current time-window. The value is returned by the remaining tokens in the token bucket. |
| 40 |
// - “X-RateLimit-Reset“ - indicates the number of seconds until reset of |
| 41 |
// the current time-window. The value is returned by the remaining fill interval of the token bucket. |
| 42 |
XRateLimitHeadersRFCVersion_DRAFT_VERSION_03 XRateLimitHeadersRFCVersion = 1 |
| 43 |
) |
| 44 |
|
| 45 |
// Enum value maps for XRateLimitHeadersRFCVersion. |
| 46 |
var ( |
| 47 |
XRateLimitHeadersRFCVersion_name = map[int32]string{ |
| 48 |
0: "OFF", |
| 49 |
1: "DRAFT_VERSION_03", |
| 50 |
} |
| 51 |
XRateLimitHeadersRFCVersion_value = map[string]int32{ |
| 52 |
"OFF": 0, |
| 53 |
"DRAFT_VERSION_03": 1, |
| 54 |
} |
| 55 |
) |
| 56 |
|
| 57 |
func (x XRateLimitHeadersRFCVersion) Enum() *XRateLimitHeadersRFCVersion { |
| 58 |
p := new(XRateLimitHeadersRFCVersion) |
| 59 |
*p = x |
| 60 |
return p |
| 61 |
} |
| 62 |
|
| 63 |
func (x XRateLimitHeadersRFCVersion) String() string { |
| 64 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 65 |
} |
| 66 |
|
| 67 |
func (XRateLimitHeadersRFCVersion) Descriptor() protoreflect.EnumDescriptor { |
| 68 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_enumTypes[0].Descriptor() |
| 69 |
} |
| 70 |
|
| 71 |
func (XRateLimitHeadersRFCVersion) Type() protoreflect.EnumType { |
| 72 |
return &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_enumTypes[0] |
| 73 |
} |
| 74 |
|
| 75 |
func (x XRateLimitHeadersRFCVersion) Number() protoreflect.EnumNumber { |
| 76 |
return protoreflect.EnumNumber(x) |
| 77 |
} |
| 78 |
|
| 79 |
// Deprecated: Use XRateLimitHeadersRFCVersion.Descriptor instead. |
| 80 |
func (XRateLimitHeadersRFCVersion) EnumDescriptor() ([]byte, []int) { |
| 81 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{0} |
| 82 |
} |
| 83 |
|
| 84 |
type VhRateLimitsOptions int32 |
| 85 |
|
| 86 |
const ( |
| 87 |
// Use the virtual host rate limits unless the route has a rate limit policy. |
| 88 |
VhRateLimitsOptions_OVERRIDE VhRateLimitsOptions = 0 |
| 89 |
// Use the virtual host rate limits even if the route has a rate limit policy. |
| 90 |
VhRateLimitsOptions_INCLUDE VhRateLimitsOptions = 1 |
| 91 |
// Ignore the virtual host rate limits even if the route does not have a rate limit policy. |
| 92 |
VhRateLimitsOptions_IGNORE VhRateLimitsOptions = 2 |
| 93 |
) |
| 94 |
|
| 95 |
// Enum value maps for VhRateLimitsOptions. |
| 96 |
var ( |
| 97 |
VhRateLimitsOptions_name = map[int32]string{ |
| 98 |
0: "OVERRIDE", |
| 99 |
1: "INCLUDE", |
| 100 |
2: "IGNORE", |
| 101 |
} |
| 102 |
VhRateLimitsOptions_value = map[string]int32{ |
| 103 |
"OVERRIDE": 0, |
| 104 |
"INCLUDE": 1, |
| 105 |
"IGNORE": 2, |
| 106 |
} |
| 107 |
) |
| 108 |
|
| 109 |
func (x VhRateLimitsOptions) Enum() *VhRateLimitsOptions { |
| 110 |
p := new(VhRateLimitsOptions) |
| 111 |
*p = x |
| 112 |
return p |
| 113 |
} |
| 114 |
|
| 115 |
func (x VhRateLimitsOptions) String() string { |
| 116 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 117 |
} |
| 118 |
|
| 119 |
func (VhRateLimitsOptions) Descriptor() protoreflect.EnumDescriptor { |
| 120 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_enumTypes[1].Descriptor() |
| 121 |
} |
| 122 |
|
| 123 |
func (VhRateLimitsOptions) Type() protoreflect.EnumType { |
| 124 |
return &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_enumTypes[1] |
| 125 |
} |
| 126 |
|
| 127 |
func (x VhRateLimitsOptions) Number() protoreflect.EnumNumber { |
| 128 |
return protoreflect.EnumNumber(x) |
| 129 |
} |
| 130 |
|
| 131 |
// Deprecated: Use VhRateLimitsOptions.Descriptor instead. |
| 132 |
func (VhRateLimitsOptions) EnumDescriptor() ([]byte, []int) { |
| 133 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{1} |
| 134 |
} |
| 135 |
|
| 136 |
// A RateLimitDescriptor is a list of hierarchical entries that are used by the service to |
| 137 |
// determine the final rate limit key and overall allowed limit. Here are some examples of how |
| 138 |
// they might be used for the domain "envoy". |
| 139 |
// |
| 140 |
// .. code-block:: cpp |
| 141 |
// |
| 142 |
// ["authenticated": "false"], ["remote_address": "10.0.0.1"] |
| 143 |
// |
| 144 |
// What it does: Limits all unauthenticated traffic for the IP address 10.0.0.1. The |
| 145 |
// configuration supplies a default limit for the *remote_address* key. If there is a desire to |
| 146 |
// raise the limit for 10.0.0.1 or block it entirely it can be specified directly in the |
| 147 |
// configuration. |
| 148 |
// |
| 149 |
// .. code-block:: cpp |
| 150 |
// |
| 151 |
// ["authenticated": "false"], ["path": "/foo/bar"] |
| 152 |
// |
| 153 |
// What it does: Limits all unauthenticated traffic globally for a specific path (or prefix if |
| 154 |
// configured that way in the service). |
| 155 |
// |
| 156 |
// .. code-block:: cpp |
| 157 |
// |
| 158 |
// ["authenticated": "false"], ["path": "/foo/bar"], ["remote_address": "10.0.0.1"] |
| 159 |
// |
| 160 |
// What it does: Limits unauthenticated traffic to a specific path for a specific IP address. |
| 161 |
// Like (1) we can raise/block specific IP addresses if we want with an override configuration. |
| 162 |
// |
| 163 |
// .. code-block:: cpp |
| 164 |
// |
| 165 |
// ["authenticated": "true"], ["client_id": "foo"] |
| 166 |
// |
| 167 |
// What it does: Limits all traffic for an authenticated client "foo" |
| 168 |
// |
| 169 |
// .. code-block:: cpp |
| 170 |
// |
| 171 |
// ["authenticated": "true"], ["client_id": "foo"], ["path": "/foo/bar"] |
| 172 |
// |
| 173 |
// What it does: Limits traffic to a specific path for an authenticated client "foo" |
| 174 |
// |
| 175 |
// The idea behind the API is that (1)/(2)/(3) and (4)/(5) can be sent in 1 request if desired. |
| 176 |
// This enables building complex application scenarios with a generic backend. |
| 177 |
// |
| 178 |
// Optionally the descriptor can contain a limit override under a "limit" key, that specifies |
| 179 |
// the number of requests per unit to use instead of the number configured in the |
| 180 |
// rate limiting service. |
| 181 |
type RateLimitDescriptor struct { |
| 182 |
state protoimpl.MessageState |
| 183 |
sizeCache protoimpl.SizeCache |
| 184 |
unknownFields protoimpl.UnknownFields |
| 185 |
|
| 186 |
// Descriptor entries. |
| 187 |
Entries []*RateLimitDescriptor_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` |
| 188 |
// Optional rate limit override to supply to the ratelimit service. |
| 189 |
Limit *RateLimitDescriptor_RateLimitOverride `protobuf:"bytes,2,opt,name=limit,proto3" json:"limit,omitempty"` |
| 190 |
// Optional hits_addend for the rate limit descriptor. If set the value will override the |
| 191 |
// request level hits_addend. |
| 192 |
HitsAddend *wrapperspb.UInt64Value `protobuf:"bytes,3,opt,name=hits_addend,json=hitsAddend,proto3" json:"hits_addend,omitempty"` |
| 193 |
} |
| 194 |
|
| 195 |
func (x *RateLimitDescriptor) Reset() { |
| 196 |
*x = RateLimitDescriptor{} |
| 197 |
if protoimpl.UnsafeEnabled { |
| 198 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[0] |
| 199 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 200 |
ms.StoreMessageInfo(mi) |
| 201 |
} |
| 202 |
} |
| 203 |
|
| 204 |
func (x *RateLimitDescriptor) String() string { |
| 205 |
return protoimpl.X.MessageStringOf(x) |
| 206 |
} |
| 207 |
|
| 208 |
func (*RateLimitDescriptor) ProtoMessage() {} |
| 209 |
|
| 210 |
func (x *RateLimitDescriptor) ProtoReflect() protoreflect.Message { |
| 211 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[0] |
| 212 |
if protoimpl.UnsafeEnabled && x != nil { |
| 213 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 214 |
if ms.LoadMessageInfo() == nil { |
| 215 |
ms.StoreMessageInfo(mi) |
| 216 |
} |
| 217 |
return ms |
| 218 |
} |
| 219 |
return mi.MessageOf(x) |
| 220 |
} |
| 221 |
|
| 222 |
// Deprecated: Use RateLimitDescriptor.ProtoReflect.Descriptor instead. |
| 223 |
func (*RateLimitDescriptor) Descriptor() ([]byte, []int) { |
| 224 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{0} |
| 225 |
} |
| 226 |
|
| 227 |
func (x *RateLimitDescriptor) GetEntries() []*RateLimitDescriptor_Entry { |
| 228 |
if x != nil { |
| 229 |
return x.Entries |
| 230 |
} |
| 231 |
return nil |
| 232 |
} |
| 233 |
|
| 234 |
func (x *RateLimitDescriptor) GetLimit() *RateLimitDescriptor_RateLimitOverride { |
| 235 |
if x != nil { |
| 236 |
return x.Limit |
| 237 |
} |
| 238 |
return nil |
| 239 |
} |
| 240 |
|
| 241 |
func (x *RateLimitDescriptor) GetHitsAddend() *wrapperspb.UInt64Value { |
| 242 |
if x != nil { |
| 243 |
return x.HitsAddend |
| 244 |
} |
| 245 |
return nil |
| 246 |
} |
| 247 |
|
| 248 |
// Configuration used to enable local rate limiting. |
| 249 |
// |
| 250 |
// .. note:: |
| 251 |
// |
| 252 |
// The ``LocalRateLimitDescriptor`` is used to configure a local rate limit rule with a token |
| 253 |
// bucket algorithm. The ``RateLimitDescriptor`` is used to represent a list of symbols that |
| 254 |
// are used to match against the rate limit rule. |
| 255 |
type LocalRateLimitDescriptor struct { |
| 256 |
state protoimpl.MessageState |
| 257 |
sizeCache protoimpl.SizeCache |
| 258 |
unknownFields protoimpl.UnknownFields |
| 259 |
|
| 260 |
// Descriptor entries. |
| 261 |
Entries []*RateLimitDescriptor_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` |
| 262 |
// Token Bucket algorithm for local ratelimiting. |
| 263 |
TokenBucket *v3.TokenBucket `protobuf:"bytes,2,opt,name=token_bucket,json=tokenBucket,proto3" json:"token_bucket,omitempty"` |
| 264 |
} |
| 265 |
|
| 266 |
func (x *LocalRateLimitDescriptor) Reset() { |
| 267 |
*x = LocalRateLimitDescriptor{} |
| 268 |
if protoimpl.UnsafeEnabled { |
| 269 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[1] |
| 270 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 271 |
ms.StoreMessageInfo(mi) |
| 272 |
} |
| 273 |
} |
| 274 |
|
| 275 |
func (x *LocalRateLimitDescriptor) String() string { |
| 276 |
return protoimpl.X.MessageStringOf(x) |
| 277 |
} |
| 278 |
|
| 279 |
func (*LocalRateLimitDescriptor) ProtoMessage() {} |
| 280 |
|
| 281 |
func (x *LocalRateLimitDescriptor) ProtoReflect() protoreflect.Message { |
| 282 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[1] |
| 283 |
if protoimpl.UnsafeEnabled && x != nil { |
| 284 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 285 |
if ms.LoadMessageInfo() == nil { |
| 286 |
ms.StoreMessageInfo(mi) |
| 287 |
} |
| 288 |
return ms |
| 289 |
} |
| 290 |
return mi.MessageOf(x) |
| 291 |
} |
| 292 |
|
| 293 |
// Deprecated: Use LocalRateLimitDescriptor.ProtoReflect.Descriptor instead. |
| 294 |
func (*LocalRateLimitDescriptor) Descriptor() ([]byte, []int) { |
| 295 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{1} |
| 296 |
} |
| 297 |
|
| 298 |
func (x *LocalRateLimitDescriptor) GetEntries() []*RateLimitDescriptor_Entry { |
| 299 |
if x != nil { |
| 300 |
return x.Entries |
| 301 |
} |
| 302 |
return nil |
| 303 |
} |
| 304 |
|
| 305 |
func (x *LocalRateLimitDescriptor) GetTokenBucket() *v3.TokenBucket { |
| 306 |
if x != nil { |
| 307 |
return x.TokenBucket |
| 308 |
} |
| 309 |
return nil |
| 310 |
} |
| 311 |
|
| 312 |
// Configuration used to enable local cluster level rate limiting where the token buckets |
| 313 |
// will be shared across all the Envoy instances in the local cluster. |
| 314 |
// A share will be calculated based on the membership of the local cluster dynamically |
| 315 |
// and the configuration. When the limiter refilling the token bucket, the share will be |
| 316 |
// applied. By default, the token bucket will be shared evenly. |
| 317 |
// |
| 318 |
// See :ref:`local cluster name |
| 319 |
// <envoy_v3_api_field_config.bootstrap.v3.ClusterManager.local_cluster_name>` for more context |
| 320 |
// about local cluster. |
| 321 |
type LocalClusterRateLimit struct { |
| 322 |
state protoimpl.MessageState |
| 323 |
sizeCache protoimpl.SizeCache |
| 324 |
unknownFields protoimpl.UnknownFields |
| 325 |
} |
| 326 |
|
| 327 |
func (x *LocalClusterRateLimit) Reset() { |
| 328 |
*x = LocalClusterRateLimit{} |
| 329 |
if protoimpl.UnsafeEnabled { |
| 330 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[2] |
| 331 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 332 |
ms.StoreMessageInfo(mi) |
| 333 |
} |
| 334 |
} |
| 335 |
|
| 336 |
func (x *LocalClusterRateLimit) String() string { |
| 337 |
return protoimpl.X.MessageStringOf(x) |
| 338 |
} |
| 339 |
|
| 340 |
func (*LocalClusterRateLimit) ProtoMessage() {} |
| 341 |
|
| 342 |
func (x *LocalClusterRateLimit) ProtoReflect() protoreflect.Message { |
| 343 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[2] |
| 344 |
if protoimpl.UnsafeEnabled && x != nil { |
| 345 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 346 |
if ms.LoadMessageInfo() == nil { |
| 347 |
ms.StoreMessageInfo(mi) |
| 348 |
} |
| 349 |
return ms |
| 350 |
} |
| 351 |
return mi.MessageOf(x) |
| 352 |
} |
| 353 |
|
| 354 |
// Deprecated: Use LocalClusterRateLimit.ProtoReflect.Descriptor instead. |
| 355 |
func (*LocalClusterRateLimit) Descriptor() ([]byte, []int) { |
| 356 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{2} |
| 357 |
} |
| 358 |
|
| 359 |
type RateLimitDescriptor_Entry struct { |
| 360 |
state protoimpl.MessageState |
| 361 |
sizeCache protoimpl.SizeCache |
| 362 |
unknownFields protoimpl.UnknownFields |
| 363 |
|
| 364 |
// Descriptor key. |
| 365 |
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 366 |
// Descriptor value. |
| 367 |
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 368 |
} |
| 369 |
|
| 370 |
func (x *RateLimitDescriptor_Entry) Reset() { |
| 371 |
*x = RateLimitDescriptor_Entry{} |
| 372 |
if protoimpl.UnsafeEnabled { |
| 373 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[3] |
| 374 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 375 |
ms.StoreMessageInfo(mi) |
| 376 |
} |
| 377 |
} |
| 378 |
|
| 379 |
func (x *RateLimitDescriptor_Entry) String() string { |
| 380 |
return protoimpl.X.MessageStringOf(x) |
| 381 |
} |
| 382 |
|
| 383 |
func (*RateLimitDescriptor_Entry) ProtoMessage() {} |
| 384 |
|
| 385 |
func (x *RateLimitDescriptor_Entry) ProtoReflect() protoreflect.Message { |
| 386 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[3] |
| 387 |
if protoimpl.UnsafeEnabled && x != nil { |
| 388 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 389 |
if ms.LoadMessageInfo() == nil { |
| 390 |
ms.StoreMessageInfo(mi) |
| 391 |
} |
| 392 |
return ms |
| 393 |
} |
| 394 |
return mi.MessageOf(x) |
| 395 |
} |
| 396 |
|
| 397 |
// Deprecated: Use RateLimitDescriptor_Entry.ProtoReflect.Descriptor instead. |
| 398 |
func (*RateLimitDescriptor_Entry) Descriptor() ([]byte, []int) { |
| 399 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{0, 0} |
| 400 |
} |
| 401 |
|
| 402 |
func (x *RateLimitDescriptor_Entry) GetKey() string { |
| 403 |
if x != nil { |
| 404 |
return x.Key |
| 405 |
} |
| 406 |
return "" |
| 407 |
} |
| 408 |
|
| 409 |
func (x *RateLimitDescriptor_Entry) GetValue() string { |
| 410 |
if x != nil { |
| 411 |
return x.Value |
| 412 |
} |
| 413 |
return "" |
| 414 |
} |
| 415 |
|
| 416 |
// Override rate limit to apply to this descriptor instead of the limit |
| 417 |
// configured in the rate limit service. See :ref:`rate limit override |
| 418 |
// <config_http_filters_rate_limit_rate_limit_override>` for more information. |
| 419 |
type RateLimitDescriptor_RateLimitOverride struct { |
| 420 |
state protoimpl.MessageState |
| 421 |
sizeCache protoimpl.SizeCache |
| 422 |
unknownFields protoimpl.UnknownFields |
| 423 |
|
| 424 |
// The number of requests per unit of time. |
| 425 |
RequestsPerUnit uint32 `protobuf:"varint,1,opt,name=requests_per_unit,json=requestsPerUnit,proto3" json:"requests_per_unit,omitempty"` |
| 426 |
// The unit of time. |
| 427 |
Unit v3.RateLimitUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=envoy.type.v3.RateLimitUnit" json:"unit,omitempty"` |
| 428 |
} |
| 429 |
|
| 430 |
func (x *RateLimitDescriptor_RateLimitOverride) Reset() { |
| 431 |
*x = RateLimitDescriptor_RateLimitOverride{} |
| 432 |
if protoimpl.UnsafeEnabled { |
| 433 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[4] |
| 434 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 435 |
ms.StoreMessageInfo(mi) |
| 436 |
} |
| 437 |
} |
| 438 |
|
| 439 |
func (x *RateLimitDescriptor_RateLimitOverride) String() string { |
| 440 |
return protoimpl.X.MessageStringOf(x) |
| 441 |
} |
| 442 |
|
| 443 |
func (*RateLimitDescriptor_RateLimitOverride) ProtoMessage() {} |
| 444 |
|
| 445 |
func (x *RateLimitDescriptor_RateLimitOverride) ProtoReflect() protoreflect.Message { |
| 446 |
mi := &file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[4] |
| 447 |
if protoimpl.UnsafeEnabled && x != nil { |
| 448 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 449 |
if ms.LoadMessageInfo() == nil { |
| 450 |
ms.StoreMessageInfo(mi) |
| 451 |
} |
| 452 |
return ms |
| 453 |
} |
| 454 |
return mi.MessageOf(x) |
| 455 |
} |
| 456 |
|
| 457 |
// Deprecated: Use RateLimitDescriptor_RateLimitOverride.ProtoReflect.Descriptor instead. |
| 458 |
func (*RateLimitDescriptor_RateLimitOverride) Descriptor() ([]byte, []int) { |
| 459 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP(), []int{0, 1} |
| 460 |
} |
| 461 |
|
| 462 |
func (x *RateLimitDescriptor_RateLimitOverride) GetRequestsPerUnit() uint32 { |
| 463 |
if x != nil { |
| 464 |
return x.RequestsPerUnit |
| 465 |
} |
| 466 |
return 0 |
| 467 |
} |
| 468 |
|
| 469 |
func (x *RateLimitDescriptor_RateLimitOverride) GetUnit() v3.RateLimitUnit { |
| 470 |
if x != nil { |
| 471 |
return x.Unit |
| 472 |
} |
| 473 |
return v3.RateLimitUnit(0) |
| 474 |
} |
| 475 |
|
| 476 |
var File_envoy_extensions_common_ratelimit_v3_ratelimit_proto protoreflect.FileDescriptor |
| 477 |
|
| 478 |
var file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDesc = []byte{ |
| 479 |
0x0a, 0x34, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, |
| 480 |
0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, |
| 481 |
0x6d, 0x69, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, |
| 482 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, |
| 483 |
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, |
| 484 |
0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x1a, 0x22, 0x65, 0x6e, |
| 485 |
0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x61, 0x74, 0x65, |
| 486 |
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 487 |
0x1a, 0x20, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x76, 0x33, 0x2f, |
| 488 |
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, |
| 489 |
0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 490 |
0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, |
| 491 |
0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
| 492 |
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 493 |
0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, |
| 494 |
0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, |
| 495 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, |
| 496 |
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x04, |
| 497 |
0x0a, 0x13, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, |
| 498 |
0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x63, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, |
| 499 |
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, |
| 500 |
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, |
| 501 |
0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, |
| 502 |
0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, |
| 503 |
0x72, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, |
| 504 |
0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x05, 0x6c, 0x69, |
| 505 |
0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 506 |
0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, |
| 507 |
0x6d, 0x6f, 0x6e, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, |
| 508 |
0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, |
| 509 |
0x70, 0x74, 0x6f, 0x72, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4f, 0x76, |
| 510 |
0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x3d, 0x0a, |
| 511 |
0x0b, 0x68, 0x69, 0x74, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, |
| 512 |
0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 513 |
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 514 |
0x52, 0x0a, 0x68, 0x69, 0x74, 0x73, 0x41, 0x64, 0x64, 0x65, 0x6e, 0x64, 0x1a, 0x7a, 0x0a, 0x05, |
| 515 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 516 |
0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, |
| 517 |
0x12, 0x1d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 518 |
0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, |
| 519 |
0x37, 0x9a, 0xc5, 0x88, 0x1e, 0x32, 0x0a, 0x30, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, |
| 520 |
0x69, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x52, |
| 521 |
0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, |
| 522 |
0x6f, 0x72, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x1a, 0x7b, 0x0a, 0x11, 0x52, 0x61, 0x74, 0x65, |
| 523 |
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x2a, 0x0a, |
| 524 |
0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x75, 0x6e, |
| 525 |
0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 526 |
0x74, 0x73, 0x50, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x3a, 0x0a, 0x04, 0x75, 0x6e, 0x69, |
| 527 |
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, |
| 528 |
0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, |
| 529 |
0x74, 0x55, 0x6e, 0x69, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, |
| 530 |
0x04, 0x75, 0x6e, 0x69, 0x74, 0x3a, 0x31, 0x9a, 0xc5, 0x88, 0x1e, 0x2c, 0x0a, 0x2a, 0x65, 0x6e, |
| 531 |
0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, |
| 532 |
0x69, 0x6d, 0x69, 0x74, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, |
| 533 |
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x22, 0xc8, 0x01, 0x0a, 0x18, 0x4c, 0x6f, 0x63, |
| 534 |
0x61, 0x6c, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, |
| 535 |
0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x63, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, |
| 536 |
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, |
| 537 |
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, |
| 538 |
0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, |
| 539 |
0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, |
| 540 |
0x72, 0x2e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, |
| 541 |
0x01, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0c, 0x74, 0x6f, |
| 542 |
0x6b, 0x65, 0x6e, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 543 |
0x32, 0x1a, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x33, |
| 544 |
0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x08, 0xfa, 0x42, |
| 545 |
0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x75, 0x63, |
| 546 |
0x6b, 0x65, 0x74, 0x22, 0x17, 0x0a, 0x15, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x6c, 0x75, 0x73, |
| 547 |
0x74, 0x65, 0x72, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x2a, 0x3c, 0x0a, 0x1b, |
| 548 |
0x58, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, |
| 549 |
0x73, 0x52, 0x46, 0x43, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x07, 0x0a, 0x03, 0x4f, |
| 550 |
0x46, 0x46, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x52, 0x41, 0x46, 0x54, 0x5f, 0x56, 0x45, |
| 551 |
0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x30, 0x33, 0x10, 0x01, 0x2a, 0x3c, 0x0a, 0x13, 0x56, 0x68, |
| 552 |
0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, |
| 553 |
0x73, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x56, 0x45, 0x52, 0x52, 0x49, 0x44, 0x45, 0x10, 0x00, 0x12, |
| 554 |
0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x43, 0x4c, 0x55, 0x44, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, |
| 555 |
0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x10, 0x02, 0x42, 0xa7, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, |
| 556 |
0x02, 0x10, 0x02, 0x0a, 0x32, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, |
| 557 |
0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, |
| 558 |
0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, |
| 559 |
0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x42, 0x0e, 0x52, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, |
| 560 |
0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x57, 0x67, 0x69, 0x74, 0x68, 0x75, |
| 561 |
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, |
| 562 |
0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, |
| 563 |
0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, |
| 564 |
0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, |
| 565 |
0x6d, 0x69, 0x74, 0x2f, 0x76, 0x33, 0x3b, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, |
| 566 |
0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 567 |
} |
| 568 |
|
| 569 |
var ( |
| 570 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescOnce sync.Once |
| 571 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescData = file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDesc |
| 572 |
) |
| 573 |
|
| 574 |
func file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescGZIP() []byte { |
| 575 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescOnce.Do(func() { |
| 576 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescData) |
| 577 |
}) |
| 578 |
return file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDescData |
| 579 |
} |
| 580 |
|
| 581 |
var file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 582 |
var file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 583 |
var file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_goTypes = []interface{}{ |
| 584 |
(XRateLimitHeadersRFCVersion)(0), // 0: envoy.extensions.common.ratelimit.v3.XRateLimitHeadersRFCVersion |
| 585 |
(VhRateLimitsOptions)(0), // 1: envoy.extensions.common.ratelimit.v3.VhRateLimitsOptions |
| 586 |
(*RateLimitDescriptor)(nil), // 2: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor |
| 587 |
(*LocalRateLimitDescriptor)(nil), // 3: envoy.extensions.common.ratelimit.v3.LocalRateLimitDescriptor |
| 588 |
(*LocalClusterRateLimit)(nil), // 4: envoy.extensions.common.ratelimit.v3.LocalClusterRateLimit |
| 589 |
(*RateLimitDescriptor_Entry)(nil), // 5: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.Entry |
| 590 |
(*RateLimitDescriptor_RateLimitOverride)(nil), // 6: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.RateLimitOverride |
| 591 |
(*wrapperspb.UInt64Value)(nil), // 7: google.protobuf.UInt64Value |
| 592 |
(*v3.TokenBucket)(nil), // 8: envoy.type.v3.TokenBucket |
| 593 |
(v3.RateLimitUnit)(0), // 9: envoy.type.v3.RateLimitUnit |
| 594 |
} |
| 595 |
var file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_depIdxs = []int32{ |
| 596 |
5, // 0: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.entries:type_name -> envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.Entry |
| 597 |
6, // 1: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.limit:type_name -> envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.RateLimitOverride |
| 598 |
7, // 2: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.hits_addend:type_name -> google.protobuf.UInt64Value |
| 599 |
5, // 3: envoy.extensions.common.ratelimit.v3.LocalRateLimitDescriptor.entries:type_name -> envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.Entry |
| 600 |
8, // 4: envoy.extensions.common.ratelimit.v3.LocalRateLimitDescriptor.token_bucket:type_name -> envoy.type.v3.TokenBucket |
| 601 |
9, // 5: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor.RateLimitOverride.unit:type_name -> envoy.type.v3.RateLimitUnit |
| 602 |
6, // [6:6] is the sub-list for method output_type |
| 603 |
6, // [6:6] is the sub-list for method input_type |
| 604 |
6, // [6:6] is the sub-list for extension type_name |
| 605 |
6, // [6:6] is the sub-list for extension extendee |
| 606 |
0, // [0:6] is the sub-list for field type_name |
| 607 |
} |
| 608 |
|
| 609 |
func init() { file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_init() } |
| 610 |
func file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_init() { |
| 611 |
if File_envoy_extensions_common_ratelimit_v3_ratelimit_proto != nil { |
| 612 |
return |
| 613 |
} |
| 614 |
if !protoimpl.UnsafeEnabled { |
| 615 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 616 |
switch v := v.(*RateLimitDescriptor); i { |
| 617 |
case 0: |
| 618 |
return &v.state |
| 619 |
case 1: |
| 620 |
return &v.sizeCache |
| 621 |
case 2: |
| 622 |
return &v.unknownFields |
| 623 |
default: |
| 624 |
return nil |
| 625 |
} |
| 626 |
} |
| 627 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 628 |
switch v := v.(*LocalRateLimitDescriptor); i { |
| 629 |
case 0: |
| 630 |
return &v.state |
| 631 |
case 1: |
| 632 |
return &v.sizeCache |
| 633 |
case 2: |
| 634 |
return &v.unknownFields |
| 635 |
default: |
| 636 |
return nil |
| 637 |
} |
| 638 |
} |
| 639 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 640 |
switch v := v.(*LocalClusterRateLimit); i { |
| 641 |
case 0: |
| 642 |
return &v.state |
| 643 |
case 1: |
| 644 |
return &v.sizeCache |
| 645 |
case 2: |
| 646 |
return &v.unknownFields |
| 647 |
default: |
| 648 |
return nil |
| 649 |
} |
| 650 |
} |
| 651 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 652 |
switch v := v.(*RateLimitDescriptor_Entry); i { |
| 653 |
case 0: |
| 654 |
return &v.state |
| 655 |
case 1: |
| 656 |
return &v.sizeCache |
| 657 |
case 2: |
| 658 |
return &v.unknownFields |
| 659 |
default: |
| 660 |
return nil |
| 661 |
} |
| 662 |
} |
| 663 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 664 |
switch v := v.(*RateLimitDescriptor_RateLimitOverride); i { |
| 665 |
case 0: |
| 666 |
return &v.state |
| 667 |
case 1: |
| 668 |
return &v.sizeCache |
| 669 |
case 2: |
| 670 |
return &v.unknownFields |
| 671 |
default: |
| 672 |
return nil |
| 673 |
} |
| 674 |
} |
| 675 |
} |
| 676 |
type x struct{} |
| 677 |
out := protoimpl.TypeBuilder{ |
| 678 |
File: protoimpl.DescBuilder{ |
| 679 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 680 |
RawDescriptor: file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDesc, |
| 681 |
NumEnums: 2, |
| 682 |
NumMessages: 5, |
| 683 |
NumExtensions: 0, |
| 684 |
NumServices: 0, |
| 685 |
}, |
| 686 |
GoTypes: file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_goTypes, |
| 687 |
DependencyIndexes: file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_depIdxs, |
| 688 |
EnumInfos: file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_enumTypes, |
| 689 |
MessageInfos: file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_msgTypes, |
| 690 |
}.Build() |
| 691 |
File_envoy_extensions_common_ratelimit_v3_ratelimit_proto = out.File |
| 692 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_rawDesc = nil |
| 693 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_goTypes = nil |
| 694 |
file_envoy_extensions_common_ratelimit_v3_ratelimit_proto_depIdxs = nil |
| 695 |
} |