-
Notifications
You must be signed in to change notification settings - Fork 504
/
base.pb.go
3779 lines (3628 loc) · 93.4 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-gogo. DO NOT EDIT.
// source: envoy/api/v2/core/base.proto
package core
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _type "github.com/envoyproxy/go-control-plane/envoy/type"
import _ "github.com/gogo/protobuf/gogoproto"
import types "github.com/gogo/protobuf/types"
import _ "github.com/lyft/protoc-gen-validate/validate"
import bytes "bytes"
import io "io"
// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
// 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
)
var RoutingPriority_name = map[int32]string{
0: "DEFAULT",
1: "HIGH",
}
var RoutingPriority_value = map[string]int32{
"DEFAULT": 0,
"HIGH": 1,
}
func (x RoutingPriority) String() string {
return proto.EnumName(RoutingPriority_name, int32(x))
}
func (RoutingPriority) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{0}
}
// HTTP request method.
type RequestMethod int32
const (
METHOD_UNSPECIFIED RequestMethod = 0
GET RequestMethod = 1
HEAD RequestMethod = 2
POST RequestMethod = 3
PUT RequestMethod = 4
DELETE RequestMethod = 5
CONNECT RequestMethod = 6
OPTIONS RequestMethod = 7
TRACE RequestMethod = 8
)
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",
}
var RequestMethod_value = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"GET": 1,
"HEAD": 2,
"POST": 3,
"PUT": 4,
"DELETE": 5,
"CONNECT": 6,
"OPTIONS": 7,
"TRACE": 8,
}
func (x RequestMethod) String() string {
return proto.EnumName(RequestMethod_name, int32(x))
}
func (RequestMethod) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{1}
}
type SocketOption_SocketState int32
const (
// Socket options are applied after socket creation but before binding the socket to a port
STATE_PREBIND SocketOption_SocketState = 0
// Socket options are applied after binding the socket to a port but before calling listen()
STATE_BOUND SocketOption_SocketState = 1
// Socket options are applied after calling listen()
STATE_LISTENING SocketOption_SocketState = 2
)
var SocketOption_SocketState_name = map[int32]string{
0: "STATE_PREBIND",
1: "STATE_BOUND",
2: "STATE_LISTENING",
}
var SocketOption_SocketState_value = map[string]int32{
"STATE_PREBIND": 0,
"STATE_BOUND": 1,
"STATE_LISTENING": 2,
}
func (x SocketOption_SocketState) String() string {
return proto.EnumName(SocketOption_SocketState_name, int32(x))
}
func (SocketOption_SocketState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{8, 0}
}
// Identifies location of where either Envoy runs or where upstream hosts run.
type Locality struct {
// Region this :ref:`zone <envoy_api_field_core.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_api_field_endpoint.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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Locality) Reset() { *m = Locality{} }
func (m *Locality) String() string { return proto.CompactTextString(m) }
func (*Locality) ProtoMessage() {}
func (*Locality) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{0}
}
func (m *Locality) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Locality) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Locality.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Locality) XXX_Merge(src proto.Message) {
xxx_messageInfo_Locality.Merge(dst, src)
}
func (m *Locality) XXX_Size() int {
return m.Size()
}
func (m *Locality) XXX_DiscardUnknown() {
xxx_messageInfo_Locality.DiscardUnknown(m)
}
var xxx_messageInfo_Locality proto.InternalMessageInfo
func (m *Locality) GetRegion() string {
if m != nil {
return m.Region
}
return ""
}
func (m *Locality) GetZone() string {
if m != nil {
return m.Zone
}
return ""
}
func (m *Locality) GetSubZone() string {
if m != nil {
return m.SubZone
}
return ""
}
// 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.
type Node struct {
// 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_api_field_core.HealthCheck.HttpHealthCheck.service_name>`,
// :ref:`runtime override directory <envoy_api_msg_config.bootstrap.v2.Runtime>`,
// :ref:`user agent addition
// <envoy_api_field_config.filter.network.http_connection_manager.v2.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 *types.Struct `protobuf:"bytes,3,opt,name=metadata" json:"metadata,omitempty"`
// Locality specifying where the Envoy instance is running.
Locality *Locality `protobuf:"bytes,4,opt,name=locality" json:"locality,omitempty"`
// This is motivated by informing a management server during canary which
// version of Envoy is being tested in a heterogeneous fleet. This will be set
// by Envoy in management server RPCs.
BuildVersion string `protobuf:"bytes,5,opt,name=build_version,json=buildVersion,proto3" json:"build_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Node) Reset() { *m = Node{} }
func (m *Node) String() string { return proto.CompactTextString(m) }
func (*Node) ProtoMessage() {}
func (*Node) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{1}
}
func (m *Node) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Node.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Node) XXX_Merge(src proto.Message) {
xxx_messageInfo_Node.Merge(dst, src)
}
func (m *Node) XXX_Size() int {
return m.Size()
}
func (m *Node) XXX_DiscardUnknown() {
xxx_messageInfo_Node.DiscardUnknown(m)
}
var xxx_messageInfo_Node proto.InternalMessageInfo
func (m *Node) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Node) GetCluster() string {
if m != nil {
return m.Cluster
}
return ""
}
func (m *Node) GetMetadata() *types.Struct {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Node) GetLocality() *Locality {
if m != nil {
return m.Locality
}
return nil
}
func (m *Node) GetBuildVersion() string {
if m != nil {
return m.BuildVersion
}
return ""
}
// Metadata provides additional inputs to filters based on matched listeners,
// filter chains, routes and endpoints. It is structured as a map 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.
//
// 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.
type Metadata struct {
// Key is the reverse DNS filter name, e.g. com.acme.widget. The envoy.*
// namespace is reserved for Envoy's built-in filters.
FilterMetadata map[string]*types.Struct `protobuf:"bytes,1,rep,name=filter_metadata,json=filterMetadata" json:"filter_metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Metadata) Reset() { *m = Metadata{} }
func (m *Metadata) String() string { return proto.CompactTextString(m) }
func (*Metadata) ProtoMessage() {}
func (*Metadata) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{2}
}
func (m *Metadata) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Metadata.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Metadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_Metadata.Merge(dst, src)
}
func (m *Metadata) XXX_Size() int {
return m.Size()
}
func (m *Metadata) XXX_DiscardUnknown() {
xxx_messageInfo_Metadata.DiscardUnknown(m)
}
var xxx_messageInfo_Metadata proto.InternalMessageInfo
func (m *Metadata) GetFilterMetadata() map[string]*types.Struct {
if m != nil {
return m.FilterMetadata
}
return nil
}
// Runtime derived uint32 with a default when not specified.
type RuntimeUInt32 struct {
// 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeUInt32) Reset() { *m = RuntimeUInt32{} }
func (m *RuntimeUInt32) String() string { return proto.CompactTextString(m) }
func (*RuntimeUInt32) ProtoMessage() {}
func (*RuntimeUInt32) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{3}
}
func (m *RuntimeUInt32) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RuntimeUInt32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RuntimeUInt32.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *RuntimeUInt32) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuntimeUInt32.Merge(dst, src)
}
func (m *RuntimeUInt32) XXX_Size() int {
return m.Size()
}
func (m *RuntimeUInt32) XXX_DiscardUnknown() {
xxx_messageInfo_RuntimeUInt32.DiscardUnknown(m)
}
var xxx_messageInfo_RuntimeUInt32 proto.InternalMessageInfo
func (m *RuntimeUInt32) GetDefaultValue() uint32 {
if m != nil {
return m.DefaultValue
}
return 0
}
func (m *RuntimeUInt32) GetRuntimeKey() string {
if m != nil {
return m.RuntimeKey
}
return ""
}
// Header name/value pair.
type HeaderValue struct {
// Header name.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Header value.
//
// The same :ref:`format specifier <config_access_log_format>` as used for
// :ref:`HTTP access logging <config_access_log>` applies here, however
// unknown header values are replaced with the empty string instead of `-`.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HeaderValue) Reset() { *m = HeaderValue{} }
func (m *HeaderValue) String() string { return proto.CompactTextString(m) }
func (*HeaderValue) ProtoMessage() {}
func (*HeaderValue) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{4}
}
func (m *HeaderValue) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HeaderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HeaderValue.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *HeaderValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeaderValue.Merge(dst, src)
}
func (m *HeaderValue) XXX_Size() int {
return m.Size()
}
func (m *HeaderValue) XXX_DiscardUnknown() {
xxx_messageInfo_HeaderValue.DiscardUnknown(m)
}
var xxx_messageInfo_HeaderValue proto.InternalMessageInfo
func (m *HeaderValue) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *HeaderValue) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Header name/value pair plus option to control append behavior.
type HeaderValueOption struct {
// Header name/value pair that this option applies to.
Header *HeaderValue `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
// Should the value be appended? If true (default), the value is appended to
// existing values.
Append *types.BoolValue `protobuf:"bytes,2,opt,name=append" json:"append,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HeaderValueOption) Reset() { *m = HeaderValueOption{} }
func (m *HeaderValueOption) String() string { return proto.CompactTextString(m) }
func (*HeaderValueOption) ProtoMessage() {}
func (*HeaderValueOption) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{5}
}
func (m *HeaderValueOption) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HeaderValueOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HeaderValueOption.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *HeaderValueOption) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeaderValueOption.Merge(dst, src)
}
func (m *HeaderValueOption) XXX_Size() int {
return m.Size()
}
func (m *HeaderValueOption) XXX_DiscardUnknown() {
xxx_messageInfo_HeaderValueOption.DiscardUnknown(m)
}
var xxx_messageInfo_HeaderValueOption proto.InternalMessageInfo
func (m *HeaderValueOption) GetHeader() *HeaderValue {
if m != nil {
return m.Header
}
return nil
}
func (m *HeaderValueOption) GetAppend() *types.BoolValue {
if m != nil {
return m.Append
}
return nil
}
// Data source consisting of either a file or an inline value.
type DataSource struct {
// Types that are valid to be assigned to Specifier:
// *DataSource_Filename
// *DataSource_InlineBytes
// *DataSource_InlineString
Specifier isDataSource_Specifier `protobuf_oneof:"specifier"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DataSource) Reset() { *m = DataSource{} }
func (m *DataSource) String() string { return proto.CompactTextString(m) }
func (*DataSource) ProtoMessage() {}
func (*DataSource) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{6}
}
func (m *DataSource) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DataSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DataSource.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *DataSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_DataSource.Merge(dst, src)
}
func (m *DataSource) XXX_Size() int {
return m.Size()
}
func (m *DataSource) XXX_DiscardUnknown() {
xxx_messageInfo_DataSource.DiscardUnknown(m)
}
var xxx_messageInfo_DataSource proto.InternalMessageInfo
type isDataSource_Specifier interface {
isDataSource_Specifier()
Equal(interface{}) bool
MarshalTo([]byte) (int, error)
Size() int
}
type DataSource_Filename struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3,oneof"`
}
type DataSource_InlineBytes struct {
InlineBytes []byte `protobuf:"bytes,2,opt,name=inline_bytes,json=inlineBytes,proto3,oneof"`
}
type DataSource_InlineString struct {
InlineString string `protobuf:"bytes,3,opt,name=inline_string,json=inlineString,proto3,oneof"`
}
func (*DataSource_Filename) isDataSource_Specifier() {}
func (*DataSource_InlineBytes) isDataSource_Specifier() {}
func (*DataSource_InlineString) isDataSource_Specifier() {}
func (m *DataSource) GetSpecifier() isDataSource_Specifier {
if m != nil {
return m.Specifier
}
return nil
}
func (m *DataSource) GetFilename() string {
if x, ok := m.GetSpecifier().(*DataSource_Filename); ok {
return x.Filename
}
return ""
}
func (m *DataSource) GetInlineBytes() []byte {
if x, ok := m.GetSpecifier().(*DataSource_InlineBytes); ok {
return x.InlineBytes
}
return nil
}
func (m *DataSource) GetInlineString() string {
if x, ok := m.GetSpecifier().(*DataSource_InlineString); ok {
return x.InlineString
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*DataSource) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _DataSource_OneofMarshaler, _DataSource_OneofUnmarshaler, _DataSource_OneofSizer, []interface{}{
(*DataSource_Filename)(nil),
(*DataSource_InlineBytes)(nil),
(*DataSource_InlineString)(nil),
}
}
func _DataSource_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*DataSource)
// specifier
switch x := m.Specifier.(type) {
case *DataSource_Filename:
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
_ = b.EncodeStringBytes(x.Filename)
case *DataSource_InlineBytes:
_ = b.EncodeVarint(2<<3 | proto.WireBytes)
_ = b.EncodeRawBytes(x.InlineBytes)
case *DataSource_InlineString:
_ = b.EncodeVarint(3<<3 | proto.WireBytes)
_ = b.EncodeStringBytes(x.InlineString)
case nil:
default:
return fmt.Errorf("DataSource.Specifier has unexpected type %T", x)
}
return nil
}
func _DataSource_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*DataSource)
switch tag {
case 1: // specifier.filename
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Specifier = &DataSource_Filename{x}
return true, err
case 2: // specifier.inline_bytes
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Specifier = &DataSource_InlineBytes{x}
return true, err
case 3: // specifier.inline_string
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.Specifier = &DataSource_InlineString{x}
return true, err
default:
return false, nil
}
}
func _DataSource_OneofSizer(msg proto.Message) (n int) {
m := msg.(*DataSource)
// specifier
switch x := m.Specifier.(type) {
case *DataSource_Filename:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.Filename)))
n += len(x.Filename)
case *DataSource_InlineBytes:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.InlineBytes)))
n += len(x.InlineBytes)
case *DataSource_InlineString:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.InlineString)))
n += len(x.InlineString)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Configuration for transport socket in :ref:`listeners <config_listeners>` and
// :ref:`clusters <envoy_api_msg_Cluster>`. If the configuration is
// empty, a default transport socket implementation and configuration will be
// chosen based on the platform and existence of tls_context.
type TransportSocket struct {
// The name of the transport socket to instantiate. The name must match a supported transport
// socket implementation.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Implementation specific configuration which depends on the implementation being instantiated.
// See the supported transport socket implementations for further documentation.
Config *types.Struct `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TransportSocket) Reset() { *m = TransportSocket{} }
func (m *TransportSocket) String() string { return proto.CompactTextString(m) }
func (*TransportSocket) ProtoMessage() {}
func (*TransportSocket) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{7}
}
func (m *TransportSocket) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TransportSocket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TransportSocket.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *TransportSocket) XXX_Merge(src proto.Message) {
xxx_messageInfo_TransportSocket.Merge(dst, src)
}
func (m *TransportSocket) XXX_Size() int {
return m.Size()
}
func (m *TransportSocket) XXX_DiscardUnknown() {
xxx_messageInfo_TransportSocket.DiscardUnknown(m)
}
var xxx_messageInfo_TransportSocket proto.InternalMessageInfo
func (m *TransportSocket) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *TransportSocket) GetConfig() *types.Struct {
if m != nil {
return m.Config
}
return nil
}
// Generic socket option message. This would be used to set socket options that
// might not exist in upstream kernels or precompiled Envoy binaries.
type SocketOption struct {
// An optional name to give this socket option for debugging, etc.
// Uniqueness is not required and no special meaning is assumed.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Corresponding to the level value passed to setsockopt, such as IPPROTO_TCP
Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
// The numeric name as passed to setsockopt
Name int64 `protobuf:"varint,3,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Value:
// *SocketOption_IntValue
// *SocketOption_BufValue
Value isSocketOption_Value `protobuf_oneof:"value"`
// The state in which the option will be applied. When used in BindConfig
// STATE_PREBIND is currently the only valid value.
State SocketOption_SocketState `protobuf:"varint,6,opt,name=state,proto3,enum=envoy.api.v2.core.SocketOption_SocketState" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SocketOption) Reset() { *m = SocketOption{} }
func (m *SocketOption) String() string { return proto.CompactTextString(m) }
func (*SocketOption) ProtoMessage() {}
func (*SocketOption) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{8}
}
func (m *SocketOption) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SocketOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SocketOption.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *SocketOption) XXX_Merge(src proto.Message) {
xxx_messageInfo_SocketOption.Merge(dst, src)
}
func (m *SocketOption) XXX_Size() int {
return m.Size()
}
func (m *SocketOption) XXX_DiscardUnknown() {
xxx_messageInfo_SocketOption.DiscardUnknown(m)
}
var xxx_messageInfo_SocketOption proto.InternalMessageInfo
type isSocketOption_Value interface {
isSocketOption_Value()
Equal(interface{}) bool
MarshalTo([]byte) (int, error)
Size() int
}
type SocketOption_IntValue struct {
IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"`
}
type SocketOption_BufValue struct {
BufValue []byte `protobuf:"bytes,5,opt,name=buf_value,json=bufValue,proto3,oneof"`
}
func (*SocketOption_IntValue) isSocketOption_Value() {}
func (*SocketOption_BufValue) isSocketOption_Value() {}
func (m *SocketOption) GetValue() isSocketOption_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *SocketOption) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *SocketOption) GetLevel() int64 {
if m != nil {
return m.Level
}
return 0
}
func (m *SocketOption) GetName() int64 {
if m != nil {
return m.Name
}
return 0
}
func (m *SocketOption) GetIntValue() int64 {
if x, ok := m.GetValue().(*SocketOption_IntValue); ok {
return x.IntValue
}
return 0
}
func (m *SocketOption) GetBufValue() []byte {
if x, ok := m.GetValue().(*SocketOption_BufValue); ok {
return x.BufValue
}
return nil
}
func (m *SocketOption) GetState() SocketOption_SocketState {
if m != nil {
return m.State
}
return STATE_PREBIND
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*SocketOption) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _SocketOption_OneofMarshaler, _SocketOption_OneofUnmarshaler, _SocketOption_OneofSizer, []interface{}{
(*SocketOption_IntValue)(nil),
(*SocketOption_BufValue)(nil),
}
}
func _SocketOption_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*SocketOption)
// value
switch x := m.Value.(type) {
case *SocketOption_IntValue:
_ = b.EncodeVarint(4<<3 | proto.WireVarint)
_ = b.EncodeVarint(uint64(x.IntValue))
case *SocketOption_BufValue:
_ = b.EncodeVarint(5<<3 | proto.WireBytes)
_ = b.EncodeRawBytes(x.BufValue)
case nil:
default:
return fmt.Errorf("SocketOption.Value has unexpected type %T", x)
}
return nil
}
func _SocketOption_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*SocketOption)
switch tag {
case 4: // value.int_value
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &SocketOption_IntValue{int64(x)}
return true, err
case 5: // value.buf_value
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.Value = &SocketOption_BufValue{x}
return true, err
default:
return false, nil
}
}
func _SocketOption_OneofSizer(msg proto.Message) (n int) {
m := msg.(*SocketOption)
// value
switch x := m.Value.(type) {
case *SocketOption_IntValue:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.IntValue))
case *SocketOption_BufValue:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(len(x.BufValue)))
n += len(x.BufValue)
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Runtime derived FractionalPercent with defaults for when the numerator or denominator is not
// specified via a runtime key.
type RuntimeFractionalPercent struct {
// Default value if the runtime value's for the numerator/denominator keys are not available.
DefaultValue *_type.FractionalPercent `protobuf:"bytes,1,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
// Runtime key for a YAML representation of a FractionalPercent.
RuntimeKey string `protobuf:"bytes,2,opt,name=runtime_key,json=runtimeKey,proto3" json:"runtime_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeFractionalPercent) Reset() { *m = RuntimeFractionalPercent{} }
func (m *RuntimeFractionalPercent) String() string { return proto.CompactTextString(m) }
func (*RuntimeFractionalPercent) ProtoMessage() {}
func (*RuntimeFractionalPercent) Descriptor() ([]byte, []int) {
return fileDescriptor_base_d46574b6d3eea0f6, []int{9}