/
bootstrap.pb.go
3062 lines (2937 loc) · 73.5 KB
/
bootstrap.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: config/bootstrap/bootstrap.proto
package bootstrap
import (
bytes "bytes"
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
common "github.com/samaritan-proxy/samaritan/pb/common"
service "github.com/samaritan-proxy/samaritan/pb/config/service"
io "io"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
)
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Sink type
type Sink_Type int32
const (
UNKNOWN Sink_Type = 0
STATSD Sink_Type = 1
)
var Sink_Type_name = map[int32]string{
0: "UNKNOWN",
1: "STATSD",
}
var Sink_Type_value = map[string]int32{
"UNKNOWN": 0,
"STATSD": 1,
}
func (x Sink_Type) String() string {
return proto.EnumName(Sink_Type_name, int32(x))
}
func (Sink_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{1, 0}
}
type Log_Level int32
const (
// Print base messages during running. This is in addition to warnings and
// errors.
INFO Log_Level = 0
// Print everything, including debugging information.
DEBUG Log_Level = -1
// Print all warnings and errors.
WARING Log_Level = 1
// Print all errors.
ERROR Log_Level = 2
// Print nothing.
QUIET Log_Level = 3
)
var Log_Level_name = map[int32]string{
0: "INFO",
-1: "DEBUG",
1: "WARING",
2: "ERROR",
3: "QUIET",
}
var Log_Level_value = map[string]int32{
"INFO": 0,
"DEBUG": -1,
"WARING": 1,
"ERROR": 2,
"QUIET": 3,
}
func (x Log_Level) String() string {
return proto.EnumName(Log_Level_name, int32(x))
}
func (Log_Level) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{3, 0}
}
type Log_Output_Type int32
const (
STDOUT Log_Output_Type = 0
SYSLOG Log_Output_Type = 1
)
var Log_Output_Type_name = map[int32]string{
0: "STDOUT",
1: "SYSLOG",
}
var Log_Output_Type_value = map[string]int32{
"STDOUT": 0,
"SYSLOG": 1,
}
func (x Log_Output_Type) String() string {
return proto.EnumName(Log_Output_Type_name, int32(x))
}
func (Log_Output_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{3, 0, 0}
}
// This message is supplied via '-config' cli flag and act as the
// root of configuration.
type Bootstrap struct {
// The instance contains the meta information of the current instance.
Instance *common.Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
// Configuration for log.
Log Log `protobuf:"bytes,2,opt,name=log,proto3" json:"log"`
// Configuration for stats.
Stats Stats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats"`
// Configuration for the local administration HTTP server.
Admin *Admin `protobuf:"bytes,4,opt,name=admin,proto3" json:"admin,omitempty"`
// Statically specified services.
StaticServices []*StaticService `protobuf:"bytes,5,rep,name=static_services,json=staticServices,proto3" json:"static_services,omitempty"`
// Configuration for dynamic source config.
DynamicSourceConfig *ConfigSource `protobuf:"bytes,6,opt,name=dynamic_source_config,json=dynamicSourceConfig,proto3" json:"dynamic_source_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Bootstrap) Reset() { *m = Bootstrap{} }
func (m *Bootstrap) String() string { return proto.CompactTextString(m) }
func (*Bootstrap) ProtoMessage() {}
func (*Bootstrap) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{0}
}
func (m *Bootstrap) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Bootstrap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Bootstrap.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Bootstrap) XXX_Merge(src proto.Message) {
xxx_messageInfo_Bootstrap.Merge(m, src)
}
func (m *Bootstrap) XXX_Size() int {
return m.Size()
}
func (m *Bootstrap) XXX_DiscardUnknown() {
xxx_messageInfo_Bootstrap.DiscardUnknown(m)
}
var xxx_messageInfo_Bootstrap proto.InternalMessageInfo
func (m *Bootstrap) GetInstance() *common.Instance {
if m != nil {
return m.Instance
}
return nil
}
func (m *Bootstrap) GetLog() Log {
if m != nil {
return m.Log
}
return Log{}
}
func (m *Bootstrap) GetStats() Stats {
if m != nil {
return m.Stats
}
return Stats{}
}
func (m *Bootstrap) GetAdmin() *Admin {
if m != nil {
return m.Admin
}
return nil
}
func (m *Bootstrap) GetStaticServices() []*StaticService {
if m != nil {
return m.StaticServices
}
return nil
}
func (m *Bootstrap) GetDynamicSourceConfig() *ConfigSource {
if m != nil {
return m.DynamicSourceConfig
}
return nil
}
// Sink is a sink for stats. Each Sink is responsible for writing stats
// to a backing store.
type Sink struct {
Type Sink_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bootstrap.Sink_Type" json:"type,omitempty"`
// Sink endpoint, not empty.
Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Sink) Reset() { *m = Sink{} }
func (m *Sink) String() string { return proto.CompactTextString(m) }
func (*Sink) ProtoMessage() {}
func (*Sink) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{1}
}
func (m *Sink) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Sink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Sink.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Sink) XXX_Merge(src proto.Message) {
xxx_messageInfo_Sink.Merge(m, src)
}
func (m *Sink) XXX_Size() int {
return m.Size()
}
func (m *Sink) XXX_DiscardUnknown() {
xxx_messageInfo_Sink.DiscardUnknown(m)
}
var xxx_messageInfo_Sink proto.InternalMessageInfo
func (m *Sink) GetType() Sink_Type {
if m != nil {
return m.Type
}
return UNKNOWN
}
func (m *Sink) GetEndpoint() string {
if m != nil {
return m.Endpoint
}
return ""
}
// Stats config.
type Stats struct {
// Optional set of stats sinks.
Sinks []*Sink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Stats) Reset() { *m = Stats{} }
func (m *Stats) String() string { return proto.CompactTextString(m) }
func (*Stats) ProtoMessage() {}
func (*Stats) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{2}
}
func (m *Stats) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Stats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Stats.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Stats) XXX_Merge(src proto.Message) {
xxx_messageInfo_Stats.Merge(m, src)
}
func (m *Stats) XXX_Size() int {
return m.Size()
}
func (m *Stats) XXX_DiscardUnknown() {
xxx_messageInfo_Stats.DiscardUnknown(m)
}
var xxx_messageInfo_Stats proto.InternalMessageInfo
func (m *Stats) GetSinks() []*Sink {
if m != nil {
return m.Sinks
}
return nil
}
// Log config.
type Log struct {
// Logging level
Level Log_Level `protobuf:"varint,1,opt,name=level,proto3,enum=bootstrap.Log_Level" json:"level,omitempty"`
// Output target configuration,
// support send log to stdout or syslog, use stdout as default.
Output Log_Output `protobuf:"bytes,2,opt,name=output,proto3" json:"output"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Log) Reset() { *m = Log{} }
func (m *Log) String() string { return proto.CompactTextString(m) }
func (*Log) ProtoMessage() {}
func (*Log) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{3}
}
func (m *Log) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Log.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Log) XXX_Merge(src proto.Message) {
xxx_messageInfo_Log.Merge(m, src)
}
func (m *Log) XXX_Size() int {
return m.Size()
}
func (m *Log) XXX_DiscardUnknown() {
xxx_messageInfo_Log.DiscardUnknown(m)
}
var xxx_messageInfo_Log proto.InternalMessageInfo
func (m *Log) GetLevel() Log_Level {
if m != nil {
return m.Level
}
return INFO
}
func (m *Log) GetOutput() Log_Output {
if m != nil {
return m.Output
}
return Log_Output{}
}
type Log_Output struct {
// Type of output target.
Type Log_Output_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bootstrap.Log_Output_Type" json:"type,omitempty"`
// Address of server which is required when `SYSLOG` is selected.
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Log_Output) Reset() { *m = Log_Output{} }
func (m *Log_Output) String() string { return proto.CompactTextString(m) }
func (*Log_Output) ProtoMessage() {}
func (*Log_Output) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{3, 0}
}
func (m *Log_Output) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Log_Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Log_Output.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Log_Output) XXX_Merge(src proto.Message) {
xxx_messageInfo_Log_Output.Merge(m, src)
}
func (m *Log_Output) XXX_Size() int {
return m.Size()
}
func (m *Log_Output) XXX_DiscardUnknown() {
xxx_messageInfo_Log_Output.DiscardUnknown(m)
}
var xxx_messageInfo_Log_Output proto.InternalMessageInfo
func (m *Log_Output) GetType() Log_Output_Type {
if m != nil {
return m.Type
}
return STDOUT
}
func (m *Log_Output) GetTarget() string {
if m != nil {
return m.Target
}
return ""
}
// The admin message is required to configure the administration server.
type Admin struct {
// The TCP address that the administration server will listen on, not null.
Bind *common.Address `protobuf:"bytes,1,opt,name=bind,proto3" json:"bind,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Admin) Reset() { *m = Admin{} }
func (m *Admin) String() string { return proto.CompactTextString(m) }
func (*Admin) ProtoMessage() {}
func (*Admin) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{4}
}
func (m *Admin) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Admin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Admin.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Admin) XXX_Merge(src proto.Message) {
xxx_messageInfo_Admin.Merge(m, src)
}
func (m *Admin) XXX_Size() int {
return m.Size()
}
func (m *Admin) XXX_DiscardUnknown() {
xxx_messageInfo_Admin.DiscardUnknown(m)
}
var xxx_messageInfo_Admin proto.InternalMessageInfo
func (m *Admin) GetBind() *common.Address {
if m != nil {
return m.Bind
}
return nil
}
// The wrapper of service config and endpoints.
type StaticService struct {
// The name of service.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The proxy strategy of service.
Config *service.Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
// The endpoints of service.
// Need at least one endpoint.
Endpoints []*service.Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StaticService) Reset() { *m = StaticService{} }
func (m *StaticService) String() string { return proto.CompactTextString(m) }
func (*StaticService) ProtoMessage() {}
func (*StaticService) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{5}
}
func (m *StaticService) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StaticService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StaticService.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *StaticService) XXX_Merge(src proto.Message) {
xxx_messageInfo_StaticService.Merge(m, src)
}
func (m *StaticService) XXX_Size() int {
return m.Size()
}
func (m *StaticService) XXX_DiscardUnknown() {
xxx_messageInfo_StaticService.DiscardUnknown(m)
}
var xxx_messageInfo_StaticService proto.InternalMessageInfo
func (m *StaticService) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *StaticService) GetConfig() *service.Config {
if m != nil {
return m.Config
}
return nil
}
func (m *StaticService) GetEndpoints() []*service.Endpoint {
if m != nil {
return m.Endpoints
}
return nil
}
// Configuration for dynamic source config.
type ConfigSource struct {
// The gRPC endpoint of dynamic source config service, not null.
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigSource) Reset() { *m = ConfigSource{} }
func (m *ConfigSource) String() string { return proto.CompactTextString(m) }
func (*ConfigSource) ProtoMessage() {}
func (*ConfigSource) Descriptor() ([]byte, []int) {
return fileDescriptor_fa11ded7d5e740b7, []int{6}
}
func (m *ConfigSource) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ConfigSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ConfigSource.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ConfigSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigSource.Merge(m, src)
}
func (m *ConfigSource) XXX_Size() int {
return m.Size()
}
func (m *ConfigSource) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigSource.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigSource proto.InternalMessageInfo
func (m *ConfigSource) GetEndpoint() string {
if m != nil {
return m.Endpoint
}
return ""
}
func init() {
proto.RegisterEnum("bootstrap.Sink_Type", Sink_Type_name, Sink_Type_value)
proto.RegisterEnum("bootstrap.Log_Level", Log_Level_name, Log_Level_value)
proto.RegisterEnum("bootstrap.Log_Output_Type", Log_Output_Type_name, Log_Output_Type_value)
proto.RegisterType((*Bootstrap)(nil), "bootstrap.Bootstrap")
proto.RegisterType((*Sink)(nil), "bootstrap.Sink")
proto.RegisterType((*Stats)(nil), "bootstrap.Stats")
proto.RegisterType((*Log)(nil), "bootstrap.Log")
proto.RegisterType((*Log_Output)(nil), "bootstrap.Log.Output")
proto.RegisterType((*Admin)(nil), "bootstrap.Admin")
proto.RegisterType((*StaticService)(nil), "bootstrap.StaticService")
proto.RegisterType((*ConfigSource)(nil), "bootstrap.ConfigSource")
}
func init() { proto.RegisterFile("config/bootstrap/bootstrap.proto", fileDescriptor_fa11ded7d5e740b7) }
var fileDescriptor_fa11ded7d5e740b7 = []byte{
// 751 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x94, 0xbf, 0x6f, 0xdb, 0x46,
0x14, 0xc7, 0x75, 0x14, 0xa9, 0x4a, 0xcf, 0xad, 0xcd, 0x5e, 0xed, 0x9a, 0x50, 0x5b, 0x56, 0x20,
0xea, 0xd6, 0x28, 0x5c, 0x12, 0x90, 0x5b, 0xc0, 0x40, 0x27, 0xa9, 0x56, 0x0d, 0xc1, 0xaa, 0x84,
0x9e, 0x24, 0x18, 0xf5, 0x62, 0x50, 0x12, 0xcb, 0x10, 0x96, 0x78, 0x04, 0x49, 0x09, 0xd1, 0x9a,
0x29, 0xf0, 0x18, 0xe4, 0x3f, 0xc8, 0x92, 0x25, 0xff, 0x40, 0xa6, 0x8c, 0x1e, 0x03, 0x64, 0x0f,
0x6c, 0x4d, 0xc9, 0xe6, 0xff, 0x20, 0x01, 0xef, 0x8e, 0xfa, 0x15, 0x47, 0x8b, 0xee, 0xde, 0xf7,
0x73, 0xef, 0xde, 0x7d, 0xef, 0x1d, 0xa1, 0xd4, 0xa7, 0xfe, 0xff, 0x9e, 0x6b, 0xf5, 0x28, 0x8d,
0xa3, 0x38, 0xb4, 0x83, 0xc5, 0xc8, 0x0c, 0x42, 0x1a, 0x53, 0x5c, 0x98, 0x07, 0x8a, 0xdb, 0x2e,
0x75, 0x29, 0x8b, 0x5a, 0xc9, 0x88, 0x03, 0xc5, 0xdd, 0x89, 0x3d, 0xf4, 0x06, 0x76, 0xec, 0x58,
0xe9, 0x40, 0x08, 0xdb, 0x7d, 0x3a, 0x1a, 0x51, 0xdf, 0xb2, 0x07, 0x83, 0xd0, 0x89, 0x22, 0x11,
0xdd, 0x11, 0x51, 0xcf, 0x8f, 0x62, 0xdb, 0xef, 0xa7, 0xf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
0x0b, 0x42, 0xfa, 0x70, 0xba, 0x98, 0x5b, 0x41, 0xcf, 0x5a, 0xff, 0xb0, 0xf6, 0x72, 0xec, 0x6b,
0x75, 0xf8, 0x31, 0x00, 0x00, 0xff, 0xff, 0x14, 0x4d, 0x2d, 0x9e, 0x73, 0x05, 0x00, 0x00,
}
func (this *Bootstrap) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Bootstrap)
if !ok {
that2, ok := that.(Bootstrap)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Bootstrap")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Bootstrap but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Bootstrap but is not nil && this == nil")
}
if !this.Instance.Equal(that1.Instance) {
return fmt.Errorf("Instance this(%v) Not Equal that(%v)", this.Instance, that1.Instance)
}
if !this.Log.Equal(&that1.Log) {
return fmt.Errorf("Log this(%v) Not Equal that(%v)", this.Log, that1.Log)
}
if !this.Stats.Equal(&that1.Stats) {
return fmt.Errorf("Stats this(%v) Not Equal that(%v)", this.Stats, that1.Stats)
}
if !this.Admin.Equal(that1.Admin) {
return fmt.Errorf("Admin this(%v) Not Equal that(%v)", this.Admin, that1.Admin)
}
if len(this.StaticServices) != len(that1.StaticServices) {
return fmt.Errorf("StaticServices this(%v) Not Equal that(%v)", len(this.StaticServices), len(that1.StaticServices))
}
for i := range this.StaticServices {
if !this.StaticServices[i].Equal(that1.StaticServices[i]) {
return fmt.Errorf("StaticServices this[%v](%v) Not Equal that[%v](%v)", i, this.StaticServices[i], i, that1.StaticServices[i])
}
}
if !this.DynamicSourceConfig.Equal(that1.DynamicSourceConfig) {
return fmt.Errorf("DynamicSourceConfig this(%v) Not Equal that(%v)", this.DynamicSourceConfig, that1.DynamicSourceConfig)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Bootstrap) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Bootstrap)
if !ok {
that2, ok := that.(Bootstrap)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !this.Instance.Equal(that1.Instance) {
return false
}
if !this.Log.Equal(&that1.Log) {
return false
}
if !this.Stats.Equal(&that1.Stats) {
return false
}
if !this.Admin.Equal(that1.Admin) {
return false
}
if len(this.StaticServices) != len(that1.StaticServices) {
return false
}
for i := range this.StaticServices {
if !this.StaticServices[i].Equal(that1.StaticServices[i]) {
return false
}
}
if !this.DynamicSourceConfig.Equal(that1.DynamicSourceConfig) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Sink) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Sink)
if !ok {
that2, ok := that.(Sink)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Sink")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Sink but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Sink but is not nil && this == nil")
}
if this.Type != that1.Type {
return fmt.Errorf("Type this(%v) Not Equal that(%v)", this.Type, that1.Type)
}
if this.Endpoint != that1.Endpoint {
return fmt.Errorf("Endpoint this(%v) Not Equal that(%v)", this.Endpoint, that1.Endpoint)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Sink) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Sink)
if !ok {
that2, ok := that.(Sink)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Type != that1.Type {
return false
}
if this.Endpoint != that1.Endpoint {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Stats) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Stats)
if !ok {
that2, ok := that.(Stats)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Stats")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Stats but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Stats but is not nil && this == nil")
}
if len(this.Sinks) != len(that1.Sinks) {
return fmt.Errorf("Sinks this(%v) Not Equal that(%v)", len(this.Sinks), len(that1.Sinks))
}
for i := range this.Sinks {
if !this.Sinks[i].Equal(that1.Sinks[i]) {
return fmt.Errorf("Sinks this[%v](%v) Not Equal that[%v](%v)", i, this.Sinks[i], i, that1.Sinks[i])
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Stats) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Stats)
if !ok {
that2, ok := that.(Stats)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if len(this.Sinks) != len(that1.Sinks) {
return false
}
for i := range this.Sinks {
if !this.Sinks[i].Equal(that1.Sinks[i]) {
return false
}
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Log) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Log)
if !ok {
that2, ok := that.(Log)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Log")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Log but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Log but is not nil && this == nil")
}
if this.Level != that1.Level {
return fmt.Errorf("Level this(%v) Not Equal that(%v)", this.Level, that1.Level)
}
if !this.Output.Equal(&that1.Output) {
return fmt.Errorf("Output this(%v) Not Equal that(%v)", this.Output, that1.Output)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Log) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Log)
if !ok {
that2, ok := that.(Log)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Level != that1.Level {
return false
}
if !this.Output.Equal(&that1.Output) {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (this *Log_Output) VerboseEqual(that interface{}) error {
if that == nil {
if this == nil {
return nil
}
return fmt.Errorf("that == nil && this != nil")
}
that1, ok := that.(*Log_Output)
if !ok {
that2, ok := that.(Log_Output)
if ok {
that1 = &that2
} else {
return fmt.Errorf("that is not of type *Log_Output")
}
}
if that1 == nil {
if this == nil {
return nil
}
return fmt.Errorf("that is type *Log_Output but is nil && this != nil")
} else if this == nil {
return fmt.Errorf("that is type *Log_Output but is not nil && this == nil")
}