| 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/v2/rls.proto |
| 6 |
|
| 7 |
package ratelimitv2 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" |
| 12 |
ratelimit "github.com/envoyproxy/go-control-plane/envoy/api/v2/ratelimit" |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
sync "sync" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
// Verify that this generated code is sufficiently up-to-date. |
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type RateLimitResponse_Code int32 |
| 27 |
|
| 28 |
const ( |
| 29 |
// The response code is not known. |
| 30 |
RateLimitResponse_UNKNOWN RateLimitResponse_Code = 0 |
| 31 |
// The response code to notify that the number of requests are under limit. |
| 32 |
RateLimitResponse_OK RateLimitResponse_Code = 1 |
| 33 |
// The response code to notify that the number of requests are over limit. |
| 34 |
RateLimitResponse_OVER_LIMIT RateLimitResponse_Code = 2 |
| 35 |
) |
| 36 |
|
| 37 |
// Enum value maps for RateLimitResponse_Code. |
| 38 |
var ( |
| 39 |
RateLimitResponse_Code_name = map[int32]string{ |
| 40 |
0: "UNKNOWN", |
| 41 |
1: "OK", |
| 42 |
2: "OVER_LIMIT", |
| 43 |
} |
| 44 |
RateLimitResponse_Code_value = map[string]int32{ |
| 45 |
"UNKNOWN": 0, |
| 46 |
"OK": 1, |
| 47 |
"OVER_LIMIT": 2, |
| 48 |
} |
| 49 |
) |
| 50 |
|
| 51 |
func (x RateLimitResponse_Code) Enum() *RateLimitResponse_Code { |
| 52 |
p := new(RateLimitResponse_Code) |
| 53 |
*p = x |
| 54 |
return p |
| 55 |
} |
| 56 |
|
| 57 |
func (x RateLimitResponse_Code) String() string { |
| 58 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 59 |
} |
| 60 |
|
| 61 |
func (RateLimitResponse_Code) Descriptor() protoreflect.EnumDescriptor { |
| 62 |
return file_envoy_service_ratelimit_v2_rls_proto_enumTypes[0].Descriptor() |
| 63 |
} |
| 64 |
|
| 65 |
func (RateLimitResponse_Code) Type() protoreflect.EnumType { |
| 66 |
return &file_envoy_service_ratelimit_v2_rls_proto_enumTypes[0] |
| 67 |
} |
| 68 |
|
| 69 |
func (x RateLimitResponse_Code) Number() protoreflect.EnumNumber { |
| 70 |
return protoreflect.EnumNumber(x) |
| 71 |
} |
| 72 |
|
| 73 |
// Deprecated: Use RateLimitResponse_Code.Descriptor instead. |
| 74 |
func (RateLimitResponse_Code) EnumDescriptor() ([]byte, []int) { |
| 75 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP(), []int{1, 0} |
| 76 |
} |
| 77 |
|
| 78 |
type RateLimitResponse_RateLimit_Unit int32 |
| 79 |
|
| 80 |
const ( |
| 81 |
// The time unit is not known. |
| 82 |
RateLimitResponse_RateLimit_UNKNOWN RateLimitResponse_RateLimit_Unit = 0 |
| 83 |
// The time unit representing a second. |
| 84 |
RateLimitResponse_RateLimit_SECOND RateLimitResponse_RateLimit_Unit = 1 |
| 85 |
// The time unit representing a minute. |
| 86 |
RateLimitResponse_RateLimit_MINUTE RateLimitResponse_RateLimit_Unit = 2 |
| 87 |
// The time unit representing an hour. |
| 88 |
RateLimitResponse_RateLimit_HOUR RateLimitResponse_RateLimit_Unit = 3 |
| 89 |
// The time unit representing a day. |
| 90 |
RateLimitResponse_RateLimit_DAY RateLimitResponse_RateLimit_Unit = 4 |
| 91 |
) |
| 92 |
|
| 93 |
// Enum value maps for RateLimitResponse_RateLimit_Unit. |
| 94 |
var ( |
| 95 |
RateLimitResponse_RateLimit_Unit_name = map[int32]string{ |
| 96 |
0: "UNKNOWN", |
| 97 |
1: "SECOND", |
| 98 |
2: "MINUTE", |
| 99 |
3: "HOUR", |
| 100 |
4: "DAY", |
| 101 |
} |
| 102 |
RateLimitResponse_RateLimit_Unit_value = map[string]int32{ |
| 103 |
"UNKNOWN": 0, |
| 104 |
"SECOND": 1, |
| 105 |
"MINUTE": 2, |
| 106 |
"HOUR": 3, |
| 107 |
"DAY": 4, |
| 108 |
} |
| 109 |
) |
| 110 |
|
| 111 |
func (x RateLimitResponse_RateLimit_Unit) Enum() *RateLimitResponse_RateLimit_Unit { |
| 112 |
p := new(RateLimitResponse_RateLimit_Unit) |
| 113 |
*p = x |
| 114 |
return p |
| 115 |
} |
| 116 |
|
| 117 |
func (x RateLimitResponse_RateLimit_Unit) String() string { |
| 118 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 119 |
} |
| 120 |
|
| 121 |
func (RateLimitResponse_RateLimit_Unit) Descriptor() protoreflect.EnumDescriptor { |
| 122 |
return file_envoy_service_ratelimit_v2_rls_proto_enumTypes[1].Descriptor() |
| 123 |
} |
| 124 |
|
| 125 |
func (RateLimitResponse_RateLimit_Unit) Type() protoreflect.EnumType { |
| 126 |
return &file_envoy_service_ratelimit_v2_rls_proto_enumTypes[1] |
| 127 |
} |
| 128 |
|
| 129 |
func (x RateLimitResponse_RateLimit_Unit) Number() protoreflect.EnumNumber { |
| 130 |
return protoreflect.EnumNumber(x) |
| 131 |
} |
| 132 |
|
| 133 |
// Deprecated: Use RateLimitResponse_RateLimit_Unit.Descriptor instead. |
| 134 |
func (RateLimitResponse_RateLimit_Unit) EnumDescriptor() ([]byte, []int) { |
| 135 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP(), []int{1, 0, 0} |
| 136 |
} |
| 137 |
|
| 138 |
// Main message for a rate limit request. The rate limit service is designed to be fully generic |
| 139 |
// in the sense that it can operate on arbitrary hierarchical key/value pairs. The loaded |
| 140 |
// configuration will parse the request and find the most specific limit to apply. In addition, |
| 141 |
// a RateLimitRequest can contain multiple "descriptors" to limit on. When multiple descriptors |
| 142 |
// are provided, the server will limit on *ALL* of them and return an OVER_LIMIT response if any |
| 143 |
// of them are over limit. This enables more complex application level rate limiting scenarios |
| 144 |
// if desired. |
| 145 |
type RateLimitRequest struct { |
| 146 |
state protoimpl.MessageState |
| 147 |
sizeCache protoimpl.SizeCache |
| 148 |
unknownFields protoimpl.UnknownFields |
| 149 |
|
| 150 |
// All rate limit requests must specify a domain. This enables the configuration to be per |
| 151 |
// application without fear of overlap. E.g., "envoy". |
| 152 |
Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` |
| 153 |
// All rate limit requests must specify at least one RateLimitDescriptor. Each descriptor is |
| 154 |
// processed by the service (see below). If any of the descriptors are over limit, the entire |
| 155 |
// request is considered to be over limit. |
| 156 |
Descriptors []*ratelimit.RateLimitDescriptor `protobuf:"bytes,2,rep,name=descriptors,proto3" json:"descriptors,omitempty"` |
| 157 |
// Rate limit requests can optionally specify the number of hits a request adds to the matched |
| 158 |
// limit. If the value is not set in the message, a request increases the matched limit by 1. |
| 159 |
HitsAddend uint32 `protobuf:"varint,3,opt,name=hits_addend,json=hitsAddend,proto3" json:"hits_addend,omitempty"` |
| 160 |
} |
| 161 |
|
| 162 |
func (x *RateLimitRequest) Reset() { |
| 163 |
*x = RateLimitRequest{} |
| 164 |
if protoimpl.UnsafeEnabled { |
| 165 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[0] |
| 166 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 167 |
ms.StoreMessageInfo(mi) |
| 168 |
} |
| 169 |
} |
| 170 |
|
| 171 |
func (x *RateLimitRequest) String() string { |
| 172 |
return protoimpl.X.MessageStringOf(x) |
| 173 |
} |
| 174 |
|
| 175 |
func (*RateLimitRequest) ProtoMessage() {} |
| 176 |
|
| 177 |
func (x *RateLimitRequest) ProtoReflect() protoreflect.Message { |
| 178 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[0] |
| 179 |
if protoimpl.UnsafeEnabled && x != nil { |
| 180 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 181 |
if ms.LoadMessageInfo() == nil { |
| 182 |
ms.StoreMessageInfo(mi) |
| 183 |
} |
| 184 |
return ms |
| 185 |
} |
| 186 |
return mi.MessageOf(x) |
| 187 |
} |
| 188 |
|
| 189 |
// Deprecated: Use RateLimitRequest.ProtoReflect.Descriptor instead. |
| 190 |
func (*RateLimitRequest) Descriptor() ([]byte, []int) { |
| 191 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP(), []int{0} |
| 192 |
} |
| 193 |
|
| 194 |
func (x *RateLimitRequest) GetDomain() string { |
| 195 |
if x != nil { |
| 196 |
return x.Domain |
| 197 |
} |
| 198 |
return "" |
| 199 |
} |
| 200 |
|
| 201 |
func (x *RateLimitRequest) GetDescriptors() []*ratelimit.RateLimitDescriptor { |
| 202 |
if x != nil { |
| 203 |
return x.Descriptors |
| 204 |
} |
| 205 |
return nil |
| 206 |
} |
| 207 |
|
| 208 |
func (x *RateLimitRequest) GetHitsAddend() uint32 { |
| 209 |
if x != nil { |
| 210 |
return x.HitsAddend |
| 211 |
} |
| 212 |
return 0 |
| 213 |
} |
| 214 |
|
| 215 |
// A response from a ShouldRateLimit call. |
| 216 |
type RateLimitResponse struct { |
| 217 |
state protoimpl.MessageState |
| 218 |
sizeCache protoimpl.SizeCache |
| 219 |
unknownFields protoimpl.UnknownFields |
| 220 |
|
| 221 |
// The overall response code which takes into account all of the descriptors that were passed |
| 222 |
// in the RateLimitRequest message. |
| 223 |
OverallCode RateLimitResponse_Code `protobuf:"varint,1,opt,name=overall_code,json=overallCode,proto3,enum=envoy.service.ratelimit.v2.RateLimitResponse_Code" json:"overall_code,omitempty"` |
| 224 |
// A list of DescriptorStatus messages which matches the length of the descriptor list passed |
| 225 |
// in the RateLimitRequest. This can be used by the caller to determine which individual |
| 226 |
// descriptors failed and/or what the currently configured limits are for all of them. |
| 227 |
Statuses []*RateLimitResponse_DescriptorStatus `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"` |
| 228 |
// A list of headers to add to the response |
| 229 |
Headers []*core.HeaderValue `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"` |
| 230 |
// A list of headers to add to the request when forwarded |
| 231 |
RequestHeadersToAdd []*core.HeaderValue `protobuf:"bytes,4,rep,name=request_headers_to_add,json=requestHeadersToAdd,proto3" json:"request_headers_to_add,omitempty"` |
| 232 |
} |
| 233 |
|
| 234 |
func (x *RateLimitResponse) Reset() { |
| 235 |
*x = RateLimitResponse{} |
| 236 |
if protoimpl.UnsafeEnabled { |
| 237 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[1] |
| 238 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 239 |
ms.StoreMessageInfo(mi) |
| 240 |
} |
| 241 |
} |
| 242 |
|
| 243 |
func (x *RateLimitResponse) String() string { |
| 244 |
return protoimpl.X.MessageStringOf(x) |
| 245 |
} |
| 246 |
|
| 247 |
func (*RateLimitResponse) ProtoMessage() {} |
| 248 |
|
| 249 |
func (x *RateLimitResponse) ProtoReflect() protoreflect.Message { |
| 250 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[1] |
| 251 |
if protoimpl.UnsafeEnabled && x != nil { |
| 252 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 253 |
if ms.LoadMessageInfo() == nil { |
| 254 |
ms.StoreMessageInfo(mi) |
| 255 |
} |
| 256 |
return ms |
| 257 |
} |
| 258 |
return mi.MessageOf(x) |
| 259 |
} |
| 260 |
|
| 261 |
// Deprecated: Use RateLimitResponse.ProtoReflect.Descriptor instead. |
| 262 |
func (*RateLimitResponse) Descriptor() ([]byte, []int) { |
| 263 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP(), []int{1} |
| 264 |
} |
| 265 |
|
| 266 |
func (x *RateLimitResponse) GetOverallCode() RateLimitResponse_Code { |
| 267 |
if x != nil { |
| 268 |
return x.OverallCode |
| 269 |
} |
| 270 |
return RateLimitResponse_UNKNOWN |
| 271 |
} |
| 272 |
|
| 273 |
func (x *RateLimitResponse) GetStatuses() []*RateLimitResponse_DescriptorStatus { |
| 274 |
if x != nil { |
| 275 |
return x.Statuses |
| 276 |
} |
| 277 |
return nil |
| 278 |
} |
| 279 |
|
| 280 |
func (x *RateLimitResponse) GetHeaders() []*core.HeaderValue { |
| 281 |
if x != nil { |
| 282 |
return x.Headers |
| 283 |
} |
| 284 |
return nil |
| 285 |
} |
| 286 |
|
| 287 |
func (x *RateLimitResponse) GetRequestHeadersToAdd() []*core.HeaderValue { |
| 288 |
if x != nil { |
| 289 |
return x.RequestHeadersToAdd |
| 290 |
} |
| 291 |
return nil |
| 292 |
} |
| 293 |
|
| 294 |
// Defines an actual rate limit in terms of requests per unit of time and the unit itself. |
| 295 |
type RateLimitResponse_RateLimit struct { |
| 296 |
state protoimpl.MessageState |
| 297 |
sizeCache protoimpl.SizeCache |
| 298 |
unknownFields protoimpl.UnknownFields |
| 299 |
|
| 300 |
// A name or description of this limit. |
| 301 |
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` |
| 302 |
// The number of requests per unit of time. |
| 303 |
RequestsPerUnit uint32 `protobuf:"varint,1,opt,name=requests_per_unit,json=requestsPerUnit,proto3" json:"requests_per_unit,omitempty"` |
| 304 |
// The unit of time. |
| 305 |
Unit RateLimitResponse_RateLimit_Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=envoy.service.ratelimit.v2.RateLimitResponse_RateLimit_Unit" json:"unit,omitempty"` |
| 306 |
} |
| 307 |
|
| 308 |
func (x *RateLimitResponse_RateLimit) Reset() { |
| 309 |
*x = RateLimitResponse_RateLimit{} |
| 310 |
if protoimpl.UnsafeEnabled { |
| 311 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[2] |
| 312 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 313 |
ms.StoreMessageInfo(mi) |
| 314 |
} |
| 315 |
} |
| 316 |
|
| 317 |
func (x *RateLimitResponse_RateLimit) String() string { |
| 318 |
return protoimpl.X.MessageStringOf(x) |
| 319 |
} |
| 320 |
|
| 321 |
func (*RateLimitResponse_RateLimit) ProtoMessage() {} |
| 322 |
|
| 323 |
func (x *RateLimitResponse_RateLimit) ProtoReflect() protoreflect.Message { |
| 324 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[2] |
| 325 |
if protoimpl.UnsafeEnabled && x != nil { |
| 326 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 327 |
if ms.LoadMessageInfo() == nil { |
| 328 |
ms.StoreMessageInfo(mi) |
| 329 |
} |
| 330 |
return ms |
| 331 |
} |
| 332 |
return mi.MessageOf(x) |
| 333 |
} |
| 334 |
|
| 335 |
// Deprecated: Use RateLimitResponse_RateLimit.ProtoReflect.Descriptor instead. |
| 336 |
func (*RateLimitResponse_RateLimit) Descriptor() ([]byte, []int) { |
| 337 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP(), []int{1, 0} |
| 338 |
} |
| 339 |
|
| 340 |
func (x *RateLimitResponse_RateLimit) GetName() string { |
| 341 |
if x != nil { |
| 342 |
return x.Name |
| 343 |
} |
| 344 |
return "" |
| 345 |
} |
| 346 |
|
| 347 |
func (x *RateLimitResponse_RateLimit) GetRequestsPerUnit() uint32 { |
| 348 |
if x != nil { |
| 349 |
return x.RequestsPerUnit |
| 350 |
} |
| 351 |
return 0 |
| 352 |
} |
| 353 |
|
| 354 |
func (x *RateLimitResponse_RateLimit) GetUnit() RateLimitResponse_RateLimit_Unit { |
| 355 |
if x != nil { |
| 356 |
return x.Unit |
| 357 |
} |
| 358 |
return RateLimitResponse_RateLimit_UNKNOWN |
| 359 |
} |
| 360 |
|
| 361 |
type RateLimitResponse_DescriptorStatus struct { |
| 362 |
state protoimpl.MessageState |
| 363 |
sizeCache protoimpl.SizeCache |
| 364 |
unknownFields protoimpl.UnknownFields |
| 365 |
|
| 366 |
// The response code for an individual descriptor. |
| 367 |
Code RateLimitResponse_Code `protobuf:"varint,1,opt,name=code,proto3,enum=envoy.service.ratelimit.v2.RateLimitResponse_Code" json:"code,omitempty"` |
| 368 |
// The current limit as configured by the server. Useful for debugging, etc. |
| 369 |
CurrentLimit *RateLimitResponse_RateLimit `protobuf:"bytes,2,opt,name=current_limit,json=currentLimit,proto3" json:"current_limit,omitempty"` |
| 370 |
// The limit remaining in the current time unit. |
| 371 |
LimitRemaining uint32 `protobuf:"varint,3,opt,name=limit_remaining,json=limitRemaining,proto3" json:"limit_remaining,omitempty"` |
| 372 |
} |
| 373 |
|
| 374 |
func (x *RateLimitResponse_DescriptorStatus) Reset() { |
| 375 |
*x = RateLimitResponse_DescriptorStatus{} |
| 376 |
if protoimpl.UnsafeEnabled { |
| 377 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[3] |
| 378 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 379 |
ms.StoreMessageInfo(mi) |
| 380 |
} |
| 381 |
} |
| 382 |
|
| 383 |
func (x *RateLimitResponse_DescriptorStatus) String() string { |
| 384 |
return protoimpl.X.MessageStringOf(x) |
| 385 |
} |
| 386 |
|
| 387 |
func (*RateLimitResponse_DescriptorStatus) ProtoMessage() {} |
| 388 |
|
| 389 |
func (x *RateLimitResponse_DescriptorStatus) ProtoReflect() protoreflect.Message { |
| 390 |
mi := &file_envoy_service_ratelimit_v2_rls_proto_msgTypes[3] |
| 391 |
if protoimpl.UnsafeEnabled && x != nil { |
| 392 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 393 |
if ms.LoadMessageInfo() == nil { |
| 394 |
ms.StoreMessageInfo(mi) |
| 395 |
} |
| 396 |
return ms |
| 397 |
} |
| 398 |
return mi.MessageOf(x) |
| 399 |
} |
| 400 |
|
| 401 |
// Deprecated: Use RateLimitResponse_DescriptorStatus.ProtoReflect.Descriptor instead. |
| 402 |
func (*RateLimitResponse_DescriptorStatus) Descriptor() ([]byte, []int) { |
| 403 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP(), []int{1, 1} |
| 404 |
} |
| 405 |
|
| 406 |
func (x *RateLimitResponse_DescriptorStatus) GetCode() RateLimitResponse_Code { |
| 407 |
if x != nil { |
| 408 |
return x.Code |
| 409 |
} |
| 410 |
return RateLimitResponse_UNKNOWN |
| 411 |
} |
| 412 |
|
| 413 |
func (x *RateLimitResponse_DescriptorStatus) GetCurrentLimit() *RateLimitResponse_RateLimit { |
| 414 |
if x != nil { |
| 415 |
return x.CurrentLimit |
| 416 |
} |
| 417 |
return nil |
| 418 |
} |
| 419 |
|
| 420 |
func (x *RateLimitResponse_DescriptorStatus) GetLimitRemaining() uint32 { |
| 421 |
if x != nil { |
| 422 |
return x.LimitRemaining |
| 423 |
} |
| 424 |
return 0 |
| 425 |
} |
| 426 |
|
| 427 |
var File_envoy_service_ratelimit_v2_rls_proto protoreflect.FileDescriptor |
| 428 |
|
| 429 |
var file_envoy_service_ratelimit_v2_rls_proto_rawDesc = []byte{ |
| 430 |
0x0a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, |
| 431 |
0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x6c, 0x73, |
| 432 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, |
| 433 |
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, |
| 434 |
0x76, 0x32, 0x1a, 0x1c, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, |
| 435 |
0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 436 |
0x1a, 0x26, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x32, 0x2f, 0x72, |
| 437 |
0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, |
| 438 |
0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, |
| 439 |
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67, 0x72, 0x61, |
| 440 |
0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, 0x61, |
| 441 |
0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, |
| 442 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x10, 0x52, 0x61, 0x74, 0x65, |
| 443 |
0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, |
| 444 |
0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, |
| 445 |
0x6d, 0x61, 0x69, 0x6e, 0x12, 0x4d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, |
| 446 |
0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 447 |
0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, |
| 448 |
0x69, 0x74, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, |
| 449 |
0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, |
| 450 |
0x6f, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x69, 0x74, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x65, |
| 451 |
0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x68, 0x69, 0x74, 0x73, 0x41, 0x64, |
| 452 |
0x64, 0x65, 0x6e, 0x64, 0x22, 0xe7, 0x06, 0x0a, 0x11, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, |
| 453 |
0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0c, 0x6f, 0x76, |
| 454 |
0x65, 0x72, 0x61, 0x6c, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 455 |
0x32, 0x32, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 456 |
0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, |
| 457 |
0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, |
| 458 |
0x43, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x6c, 0x6c, 0x43, 0x6f, 0x64, |
| 459 |
0x65, 0x12, 0x5a, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, |
| 460 |
0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, |
| 461 |
0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, |
| 462 |
0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 463 |
0x73, 0x65, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, |
| 464 |
0x74, 0x75, 0x73, 0x52, 0x08, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x59, 0x0a, |
| 465 |
0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, |
| 466 |
0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, |
| 467 |
0x72, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x1f, |
| 468 |
0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x19, 0x0a, 0x17, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 469 |
0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x64, 0x52, |
| 470 |
0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x53, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, |
| 471 |
0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x5f, 0x74, 0x6f, 0x5f, 0x61, |
| 472 |
0x64, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 473 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x48, 0x65, 0x61, |
| 474 |
0x64, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 475 |
0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x54, 0x6f, 0x41, 0x64, 0x64, 0x1a, 0xdd, 0x01, |
| 476 |
0x0a, 0x09, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, |
| 477 |
0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, |
| 478 |
0x2a, 0x0a, 0x11, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, |
| 479 |
0x75, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, |
| 480 |
0x65, 0x73, 0x74, 0x73, 0x50, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x50, 0x0a, 0x04, 0x75, |
| 481 |
0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, |
| 482 |
0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, |
| 483 |
0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, |
| 484 |
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, |
| 485 |
0x69, 0x74, 0x2e, 0x55, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x3e, 0x0a, |
| 486 |
0x04, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, |
| 487 |
0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0a, |
| 488 |
0x0a, 0x06, 0x4d, 0x49, 0x4e, 0x55, 0x54, 0x45, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, |
| 489 |
0x55, 0x52, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x41, 0x59, 0x10, 0x04, 0x1a, 0xe1, 0x01, |
| 490 |
0x0a, 0x10, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x74, 0x61, 0x74, |
| 491 |
0x75, 0x73, 0x12, 0x46, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, |
| 492 |
0x32, 0x32, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 493 |
0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, |
| 494 |
0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, |
| 495 |
0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x5c, 0x0a, 0x0d, 0x63, 0x75, |
| 496 |
0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 497 |
0x0b, 0x32, 0x37, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, |
| 498 |
0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x52, |
| 499 |
0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, |
| 500 |
0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, |
| 501 |
0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6c, 0x69, 0x6d, 0x69, |
| 502 |
0x74, 0x5f, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 503 |
0x0d, 0x52, 0x0e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, |
| 504 |
0x67, 0x22, 0x2b, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, |
| 505 |
0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0e, |
| 506 |
0x0a, 0x0a, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x32, 0x84, |
| 507 |
0x01, 0x0a, 0x10, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, |
| 508 |
0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0f, 0x53, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x52, 0x61, 0x74, |
| 509 |
0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2c, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, |
| 510 |
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, |
| 511 |
0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, |
| 512 |
0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, |
| 513 |
0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, |
| 514 |
0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, |
| 515 |
0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x8d, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, |
| 516 |
0x0a, 0x28, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, |
| 517 |
0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x72, 0x61, |
| 518 |
0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x32, 0x42, 0x08, 0x52, 0x6c, 0x73, 0x50, |
| 519 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, |
| 520 |
0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, |
| 521 |
0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, |
| 522 |
0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72, 0x61, 0x74, |
| 523 |
0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x32, 0x3b, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, |
| 524 |
0x6d, 0x69, 0x74, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 525 |
} |
| 526 |
|
| 527 |
var ( |
| 528 |
file_envoy_service_ratelimit_v2_rls_proto_rawDescOnce sync.Once |
| 529 |
file_envoy_service_ratelimit_v2_rls_proto_rawDescData = file_envoy_service_ratelimit_v2_rls_proto_rawDesc |
| 530 |
) |
| 531 |
|
| 532 |
func file_envoy_service_ratelimit_v2_rls_proto_rawDescGZIP() []byte { |
| 533 |
file_envoy_service_ratelimit_v2_rls_proto_rawDescOnce.Do(func() { |
| 534 |
file_envoy_service_ratelimit_v2_rls_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_service_ratelimit_v2_rls_proto_rawDescData) |
| 535 |
}) |
| 536 |
return file_envoy_service_ratelimit_v2_rls_proto_rawDescData |
| 537 |
} |
| 538 |
|
| 539 |
var file_envoy_service_ratelimit_v2_rls_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 540 |
var file_envoy_service_ratelimit_v2_rls_proto_msgTypes = make([]protoimpl.MessageInfo, 4) |
| 541 |
var file_envoy_service_ratelimit_v2_rls_proto_goTypes = []interface{}{ |
| 542 |
(RateLimitResponse_Code)(0), // 0: envoy.service.ratelimit.v2.RateLimitResponse.Code |
| 543 |
(RateLimitResponse_RateLimit_Unit)(0), // 1: envoy.service.ratelimit.v2.RateLimitResponse.RateLimit.Unit |
| 544 |
(*RateLimitRequest)(nil), // 2: envoy.service.ratelimit.v2.RateLimitRequest |
| 545 |
(*RateLimitResponse)(nil), // 3: envoy.service.ratelimit.v2.RateLimitResponse |
| 546 |
(*RateLimitResponse_RateLimit)(nil), // 4: envoy.service.ratelimit.v2.RateLimitResponse.RateLimit |
| 547 |
(*RateLimitResponse_DescriptorStatus)(nil), // 5: envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus |
| 548 |
(*ratelimit.RateLimitDescriptor)(nil), // 6: envoy.api.v2.ratelimit.RateLimitDescriptor |
| 549 |
(*core.HeaderValue)(nil), // 7: envoy.api.v2.core.HeaderValue |
| 550 |
} |
| 551 |
var file_envoy_service_ratelimit_v2_rls_proto_depIdxs = []int32{ |
| 552 |
6, // 0: envoy.service.ratelimit.v2.RateLimitRequest.descriptors:type_name -> envoy.api.v2.ratelimit.RateLimitDescriptor |
| 553 |
0, // 1: envoy.service.ratelimit.v2.RateLimitResponse.overall_code:type_name -> envoy.service.ratelimit.v2.RateLimitResponse.Code |
| 554 |
5, // 2: envoy.service.ratelimit.v2.RateLimitResponse.statuses:type_name -> envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus |
| 555 |
7, // 3: envoy.service.ratelimit.v2.RateLimitResponse.headers:type_name -> envoy.api.v2.core.HeaderValue |
| 556 |
7, // 4: envoy.service.ratelimit.v2.RateLimitResponse.request_headers_to_add:type_name -> envoy.api.v2.core.HeaderValue |
| 557 |
1, // 5: envoy.service.ratelimit.v2.RateLimitResponse.RateLimit.unit:type_name -> envoy.service.ratelimit.v2.RateLimitResponse.RateLimit.Unit |
| 558 |
0, // 6: envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus.code:type_name -> envoy.service.ratelimit.v2.RateLimitResponse.Code |
| 559 |
4, // 7: envoy.service.ratelimit.v2.RateLimitResponse.DescriptorStatus.current_limit:type_name -> envoy.service.ratelimit.v2.RateLimitResponse.RateLimit |
| 560 |
2, // 8: envoy.service.ratelimit.v2.RateLimitService.ShouldRateLimit:input_type -> envoy.service.ratelimit.v2.RateLimitRequest |
| 561 |
3, // 9: envoy.service.ratelimit.v2.RateLimitService.ShouldRateLimit:output_type -> envoy.service.ratelimit.v2.RateLimitResponse |
| 562 |
9, // [9:10] is the sub-list for method output_type |
| 563 |
8, // [8:9] is the sub-list for method input_type |
| 564 |
8, // [8:8] is the sub-list for extension type_name |
| 565 |
8, // [8:8] is the sub-list for extension extendee |
| 566 |
0, // [0:8] is the sub-list for field type_name |
| 567 |
} |
| 568 |
|
| 569 |
func init() { file_envoy_service_ratelimit_v2_rls_proto_init() } |
| 570 |
func file_envoy_service_ratelimit_v2_rls_proto_init() { |
| 571 |
if File_envoy_service_ratelimit_v2_rls_proto != nil { |
| 572 |
return |
| 573 |
} |
| 574 |
if !protoimpl.UnsafeEnabled { |
| 575 |
file_envoy_service_ratelimit_v2_rls_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 576 |
switch v := v.(*RateLimitRequest); i { |
| 577 |
case 0: |
| 578 |
return &v.state |
| 579 |
case 1: |
| 580 |
return &v.sizeCache |
| 581 |
case 2: |
| 582 |
return &v.unknownFields |
| 583 |
default: |
| 584 |
return nil |
| 585 |
} |
| 586 |
} |
| 587 |
file_envoy_service_ratelimit_v2_rls_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 588 |
switch v := v.(*RateLimitResponse); i { |
| 589 |
case 0: |
| 590 |
return &v.state |
| 591 |
case 1: |
| 592 |
return &v.sizeCache |
| 593 |
case 2: |
| 594 |
return &v.unknownFields |
| 595 |
default: |
| 596 |
return nil |
| 597 |
} |
| 598 |
} |
| 599 |
file_envoy_service_ratelimit_v2_rls_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 600 |
switch v := v.(*RateLimitResponse_RateLimit); i { |
| 601 |
case 0: |
| 602 |
return &v.state |
| 603 |
case 1: |
| 604 |
return &v.sizeCache |
| 605 |
case 2: |
| 606 |
return &v.unknownFields |
| 607 |
default: |
| 608 |
return nil |
| 609 |
} |
| 610 |
} |
| 611 |
file_envoy_service_ratelimit_v2_rls_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 612 |
switch v := v.(*RateLimitResponse_DescriptorStatus); i { |
| 613 |
case 0: |
| 614 |
return &v.state |
| 615 |
case 1: |
| 616 |
return &v.sizeCache |
| 617 |
case 2: |
| 618 |
return &v.unknownFields |
| 619 |
default: |
| 620 |
return nil |
| 621 |
} |
| 622 |
} |
| 623 |
} |
| 624 |
type x struct{} |
| 625 |
out := protoimpl.TypeBuilder{ |
| 626 |
File: protoimpl.DescBuilder{ |
| 627 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 628 |
RawDescriptor: file_envoy_service_ratelimit_v2_rls_proto_rawDesc, |
| 629 |
NumEnums: 2, |
| 630 |
NumMessages: 4, |
| 631 |
NumExtensions: 0, |
| 632 |
NumServices: 1, |
| 633 |
}, |
| 634 |
GoTypes: file_envoy_service_ratelimit_v2_rls_proto_goTypes, |
| 635 |
DependencyIndexes: file_envoy_service_ratelimit_v2_rls_proto_depIdxs, |
| 636 |
EnumInfos: file_envoy_service_ratelimit_v2_rls_proto_enumTypes, |
| 637 |
MessageInfos: file_envoy_service_ratelimit_v2_rls_proto_msgTypes, |
| 638 |
}.Build() |
| 639 |
File_envoy_service_ratelimit_v2_rls_proto = out.File |
| 640 |
file_envoy_service_ratelimit_v2_rls_proto_rawDesc = nil |
| 641 |
file_envoy_service_ratelimit_v2_rls_proto_goTypes = nil |
| 642 |
file_envoy_service_ratelimit_v2_rls_proto_depIdxs = nil |
| 643 |
} |