-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathbase.pb.go
executable file
·3357 lines (3003 loc) · 134 KB
/
base.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
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v5.29.3
// source: envoy/config/core/v3/base.proto
package corev3
import (
_ "github.com/cncf/xds/go/udpa/annotations"
v31 "github.com/cncf/xds/go/xds/core/v3"
_ "github.com/envoyproxy/go-control-plane/envoy/annotations"
v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
structpb "google.golang.org/protobuf/types/known/structpb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Envoy supports :ref:`upstream priority routing
// <arch_overview_http_routing_priority>` both at the route and the virtual
// cluster level. The current priority implementation uses different connection
// pool and circuit breaking settings for each priority level. This means that
// even for HTTP/2 requests, two physical connections will be used to an
// upstream host. In the future Envoy will likely support true HTTP/2 priority
// over a single upstream connection.
type RoutingPriority int32
const (
RoutingPriority_DEFAULT RoutingPriority = 0
RoutingPriority_HIGH RoutingPriority = 1
)
// Enum value maps for RoutingPriority.
var (
RoutingPriority_name = map[int32]string{
0: "DEFAULT",
1: "HIGH",
}
RoutingPriority_value = map[string]int32{
"DEFAULT": 0,
"HIGH": 1,
}
)
func (x RoutingPriority) Enum() *RoutingPriority {
p := new(RoutingPriority)
*p = x
return p
}
func (x RoutingPriority) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RoutingPriority) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_core_v3_base_proto_enumTypes[0].Descriptor()
}
func (RoutingPriority) Type() protoreflect.EnumType {
return &file_envoy_config_core_v3_base_proto_enumTypes[0]
}
func (x RoutingPriority) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RoutingPriority.Descriptor instead.
func (RoutingPriority) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{0}
}
// HTTP request method.
type RequestMethod int32
const (
RequestMethod_METHOD_UNSPECIFIED RequestMethod = 0
RequestMethod_GET RequestMethod = 1
RequestMethod_HEAD RequestMethod = 2
RequestMethod_POST RequestMethod = 3
RequestMethod_PUT RequestMethod = 4
RequestMethod_DELETE RequestMethod = 5
RequestMethod_CONNECT RequestMethod = 6
RequestMethod_OPTIONS RequestMethod = 7
RequestMethod_TRACE RequestMethod = 8
RequestMethod_PATCH RequestMethod = 9
)
// Enum value maps for RequestMethod.
var (
RequestMethod_name = map[int32]string{
0: "METHOD_UNSPECIFIED",
1: "GET",
2: "HEAD",
3: "POST",
4: "PUT",
5: "DELETE",
6: "CONNECT",
7: "OPTIONS",
8: "TRACE",
9: "PATCH",
}
RequestMethod_value = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"GET": 1,
"HEAD": 2,
"POST": 3,
"PUT": 4,
"DELETE": 5,
"CONNECT": 6,
"OPTIONS": 7,
"TRACE": 8,
"PATCH": 9,
}
)
func (x RequestMethod) Enum() *RequestMethod {
p := new(RequestMethod)
*p = x
return p
}
func (x RequestMethod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RequestMethod) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_core_v3_base_proto_enumTypes[1].Descriptor()
}
func (RequestMethod) Type() protoreflect.EnumType {
return &file_envoy_config_core_v3_base_proto_enumTypes[1]
}
func (x RequestMethod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RequestMethod.Descriptor instead.
func (RequestMethod) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{1}
}
// Identifies the direction of the traffic relative to the local Envoy.
type TrafficDirection int32
const (
// Default option is unspecified.
TrafficDirection_UNSPECIFIED TrafficDirection = 0
// The transport is used for incoming traffic.
TrafficDirection_INBOUND TrafficDirection = 1
// The transport is used for outgoing traffic.
TrafficDirection_OUTBOUND TrafficDirection = 2
)
// Enum value maps for TrafficDirection.
var (
TrafficDirection_name = map[int32]string{
0: "UNSPECIFIED",
1: "INBOUND",
2: "OUTBOUND",
}
TrafficDirection_value = map[string]int32{
"UNSPECIFIED": 0,
"INBOUND": 1,
"OUTBOUND": 2,
}
)
func (x TrafficDirection) Enum() *TrafficDirection {
p := new(TrafficDirection)
*p = x
return p
}
func (x TrafficDirection) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TrafficDirection) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_core_v3_base_proto_enumTypes[2].Descriptor()
}
func (TrafficDirection) Type() protoreflect.EnumType {
return &file_envoy_config_core_v3_base_proto_enumTypes[2]
}
func (x TrafficDirection) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TrafficDirection.Descriptor instead.
func (TrafficDirection) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{2}
}
// Describes the supported actions types for key/value pair append action.
type KeyValueAppend_KeyValueAppendAction int32
const (
// If the key already exists, this action will result in the following behavior:
//
// - Comma-concatenated value if multiple values are not allowed.
// - New value added to the list of values if multiple values are allowed.
//
// If the key doesn't exist then this will add pair with specified key and value.
KeyValueAppend_APPEND_IF_EXISTS_OR_ADD KeyValueAppend_KeyValueAppendAction = 0
// This action will add the key/value pair if it doesn't already exist. If the
// key already exists then this will be a no-op.
KeyValueAppend_ADD_IF_ABSENT KeyValueAppend_KeyValueAppendAction = 1
// This action will overwrite the specified value by discarding any existing
// values if the key already exists. If the key doesn't exist then this will add
// the pair with specified key and value.
KeyValueAppend_OVERWRITE_IF_EXISTS_OR_ADD KeyValueAppend_KeyValueAppendAction = 2
// This action will overwrite the specified value by discarding any existing
// values if the key already exists. If the key doesn't exist then this will
// be no-op.
KeyValueAppend_OVERWRITE_IF_EXISTS KeyValueAppend_KeyValueAppendAction = 3
)
// Enum value maps for KeyValueAppend_KeyValueAppendAction.
var (
KeyValueAppend_KeyValueAppendAction_name = map[int32]string{
0: "APPEND_IF_EXISTS_OR_ADD",
1: "ADD_IF_ABSENT",
2: "OVERWRITE_IF_EXISTS_OR_ADD",
3: "OVERWRITE_IF_EXISTS",
}
KeyValueAppend_KeyValueAppendAction_value = map[string]int32{
"APPEND_IF_EXISTS_OR_ADD": 0,
"ADD_IF_ABSENT": 1,
"OVERWRITE_IF_EXISTS_OR_ADD": 2,
"OVERWRITE_IF_EXISTS": 3,
}
)
func (x KeyValueAppend_KeyValueAppendAction) Enum() *KeyValueAppend_KeyValueAppendAction {
p := new(KeyValueAppend_KeyValueAppendAction)
*p = x
return p
}
func (x KeyValueAppend_KeyValueAppendAction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyValueAppend_KeyValueAppendAction) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_core_v3_base_proto_enumTypes[3].Descriptor()
}
func (KeyValueAppend_KeyValueAppendAction) Type() protoreflect.EnumType {
return &file_envoy_config_core_v3_base_proto_enumTypes[3]
}
func (x KeyValueAppend_KeyValueAppendAction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyValueAppend_KeyValueAppendAction.Descriptor instead.
func (KeyValueAppend_KeyValueAppendAction) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{11, 0}
}
// Describes the supported actions types for header append action.
type HeaderValueOption_HeaderAppendAction int32
const (
// If the header already exists, this action will result in:
//
// - Comma-concatenated for predefined inline headers.
// - Duplicate header added in the “HeaderMap“ for other headers.
//
// If the header doesn't exist then this will add new header with specified key and value.
HeaderValueOption_APPEND_IF_EXISTS_OR_ADD HeaderValueOption_HeaderAppendAction = 0
// This action will add the header if it doesn't already exist. If the header
// already exists then this will be a no-op.
HeaderValueOption_ADD_IF_ABSENT HeaderValueOption_HeaderAppendAction = 1
// This action will overwrite the specified value by discarding any existing values if
// the header already exists. If the header doesn't exist then this will add the header
// with specified key and value.
HeaderValueOption_OVERWRITE_IF_EXISTS_OR_ADD HeaderValueOption_HeaderAppendAction = 2
// This action will overwrite the specified value by discarding any existing values if
// the header already exists. If the header doesn't exist then this will be no-op.
HeaderValueOption_OVERWRITE_IF_EXISTS HeaderValueOption_HeaderAppendAction = 3
)
// Enum value maps for HeaderValueOption_HeaderAppendAction.
var (
HeaderValueOption_HeaderAppendAction_name = map[int32]string{
0: "APPEND_IF_EXISTS_OR_ADD",
1: "ADD_IF_ABSENT",
2: "OVERWRITE_IF_EXISTS_OR_ADD",
3: "OVERWRITE_IF_EXISTS",
}
HeaderValueOption_HeaderAppendAction_value = map[string]int32{
"APPEND_IF_EXISTS_OR_ADD": 0,
"ADD_IF_ABSENT": 1,
"OVERWRITE_IF_EXISTS_OR_ADD": 2,
"OVERWRITE_IF_EXISTS": 3,
}
)
func (x HeaderValueOption_HeaderAppendAction) Enum() *HeaderValueOption_HeaderAppendAction {
p := new(HeaderValueOption_HeaderAppendAction)
*p = x
return p
}
func (x HeaderValueOption_HeaderAppendAction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HeaderValueOption_HeaderAppendAction) Descriptor() protoreflect.EnumDescriptor {
return file_envoy_config_core_v3_base_proto_enumTypes[4].Descriptor()
}
func (HeaderValueOption_HeaderAppendAction) Type() protoreflect.EnumType {
return &file_envoy_config_core_v3_base_proto_enumTypes[4]
}
func (x HeaderValueOption_HeaderAppendAction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HeaderValueOption_HeaderAppendAction.Descriptor instead.
func (HeaderValueOption_HeaderAppendAction) EnumDescriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{15, 0}
}
// Identifies location of where either Envoy runs or where upstream hosts run.
type Locality struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Region this :ref:`zone <envoy_v3_api_field_config.core.v3.Locality.zone>` belongs to.
Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
// Defines the local service zone where Envoy is running. Though optional, it
// should be set if discovery service routing is used and the discovery
// service exposes :ref:`zone data <envoy_v3_api_field_config.endpoint.v3.LocalityLbEndpoints.locality>`,
// either in this message or via :option:`--service-zone`. The meaning of zone
// is context dependent, e.g. `Availability Zone (AZ)
// <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html>`_
// on AWS, `Zone <https://cloud.google.com/compute/docs/regions-zones/>`_ on
// GCP, etc.
Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
// When used for locality of upstream hosts, this field further splits zone
// into smaller chunks of sub-zones so they can be load balanced
// independently.
SubZone string `protobuf:"bytes,3,opt,name=sub_zone,json=subZone,proto3" json:"sub_zone,omitempty"`
}
func (x *Locality) Reset() {
*x = Locality{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Locality) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Locality) ProtoMessage() {}
func (x *Locality) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Locality.ProtoReflect.Descriptor instead.
func (*Locality) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{0}
}
func (x *Locality) GetRegion() string {
if x != nil {
return x.Region
}
return ""
}
func (x *Locality) GetZone() string {
if x != nil {
return x.Zone
}
return ""
}
func (x *Locality) GetSubZone() string {
if x != nil {
return x.SubZone
}
return ""
}
// BuildVersion combines SemVer version of extension with free-form build information
// (i.e. 'alpha', 'private-build') as a set of strings.
type BuildVersion struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// SemVer version of extension.
Version *v3.SemanticVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Free-form build information.
// Envoy defines several well known keys in the source/common/version/version.h file
Metadata *structpb.Struct `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}
func (x *BuildVersion) Reset() {
*x = BuildVersion{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BuildVersion) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BuildVersion) ProtoMessage() {}
func (x *BuildVersion) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BuildVersion.ProtoReflect.Descriptor instead.
func (*BuildVersion) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{1}
}
func (x *BuildVersion) GetVersion() *v3.SemanticVersion {
if x != nil {
return x.Version
}
return nil
}
func (x *BuildVersion) GetMetadata() *structpb.Struct {
if x != nil {
return x.Metadata
}
return nil
}
// Version and identification for an Envoy extension.
// [#next-free-field: 7]
type Extension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// This is the name of the Envoy filter as specified in the Envoy
// configuration, e.g. envoy.filters.http.router, com.acme.widget.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Category of the extension.
// Extension category names use reverse DNS notation. For instance "envoy.filters.listener"
// for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from
// acme.com vendor.
// [#comment:TODO(yanavlasov): Link to the doc with existing envoy category names.]
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
// [#not-implemented-hide:] Type descriptor of extension configuration proto.
// [#comment:TODO(yanavlasov): Link to the doc with existing configuration protos.]
// [#comment:TODO(yanavlasov): Add tests when PR #9391 lands.]
//
// Deprecated: Marked as deprecated in envoy/config/core/v3/base.proto.
TypeDescriptor string `protobuf:"bytes,3,opt,name=type_descriptor,json=typeDescriptor,proto3" json:"type_descriptor,omitempty"`
// The version is a property of the extension and maintained independently
// of other extensions and the Envoy API.
// This field is not set when extension did not provide version information.
Version *BuildVersion `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
// Indicates that the extension is present but was disabled via dynamic configuration.
Disabled bool `protobuf:"varint,5,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Type URLs of extension configuration protos.
TypeUrls []string `protobuf:"bytes,6,rep,name=type_urls,json=typeUrls,proto3" json:"type_urls,omitempty"`
}
func (x *Extension) Reset() {
*x = Extension{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Extension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Extension) ProtoMessage() {}
func (x *Extension) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Extension.ProtoReflect.Descriptor instead.
func (*Extension) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{2}
}
func (x *Extension) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Extension) GetCategory() string {
if x != nil {
return x.Category
}
return ""
}
// Deprecated: Marked as deprecated in envoy/config/core/v3/base.proto.
func (x *Extension) GetTypeDescriptor() string {
if x != nil {
return x.TypeDescriptor
}
return ""
}
func (x *Extension) GetVersion() *BuildVersion {
if x != nil {
return x.Version
}
return nil
}
func (x *Extension) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
func (x *Extension) GetTypeUrls() []string {
if x != nil {
return x.TypeUrls
}
return nil
}
// Identifies a specific Envoy instance. The node identifier is presented to the
// management server, which may use this identifier to distinguish per Envoy
// configuration for serving.
// [#next-free-field: 13]
type Node struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// An opaque node identifier for the Envoy node. This also provides the local
// service node name. It should be set if any of the following features are
// used: :ref:`statsd <arch_overview_statistics>`, :ref:`CDS
// <config_cluster_manager_cds>`, and :ref:`HTTP tracing
// <arch_overview_tracing>`, either in this message or via
// :option:`--service-node`.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Defines the local service cluster name where Envoy is running. Though
// optional, it should be set if any of the following features are used:
// :ref:`statsd <arch_overview_statistics>`, :ref:`health check cluster
// verification
// <envoy_v3_api_field_config.core.v3.HealthCheck.HttpHealthCheck.service_name_matcher>`,
// :ref:`runtime override directory <envoy_v3_api_msg_config.bootstrap.v3.Runtime>`,
// :ref:`user agent addition
// <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.add_user_agent>`,
// :ref:`HTTP global rate limiting <config_http_filters_rate_limit>`,
// :ref:`CDS <config_cluster_manager_cds>`, and :ref:`HTTP tracing
// <arch_overview_tracing>`, either in this message or via
// :option:`--service-cluster`.
Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
// Opaque metadata extending the node identifier. Envoy will pass this
// directly to the management server.
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Map from xDS resource type URL to dynamic context parameters. These may vary at runtime (unlike
// other fields in this message). For example, the xDS client may have a shard identifier that
// changes during the lifetime of the xDS client. In Envoy, this would be achieved by updating the
// dynamic context on the Server::Instance's LocalInfo context provider. The shard ID dynamic
// parameter then appears in this field during future discovery requests.
DynamicParameters map[string]*v31.ContextParams `protobuf:"bytes,12,rep,name=dynamic_parameters,json=dynamicParameters,proto3" json:"dynamic_parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Locality specifying where the Envoy instance is running.
Locality *Locality `protobuf:"bytes,4,opt,name=locality,proto3" json:"locality,omitempty"`
// Free-form string that identifies the entity requesting config.
// E.g. "envoy" or "grpc"
UserAgentName string `protobuf:"bytes,6,opt,name=user_agent_name,json=userAgentName,proto3" json:"user_agent_name,omitempty"`
// Types that are assignable to UserAgentVersionType:
//
// *Node_UserAgentVersion
// *Node_UserAgentBuildVersion
UserAgentVersionType isNode_UserAgentVersionType `protobuf_oneof:"user_agent_version_type"`
// List of extensions and their versions supported by the node.
Extensions []*Extension `protobuf:"bytes,9,rep,name=extensions,proto3" json:"extensions,omitempty"`
// Client feature support list. These are well known features described
// in the Envoy API repository for a given major version of an API. Client features
// use reverse DNS naming scheme, for example “com.acme.feature“.
// See :ref:`the list of features <client_features>` that xDS client may
// support.
ClientFeatures []string `protobuf:"bytes,10,rep,name=client_features,json=clientFeatures,proto3" json:"client_features,omitempty"`
// Known listening ports on the node as a generic hint to the management server
// for filtering :ref:`listeners <config_listeners>` to be returned. For example,
// if there is a listener bound to port 80, the list can optionally contain the
// SocketAddress “(0.0.0.0,80)“. The field is optional and just a hint.
//
// Deprecated: Marked as deprecated in envoy/config/core/v3/base.proto.
ListeningAddresses []*Address `protobuf:"bytes,11,rep,name=listening_addresses,json=listeningAddresses,proto3" json:"listening_addresses,omitempty"`
}
func (x *Node) Reset() {
*x = Node{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Node) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Node) ProtoMessage() {}
func (x *Node) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Node.ProtoReflect.Descriptor instead.
func (*Node) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{3}
}
func (x *Node) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Node) GetCluster() string {
if x != nil {
return x.Cluster
}
return ""
}
func (x *Node) GetMetadata() *structpb.Struct {
if x != nil {
return x.Metadata
}
return nil
}
func (x *Node) GetDynamicParameters() map[string]*v31.ContextParams {
if x != nil {
return x.DynamicParameters
}
return nil
}
func (x *Node) GetLocality() *Locality {
if x != nil {
return x.Locality
}
return nil
}
func (x *Node) GetUserAgentName() string {
if x != nil {
return x.UserAgentName
}
return ""
}
func (m *Node) GetUserAgentVersionType() isNode_UserAgentVersionType {
if m != nil {
return m.UserAgentVersionType
}
return nil
}
func (x *Node) GetUserAgentVersion() string {
if x, ok := x.GetUserAgentVersionType().(*Node_UserAgentVersion); ok {
return x.UserAgentVersion
}
return ""
}
func (x *Node) GetUserAgentBuildVersion() *BuildVersion {
if x, ok := x.GetUserAgentVersionType().(*Node_UserAgentBuildVersion); ok {
return x.UserAgentBuildVersion
}
return nil
}
func (x *Node) GetExtensions() []*Extension {
if x != nil {
return x.Extensions
}
return nil
}
func (x *Node) GetClientFeatures() []string {
if x != nil {
return x.ClientFeatures
}
return nil
}
// Deprecated: Marked as deprecated in envoy/config/core/v3/base.proto.
func (x *Node) GetListeningAddresses() []*Address {
if x != nil {
return x.ListeningAddresses
}
return nil
}
type isNode_UserAgentVersionType interface {
isNode_UserAgentVersionType()
}
type Node_UserAgentVersion struct {
// Free-form string that identifies the version of the entity requesting config.
// E.g. "1.12.2" or "abcd1234", or "SpecialEnvoyBuild"
UserAgentVersion string `protobuf:"bytes,7,opt,name=user_agent_version,json=userAgentVersion,proto3,oneof"`
}
type Node_UserAgentBuildVersion struct {
// Structured version of the entity requesting config.
UserAgentBuildVersion *BuildVersion `protobuf:"bytes,8,opt,name=user_agent_build_version,json=userAgentBuildVersion,proto3,oneof"`
}
func (*Node_UserAgentVersion) isNode_UserAgentVersionType() {}
func (*Node_UserAgentBuildVersion) isNode_UserAgentVersionType() {}
// Metadata provides additional inputs to filters based on matched listeners,
// filter chains, routes and endpoints. It is structured as a map, usually from
// filter name (in reverse DNS format) to metadata specific to the filter. Metadata
// key-values for a filter are merged as connection and request handling occurs,
// with later values for the same key overriding earlier values.
//
// An example use of metadata is providing additional values to
// http_connection_manager in the envoy.http_connection_manager.access_log
// namespace.
//
// Another example use of metadata is to per service config info in cluster metadata, which may get
// consumed by multiple filters.
//
// For load balancing, Metadata provides a means to subset cluster endpoints.
// Endpoints have a Metadata object associated and routes contain a Metadata
// object to match against. There are some well defined metadata used today for
// this purpose:
//
// - “{"envoy.lb": {"canary": <bool> }}“ This indicates the canary status of an
// endpoint and is also used during header processing
// (x-envoy-upstream-canary) and for stats purposes.
//
// [#next-major-version: move to type/metadata/v2]
type Metadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Key is the reverse DNS filter name, e.g. com.acme.widget. The “envoy.*“
// namespace is reserved for Envoy's built-in filters.
// If both “filter_metadata“ and
// :ref:`typed_filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.typed_filter_metadata>`
// fields are present in the metadata with same keys,
// only “typed_filter_metadata“ field will be parsed.
FilterMetadata map[string]*structpb.Struct `protobuf:"bytes,1,rep,name=filter_metadata,json=filterMetadata,proto3" json:"filter_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Key is the reverse DNS filter name, e.g. com.acme.widget. The “envoy.*“
// namespace is reserved for Envoy's built-in filters.
// The value is encoded as google.protobuf.Any.
// If both :ref:`filter_metadata <envoy_v3_api_field_config.core.v3.Metadata.filter_metadata>`
// and “typed_filter_metadata“ fields are present in the metadata with same keys,
// only “typed_filter_metadata“ field will be parsed.
TypedFilterMetadata map[string]*anypb.Any `protobuf:"bytes,2,rep,name=typed_filter_metadata,json=typedFilterMetadata,proto3" json:"typed_filter_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Metadata) Reset() {
*x = Metadata{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Metadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Metadata) ProtoMessage() {}
func (x *Metadata) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Metadata.ProtoReflect.Descriptor instead.
func (*Metadata) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{4}
}
func (x *Metadata) GetFilterMetadata() map[string]*structpb.Struct {
if x != nil {
return x.FilterMetadata
}
return nil
}
func (x *Metadata) GetTypedFilterMetadata() map[string]*anypb.Any {
if x != nil {
return x.TypedFilterMetadata
}
return nil
}
// Runtime derived uint32 with a default when not specified.
type RuntimeUInt32 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Default value if runtime value is not available.
DefaultValue uint32 `protobuf:"varint,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
// Runtime key to get value for comparison. This value is used if defined.
RuntimeKey string `protobuf:"bytes,3,opt,name=runtime_key,json=runtimeKey,proto3" json:"runtime_key,omitempty"`
}
func (x *RuntimeUInt32) Reset() {
*x = RuntimeUInt32{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RuntimeUInt32) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RuntimeUInt32) ProtoMessage() {}
func (x *RuntimeUInt32) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RuntimeUInt32.ProtoReflect.Descriptor instead.
func (*RuntimeUInt32) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{5}
}
func (x *RuntimeUInt32) GetDefaultValue() uint32 {
if x != nil {
return x.DefaultValue
}
return 0
}
func (x *RuntimeUInt32) GetRuntimeKey() string {
if x != nil {
return x.RuntimeKey
}
return ""
}
// Runtime derived percentage with a default when not specified.
type RuntimePercent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Default value if runtime value is not available.
DefaultValue *v3.Percent `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
// Runtime key to get value for comparison. This value is used if defined.
RuntimeKey string `protobuf:"bytes,2,opt,name=runtime_key,json=runtimeKey,proto3" json:"runtime_key,omitempty"`
}
func (x *RuntimePercent) Reset() {
*x = RuntimePercent{}
if protoimpl.UnsafeEnabled {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RuntimePercent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RuntimePercent) ProtoMessage() {}
func (x *RuntimePercent) ProtoReflect() protoreflect.Message {
mi := &file_envoy_config_core_v3_base_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RuntimePercent.ProtoReflect.Descriptor instead.
func (*RuntimePercent) Descriptor() ([]byte, []int) {
return file_envoy_config_core_v3_base_proto_rawDescGZIP(), []int{6}
}
func (x *RuntimePercent) GetDefaultValue() *v3.Percent {
if x != nil {
return x.DefaultValue
}
return nil
}
func (x *RuntimePercent) GetRuntimeKey() string {
if x != nil {
return x.RuntimeKey
}
return ""
}
// Runtime derived double with a default when not specified.
type RuntimeDouble struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Default value if runtime value is not available.
DefaultValue float64 `protobuf:"fixed64,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
// Runtime key to get value for comparison. This value is used if defined.
RuntimeKey string `protobuf:"bytes,2,opt,name=runtime_key,json=runtimeKey,proto3" json:"runtime_key,omitempty"`