-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
rls_config.pb.go
572 lines (518 loc) · 26 KB
/
rls_config.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: grpc/rls/grpc_lookup_v1/rls_config.proto
package grpc_lookup_v1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Specify how to process a request when not already in the cache.
type RouteLookupConfig_RequestProcessingStrategy int32
const (
RouteLookupConfig_STRATEGY_UNSPECIFIED RouteLookupConfig_RequestProcessingStrategy = 0
// Query the RLS and process the request using target returned by the
// lookup. The target will then be cached and used for processing
// subsequent requests for the same key. Any errors during lookup service
// processing will fall back to default target for request processing.
RouteLookupConfig_SYNC_LOOKUP_DEFAULT_TARGET_ON_ERROR RouteLookupConfig_RequestProcessingStrategy = 1
// Query the RLS and process the request using target returned by the
// lookup. The target will then be cached and used for processing
// subsequent requests for the same key. Any errors during lookup service
// processing will return an error back to the client. Services with
// strict regional routing requirements should use this strategy.
RouteLookupConfig_SYNC_LOOKUP_CLIENT_SEES_ERROR RouteLookupConfig_RequestProcessingStrategy = 2
// Query the RLS asynchronously but respond with the default target. The
// target in the lookup response will then be cached and used for
// subsequent requests. Services with strict latency requirements (but not
// strict regional routing requirements) should use this strategy.
RouteLookupConfig_ASYNC_LOOKUP_DEFAULT_TARGET_ON_MISS RouteLookupConfig_RequestProcessingStrategy = 3
)
var RouteLookupConfig_RequestProcessingStrategy_name = map[int32]string{
0: "STRATEGY_UNSPECIFIED",
1: "SYNC_LOOKUP_DEFAULT_TARGET_ON_ERROR",
2: "SYNC_LOOKUP_CLIENT_SEES_ERROR",
3: "ASYNC_LOOKUP_DEFAULT_TARGET_ON_MISS",
}
var RouteLookupConfig_RequestProcessingStrategy_value = map[string]int32{
"STRATEGY_UNSPECIFIED": 0,
"SYNC_LOOKUP_DEFAULT_TARGET_ON_ERROR": 1,
"SYNC_LOOKUP_CLIENT_SEES_ERROR": 2,
"ASYNC_LOOKUP_DEFAULT_TARGET_ON_MISS": 3,
}
func (x RouteLookupConfig_RequestProcessingStrategy) String() string {
return proto.EnumName(RouteLookupConfig_RequestProcessingStrategy_name, int32(x))
}
func (RouteLookupConfig_RequestProcessingStrategy) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_f013e3228551a7a8, []int{3, 0}
}
// Extract a key based on a given name (e.g. header name or query parameter
// name). The name must match one of the names listed in the "name" field. If
// the "required_match" field is true, one of the specified names must be
// present for the keybuilder to match.
type NameMatcher struct {
// The name that will be used in the RLS key_map to refer to this value.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Ordered list of names (headers or query parameter names) that can supply
// this value; the first one with a non-empty value is used.
Names []string `protobuf:"bytes,2,rep,name=names,proto3" json:"names,omitempty"`
// If true, make this extraction required; the key builder will not match
// if no value is found.
RequiredMatch bool `protobuf:"varint,3,opt,name=required_match,json=requiredMatch,proto3" json:"required_match,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NameMatcher) Reset() { *m = NameMatcher{} }
func (m *NameMatcher) String() string { return proto.CompactTextString(m) }
func (*NameMatcher) ProtoMessage() {}
func (*NameMatcher) Descriptor() ([]byte, []int) {
return fileDescriptor_f013e3228551a7a8, []int{0}
}
func (m *NameMatcher) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NameMatcher.Unmarshal(m, b)
}
func (m *NameMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NameMatcher.Marshal(b, m, deterministic)
}
func (m *NameMatcher) XXX_Merge(src proto.Message) {
xxx_messageInfo_NameMatcher.Merge(m, src)
}
func (m *NameMatcher) XXX_Size() int {
return xxx_messageInfo_NameMatcher.Size(m)
}
func (m *NameMatcher) XXX_DiscardUnknown() {
xxx_messageInfo_NameMatcher.DiscardUnknown(m)
}
var xxx_messageInfo_NameMatcher proto.InternalMessageInfo
func (m *NameMatcher) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *NameMatcher) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
func (m *NameMatcher) GetRequiredMatch() bool {
if m != nil {
return m.RequiredMatch
}
return false
}
// A GrpcKeyBuilder applies to a given gRPC service, name, and headers.
type GrpcKeyBuilder struct {
Names []*GrpcKeyBuilder_Name `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
// Extract keys from all listed headers.
// For gRPC, it is an error to specify "required_match" on the NameMatcher
// protos, and we ignore it if set.
Headers []*NameMatcher `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GrpcKeyBuilder) Reset() { *m = GrpcKeyBuilder{} }
func (m *GrpcKeyBuilder) String() string { return proto.CompactTextString(m) }
func (*GrpcKeyBuilder) ProtoMessage() {}
func (*GrpcKeyBuilder) Descriptor() ([]byte, []int) {
return fileDescriptor_f013e3228551a7a8, []int{1}
}
func (m *GrpcKeyBuilder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GrpcKeyBuilder.Unmarshal(m, b)
}
func (m *GrpcKeyBuilder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GrpcKeyBuilder.Marshal(b, m, deterministic)
}
func (m *GrpcKeyBuilder) XXX_Merge(src proto.Message) {
xxx_messageInfo_GrpcKeyBuilder.Merge(m, src)
}
func (m *GrpcKeyBuilder) XXX_Size() int {
return xxx_messageInfo_GrpcKeyBuilder.Size(m)
}
func (m *GrpcKeyBuilder) XXX_DiscardUnknown() {
xxx_messageInfo_GrpcKeyBuilder.DiscardUnknown(m)
}
var xxx_messageInfo_GrpcKeyBuilder proto.InternalMessageInfo
func (m *GrpcKeyBuilder) GetNames() []*GrpcKeyBuilder_Name {
if m != nil {
return m.Names
}
return nil
}
func (m *GrpcKeyBuilder) GetHeaders() []*NameMatcher {
if m != nil {
return m.Headers
}
return nil
}
// To match, one of the given Name fields must match; the service and method
// fields are specified as fixed strings. The service name is required and
// includes the proto package name. The method name may be omitted, in
// which case any method on the given service is matched.
type GrpcKeyBuilder_Name struct {
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GrpcKeyBuilder_Name) Reset() { *m = GrpcKeyBuilder_Name{} }
func (m *GrpcKeyBuilder_Name) String() string { return proto.CompactTextString(m) }
func (*GrpcKeyBuilder_Name) ProtoMessage() {}
func (*GrpcKeyBuilder_Name) Descriptor() ([]byte, []int) {
return fileDescriptor_f013e3228551a7a8, []int{1, 0}
}
func (m *GrpcKeyBuilder_Name) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GrpcKeyBuilder_Name.Unmarshal(m, b)
}
func (m *GrpcKeyBuilder_Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GrpcKeyBuilder_Name.Marshal(b, m, deterministic)
}
func (m *GrpcKeyBuilder_Name) XXX_Merge(src proto.Message) {
xxx_messageInfo_GrpcKeyBuilder_Name.Merge(m, src)
}
func (m *GrpcKeyBuilder_Name) XXX_Size() int {
return xxx_messageInfo_GrpcKeyBuilder_Name.Size(m)
}
func (m *GrpcKeyBuilder_Name) XXX_DiscardUnknown() {
xxx_messageInfo_GrpcKeyBuilder_Name.DiscardUnknown(m)
}
var xxx_messageInfo_GrpcKeyBuilder_Name proto.InternalMessageInfo
func (m *GrpcKeyBuilder_Name) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *GrpcKeyBuilder_Name) GetMethod() string {
if m != nil {
return m.Method
}
return ""
}
// An HttpKeyBuilder applies to a given HTTP URL and headers.
//
// Path and host patterns use the matching syntax from gRPC transcoding to
// extract named key/value pairs from the path and host components of the URL:
// https://github.com/googleapis/googleapis/blob/master/google/api/http.proto
//
// It is invalid to specify the same key name in multiple places in a pattern.
//
// For a service where the project id can be expressed either as a subdomain or
// in the path, separate HttpKeyBuilders must be used:
// host_pattern: 'example.com' path_pattern: '/{id}/{object}/**'
// host_pattern: '{id}.example.com' path_pattern: '/{object}/**'
// If the host is exactly 'example.com', the first path segment will be used as
// the id and the second segment as the object. If the host has a subdomain, the
// subdomain will be used as the id and the first segment as the object. If
// neither pattern matches, no keys will be extracted.
type HttpKeyBuilder struct {
// host_pattern is an ordered list of host template patterns for the desired
// value. If any host_pattern values are specified, then at least one must
// match, and the last one wins and sets any specified variables. A host
// consists of labels separated by dots. Each label is matched against the
// label in the pattern as follows:
// - "*": Matches any single label.
// - "**": Matches zero or more labels (first or last part of host only).
// - "{<name>=...}": One or more label capture, where "..." can be any
// template that does not include a capture.
// - "{<name>}": A single label capture. Identical to {<name>=*}.
//
// Examples:
// - "example.com": Only applies to the exact host example.com.
// - "*.example.com": Matches subdomains of example.com.
// - "**.example.com": matches example.com, and all levels of subdomains.
// - "{project}.example.com": Extracts the third level subdomain.
// - "{project=**}.example.com": Extracts the third level+ subdomains.
// - "{project=**}": Extracts the entire host.
HostPatterns []string `protobuf:"bytes,1,rep,name=host_patterns,json=hostPatterns,proto3" json:"host_patterns,omitempty"`
// path_pattern is an ordered list of path template patterns for the desired
// value. If any path_pattern values are specified, then at least one must
// match, and the last one wins and sets any specified variables. A path
// consists of segments separated by slashes. Each segment is matched against
// the segment in the pattern as follows:
// - "*": Matches any single segment.
// - "**": Matches zero or more segments (first or last part of path only).
// - "{<name>=...}": One or more segment capture, where "..." can be any
// template that does not include a capture.
// - "{<name>}": A single segment capture. Identical to {<name>=*}.
// A custom method may also be specified by appending ":" and the custom
// method name or "*" to indicate any custom method (including no custom
// method). For example, "/*/projects/{project_id}/**:*" extracts
// `{project_id}` for any version, resource and custom method that includes
// it. By default, any custom method will be matched.
//
// Examples:
// - "/v1/{name=messages/*}": extracts a name like "messages/12345".
// - "/v1/messages/{message_id}": extracts a message_id like "12345".
// - "/v1/users/{user_id}/messages/{message_id}": extracts two key values.
PathPatterns []string `protobuf:"bytes,2,rep,name=path_patterns,json=pathPatterns,proto3" json:"path_patterns,omitempty"`
// List of query parameter names to try to match.
// For example: ["parent", "name", "resource.name"]
// We extract all the specified query_parameters (case-sensitively). If any
// are marked as "required_match" and are not present, this keybuilder fails
// to match. If a given parameter appears multiple times (?foo=a&foo=b) we
// will report it as a comma-separated string (foo=a,b).
QueryParameters []*NameMatcher `protobuf:"bytes,3,rep,name=query_parameters,json=queryParameters,proto3" json:"query_parameters,omitempty"`
// List of headers to try to match.
// We extract all the specified header values (case-insensitively). If any
// are marked as "required_match" and are not present, this keybuilder fails
// to match. If a given header appears multiple times in the request we will
// report it as a comma-separated string, in standard HTTP fashion.
Headers []*NameMatcher `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HttpKeyBuilder) Reset() { *m = HttpKeyBuilder{} }
func (m *HttpKeyBuilder) String() string { return proto.CompactTextString(m) }
func (*HttpKeyBuilder) ProtoMessage() {}
func (*HttpKeyBuilder) Descriptor() ([]byte, []int) {
return fileDescriptor_f013e3228551a7a8, []int{2}
}
func (m *HttpKeyBuilder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HttpKeyBuilder.Unmarshal(m, b)
}
func (m *HttpKeyBuilder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HttpKeyBuilder.Marshal(b, m, deterministic)
}
func (m *HttpKeyBuilder) XXX_Merge(src proto.Message) {
xxx_messageInfo_HttpKeyBuilder.Merge(m, src)
}
func (m *HttpKeyBuilder) XXX_Size() int {
return xxx_messageInfo_HttpKeyBuilder.Size(m)
}
func (m *HttpKeyBuilder) XXX_DiscardUnknown() {
xxx_messageInfo_HttpKeyBuilder.DiscardUnknown(m)
}
var xxx_messageInfo_HttpKeyBuilder proto.InternalMessageInfo
func (m *HttpKeyBuilder) GetHostPatterns() []string {
if m != nil {
return m.HostPatterns
}
return nil
}
func (m *HttpKeyBuilder) GetPathPatterns() []string {
if m != nil {
return m.PathPatterns
}
return nil
}
func (m *HttpKeyBuilder) GetQueryParameters() []*NameMatcher {
if m != nil {
return m.QueryParameters
}
return nil
}
func (m *HttpKeyBuilder) GetHeaders() []*NameMatcher {
if m != nil {
return m.Headers
}
return nil
}
type RouteLookupConfig struct {
// Ordered specifications for constructing keys for HTTP requests. Last
// match wins. If no HttpKeyBuilder matches, an empty key_map will be sent to
// the lookup service; it should likely reply with a global default route
// and raise an alert.
HttpKeybuilders []*HttpKeyBuilder `protobuf:"bytes,1,rep,name=http_keybuilders,json=httpKeybuilders,proto3" json:"http_keybuilders,omitempty"`
// Unordered specifications for constructing keys for gRPC requests. All
// GrpcKeyBuilders on this list must have unique "name" fields so that the
// client is free to prebuild a hash map keyed by name. If no GrpcKeyBuilder
// matches, an empty key_map will be sent to the lookup service; it should
// likely reply with a global default route and raise an alert.
GrpcKeybuilders []*GrpcKeyBuilder `protobuf:"bytes,2,rep,name=grpc_keybuilders,json=grpcKeybuilders,proto3" json:"grpc_keybuilders,omitempty"`
// The name of the lookup service as a gRPC URI. Typically, this will be
// a subdomain of the target, such as "lookup.datastore.googleapis.com".
LookupService string `protobuf:"bytes,3,opt,name=lookup_service,json=lookupService,proto3" json:"lookup_service,omitempty"`
// Configure a timeout value for lookup service requests.
// Defaults to 10 seconds if not specified.
LookupServiceTimeout *duration.Duration `protobuf:"bytes,4,opt,name=lookup_service_timeout,json=lookupServiceTimeout,proto3" json:"lookup_service_timeout,omitempty"`
// How long are responses valid for (like HTTP Cache-Control).
// If omitted (i.e. 0), responses are considered not to be cacheable.
// This value is clamped to 5 minutes to avoid unflushable bad responses.
MaxAge *duration.Duration `protobuf:"bytes,5,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
// After a response has been in the client cache for this amount of time
// and is re-requested, start an asynchronous RPC to re-validate it.
// This value should be less than max_age by at least the length of a
// typical RTT to the Route Lookup Service to fully mask the RTT latency.
// If omitted, keys are only re-requested after they have expired.
StaleAge *duration.Duration `protobuf:"bytes,6,opt,name=stale_age,json=staleAge,proto3" json:"stale_age,omitempty"`
// Rough indicator of amount of memory to use for the client cache. Some of
// the data structure overhead is not accounted for, so actual memory consumed
// will be somewhat greater than this value. If this field is omitted or set
// to zero, a client default will be used. The value may be capped to a lower
// amount based on client configuration.
CacheSizeBytes int64 `protobuf:"varint,7,opt,name=cache_size_bytes,json=cacheSizeBytes,proto3" json:"cache_size_bytes,omitempty"`
// This is a list of all the possible targets that can be returned by the
// lookup service. If a target not on this list is returned, it will be
// treated the same as an RPC error from the RLS.
ValidTargets []string `protobuf:"bytes,8,rep,name=valid_targets,json=validTargets,proto3" json:"valid_targets,omitempty"`
// This value provides a default target to use if needed. It will be used for
// request processing strategy SYNC_LOOKUP_DEFAULT_TARGET_ON_ERROR if RLS
// returns an error, or strategy ASYNC_LOOKUP_DEFAULT_TARGET_ON_MISS if RLS
// returns an error or there is a cache miss in the client. It will also be
// used if there are no healthy backends for an RLS target. Note that
// requests can be routed only to a subdomain of the original target,
// e.g. "us_east_1.cloudbigtable.googleapis.com".
DefaultTarget string `protobuf:"bytes,9,opt,name=default_target,json=defaultTarget,proto3" json:"default_target,omitempty"`
RequestProcessingStrategy RouteLookupConfig_RequestProcessingStrategy `protobuf:"varint,10,opt,name=request_processing_strategy,json=requestProcessingStrategy,proto3,enum=grpc.lookup.v1.RouteLookupConfig_RequestProcessingStrategy" json:"request_processing_strategy,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RouteLookupConfig) Reset() { *m = RouteLookupConfig{} }
func (m *RouteLookupConfig) String() string { return proto.CompactTextString(m) }
func (*RouteLookupConfig) ProtoMessage() {}
func (*RouteLookupConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_f013e3228551a7a8, []int{3}
}
func (m *RouteLookupConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RouteLookupConfig.Unmarshal(m, b)
}
func (m *RouteLookupConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RouteLookupConfig.Marshal(b, m, deterministic)
}
func (m *RouteLookupConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RouteLookupConfig.Merge(m, src)
}
func (m *RouteLookupConfig) XXX_Size() int {
return xxx_messageInfo_RouteLookupConfig.Size(m)
}
func (m *RouteLookupConfig) XXX_DiscardUnknown() {
xxx_messageInfo_RouteLookupConfig.DiscardUnknown(m)
}
var xxx_messageInfo_RouteLookupConfig proto.InternalMessageInfo
func (m *RouteLookupConfig) GetHttpKeybuilders() []*HttpKeyBuilder {
if m != nil {
return m.HttpKeybuilders
}
return nil
}
func (m *RouteLookupConfig) GetGrpcKeybuilders() []*GrpcKeyBuilder {
if m != nil {
return m.GrpcKeybuilders
}
return nil
}
func (m *RouteLookupConfig) GetLookupService() string {
if m != nil {
return m.LookupService
}
return ""
}
func (m *RouteLookupConfig) GetLookupServiceTimeout() *duration.Duration {
if m != nil {
return m.LookupServiceTimeout
}
return nil
}
func (m *RouteLookupConfig) GetMaxAge() *duration.Duration {
if m != nil {
return m.MaxAge
}
return nil
}
func (m *RouteLookupConfig) GetStaleAge() *duration.Duration {
if m != nil {
return m.StaleAge
}
return nil
}
func (m *RouteLookupConfig) GetCacheSizeBytes() int64 {
if m != nil {
return m.CacheSizeBytes
}
return 0
}
func (m *RouteLookupConfig) GetValidTargets() []string {
if m != nil {
return m.ValidTargets
}
return nil
}
func (m *RouteLookupConfig) GetDefaultTarget() string {
if m != nil {
return m.DefaultTarget
}
return ""
}
func (m *RouteLookupConfig) GetRequestProcessingStrategy() RouteLookupConfig_RequestProcessingStrategy {
if m != nil {
return m.RequestProcessingStrategy
}
return RouteLookupConfig_STRATEGY_UNSPECIFIED
}
func init() {
proto.RegisterEnum("grpc.lookup.v1.RouteLookupConfig_RequestProcessingStrategy", RouteLookupConfig_RequestProcessingStrategy_name, RouteLookupConfig_RequestProcessingStrategy_value)
proto.RegisterType((*NameMatcher)(nil), "grpc.lookup.v1.NameMatcher")
proto.RegisterType((*GrpcKeyBuilder)(nil), "grpc.lookup.v1.GrpcKeyBuilder")
proto.RegisterType((*GrpcKeyBuilder_Name)(nil), "grpc.lookup.v1.GrpcKeyBuilder.Name")
proto.RegisterType((*HttpKeyBuilder)(nil), "grpc.lookup.v1.HttpKeyBuilder")
proto.RegisterType((*RouteLookupConfig)(nil), "grpc.lookup.v1.RouteLookupConfig")
}
func init() {
proto.RegisterFile("grpc/rls/grpc_lookup_v1/rls_config.proto", fileDescriptor_f013e3228551a7a8)
}
var fileDescriptor_f013e3228551a7a8 = []byte{
// 742 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xdb, 0x36,
0x18, 0x9d, 0xa2, 0xd4, 0x89, 0x99, 0x46, 0x71, 0x85, 0xa0, 0x50, 0x5a, 0xac, 0xf0, 0x1c, 0x14,
0xd3, 0xc5, 0x20, 0xa3, 0x1e, 0x36, 0x6c, 0xd8, 0x95, 0xed, 0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