Debian Codegraph @

envoy/service/ratelimit/v3/rls.pb.go

raw
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/service/ratelimit/v3/rls.proto
6
7 package ratelimitv3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 v31 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
12 v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/v3"
13 _ "github.com/envoyproxy/protoc-gen-validate/validate"
14 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
15 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
16 durationpb "google.golang.org/protobuf/types/known/durationpb"
17 structpb "google.golang.org/protobuf/types/known/structpb"
18 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
19 reflect "reflect"
20 sync "sync"
21 )
22
23 const (
24 // Verify that this generated code is sufficiently up-to-date.
25 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
26 // Verify that runtime/protoimpl is sufficiently up-to-date.
27 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
28 )
29
30 type RateLimitResponse_Code int32
31
32 const (
33 // The response code is not known.
34 RateLimitResponse_UNKNOWN RateLimitResponse_Code = 0
35 // The response code to notify that the number of requests are under limit.
36 RateLimitResponse_OK RateLimitResponse_Code = 1
37 // The response code to notify that the number of requests are over limit.
38 RateLimitResponse_OVER_LIMIT RateLimitResponse_Code = 2
39 )
40
41 // Enum value maps for RateLimitResponse_Code.
42 var (
43 RateLimitResponse_Code_name = map[int32]string{
44 0: "UNKNOWN",
45 1: "OK",
46 2: "OVER_LIMIT",
47 }
48 RateLimitResponse_Code_value = map[string]int32{
49 "UNKNOWN": 0,
50 "OK": 1,
51 "OVER_LIMIT": 2,
52 }
53 )
54
55 func (x RateLimitResponse_Code) Enum() *RateLimitResponse_Code {
56 p := new(RateLimitResponse_Code)
57 *p = x
58 return p
59 }
60
61 func (x RateLimitResponse_Code) String() string {
62 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
63 }
64
65 func (RateLimitResponse_Code) Descriptor() protoreflect.EnumDescriptor {
66 return file_envoy_service_ratelimit_v3_rls_proto_enumTypes[0].Descriptor()
67 }
68
69 func (RateLimitResponse_Code) Type() protoreflect.EnumType {
70 return &file_envoy_service_ratelimit_v3_rls_proto_enumTypes[0]
71 }
72
73 func (x RateLimitResponse_Code) Number() protoreflect.EnumNumber {
74 return protoreflect.EnumNumber(x)
75 }
76
77 // Deprecated: Use RateLimitResponse_Code.Descriptor instead.
78 func (RateLimitResponse_Code) EnumDescriptor() ([]byte, []int) {
79 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{1, 0}
80 }
81
82 // Identifies the unit of of time for rate limit.
83 // [#comment: replace by envoy/type/v3/ratelimit_unit.proto in v4]
84 type RateLimitResponse_RateLimit_Unit int32
85
86 const (
87 // The time unit is not known.
88 RateLimitResponse_RateLimit_UNKNOWN RateLimitResponse_RateLimit_Unit = 0
89 // The time unit representing a second.
90 RateLimitResponse_RateLimit_SECOND RateLimitResponse_RateLimit_Unit = 1
91 // The time unit representing a minute.
92 RateLimitResponse_RateLimit_MINUTE RateLimitResponse_RateLimit_Unit = 2
93 // The time unit representing an hour.
94 RateLimitResponse_RateLimit_HOUR RateLimitResponse_RateLimit_Unit = 3
95 // The time unit representing a day.
96 RateLimitResponse_RateLimit_DAY RateLimitResponse_RateLimit_Unit = 4
97 // The time unit representing a week.
98 RateLimitResponse_RateLimit_WEEK RateLimitResponse_RateLimit_Unit = 7
99 // The time unit representing a month.
100 RateLimitResponse_RateLimit_MONTH RateLimitResponse_RateLimit_Unit = 5
101 // The time unit representing a year.
102 RateLimitResponse_RateLimit_YEAR RateLimitResponse_RateLimit_Unit = 6
103 )
104
105 // Enum value maps for RateLimitResponse_RateLimit_Unit.
106 var (
107 RateLimitResponse_RateLimit_Unit_name = map[int32]string{
108 0: "UNKNOWN",
109 1: "SECOND",
110 2: "MINUTE",
111 3: "HOUR",
112 4: "DAY",
113 7: "WEEK",
114 5: "MONTH",
115 6: "YEAR",
116 }
117 RateLimitResponse_RateLimit_Unit_value = map[string]int32{
118 "UNKNOWN": 0,
119 "SECOND": 1,
120 "MINUTE": 2,
121 "HOUR": 3,
122 "DAY": 4,
123 "WEEK": 7,
124 "MONTH": 5,
125 "YEAR": 6,
126 }
127 )
128
129 func (x RateLimitResponse_RateLimit_Unit) Enum() *RateLimitResponse_RateLimit_Unit {
130 p := new(RateLimitResponse_RateLimit_Unit)
131 *p = x
132 return p
133 }
134
135 func (x RateLimitResponse_RateLimit_Unit) String() string {
136 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
137 }
138
139 func (RateLimitResponse_RateLimit_Unit) Descriptor() protoreflect.EnumDescriptor {
140 return file_envoy_service_ratelimit_v3_rls_proto_enumTypes[1].Descriptor()
141 }
142
143 func (RateLimitResponse_RateLimit_Unit) Type() protoreflect.EnumType {
144 return &file_envoy_service_ratelimit_v3_rls_proto_enumTypes[1]
145 }
146
147 func (x RateLimitResponse_RateLimit_Unit) Number() protoreflect.EnumNumber {
148 return protoreflect.EnumNumber(x)
149 }
150
151 // Deprecated: Use RateLimitResponse_RateLimit_Unit.Descriptor instead.
152 func (RateLimitResponse_RateLimit_Unit) EnumDescriptor() ([]byte, []int) {
153 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{1, 0, 0}
154 }
155
156 // Main message for a rate limit request. The rate limit service is designed to be fully generic
157 // in the sense that it can operate on arbitrary hierarchical key/value pairs. The loaded
158 // configuration will parse the request and find the most specific limit to apply. In addition,
159 // a RateLimitRequest can contain multiple "descriptors" to limit on. When multiple descriptors
160 // are provided, the server will limit on *ALL* of them and return an OVER_LIMIT response if any
161 // of them are over limit. This enables more complex application level rate limiting scenarios
162 // if desired.
163 type RateLimitRequest struct {
164 state protoimpl.MessageState
165 sizeCache protoimpl.SizeCache
166 unknownFields protoimpl.UnknownFields
167
168 // All rate limit requests must specify a domain. This enables the configuration to be per
169 // application without fear of overlap. E.g., "envoy".
170 Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
171 // All rate limit requests must specify at least one RateLimitDescriptor. Each descriptor is
172 // processed by the service (see below). If any of the descriptors are over limit, the entire
173 // request is considered to be over limit.
174 Descriptors []*v3.RateLimitDescriptor `protobuf:"bytes,2,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
175 // Rate limit requests can optionally specify the number of hits a request adds to the matched
176 // limit. If the value is not set in the message, a request increases the matched limit by 1.
177 // This value can be overridden by setting filter state value “envoy.ratelimit.hits_addend“
178 // to the desired number. Invalid number (< 0) or number will be ignored.
179 HitsAddend uint32 `protobuf:"varint,3,opt,name=hits_addend,json=hitsAddend,proto3" json:"hits_addend,omitempty"`
180 }
181
182 func (x *RateLimitRequest) Reset() {
183 *x = RateLimitRequest{}
184 if protoimpl.UnsafeEnabled {
185 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[0]
186 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
187 ms.StoreMessageInfo(mi)
188 }
189 }
190
191 func (x *RateLimitRequest) String() string {
192 return protoimpl.X.MessageStringOf(x)
193 }
194
195 func (*RateLimitRequest) ProtoMessage() {}
196
197 func (x *RateLimitRequest) ProtoReflect() protoreflect.Message {
198 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[0]
199 if protoimpl.UnsafeEnabled && x != nil {
200 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
201 if ms.LoadMessageInfo() == nil {
202 ms.StoreMessageInfo(mi)
203 }
204 return ms
205 }
206 return mi.MessageOf(x)
207 }
208
209 // Deprecated: Use RateLimitRequest.ProtoReflect.Descriptor instead.
210 func (*RateLimitRequest) Descriptor() ([]byte, []int) {
211 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{0}
212 }
213
214 func (x *RateLimitRequest) GetDomain() string {
215 if x != nil {
216 return x.Domain
217 }
218 return ""
219 }
220
221 func (x *RateLimitRequest) GetDescriptors() []*v3.RateLimitDescriptor {
222 if x != nil {
223 return x.Descriptors
224 }
225 return nil
226 }
227
228 func (x *RateLimitRequest) GetHitsAddend() uint32 {
229 if x != nil {
230 return x.HitsAddend
231 }
232 return 0
233 }
234
235 // A response from a ShouldRateLimit call.
236 // [#next-free-field: 8]
237 type RateLimitResponse struct {
238 state protoimpl.MessageState
239 sizeCache protoimpl.SizeCache
240 unknownFields protoimpl.UnknownFields
241
242 // The overall response code which takes into account all of the descriptors that were passed
243 // in the RateLimitRequest message.
244 OverallCode RateLimitResponse_Code `protobuf:"varint,1,opt,name=overall_code,json=overallCode,proto3,enum=envoy.service.ratelimit.v3.RateLimitResponse_Code" json:"overall_code,omitempty"`
245 // A list of DescriptorStatus messages which matches the length of the descriptor list passed
246 // in the RateLimitRequest. This can be used by the caller to determine which individual
247 // descriptors failed and/or what the currently configured limits are for all of them.
248 Statuses []*RateLimitResponse_DescriptorStatus `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"`
249 // A list of headers to add to the response
250 ResponseHeadersToAdd []*v31.HeaderValue `protobuf:"bytes,3,rep,name=response_headers_to_add,json=responseHeadersToAdd,proto3" json:"response_headers_to_add,omitempty"`
251 // A list of headers to add to the request when forwarded
252 RequestHeadersToAdd []*v31.HeaderValue `protobuf:"bytes,4,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"`
253 // A response body to send to the downstream client when the response code is not OK.
254 RawBody []byte `protobuf:"bytes,5,opt,name=raw_body,json=rawBody,proto3" json:"raw_body,omitempty"`
255 // Optional response metadata that will be emitted as dynamic metadata to be consumed by the next
256 // filter. This metadata lives in a namespace specified by the canonical name of extension filter
257 // that requires it:
258 //
259 // - :ref:`envoy.filters.http.ratelimit <config_http_filters_ratelimit_dynamic_metadata>` for HTTP filter.
260 // - :ref:`envoy.filters.network.ratelimit <config_network_filters_ratelimit_dynamic_metadata>` for network filter.
261 // - :ref:`envoy.filters.thrift.rate_limit <config_thrift_filters_rate_limit_dynamic_metadata>` for Thrift filter.
262 DynamicMetadata *structpb.Struct `protobuf:"bytes,6,opt,name=dynamic_metadata,json=dynamicMetadata,proto3" json:"dynamic_metadata,omitempty"`
263 // Quota is available for a request if its entire descriptor set has cached quota available.
264 // This is a union of all descriptors in the descriptor set. Clients can use the quota for future matches if and only if the descriptor set matches what was sent in the request that originated this response.
265 //
266 // If quota is available, a RLS request will not be made and the quota will be reduced by 1.
267 // If quota is not available (i.e., a cached entry doesn't exist for a RLS descriptor set), a RLS request will be triggered.
268 // If the server did not provide a quota, such as the quota message is empty then the request admission is determined by the
269 // :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`.
270 //
271 // If there is not sufficient quota and the cached entry exists for a RLS descriptor set is out-of-quota but not expired,
272 // the request will be treated as OVER_LIMIT.
273 // [#not-implemented-hide:]
274 Quota *RateLimitResponse_Quota `protobuf:"bytes,7,opt,name=quota,proto3" json:"quota,omitempty"`
275 }
276
277 func (x *RateLimitResponse) Reset() {
278 *x = RateLimitResponse{}
279 if protoimpl.UnsafeEnabled {
280 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[1]
281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
282 ms.StoreMessageInfo(mi)
283 }
284 }
285
286 func (x *RateLimitResponse) String() string {
287 return protoimpl.X.MessageStringOf(x)
288 }
289
290 func (*RateLimitResponse) ProtoMessage() {}
291
292 func (x *RateLimitResponse) ProtoReflect() protoreflect.Message {
293 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[1]
294 if protoimpl.UnsafeEnabled && x != nil {
295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
296 if ms.LoadMessageInfo() == nil {
297 ms.StoreMessageInfo(mi)
298 }
299 return ms
300 }
301 return mi.MessageOf(x)
302 }
303
304 // Deprecated: Use RateLimitResponse.ProtoReflect.Descriptor instead.
305 func (*RateLimitResponse) Descriptor() ([]byte, []int) {
306 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{1}
307 }
308
309 func (x *RateLimitResponse) GetOverallCode() RateLimitResponse_Code {
310 if x != nil {
311 return x.OverallCode
312 }
313 return RateLimitResponse_UNKNOWN
314 }
315
316 func (x *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus {
317 if x != nil {
318 return x.Statuses
319 }
320 return nil
321 }
322
323 func (x *RateLimitResponse) GetResponseHeadersToAdd() []*v31.HeaderValue {
324 if x != nil {
325 return x.ResponseHeadersToAdd
326 }
327 return nil
328 }
329
330 func (x *RateLimitResponse) GetRequestHeadersToAdd() []*v31.HeaderValue {
331 if x != nil {
332 return x.RequestHeadersToAdd
333 }
334 return nil
335 }
336
337 func (x *RateLimitResponse) GetRawBody() []byte {
338 if x != nil {
339 return x.RawBody
340 }
341 return nil
342 }
343
344 func (x *RateLimitResponse) GetDynamicMetadata() *structpb.Struct {
345 if x != nil {
346 return x.DynamicMetadata
347 }
348 return nil
349 }
350
351 func (x *RateLimitResponse) GetQuota() *RateLimitResponse_Quota {
352 if x != nil {
353 return x.Quota
354 }
355 return nil
356 }
357
358 // Defines an actual rate limit in terms of requests per unit of time and the unit itself.
359 type RateLimitResponse_RateLimit struct {
360 state protoimpl.MessageState
361 sizeCache protoimpl.SizeCache
362 unknownFields protoimpl.UnknownFields
363
364 // A name or description of this limit.
365 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
366 // The number of requests per unit of time.
367 RequestsPerUnit uint32 `protobuf:"varint,1,opt,name=requests_per_unit,json=requestsPerUnit,proto3" json:"requests_per_unit,omitempty"`
368 // The unit of time.
369 Unit RateLimitResponse_RateLimit_Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=envoy.service.ratelimit.v3.RateLimitResponse_RateLimit_Unit" json:"unit,omitempty"`
370 }
371
372 func (x *RateLimitResponse_RateLimit) Reset() {
373 *x = RateLimitResponse_RateLimit{}
374 if protoimpl.UnsafeEnabled {
375 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[2]
376 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
377 ms.StoreMessageInfo(mi)
378 }
379 }
380
381 func (x *RateLimitResponse_RateLimit) String() string {
382 return protoimpl.X.MessageStringOf(x)
383 }
384
385 func (*RateLimitResponse_RateLimit) ProtoMessage() {}
386
387 func (x *RateLimitResponse_RateLimit) ProtoReflect() protoreflect.Message {
388 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[2]
389 if protoimpl.UnsafeEnabled && x != nil {
390 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
391 if ms.LoadMessageInfo() == nil {
392 ms.StoreMessageInfo(mi)
393 }
394 return ms
395 }
396 return mi.MessageOf(x)
397 }
398
399 // Deprecated: Use RateLimitResponse_RateLimit.ProtoReflect.Descriptor instead.
400 func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) {
401 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{1, 0}
402 }
403
404 func (x *RateLimitResponse_RateLimit) GetName() string {
405 if x != nil {
406 return x.Name
407 }
408 return ""
409 }
410
411 func (x *RateLimitResponse_RateLimit) GetRequestsPerUnit() uint32 {
412 if x != nil {
413 return x.RequestsPerUnit
414 }
415 return 0
416 }
417
418 func (x *RateLimitResponse_RateLimit) GetUnit() RateLimitResponse_RateLimit_Unit {
419 if x != nil {
420 return x.Unit
421 }
422 return RateLimitResponse_RateLimit_UNKNOWN
423 }
424
425 // Cacheable quota for responses.
426 // Quota can be granted at different levels: either for each individual descriptor or for the whole descriptor set.
427 // This is a certain number of requests over a period of time.
428 // The client may cache this result and apply the effective RateLimitResponse to future matching
429 // requests without querying rate limit service.
430 //
431 // When quota expires due to timeout, a new RLS request will also be made.
432 // The implementation may choose to preemptively query the rate limit server for more quota on or
433 // before expiration or before the available quota runs out.
434 // [#not-implemented-hide:]
435 type RateLimitResponse_Quota struct {
436 state protoimpl.MessageState
437 sizeCache protoimpl.SizeCache
438 unknownFields protoimpl.UnknownFields
439
440 // Number of matching requests granted in quota. Must be 1 or more.
441 Requests uint32 `protobuf:"varint,1,opt,name=requests,proto3" json:"requests,omitempty"`
442 // Types that are assignable to ExpirationSpecifier:
443 //
444 // *RateLimitResponse_Quota_ValidUntil
445 ExpirationSpecifier isRateLimitResponse_Quota_ExpirationSpecifier `protobuf_oneof:"expiration_specifier"`
446 // The unique id that is associated with each Quota either at individual descriptor level or whole descriptor set level.
447 //
448 // For a matching policy with boolean logic, for example, match: "request.headers['environment'] == 'staging' || request.headers['environment'] == 'dev'"),
449 // the request_headers action produces a distinct list of descriptors for each possible value of the ‘environment’ header even though the granted quota is same.
450 // Thus, the client will use this id information (returned from RLS server) to correctly correlate the multiple descriptors/descriptor sets that have been granted with same quota (i.e., share the same quota among multiple descriptors or descriptor sets.)
451 //
452 // If id is empty, this id field will be ignored. If quota for the same id changes (e.g. due to configuration update), the old quota will be overridden by the new one. Shared quotas referenced by ID will still adhere to expiration after `valid_until`.
453 Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
454 }
455
456 func (x *RateLimitResponse_Quota) Reset() {
457 *x = RateLimitResponse_Quota{}
458 if protoimpl.UnsafeEnabled {
459 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[3]
460 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
461 ms.StoreMessageInfo(mi)
462 }
463 }
464
465 func (x *RateLimitResponse_Quota) String() string {
466 return protoimpl.X.MessageStringOf(x)
467 }
468
469 func (*RateLimitResponse_Quota) ProtoMessage() {}
470
471 func (x *RateLimitResponse_Quota) ProtoReflect() protoreflect.Message {
472 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[3]
473 if protoimpl.UnsafeEnabled && x != nil {
474 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
475 if ms.LoadMessageInfo() == nil {
476 ms.StoreMessageInfo(mi)
477 }
478 return ms
479 }
480 return mi.MessageOf(x)
481 }
482
483 // Deprecated: Use RateLimitResponse_Quota.ProtoReflect.Descriptor instead.
484 func (*RateLimitResponse_Quota) Descriptor() ([]byte, []int) {
485 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{1, 1}
486 }
487
488 func (x *RateLimitResponse_Quota) GetRequests() uint32 {
489 if x != nil {
490 return x.Requests
491 }
492 return 0
493 }
494
495 func (m *RateLimitResponse_Quota) GetExpirationSpecifier() isRateLimitResponse_Quota_ExpirationSpecifier {
496 if m != nil {
497 return m.ExpirationSpecifier
498 }
499 return nil
500 }
501
502 func (x *RateLimitResponse_Quota) GetValidUntil() *timestamppb.Timestamp {
503 if x, ok := x.GetExpirationSpecifier().(*RateLimitResponse_Quota_ValidUntil); ok {
504 return x.ValidUntil
505 }
506 return nil
507 }
508
509 func (x *RateLimitResponse_Quota) GetId() string {
510 if x != nil {
511 return x.Id
512 }
513 return ""
514 }
515
516 type isRateLimitResponse_Quota_ExpirationSpecifier interface {
517 isRateLimitResponse_Quota_ExpirationSpecifier()
518 }
519
520 type RateLimitResponse_Quota_ValidUntil struct {
521 // Point in time at which the quota expires.
522 ValidUntil *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=valid_until,json=validUntil,proto3,oneof"`
523 }
524
525 func (*RateLimitResponse_Quota_ValidUntil) isRateLimitResponse_Quota_ExpirationSpecifier() {}
526
527 // [#next-free-field: 6]
528 type RateLimitResponse_DescriptorStatus struct {
529 state protoimpl.MessageState
530 sizeCache protoimpl.SizeCache
531 unknownFields protoimpl.UnknownFields
532
533 // The response code for an individual descriptor.
534 Code RateLimitResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=envoy.service.ratelimit.v3.RateLimitResponse_Code" json:"code,omitempty"`
535 // The current limit as configured by the server. Useful for debugging, etc.
536 CurrentLimit *RateLimitResponse_RateLimit `protobuf:"bytes,2,opt,name=current_limit,json=currentLimit,proto3" json:"current_limit,omitempty"`
537 // The limit remaining in the current time unit.
538 LimitRemaining uint32 `protobuf:"varint,3,opt,name=limit_remaining,json=limitRemaining,proto3" json:"limit_remaining,omitempty"`
539 // Duration until reset of the current limit window.
540 DurationUntilReset *durationpb.Duration `protobuf:"bytes,4,opt,name=duration_until_reset,json=durationUntilReset,proto3" json:"duration_until_reset,omitempty"`
541 // Quota is available for a request if its descriptor set has cached quota available for all
542 // descriptors.
543 // This is for each individual descriptor in the descriptor set. The client will perform matches for each individual descriptor against available per-descriptor quota.
544 //
545 // If quota is available, a RLS request will not be made and the quota will be reduced by 1 for
546 // all matching descriptors.
547 //
548 // If there is not sufficient quota, there are three cases:
549 // 1. A cached entry exists for a RLS descriptor that is out-of-quota, but not expired.
550 // In this case, the request will be treated as OVER_LIMIT.
551 // 2. Some RLS descriptors have a cached entry that has valid quota but some RLS descriptors
552 // have no cached entry. This will trigger a new RLS request.
553 // When the result is returned, a single unit will be consumed from the quota for all
554 // matching descriptors.
555 // If the server did not provide a quota, such as the quota message is empty for some of
556 // the descriptors, then the request admission is determined by the
557 // :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`.
558 // 3. All RLS descriptors lack a cached entry, this will trigger a new RLS request,
559 // When the result is returned, a single unit will be consumed from the quota for all
560 // matching descriptors.
561 // If the server did not provide a quota, such as the quota message is empty for some of
562 // the descriptors, then the request admission is determined by the
563 // :ref:`overall_code <envoy_v3_api_field_service.ratelimit.v3.RateLimitResponse.overall_code>`.
564 //
565 // [#not-implemented-hide:]
566 Quota *RateLimitResponse_Quota `protobuf:"bytes,5,opt,name=quota,proto3" json:"quota,omitempty"`
567 }
568
569 func (x *RateLimitResponse_DescriptorStatus) Reset() {
570 *x = RateLimitResponse_DescriptorStatus{}
571 if protoimpl.UnsafeEnabled {
572 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[4]
573 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
574 ms.StoreMessageInfo(mi)
575 }
576 }
577
578 func (x *RateLimitResponse_DescriptorStatus) String() string {
579 return protoimpl.X.MessageStringOf(x)
580 }
581
582 func (*RateLimitResponse_DescriptorStatus) ProtoMessage() {}
583
584 func (x *RateLimitResponse_DescriptorStatus) ProtoReflect() protoreflect.Message {
585 mi := &file_envoy_service_ratelimit_v3_rls_proto_msgTypes[4]
586 if protoimpl.UnsafeEnabled && x != nil {
587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
588 if ms.LoadMessageInfo() == nil {
589 ms.StoreMessageInfo(mi)
590 }
591 return ms
592 }
593 return mi.MessageOf(x)
594 }
595
596 // Deprecated: Use RateLimitResponse_DescriptorStatus.ProtoReflect.Descriptor instead.
597 func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) {
598 return file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP(), []int{1, 2}
599 }
600
601 func (x *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code {
602 if x != nil {
603 return x.Code
604 }
605 return RateLimitResponse_UNKNOWN
606 }
607
608 func (x *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit {
609 if x != nil {
610 return x.CurrentLimit
611 }
612 return nil
613 }
614
615 func (x *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 {
616 if x != nil {
617 return x.LimitRemaining
618 }
619 return 0
620 }
621
622 func (x *RateLimitResponse_DescriptorStatus) GetDurationUntilReset() *durationpb.Duration {
623 if x != nil {
624 return x.DurationUntilReset
625 }
626 return nil
627 }
628
629 func (x *RateLimitResponse_DescriptorStatus) GetQuota() *RateLimitResponse_Quota {
630 if x != nil {
631 return x.Quota
632 }
633 return nil
634 }
635
636 var File_envoy_service_ratelimit_v3_rls_proto protoreflect.FileDescriptor
637
638 var file_envoy_service_ratelimit_v3_rls_proto_rawDesc = []byte{
639 0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f,
640 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x6c, 0x73,
641 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65,
642 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e,
643 0x76, 0x33, 0x1a, 0x1f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
644 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72,
645 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e,
646 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x72, 0x61, 0x74,
647 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69,
648 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
649 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,
650 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
651 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63,
652 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
653 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
654 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61,
655 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75,
656 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, 0x6e,
657 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
658 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69,
659 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72,
660 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x10, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69,
661 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
662 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
663 0x12, 0x5b, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x18,
664 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78,
665 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
666 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74,
667 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
668 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x1f, 0x0a,
669 0x0b, 0x68, 0x69, 0x74, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01,
670 0x28, 0x0d, 0x52, 0x0a, 0x68, 0x69, 0x74, 0x73, 0x41, 0x64, 0x64, 0x65, 0x6e, 0x64, 0x3a, 0x32,
671 0x9a, 0xc5, 0x88, 0x1e, 0x2d, 0x0a, 0x2b, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72,
672 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76,
673 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
674 0x73, 0x74, 0x22, 0x9a, 0x0c, 0x0a, 0x11, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
675 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0c, 0x6f, 0x76, 0x65, 0x72,
676 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32,
677 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72,
678 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65,
679 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f,
680 0x64, 0x65, 0x52, 0x0b, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12,
681 0x5a, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
682 0x0b, 0x32, 0x3e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
683 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52,
684 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
685 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75,
686 0x73, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x17, 0x72,
687 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f,
688 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65,
689 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65,
690 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52,
691 0x14, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73,
692 0x54, 0x6f, 0x41, 0x64, 0x64, 0x12, 0x56, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
693 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64, 0x18,
694 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f,
695 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x65, 0x61,
696 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
697 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x54, 0x6f, 0x41, 0x64, 0x64, 0x12, 0x19, 0x0a,
698 0x08, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52,
699 0x07, 0x72, 0x61, 0x77, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x42, 0x0a, 0x10, 0x64, 0x79, 0x6e, 0x61,
700 0x6d, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01,
701 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
702 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0f, 0x64, 0x79, 0x6e,
703 0x61, 0x6d, 0x69, 0x63, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x49, 0x0a, 0x05,
704 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6e,
705 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65,
706 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d,
707 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61,
708 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x1a, 0xbb, 0x02, 0x0a, 0x09, 0x52, 0x61, 0x74, 0x65,
709 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
710 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x71,
711 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x01,
712 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x50, 0x65,
713 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x50, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20,
714 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76,
715 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33,
716 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
717 0x73, 0x65, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x55, 0x6e, 0x69,
718 0x74, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x5d, 0x0a, 0x04, 0x55, 0x6e, 0x69, 0x74, 0x12,
719 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
720 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x49, 0x4e, 0x55,
721 0x54, 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x55, 0x52, 0x10, 0x03, 0x12, 0x07,
722 0x0a, 0x03, 0x44, 0x41, 0x59, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x57, 0x45, 0x45, 0x4b, 0x10,
723 0x07, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x05, 0x12, 0x08, 0x0a, 0x04,
724 0x59, 0x45, 0x41, 0x52, 0x10, 0x06, 0x3a, 0x3d, 0x9a, 0xc5, 0x88, 0x1e, 0x38, 0x0a, 0x36, 0x65,
725 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74,
726 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69,
727 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x61, 0x74, 0x65,
728 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x1a, 0x93, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12,
729 0x23, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
730 0x0d, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x2a, 0x02, 0x20, 0x00, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75,
731 0x65, 0x73, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x75, 0x6e,
732 0x74, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
733 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
734 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x55, 0x6e,
735 0x74, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
736 0x02, 0x69, 0x64, 0x42, 0x16, 0x0a, 0x14, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f,
737 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x72, 0x1a, 0xbf, 0x03, 0x0a, 0x10,
738 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
739 0x12, 0x46, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32,
740 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72,
741 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65,
742 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f,
743 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x5c, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72,
744 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
745 0x37, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
746 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74,
747 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52,
748 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e,
749 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f,
750 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
751 0x0e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12,
752 0x4b, 0x0a, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x6e, 0x74, 0x69,
753 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
754 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
755 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
756 0x6f, 0x6e, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x65, 0x74, 0x12, 0x49, 0x0a, 0x05,
757 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6e,
758 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65,
759 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d,
760 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x51, 0x75, 0x6f, 0x74, 0x61,
761 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x3a, 0x44, 0x9a, 0xc5, 0x88, 0x1e, 0x3f, 0x0a, 0x3d,
762 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61,
763 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c,
764 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x73,
765 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2b, 0x0a,
766 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
767 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x4f, 0x56,
768 0x45, 0x52, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x3a, 0x33, 0x9a, 0xc5, 0x88, 0x1e,
769 0x2e, 0x0a, 0x2c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
770 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61,
771 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32,
772 0x84, 0x01, 0x0a, 0x10, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x65, 0x72,
773 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x52, 0x61,
774 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
775 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69,
776 0x74, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65,
777 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65,
778 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e,
779 0x76, 0x33, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70,
780 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x8d, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10,
781 0x02, 0x0a, 0x28, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79,
782 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72,
783 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x33, 0x42, 0x08, 0x52, 0x6c, 0x73,
784 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
785 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67,
786 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f,
787 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72, 0x61,
788 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x33, 0x3b, 0x72, 0x61, 0x74, 0x65, 0x6c,
789 0x69, 0x6d, 0x69, 0x74, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
790 }
791
792 var (
793 file_envoy_service_ratelimit_v3_rls_proto_rawDescOnce sync.Once
794 file_envoy_service_ratelimit_v3_rls_proto_rawDescData = file_envoy_service_ratelimit_v3_rls_proto_rawDesc
795 )
796
797 func file_envoy_service_ratelimit_v3_rls_proto_rawDescGZIP() []byte {
798 file_envoy_service_ratelimit_v3_rls_proto_rawDescOnce.Do(func() {
799 file_envoy_service_ratelimit_v3_rls_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_ratelimit_v3_rls_proto_rawDescData)
800 })
801 return file_envoy_service_ratelimit_v3_rls_proto_rawDescData
802 }
803
804 var file_envoy_service_ratelimit_v3_rls_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
805 var file_envoy_service_ratelimit_v3_rls_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
806 var file_envoy_service_ratelimit_v3_rls_proto_goTypes = []interface{}{
807 (RateLimitResponse_Code)(0), // 0: envoy.service.ratelimit.v3.RateLimitResponse.Code
808 (RateLimitResponse_RateLimit_Unit)(0), // 1: envoy.service.ratelimit.v3.RateLimitResponse.RateLimit.Unit
809 (*RateLimitRequest)(nil), // 2: envoy.service.ratelimit.v3.RateLimitRequest
810 (*RateLimitResponse)(nil), // 3: envoy.service.ratelimit.v3.RateLimitResponse
811 (*RateLimitResponse_RateLimit)(nil), // 4: envoy.service.ratelimit.v3.RateLimitResponse.RateLimit
812 (*RateLimitResponse_Quota)(nil), // 5: envoy.service.ratelimit.v3.RateLimitResponse.Quota
813 (*RateLimitResponse_DescriptorStatus)(nil), // 6: envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus
814 (*v3.RateLimitDescriptor)(nil), // 7: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor
815 (*v31.HeaderValue)(nil), // 8: envoy.config.core.v3.HeaderValue
816 (*structpb.Struct)(nil), // 9: google.protobuf.Struct
817 (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
818 (*durationpb.Duration)(nil), // 11: google.protobuf.Duration
819 }
820 var file_envoy_service_ratelimit_v3_rls_proto_depIdxs = []int32{
821 7, // 0: envoy.service.ratelimit.v3.RateLimitRequest.descriptors:type_name -> envoy.extensions.common.ratelimit.v3.RateLimitDescriptor
822 0, // 1: envoy.service.ratelimit.v3.RateLimitResponse.overall_code:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.Code
823 6, // 2: envoy.service.ratelimit.v3.RateLimitResponse.statuses:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus
824 8, // 3: envoy.service.ratelimit.v3.RateLimitResponse.response_headers_to_add:type_name -> envoy.config.core.v3.HeaderValue
825 8, // 4: envoy.service.ratelimit.v3.RateLimitResponse.request_headers_to_add:type_name -> envoy.config.core.v3.HeaderValue
826 9, // 5: envoy.service.ratelimit.v3.RateLimitResponse.dynamic_metadata:type_name -> google.protobuf.Struct
827 5, // 6: envoy.service.ratelimit.v3.RateLimitResponse.quota:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.Quota
828 1, // 7: envoy.service.ratelimit.v3.RateLimitResponse.RateLimit.unit:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.RateLimit.Unit
829 10, // 8: envoy.service.ratelimit.v3.RateLimitResponse.Quota.valid_until:type_name -> google.protobuf.Timestamp
830 0, // 9: envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus.code:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.Code
831 4, // 10: envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus.current_limit:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.RateLimit
832 11, // 11: envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus.duration_until_reset:type_name -> google.protobuf.Duration
833 5, // 12: envoy.service.ratelimit.v3.RateLimitResponse.DescriptorStatus.quota:type_name -> envoy.service.ratelimit.v3.RateLimitResponse.Quota
834 2, // 13: envoy.service.ratelimit.v3.RateLimitService.ShouldRateLimit:input_type -> envoy.service.ratelimit.v3.RateLimitRequest
835 3, // 14: envoy.service.ratelimit.v3.RateLimitService.ShouldRateLimit:output_type -> envoy.service.ratelimit.v3.RateLimitResponse
836 14, // [14:15] is the sub-list for method output_type
837 13, // [13:14] is the sub-list for method input_type
838 13, // [13:13] is the sub-list for extension type_name
839 13, // [13:13] is the sub-list for extension extendee
840 0, // [0:13] is the sub-list for field type_name
841 }
842
843 func init() { file_envoy_service_ratelimit_v3_rls_proto_init() }
844 func file_envoy_service_ratelimit_v3_rls_proto_init() {
845 if File_envoy_service_ratelimit_v3_rls_proto != nil {
846 return
847 }
848 if !protoimpl.UnsafeEnabled {
849 file_envoy_service_ratelimit_v3_rls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
850 switch v := v.(*RateLimitRequest); i {
851 case 0:
852 return &v.state
853 case 1:
854 return &v.sizeCache
855 case 2:
856 return &v.unknownFields
857 default:
858 return nil
859 }
860 }
861 file_envoy_service_ratelimit_v3_rls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
862 switch v := v.(*RateLimitResponse); i {
863 case 0:
864 return &v.state
865 case 1:
866 return &v.sizeCache
867 case 2:
868 return &v.unknownFields
869 default:
870 return nil
871 }
872 }
873 file_envoy_service_ratelimit_v3_rls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
874 switch v := v.(*RateLimitResponse_RateLimit); i {
875 case 0:
876 return &v.state
877 case 1:
878 return &v.sizeCache
879 case 2:
880 return &v.unknownFields
881 default:
882 return nil
883 }
884 }
885 file_envoy_service_ratelimit_v3_rls_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
886 switch v := v.(*RateLimitResponse_Quota); i {
887 case 0:
888 return &v.state
889 case 1:
890 return &v.sizeCache
891 case 2:
892 return &v.unknownFields
893 default:
894 return nil
895 }
896 }
897 file_envoy_service_ratelimit_v3_rls_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
898 switch v := v.(*RateLimitResponse_DescriptorStatus); i {
899 case 0:
900 return &v.state
901 case 1:
902 return &v.sizeCache
903 case 2:
904 return &v.unknownFields
905 default:
906 return nil
907 }
908 }
909 }
910 file_envoy_service_ratelimit_v3_rls_proto_msgTypes[3].OneofWrappers = []interface{}{
911 (*RateLimitResponse_Quota_ValidUntil)(nil),
912 }
913 type x struct{}
914 out := protoimpl.TypeBuilder{
915 File: protoimpl.DescBuilder{
916 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
917 RawDescriptor: file_envoy_service_ratelimit_v3_rls_proto_rawDesc,
918 NumEnums: 2,
919 NumMessages: 5,
920 NumExtensions: 0,
921 NumServices: 1,
922 },
923 GoTypes: file_envoy_service_ratelimit_v3_rls_proto_goTypes,
924 DependencyIndexes: file_envoy_service_ratelimit_v3_rls_proto_depIdxs,
925 EnumInfos: file_envoy_service_ratelimit_v3_rls_proto_enumTypes,
926 MessageInfos: file_envoy_service_ratelimit_v3_rls_proto_msgTypes,
927 }.Build()
928 File_envoy_service_ratelimit_v3_rls_proto = out.File
929 file_envoy_service_ratelimit_v3_rls_proto_rawDesc = nil
930 file_envoy_service_ratelimit_v3_rls_proto_goTypes = nil
931 file_envoy_service_ratelimit_v3_rls_proto_depIdxs = nil
932 }