forked from envoyproxy/go-control-plane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accesslog.pb.go
3322 lines (3194 loc) · 86 KB
/
accesslog.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/config/filter/accesslog/v2/accesslog.proto
package v2
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
import route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route"
import _type "github.com/envoyproxy/go-control-plane/envoy/type"
import types "github.com/gogo/protobuf/types"
import _ "github.com/lyft/protoc-gen-validate/validate"
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
type ComparisonFilter_Op int32
const (
// =
ComparisonFilter_EQ ComparisonFilter_Op = 0
// >=
ComparisonFilter_GE ComparisonFilter_Op = 1
// <=
ComparisonFilter_LE ComparisonFilter_Op = 2
)
var ComparisonFilter_Op_name = map[int32]string{
0: "EQ",
1: "GE",
2: "LE",
}
var ComparisonFilter_Op_value = map[string]int32{
"EQ": 0,
"GE": 1,
"LE": 2,
}
func (x ComparisonFilter_Op) String() string {
return proto.EnumName(ComparisonFilter_Op_name, int32(x))
}
func (ComparisonFilter_Op) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{2, 0}
}
type AccessLog struct {
// The name of the access log implementation to instantiate. The name must
// match a statically registered access log. Current built-in loggers include:
//
// #. "envoy.file_access_log"
// #. "envoy.http_grpc_access_log"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Filter which is used to determine if the access log needs to be written.
Filter *AccessLogFilter `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
// Custom configuration that depends on the access log being instantiated. Built-in configurations
// include:
//
// #. "envoy.file_access_log": :ref:`FileAccessLog
// <envoy_api_msg_config.accesslog.v2.FileAccessLog>`
// #. "envoy.http_grpc_access_log": :ref:`HttpGrpcAccessLogConfig
// <envoy_api_msg_config.accesslog.v2.HttpGrpcAccessLogConfig>`
Config *types.Struct `protobuf:"bytes,3,opt,name=config" json:"config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AccessLog) Reset() { *m = AccessLog{} }
func (m *AccessLog) String() string { return proto.CompactTextString(m) }
func (*AccessLog) ProtoMessage() {}
func (*AccessLog) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{0}
}
func (m *AccessLog) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AccessLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AccessLog.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 *AccessLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccessLog.Merge(dst, src)
}
func (m *AccessLog) XXX_Size() int {
return m.Size()
}
func (m *AccessLog) XXX_DiscardUnknown() {
xxx_messageInfo_AccessLog.DiscardUnknown(m)
}
var xxx_messageInfo_AccessLog proto.InternalMessageInfo
func (m *AccessLog) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AccessLog) GetFilter() *AccessLogFilter {
if m != nil {
return m.Filter
}
return nil
}
func (m *AccessLog) GetConfig() *types.Struct {
if m != nil {
return m.Config
}
return nil
}
type AccessLogFilter struct {
// Types that are valid to be assigned to FilterSpecifier:
// *AccessLogFilter_StatusCodeFilter
// *AccessLogFilter_DurationFilter
// *AccessLogFilter_NotHealthCheckFilter
// *AccessLogFilter_TraceableFilter
// *AccessLogFilter_RuntimeFilter
// *AccessLogFilter_AndFilter
// *AccessLogFilter_OrFilter
// *AccessLogFilter_HeaderFilter
// *AccessLogFilter_ResponseFlagFilter
FilterSpecifier isAccessLogFilter_FilterSpecifier `protobuf_oneof:"filter_specifier"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AccessLogFilter) Reset() { *m = AccessLogFilter{} }
func (m *AccessLogFilter) String() string { return proto.CompactTextString(m) }
func (*AccessLogFilter) ProtoMessage() {}
func (*AccessLogFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{1}
}
func (m *AccessLogFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AccessLogFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AccessLogFilter.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 *AccessLogFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccessLogFilter.Merge(dst, src)
}
func (m *AccessLogFilter) XXX_Size() int {
return m.Size()
}
func (m *AccessLogFilter) XXX_DiscardUnknown() {
xxx_messageInfo_AccessLogFilter.DiscardUnknown(m)
}
var xxx_messageInfo_AccessLogFilter proto.InternalMessageInfo
type isAccessLogFilter_FilterSpecifier interface {
isAccessLogFilter_FilterSpecifier()
MarshalTo([]byte) (int, error)
Size() int
}
type AccessLogFilter_StatusCodeFilter struct {
StatusCodeFilter *StatusCodeFilter `protobuf:"bytes,1,opt,name=status_code_filter,json=statusCodeFilter,oneof"`
}
type AccessLogFilter_DurationFilter struct {
DurationFilter *DurationFilter `protobuf:"bytes,2,opt,name=duration_filter,json=durationFilter,oneof"`
}
type AccessLogFilter_NotHealthCheckFilter struct {
NotHealthCheckFilter *NotHealthCheckFilter `protobuf:"bytes,3,opt,name=not_health_check_filter,json=notHealthCheckFilter,oneof"`
}
type AccessLogFilter_TraceableFilter struct {
TraceableFilter *TraceableFilter `protobuf:"bytes,4,opt,name=traceable_filter,json=traceableFilter,oneof"`
}
type AccessLogFilter_RuntimeFilter struct {
RuntimeFilter *RuntimeFilter `protobuf:"bytes,5,opt,name=runtime_filter,json=runtimeFilter,oneof"`
}
type AccessLogFilter_AndFilter struct {
AndFilter *AndFilter `protobuf:"bytes,6,opt,name=and_filter,json=andFilter,oneof"`
}
type AccessLogFilter_OrFilter struct {
OrFilter *OrFilter `protobuf:"bytes,7,opt,name=or_filter,json=orFilter,oneof"`
}
type AccessLogFilter_HeaderFilter struct {
HeaderFilter *HeaderFilter `protobuf:"bytes,8,opt,name=header_filter,json=headerFilter,oneof"`
}
type AccessLogFilter_ResponseFlagFilter struct {
ResponseFlagFilter *ResponseFlagFilter `protobuf:"bytes,9,opt,name=response_flag_filter,json=responseFlagFilter,oneof"`
}
func (*AccessLogFilter_StatusCodeFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_DurationFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_NotHealthCheckFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_TraceableFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_RuntimeFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_AndFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_OrFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_HeaderFilter) isAccessLogFilter_FilterSpecifier() {}
func (*AccessLogFilter_ResponseFlagFilter) isAccessLogFilter_FilterSpecifier() {}
func (m *AccessLogFilter) GetFilterSpecifier() isAccessLogFilter_FilterSpecifier {
if m != nil {
return m.FilterSpecifier
}
return nil
}
func (m *AccessLogFilter) GetStatusCodeFilter() *StatusCodeFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_StatusCodeFilter); ok {
return x.StatusCodeFilter
}
return nil
}
func (m *AccessLogFilter) GetDurationFilter() *DurationFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_DurationFilter); ok {
return x.DurationFilter
}
return nil
}
func (m *AccessLogFilter) GetNotHealthCheckFilter() *NotHealthCheckFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_NotHealthCheckFilter); ok {
return x.NotHealthCheckFilter
}
return nil
}
func (m *AccessLogFilter) GetTraceableFilter() *TraceableFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_TraceableFilter); ok {
return x.TraceableFilter
}
return nil
}
func (m *AccessLogFilter) GetRuntimeFilter() *RuntimeFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_RuntimeFilter); ok {
return x.RuntimeFilter
}
return nil
}
func (m *AccessLogFilter) GetAndFilter() *AndFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_AndFilter); ok {
return x.AndFilter
}
return nil
}
func (m *AccessLogFilter) GetOrFilter() *OrFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_OrFilter); ok {
return x.OrFilter
}
return nil
}
func (m *AccessLogFilter) GetHeaderFilter() *HeaderFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_HeaderFilter); ok {
return x.HeaderFilter
}
return nil
}
func (m *AccessLogFilter) GetResponseFlagFilter() *ResponseFlagFilter {
if x, ok := m.GetFilterSpecifier().(*AccessLogFilter_ResponseFlagFilter); ok {
return x.ResponseFlagFilter
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*AccessLogFilter) 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 _AccessLogFilter_OneofMarshaler, _AccessLogFilter_OneofUnmarshaler, _AccessLogFilter_OneofSizer, []interface{}{
(*AccessLogFilter_StatusCodeFilter)(nil),
(*AccessLogFilter_DurationFilter)(nil),
(*AccessLogFilter_NotHealthCheckFilter)(nil),
(*AccessLogFilter_TraceableFilter)(nil),
(*AccessLogFilter_RuntimeFilter)(nil),
(*AccessLogFilter_AndFilter)(nil),
(*AccessLogFilter_OrFilter)(nil),
(*AccessLogFilter_HeaderFilter)(nil),
(*AccessLogFilter_ResponseFlagFilter)(nil),
}
}
func _AccessLogFilter_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*AccessLogFilter)
// filter_specifier
switch x := m.FilterSpecifier.(type) {
case *AccessLogFilter_StatusCodeFilter:
_ = b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.StatusCodeFilter); err != nil {
return err
}
case *AccessLogFilter_DurationFilter:
_ = b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DurationFilter); err != nil {
return err
}
case *AccessLogFilter_NotHealthCheckFilter:
_ = b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.NotHealthCheckFilter); err != nil {
return err
}
case *AccessLogFilter_TraceableFilter:
_ = b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.TraceableFilter); err != nil {
return err
}
case *AccessLogFilter_RuntimeFilter:
_ = b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.RuntimeFilter); err != nil {
return err
}
case *AccessLogFilter_AndFilter:
_ = b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.AndFilter); err != nil {
return err
}
case *AccessLogFilter_OrFilter:
_ = b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.OrFilter); err != nil {
return err
}
case *AccessLogFilter_HeaderFilter:
_ = b.EncodeVarint(8<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.HeaderFilter); err != nil {
return err
}
case *AccessLogFilter_ResponseFlagFilter:
_ = b.EncodeVarint(9<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.ResponseFlagFilter); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("AccessLogFilter.FilterSpecifier has unexpected type %T", x)
}
return nil
}
func _AccessLogFilter_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*AccessLogFilter)
switch tag {
case 1: // filter_specifier.status_code_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(StatusCodeFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_StatusCodeFilter{msg}
return true, err
case 2: // filter_specifier.duration_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DurationFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_DurationFilter{msg}
return true, err
case 3: // filter_specifier.not_health_check_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(NotHealthCheckFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_NotHealthCheckFilter{msg}
return true, err
case 4: // filter_specifier.traceable_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(TraceableFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_TraceableFilter{msg}
return true, err
case 5: // filter_specifier.runtime_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(RuntimeFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_RuntimeFilter{msg}
return true, err
case 6: // filter_specifier.and_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(AndFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_AndFilter{msg}
return true, err
case 7: // filter_specifier.or_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(OrFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_OrFilter{msg}
return true, err
case 8: // filter_specifier.header_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(HeaderFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_HeaderFilter{msg}
return true, err
case 9: // filter_specifier.response_flag_filter
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(ResponseFlagFilter)
err := b.DecodeMessage(msg)
m.FilterSpecifier = &AccessLogFilter_ResponseFlagFilter{msg}
return true, err
default:
return false, nil
}
}
func _AccessLogFilter_OneofSizer(msg proto.Message) (n int) {
m := msg.(*AccessLogFilter)
// filter_specifier
switch x := m.FilterSpecifier.(type) {
case *AccessLogFilter_StatusCodeFilter:
s := proto.Size(x.StatusCodeFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_DurationFilter:
s := proto.Size(x.DurationFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_NotHealthCheckFilter:
s := proto.Size(x.NotHealthCheckFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_TraceableFilter:
s := proto.Size(x.TraceableFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_RuntimeFilter:
s := proto.Size(x.RuntimeFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_AndFilter:
s := proto.Size(x.AndFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_OrFilter:
s := proto.Size(x.OrFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_HeaderFilter:
s := proto.Size(x.HeaderFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AccessLogFilter_ResponseFlagFilter:
s := proto.Size(x.ResponseFlagFilter)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Filter on an integer comparison.
type ComparisonFilter struct {
// Comparison operator.
Op ComparisonFilter_Op `protobuf:"varint,1,opt,name=op,proto3,enum=envoy.config.filter.accesslog.v2.ComparisonFilter_Op" json:"op,omitempty"`
// Value to compare against.
Value *core.RuntimeUInt32 `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ComparisonFilter) Reset() { *m = ComparisonFilter{} }
func (m *ComparisonFilter) String() string { return proto.CompactTextString(m) }
func (*ComparisonFilter) ProtoMessage() {}
func (*ComparisonFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{2}
}
func (m *ComparisonFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ComparisonFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ComparisonFilter.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 *ComparisonFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_ComparisonFilter.Merge(dst, src)
}
func (m *ComparisonFilter) XXX_Size() int {
return m.Size()
}
func (m *ComparisonFilter) XXX_DiscardUnknown() {
xxx_messageInfo_ComparisonFilter.DiscardUnknown(m)
}
var xxx_messageInfo_ComparisonFilter proto.InternalMessageInfo
func (m *ComparisonFilter) GetOp() ComparisonFilter_Op {
if m != nil {
return m.Op
}
return ComparisonFilter_EQ
}
func (m *ComparisonFilter) GetValue() *core.RuntimeUInt32 {
if m != nil {
return m.Value
}
return nil
}
// Filters on HTTP response/status code.
type StatusCodeFilter struct {
// Comparison.
Comparison *ComparisonFilter `protobuf:"bytes,1,opt,name=comparison" json:"comparison,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StatusCodeFilter) Reset() { *m = StatusCodeFilter{} }
func (m *StatusCodeFilter) String() string { return proto.CompactTextString(m) }
func (*StatusCodeFilter) ProtoMessage() {}
func (*StatusCodeFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{3}
}
func (m *StatusCodeFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *StatusCodeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_StatusCodeFilter.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 *StatusCodeFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_StatusCodeFilter.Merge(dst, src)
}
func (m *StatusCodeFilter) XXX_Size() int {
return m.Size()
}
func (m *StatusCodeFilter) XXX_DiscardUnknown() {
xxx_messageInfo_StatusCodeFilter.DiscardUnknown(m)
}
var xxx_messageInfo_StatusCodeFilter proto.InternalMessageInfo
func (m *StatusCodeFilter) GetComparison() *ComparisonFilter {
if m != nil {
return m.Comparison
}
return nil
}
// Filters on total request duration in milliseconds.
type DurationFilter struct {
// Comparison.
Comparison *ComparisonFilter `protobuf:"bytes,1,opt,name=comparison" json:"comparison,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DurationFilter) Reset() { *m = DurationFilter{} }
func (m *DurationFilter) String() string { return proto.CompactTextString(m) }
func (*DurationFilter) ProtoMessage() {}
func (*DurationFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{4}
}
func (m *DurationFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DurationFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DurationFilter.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 *DurationFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_DurationFilter.Merge(dst, src)
}
func (m *DurationFilter) XXX_Size() int {
return m.Size()
}
func (m *DurationFilter) XXX_DiscardUnknown() {
xxx_messageInfo_DurationFilter.DiscardUnknown(m)
}
var xxx_messageInfo_DurationFilter proto.InternalMessageInfo
func (m *DurationFilter) GetComparison() *ComparisonFilter {
if m != nil {
return m.Comparison
}
return nil
}
// Filters for requests that are not health check requests. A health check
// request is marked by the health check filter.
type NotHealthCheckFilter struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NotHealthCheckFilter) Reset() { *m = NotHealthCheckFilter{} }
func (m *NotHealthCheckFilter) String() string { return proto.CompactTextString(m) }
func (*NotHealthCheckFilter) ProtoMessage() {}
func (*NotHealthCheckFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{5}
}
func (m *NotHealthCheckFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *NotHealthCheckFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_NotHealthCheckFilter.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 *NotHealthCheckFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_NotHealthCheckFilter.Merge(dst, src)
}
func (m *NotHealthCheckFilter) XXX_Size() int {
return m.Size()
}
func (m *NotHealthCheckFilter) XXX_DiscardUnknown() {
xxx_messageInfo_NotHealthCheckFilter.DiscardUnknown(m)
}
var xxx_messageInfo_NotHealthCheckFilter proto.InternalMessageInfo
// Filters for requests that are traceable. See the tracing overview for more
// information on how a request becomes traceable.
type TraceableFilter struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TraceableFilter) Reset() { *m = TraceableFilter{} }
func (m *TraceableFilter) String() string { return proto.CompactTextString(m) }
func (*TraceableFilter) ProtoMessage() {}
func (*TraceableFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{6}
}
func (m *TraceableFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TraceableFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TraceableFilter.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 *TraceableFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_TraceableFilter.Merge(dst, src)
}
func (m *TraceableFilter) XXX_Size() int {
return m.Size()
}
func (m *TraceableFilter) XXX_DiscardUnknown() {
xxx_messageInfo_TraceableFilter.DiscardUnknown(m)
}
var xxx_messageInfo_TraceableFilter proto.InternalMessageInfo
// Filters for random sampling of requests.
type RuntimeFilter struct {
// Runtime key to get an optional overridden numerator for use in the *percent_sampled* field.
// If found in runtime, this value will replace the default numerator.
RuntimeKey string `protobuf:"bytes,1,opt,name=runtime_key,json=runtimeKey,proto3" json:"runtime_key,omitempty"`
// The default sampling percentage. If not specified, defaults to 0% with denominator of 100.
PercentSampled *_type.FractionalPercent `protobuf:"bytes,2,opt,name=percent_sampled,json=percentSampled" json:"percent_sampled,omitempty"`
// By default, sampling pivots on the header
// :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` being present. If
// :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` is present, the filter will
// consistently sample across multiple hosts based on the runtime key value and the value
// extracted from :ref:`x-request-id<config_http_conn_man_headers_x-request-id>`. If it is
// missing, or *use_independent_randomness* is set to true, the filter will randomly sample based
// on the runtime key value alone. *use_independent_randomness* can be used for logging kill
// switches within complex nested :ref:`AndFilter
// <envoy_api_msg_config.filter.accesslog.v2.AndFilter>` and :ref:`OrFilter
// <envoy_api_msg_config.filter.accesslog.v2.OrFilter>` blocks that are easier to reason about
// from a probability perspective (i.e., setting to true will cause the filter to behave like
// an independent random variable when composed within logical operator filters).
UseIndependentRandomness bool `protobuf:"varint,3,opt,name=use_independent_randomness,json=useIndependentRandomness,proto3" json:"use_independent_randomness,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeFilter) Reset() { *m = RuntimeFilter{} }
func (m *RuntimeFilter) String() string { return proto.CompactTextString(m) }
func (*RuntimeFilter) ProtoMessage() {}
func (*RuntimeFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{7}
}
func (m *RuntimeFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RuntimeFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RuntimeFilter.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 *RuntimeFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuntimeFilter.Merge(dst, src)
}
func (m *RuntimeFilter) XXX_Size() int {
return m.Size()
}
func (m *RuntimeFilter) XXX_DiscardUnknown() {
xxx_messageInfo_RuntimeFilter.DiscardUnknown(m)
}
var xxx_messageInfo_RuntimeFilter proto.InternalMessageInfo
func (m *RuntimeFilter) GetRuntimeKey() string {
if m != nil {
return m.RuntimeKey
}
return ""
}
func (m *RuntimeFilter) GetPercentSampled() *_type.FractionalPercent {
if m != nil {
return m.PercentSampled
}
return nil
}
func (m *RuntimeFilter) GetUseIndependentRandomness() bool {
if m != nil {
return m.UseIndependentRandomness
}
return false
}
// Performs a logical “and” operation on the result of each filter in filters.
// Filters are evaluated sequentially and if one of them returns false, the
// filter returns false immediately.
type AndFilter struct {
Filters []*AccessLogFilter `protobuf:"bytes,1,rep,name=filters" json:"filters,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AndFilter) Reset() { *m = AndFilter{} }
func (m *AndFilter) String() string { return proto.CompactTextString(m) }
func (*AndFilter) ProtoMessage() {}
func (*AndFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{8}
}
func (m *AndFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AndFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AndFilter.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 *AndFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_AndFilter.Merge(dst, src)
}
func (m *AndFilter) XXX_Size() int {
return m.Size()
}
func (m *AndFilter) XXX_DiscardUnknown() {
xxx_messageInfo_AndFilter.DiscardUnknown(m)
}
var xxx_messageInfo_AndFilter proto.InternalMessageInfo
func (m *AndFilter) GetFilters() []*AccessLogFilter {
if m != nil {
return m.Filters
}
return nil
}
// Performs a logical “or” operation on the result of each individual filter.
// Filters are evaluated sequentially and if one of them returns true, the
// filter returns true immediately.
type OrFilter struct {
Filters []*AccessLogFilter `protobuf:"bytes,2,rep,name=filters" json:"filters,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrFilter) Reset() { *m = OrFilter{} }
func (m *OrFilter) String() string { return proto.CompactTextString(m) }
func (*OrFilter) ProtoMessage() {}
func (*OrFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{9}
}
func (m *OrFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *OrFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_OrFilter.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 *OrFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrFilter.Merge(dst, src)
}
func (m *OrFilter) XXX_Size() int {
return m.Size()
}
func (m *OrFilter) XXX_DiscardUnknown() {
xxx_messageInfo_OrFilter.DiscardUnknown(m)
}
var xxx_messageInfo_OrFilter proto.InternalMessageInfo
func (m *OrFilter) GetFilters() []*AccessLogFilter {
if m != nil {
return m.Filters
}
return nil
}
// Filters requests based on the presence or value of a request header.
type HeaderFilter struct {
// Only requests with a header which matches the specified HeaderMatcher will pass the filter
// check.
Header *route.HeaderMatcher `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HeaderFilter) Reset() { *m = HeaderFilter{} }
func (m *HeaderFilter) String() string { return proto.CompactTextString(m) }
func (*HeaderFilter) ProtoMessage() {}
func (*HeaderFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{10}
}
func (m *HeaderFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HeaderFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HeaderFilter.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 *HeaderFilter) XXX_Merge(src proto.Message) {
xxx_messageInfo_HeaderFilter.Merge(dst, src)
}
func (m *HeaderFilter) XXX_Size() int {
return m.Size()
}
func (m *HeaderFilter) XXX_DiscardUnknown() {
xxx_messageInfo_HeaderFilter.DiscardUnknown(m)
}
var xxx_messageInfo_HeaderFilter proto.InternalMessageInfo
func (m *HeaderFilter) GetHeader() *route.HeaderMatcher {
if m != nil {
return m.Header
}
return nil
}
// Filters requests that received responses with an Envoy response flag set.
// A list of the response flags can be found
// in the access log formatter :ref:`documentation<config_access_log_format_response_flags>`.
type ResponseFlagFilter struct {
// Only responses with the any of the flags listed in this field will be logged.
// This field is optional. If it is not specified, then any response flag will pass
// the filter check.
Flags []string `protobuf:"bytes,1,rep,name=flags" json:"flags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResponseFlagFilter) Reset() { *m = ResponseFlagFilter{} }
func (m *ResponseFlagFilter) String() string { return proto.CompactTextString(m) }
func (*ResponseFlagFilter) ProtoMessage() {}
func (*ResponseFlagFilter) Descriptor() ([]byte, []int) {
return fileDescriptor_accesslog_50b5c40a907dce22, []int{11}
}
func (m *ResponseFlagFilter) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResponseFlagFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResponseFlagFilter.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err