forked from envoyproxy/go-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lds.pb.go
1701 lines (1632 loc) · 48.7 KB
/
lds.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/lds.proto
package v2
import (
bytes "bytes"
context "context"
fmt "fmt"
io "io"
math "math"
time "time"
_ "github.com/gogo/googleapis/google/api"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
types "github.com/gogo/protobuf/types"
_ "github.com/lyft/protoc-gen-validate/validate"
grpc "google.golang.org/grpc"
core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
listener "github.com/envoyproxy/go-control-plane/envoy/api/v2/listener"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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
type Listener_DrainType int32
const (
// Drain in response to calling /healthcheck/fail admin endpoint (along with the health check
// filter), listener removal/modification, and hot restart.
Listener_DEFAULT Listener_DrainType = 0
// Drain in response to listener removal/modification and hot restart. This setting does not
// include /healthcheck/fail. This setting may be desirable if Envoy is hosting both ingress
// and egress listeners.
Listener_MODIFY_ONLY Listener_DrainType = 1
)
var Listener_DrainType_name = map[int32]string{
0: "DEFAULT",
1: "MODIFY_ONLY",
}
var Listener_DrainType_value = map[string]int32{
"DEFAULT": 0,
"MODIFY_ONLY": 1,
}
func (x Listener_DrainType) String() string {
return proto.EnumName(Listener_DrainType_name, int32(x))
}
func (Listener_DrainType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_34e2cd84a105bcd1, []int{0, 0}
}
// [#comment:next free field: 16]
type Listener struct {
// The unique name by which this listener is known. If no name is provided,
// Envoy will allocate an internal UUID for the listener. If the listener is to be dynamically
// updated or removed via :ref:`LDS <config_listeners_lds>` a unique name must be provided.
// By default, the maximum length of a listener's name is limited to 60 characters. This limit can
// be increased by setting the :option:`--max-obj-name-len` command line argument to the desired
// value.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The address that the listener should listen on. In general, the address must be unique, though
// that is governed by the bind rules of the OS. E.g., multiple listeners can listen on port 0 on
// Linux as the actual port will be allocated by the OS.
Address core.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address"`
// A list of filter chains to consider for this listener. The
// :ref:`FilterChain <envoy_api_msg_listener.FilterChain>` with the most specific
// :ref:`FilterChainMatch <envoy_api_msg_listener.FilterChainMatch>` criteria is used on a
// connection.
//
// Example using SNI for filter chain selection can be found in the
// :ref:`FAQ entry <faq_how_to_setup_sni>`.
FilterChains []listener.FilterChain `protobuf:"bytes,3,rep,name=filter_chains,json=filterChains,proto3" json:"filter_chains"`
// If a connection is redirected using *iptables*, the port on which the proxy
// receives it might be different from the original destination address. When this flag is set to
// true, the listener hands off redirected connections to the listener associated with the
// original destination address. If there is no listener associated with the original destination
// address, the connection is handled by the listener that receives it. Defaults to false.
//
// .. attention::
//
// This field is deprecated. Use :ref:`an original_dst <config_listener_filters_original_dst>`
// :ref:`listener filter <envoy_api_field_Listener.listener_filters>` instead.
//
// Note that hand off to another listener is *NOT* performed without this flag. Once
// :ref:`FilterChainMatch <envoy_api_msg_listener.FilterChainMatch>` is implemented this flag
// will be removed, as filter chain matching can be used to select a filter chain based on the
// restored destination address.
UseOriginalDst *types.BoolValue `protobuf:"bytes,4,opt,name=use_original_dst,json=useOriginalDst,proto3" json:"use_original_dst,omitempty"` // Deprecated: Do not use.
// Soft limit on size of the listener’s new connection read and write buffers.
// If unspecified, an implementation defined default is applied (1MiB).
PerConnectionBufferLimitBytes *types.UInt32Value `protobuf:"bytes,5,opt,name=per_connection_buffer_limit_bytes,json=perConnectionBufferLimitBytes,proto3" json:"per_connection_buffer_limit_bytes,omitempty"`
// Listener metadata.
Metadata *core.Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
// [#not-implemented-hide:]
DeprecatedV1 *Listener_DeprecatedV1 `protobuf:"bytes,7,opt,name=deprecated_v1,json=deprecatedV1,proto3" json:"deprecated_v1,omitempty"`
// The type of draining to perform at a listener-wide level.
DrainType Listener_DrainType `protobuf:"varint,8,opt,name=drain_type,json=drainType,proto3,enum=envoy.api.v2.Listener_DrainType" json:"drain_type,omitempty"`
// Listener filters have the opportunity to manipulate and augment the connection metadata that
// is used in connection filter chain matching, for example. These filters are run before any in
// :ref:`filter_chains <envoy_api_field_Listener.filter_chains>`. Order matters as the
// filters are processed sequentially right after a socket has been accepted by the listener, and
// before a connection is created.
ListenerFilters []listener.ListenerFilter `protobuf:"bytes,9,rep,name=listener_filters,json=listenerFilters,proto3" json:"listener_filters"`
// The timeout to wait for all listener filters to complete operation. If the timeout is reached,
// the accepted socket is closed without a connection being created. Specify 0 to disable the
// timeout. If not specified, a default timeout of 15s is used.
ListenerFiltersTimeout *time.Duration `protobuf:"bytes,15,opt,name=listener_filters_timeout,json=listenerFiltersTimeout,proto3,stdduration" json:"listener_filters_timeout,omitempty"`
// Whether the listener should be set as a transparent socket.
// When this flag is set to true, connections can be redirected to the listener using an
// *iptables* *TPROXY* target, in which case the original source and destination addresses and
// ports are preserved on accepted connections. This flag should be used in combination with
// :ref:`an original_dst <config_listener_filters_original_dst>` :ref:`listener filter
// <envoy_api_field_Listener.listener_filters>` to mark the connections' local addresses as
// "restored." This can be used to hand off each redirected connection to another listener
// associated with the connection's destination address. Direct connections to the socket without
// using *TPROXY* cannot be distinguished from connections redirected using *TPROXY* and are
// therefore treated as if they were redirected.
// When this flag is set to false, the listener's socket is explicitly reset as non-transparent.
// Setting this flag requires Envoy to run with the *CAP_NET_ADMIN* capability.
// When this flag is not set (default), the socket is not modified, i.e. the transparent option
// is neither set nor reset.
Transparent *types.BoolValue `protobuf:"bytes,10,opt,name=transparent,proto3" json:"transparent,omitempty"`
// Whether the listener should set the *IP_FREEBIND* socket option. When this
// flag is set to true, listeners can be bound to an IP address that is not
// configured on the system running Envoy. When this flag is set to false, the
// option *IP_FREEBIND* is disabled on the socket. When this flag is not set
// (default), the socket is not modified, i.e. the option is neither enabled
// nor disabled.
Freebind *types.BoolValue `protobuf:"bytes,11,opt,name=freebind,proto3" json:"freebind,omitempty"`
// Additional socket options that may not be present in Envoy source code or
// precompiled binaries.
SocketOptions []*core.SocketOption `protobuf:"bytes,13,rep,name=socket_options,json=socketOptions,proto3" json:"socket_options,omitempty"`
// Whether the listener should accept TCP Fast Open (TFO) connections.
// When this flag is set to a value greater than 0, the option TCP_FASTOPEN is enabled on
// the socket, with a queue length of the specified size
// (see `details in RFC7413 <https://tools.ietf.org/html/rfc7413#section-5.1>`_).
// When this flag is set to 0, the option TCP_FASTOPEN is disabled on the socket.
// When this flag is not set (default), the socket is not modified,
// i.e. the option is neither enabled nor disabled.
//
// On Linux, the net.ipv4.tcp_fastopen kernel parameter must include flag 0x2 to enable
// TCP_FASTOPEN.
// See `ip-sysctl.txt <https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt>`_.
//
// On macOS, only values of 0, 1, and unset are valid; other values may result in an error.
// To set the queue length on macOS, set the net.inet.tcp.fastopen_backlog kernel parameter.
TcpFastOpenQueueLength *types.UInt32Value `protobuf:"bytes,12,opt,name=tcp_fast_open_queue_length,json=tcpFastOpenQueueLength,proto3" json:"tcp_fast_open_queue_length,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Listener) Reset() { *m = Listener{} }
func (m *Listener) String() string { return proto.CompactTextString(m) }
func (*Listener) ProtoMessage() {}
func (*Listener) Descriptor() ([]byte, []int) {
return fileDescriptor_34e2cd84a105bcd1, []int{0}
}
func (m *Listener) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Listener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Listener.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 (m *Listener) XXX_Merge(src proto.Message) {
xxx_messageInfo_Listener.Merge(m, src)
}
func (m *Listener) XXX_Size() int {
return m.Size()
}
func (m *Listener) XXX_DiscardUnknown() {
xxx_messageInfo_Listener.DiscardUnknown(m)
}
var xxx_messageInfo_Listener proto.InternalMessageInfo
func (m *Listener) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Listener) GetAddress() core.Address {
if m != nil {
return m.Address
}
return core.Address{}
}
func (m *Listener) GetFilterChains() []listener.FilterChain {
if m != nil {
return m.FilterChains
}
return nil
}
// Deprecated: Do not use.
func (m *Listener) GetUseOriginalDst() *types.BoolValue {
if m != nil {
return m.UseOriginalDst
}
return nil
}
func (m *Listener) GetPerConnectionBufferLimitBytes() *types.UInt32Value {
if m != nil {
return m.PerConnectionBufferLimitBytes
}
return nil
}
func (m *Listener) GetMetadata() *core.Metadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Listener) GetDeprecatedV1() *Listener_DeprecatedV1 {
if m != nil {
return m.DeprecatedV1
}
return nil
}
func (m *Listener) GetDrainType() Listener_DrainType {
if m != nil {
return m.DrainType
}
return Listener_DEFAULT
}
func (m *Listener) GetListenerFilters() []listener.ListenerFilter {
if m != nil {
return m.ListenerFilters
}
return nil
}
func (m *Listener) GetListenerFiltersTimeout() *time.Duration {
if m != nil {
return m.ListenerFiltersTimeout
}
return nil
}
func (m *Listener) GetTransparent() *types.BoolValue {
if m != nil {
return m.Transparent
}
return nil
}
func (m *Listener) GetFreebind() *types.BoolValue {
if m != nil {
return m.Freebind
}
return nil
}
func (m *Listener) GetSocketOptions() []*core.SocketOption {
if m != nil {
return m.SocketOptions
}
return nil
}
func (m *Listener) GetTcpFastOpenQueueLength() *types.UInt32Value {
if m != nil {
return m.TcpFastOpenQueueLength
}
return nil
}
// [#not-implemented-hide:]
type Listener_DeprecatedV1 struct {
// Whether the listener should bind to the port. A listener that doesn't
// bind can only receive connections redirected from other listeners that
// set use_original_dst parameter to true. Default is true.
//
// [V2-API-DIFF] This is deprecated in v2, all Listeners will bind to their
// port. An additional filter chain must be created for every original
// destination port this listener may redirect to in v2, with the original
// port specified in the FilterChainMatch destination_port field.
//
// [#comment:TODO(PiotrSikora): Remove this once verified that we no longer need it.]
BindToPort *types.BoolValue `protobuf:"bytes,1,opt,name=bind_to_port,json=bindToPort,proto3" json:"bind_to_port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Listener_DeprecatedV1) Reset() { *m = Listener_DeprecatedV1{} }
func (m *Listener_DeprecatedV1) String() string { return proto.CompactTextString(m) }
func (*Listener_DeprecatedV1) ProtoMessage() {}
func (*Listener_DeprecatedV1) Descriptor() ([]byte, []int) {
return fileDescriptor_34e2cd84a105bcd1, []int{0, 0}
}
func (m *Listener_DeprecatedV1) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Listener_DeprecatedV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Listener_DeprecatedV1.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 (m *Listener_DeprecatedV1) XXX_Merge(src proto.Message) {
xxx_messageInfo_Listener_DeprecatedV1.Merge(m, src)
}
func (m *Listener_DeprecatedV1) XXX_Size() int {
return m.Size()
}
func (m *Listener_DeprecatedV1) XXX_DiscardUnknown() {
xxx_messageInfo_Listener_DeprecatedV1.DiscardUnknown(m)
}
var xxx_messageInfo_Listener_DeprecatedV1 proto.InternalMessageInfo
func (m *Listener_DeprecatedV1) GetBindToPort() *types.BoolValue {
if m != nil {
return m.BindToPort
}
return nil
}
func init() {
proto.RegisterEnum("envoy.api.v2.Listener_DrainType", Listener_DrainType_name, Listener_DrainType_value)
proto.RegisterType((*Listener)(nil), "envoy.api.v2.Listener")
proto.RegisterType((*Listener_DeprecatedV1)(nil), "envoy.api.v2.Listener.DeprecatedV1")
}
func init() { proto.RegisterFile("envoy/api/v2/lds.proto", fileDescriptor_34e2cd84a105bcd1) }
var fileDescriptor_34e2cd84a105bcd1 = []byte{
// 857 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x41, 0x6f, 0x1b, 0x45,
0x14, 0xce, 0x38, 0x6e, 0xe3, 0x8c, 0x1d, 0xdb, 0x1a, 0xa1, 0x74, 0x31, 0xc1, 0x36, 0x06, 0x24,
0xc3, 0xc1, 0xa6, 0xae, 0x04, 0x52, 0xa9, 0x84, 0xba, 0x35, 0x56, 0x8b, 0x5c, 0x1c, 0x36, 0x69,
0x68, 0x4e, 0xab, 0xf1, 0xee, 0xb3, 0x33, 0x62, 0x3d, 0x33, 0x9d, 0x99, 0x35, 0xf8, 0xca, 0x09,
0x71, 0x84, 0x0b, 0x3f, 0x81, 0xdf, 0xc0, 0x89, 0x63, 0x8f, 0x48, 0xdc, 0x01, 0x45, 0x5c, 0x10,
0xbf, 0x01, 0x09, 0xed, 0x78, 0xd7, 0xd8, 0x4d, 0x42, 0x38, 0x70, 0x7b, 0x33, 0xef, 0xfb, 0xbe,
0x7d, 0xf3, 0xbd, 0x37, 0xb3, 0x78, 0x1f, 0xf8, 0x5c, 0x2c, 0xba, 0x54, 0xb2, 0xee, 0xbc, 0xd7,
0x8d, 0x42, 0xdd, 0x91, 0x4a, 0x18, 0x41, 0x4a, 0x76, 0xbf, 0x43, 0x25, 0xeb, 0xcc, 0x7b, 0xb5,
0xc6, 0x06, 0x2a, 0x10, 0x0a, 0xba, 0x34, 0x0c, 0x15, 0xe8, 0x14, 0x5e, 0x3b, 0xb8, 0x08, 0x18,
0x53, 0x0d, 0x97, 0x66, 0x43, 0xa6, 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1, 0xf1, 0xa8, 0xff, 0x68, 0x70, 0xea, 0x8f, 0x3e, 0x1e, 0x9e, 0x56, 0xd1, 0x47, 0xf9, 0x42,
0xb9, 0x5a, 0xe9, 0xfd, 0x89, 0xb0, 0x93, 0xcd, 0x46, 0x3f, 0x7b, 0x4e, 0x8f, 0x40, 0xcd, 0x59,
0x00, 0xe4, 0x29, 0xae, 0x1c, 0x19, 0x05, 0x74, 0x96, 0x21, 0x34, 0xa9, 0x6f, 0x1a, 0xb7, 0xa2,
0x78, 0xf0, 0x2c, 0x06, 0x6d, 0x6a, 0x8d, 0x2b, 0xf3, 0x5a, 0x0a, 0xae, 0xa1, 0xb5, 0xd5, 0x46,
0xef, 0x20, 0x12, 0xe3, 0xf2, 0x00, 0x4c, 0x70, 0xf6, 0x3f, 0x0a, 0xb7, 0xbe, 0xfc, 0xf9, 0xf7,
0x6f, 0x73, 0x07, 0xad, 0x5b, 0x1b, 0x7f, 0x86, 0xbb, 0xd9, 0x38, 0xea, 0xbb, 0xe8, 0x6d, 0xf7,
0xfd, 0xef, 0xcf, 0xeb, 0xe8, 0xf9, 0x79, 0x1d, 0xfd, 0x74, 0x5e, 0x47, 0xbf, 0x9d, 0xd7, 0x11,
0xae, 0x31, 0xb1, 0x14, 0x96, 0x4a, 0x7c, 0xb1, 0xd8, 0xf8, 0x86, 0x5b, 0x18, 0x86, 0xfa, 0x30,
0xf1, 0xfb, 0x10, 0x7d, 0x85, 0xd0, 0xf8, 0xa6, 0xf5, 0xfe, 0xce, 0xdf, 0x01, 0x00, 0x00, 0xff,
0xff, 0x30, 0xb2, 0x88, 0xf1, 0xe9, 0x06, 0x00, 0x00,
}
func (this *Listener) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Listener)
if !ok {
that2, ok := that.(Listener)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Name != that1.Name {
return false
}
if !this.Address.Equal(&that1.Address) {
return false
}
if len(this.FilterChains) != len(that1.FilterChains) {
return false
}
for i := range this.FilterChains {
if !this.FilterChains[i].Equal(&that1.FilterChains[i]) {
return false
}
}
if !this.UseOriginalDst.Equal(that1.UseOriginalDst) {
return false
}
if !this.PerConnectionBufferLimitBytes.Equal(that1.PerConnectionBufferLimitBytes) {
return false
}
if !this.Metadata.Equal(that1.Metadata) {
return false
}
if !this.DeprecatedV1.Equal(that1.DeprecatedV1) {
return false
}
if this.DrainType != that1.DrainType {
return false
}
if len(this.ListenerFilters) != len(that1.ListenerFilters) {
return false
}
for i := range this.ListenerFilters {
if !this.ListenerFilters[i].Equal(&that1.ListenerFilters[i]) {
return false
}
}
if this.ListenerFiltersTimeout != nil && that1.ListenerFiltersTimeout != nil {
if *this.ListenerFiltersTimeout != *that1.ListenerFiltersTimeout {
return false
}
} else if this.ListenerFiltersTimeout != nil {
return false
} else if that1.ListenerFiltersTimeout != nil {
return false
}
if !this.Transparent.Equal(that1.Transparent) {
return false
}
if !this.Freebind.Equal(that1.Freebind) {
return false
}
if len(this.SocketOptions) != len(that1.SocketOptions) {
return false
}
for i := range this.SocketOptions {
if !this.SocketOptions[i].Equal(that1.SocketOptions[i]) {
return false
}
}
if !this.TcpFastOpenQueueLength.Equal(that1.TcpFastOpenQueueLength) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Listener_DeprecatedV1) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Listener_DeprecatedV1)
if !ok {
that2, ok := that.(Listener_DeprecatedV1)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.BindToPort.Equal(that1.BindToPort) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ListenerDiscoveryServiceClient is the client API for ListenerDiscoveryService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ListenerDiscoveryServiceClient interface {
StreamListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_StreamListenersClient, error)
FetchListeners(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error)
}
type listenerDiscoveryServiceClient struct {
cc *grpc.ClientConn
}
func NewListenerDiscoveryServiceClient(cc *grpc.ClientConn) ListenerDiscoveryServiceClient {
return &listenerDiscoveryServiceClient{cc}
}
func (c *listenerDiscoveryServiceClient) StreamListeners(ctx context.Context, opts ...grpc.CallOption) (ListenerDiscoveryService_StreamListenersClient, error) {
stream, err := c.cc.NewStream(ctx, &_ListenerDiscoveryService_serviceDesc.Streams[0], "/envoy.api.v2.ListenerDiscoveryService/StreamListeners", opts...)
if err != nil {
return nil, err
}
x := &listenerDiscoveryServiceStreamListenersClient{stream}
return x, nil
}
type ListenerDiscoveryService_StreamListenersClient interface {
Send(*DiscoveryRequest) error
Recv() (*DiscoveryResponse, error)
grpc.ClientStream
}
type listenerDiscoveryServiceStreamListenersClient struct {
grpc.ClientStream
}
func (x *listenerDiscoveryServiceStreamListenersClient) Send(m *DiscoveryRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *listenerDiscoveryServiceStreamListenersClient) Recv() (*DiscoveryResponse, error) {
m := new(DiscoveryResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *listenerDiscoveryServiceClient) FetchListeners(ctx context.Context, in *DiscoveryRequest, opts ...grpc.CallOption) (*DiscoveryResponse, error) {
out := new(DiscoveryResponse)
err := c.cc.Invoke(ctx, "/envoy.api.v2.ListenerDiscoveryService/FetchListeners", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ListenerDiscoveryServiceServer is the server API for ListenerDiscoveryService service.
type ListenerDiscoveryServiceServer interface {
StreamListeners(ListenerDiscoveryService_StreamListenersServer) error
FetchListeners(context.Context, *DiscoveryRequest) (*DiscoveryResponse, error)
}
func RegisterListenerDiscoveryServiceServer(s *grpc.Server, srv ListenerDiscoveryServiceServer) {
s.RegisterService(&_ListenerDiscoveryService_serviceDesc, srv)
}
func _ListenerDiscoveryService_StreamListeners_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ListenerDiscoveryServiceServer).StreamListeners(&listenerDiscoveryServiceStreamListenersServer{stream})
}
type ListenerDiscoveryService_StreamListenersServer interface {
Send(*DiscoveryResponse) error
Recv() (*DiscoveryRequest, error)
grpc.ServerStream
}
type listenerDiscoveryServiceStreamListenersServer struct {
grpc.ServerStream
}
func (x *listenerDiscoveryServiceStreamListenersServer) Send(m *DiscoveryResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *listenerDiscoveryServiceStreamListenersServer) Recv() (*DiscoveryRequest, error) {
m := new(DiscoveryRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _ListenerDiscoveryService_FetchListeners_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DiscoveryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ListenerDiscoveryServiceServer).FetchListeners(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/envoy.api.v2.ListenerDiscoveryService/FetchListeners",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ListenerDiscoveryServiceServer).FetchListeners(ctx, req.(*DiscoveryRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ListenerDiscoveryService_serviceDesc = grpc.ServiceDesc{
ServiceName: "envoy.api.v2.ListenerDiscoveryService",
HandlerType: (*ListenerDiscoveryServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "FetchListeners",
Handler: _ListenerDiscoveryService_FetchListeners_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamListeners",
Handler: _ListenerDiscoveryService_StreamListeners_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "envoy/api/v2/lds.proto",
}
func (m *Listener) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Listener) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if len(m.Name) > 0 {
dAtA[i] = 0xa
i++
i = encodeVarintLds(dAtA, i, uint64(len(m.Name)))
i += copy(dAtA[i:], m.Name)
}
dAtA[i] = 0x12
i++
i = encodeVarintLds(dAtA, i, uint64(m.Address.Size()))
n1, err := m.Address.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n1
if len(m.FilterChains) > 0 {
for _, msg := range m.FilterChains {
dAtA[i] = 0x1a
i++
i = encodeVarintLds(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.UseOriginalDst != nil {
dAtA[i] = 0x22
i++
i = encodeVarintLds(dAtA, i, uint64(m.UseOriginalDst.Size()))
n2, err := m.UseOriginalDst.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n2
}
if m.PerConnectionBufferLimitBytes != nil {
dAtA[i] = 0x2a
i++
i = encodeVarintLds(dAtA, i, uint64(m.PerConnectionBufferLimitBytes.Size()))
n3, err := m.PerConnectionBufferLimitBytes.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n3
}
if m.Metadata != nil {
dAtA[i] = 0x32
i++
i = encodeVarintLds(dAtA, i, uint64(m.Metadata.Size()))
n4, err := m.Metadata.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n4
}
if m.DeprecatedV1 != nil {
dAtA[i] = 0x3a
i++
i = encodeVarintLds(dAtA, i, uint64(m.DeprecatedV1.Size()))
n5, err := m.DeprecatedV1.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n5
}
if m.DrainType != 0 {
dAtA[i] = 0x40
i++
i = encodeVarintLds(dAtA, i, uint64(m.DrainType))
}
if len(m.ListenerFilters) > 0 {
for _, msg := range m.ListenerFilters {
dAtA[i] = 0x4a
i++
i = encodeVarintLds(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.Transparent != nil {
dAtA[i] = 0x52
i++
i = encodeVarintLds(dAtA, i, uint64(m.Transparent.Size()))
n6, err := m.Transparent.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n6
}
if m.Freebind != nil {
dAtA[i] = 0x5a
i++
i = encodeVarintLds(dAtA, i, uint64(m.Freebind.Size()))
n7, err := m.Freebind.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n7
}
if m.TcpFastOpenQueueLength != nil {
dAtA[i] = 0x62
i++
i = encodeVarintLds(dAtA, i, uint64(m.TcpFastOpenQueueLength.Size()))
n8, err := m.TcpFastOpenQueueLength.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n8
}
if len(m.SocketOptions) > 0 {
for _, msg := range m.SocketOptions {
dAtA[i] = 0x6a
i++
i = encodeVarintLds(dAtA, i, uint64(msg.Size()))
n, err := msg.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n
}
}
if m.ListenerFiltersTimeout != nil {
dAtA[i] = 0x7a
i++
i = encodeVarintLds(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ListenerFiltersTimeout)))
n9, err := github_com_gogo_protobuf_types.StdDurationMarshalTo(*m.ListenerFiltersTimeout, dAtA[i:])
if err != nil {
return 0, err
}
i += n9
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func (m *Listener_DeprecatedV1) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalTo(dAtA)
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *Listener_DeprecatedV1) MarshalTo(dAtA []byte) (int, error) {
var i int
_ = i
var l int
_ = l
if m.BindToPort != nil {
dAtA[i] = 0xa
i++
i = encodeVarintLds(dAtA, i, uint64(m.BindToPort.Size()))
n10, err := m.BindToPort.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n10
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
func encodeVarintLds(dAtA []byte, offset int, v uint64) int {
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return offset + 1
}
func (m *Listener) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Name)
if l > 0 {
n += 1 + l + sovLds(uint64(l))
}
l = m.Address.Size()
n += 1 + l + sovLds(uint64(l))
if len(m.FilterChains) > 0 {
for _, e := range m.FilterChains {
l = e.Size()
n += 1 + l + sovLds(uint64(l))
}
}
if m.UseOriginalDst != nil {
l = m.UseOriginalDst.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.PerConnectionBufferLimitBytes != nil {
l = m.PerConnectionBufferLimitBytes.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.Metadata != nil {
l = m.Metadata.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.DeprecatedV1 != nil {
l = m.DeprecatedV1.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.DrainType != 0 {
n += 1 + sovLds(uint64(m.DrainType))
}
if len(m.ListenerFilters) > 0 {
for _, e := range m.ListenerFilters {
l = e.Size()
n += 1 + l + sovLds(uint64(l))
}
}
if m.Transparent != nil {
l = m.Transparent.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.Freebind != nil {
l = m.Freebind.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.TcpFastOpenQueueLength != nil {
l = m.TcpFastOpenQueueLength.Size()
n += 1 + l + sovLds(uint64(l))
}
if len(m.SocketOptions) > 0 {
for _, e := range m.SocketOptions {
l = e.Size()
n += 1 + l + sovLds(uint64(l))
}
}
if m.ListenerFiltersTimeout != nil {
l = github_com_gogo_protobuf_types.SizeOfStdDuration(*m.ListenerFiltersTimeout)
n += 1 + l + sovLds(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Listener_DeprecatedV1) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.BindToPort != nil {
l = m.BindToPort.Size()
n += 1 + l + sovLds(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovLds(x uint64) (n int) {
for {
n++
x >>= 7
if x == 0 {
break
}
}
return n
}
func sozLds(x uint64) (n int) {
return sovLds(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Listener) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowLds
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: Listener: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Listener: illegal tag %d (wire type %d)", fieldNum, wire)