generated from khulnasoft/khulnasoft-repo-template
/
options.pb.go
2148 lines (1918 loc) · 96.6 KB
/
options.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.17.3
// source: api/client/options.proto
package nighthawk_client
import (
reflect "reflect"
sync "sync"
v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
v32 "github.com/envoyproxy/go-control-plane/envoy/config/metrics/v3"
v31 "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AddressFamily_AddressFamilyOptions int32
const (
AddressFamily_AUTO AddressFamily_AddressFamilyOptions = 0
AddressFamily_V4 AddressFamily_AddressFamilyOptions = 1
AddressFamily_V6 AddressFamily_AddressFamilyOptions = 2
)
// Enum value maps for AddressFamily_AddressFamilyOptions.
var (
AddressFamily_AddressFamilyOptions_name = map[int32]string{
0: "AUTO",
1: "V4",
2: "V6",
}
AddressFamily_AddressFamilyOptions_value = map[string]int32{
"AUTO": 0,
"V4": 1,
"V6": 2,
}
)
func (x AddressFamily_AddressFamilyOptions) Enum() *AddressFamily_AddressFamilyOptions {
p := new(AddressFamily_AddressFamilyOptions)
*p = x
return p
}
func (x AddressFamily_AddressFamilyOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AddressFamily_AddressFamilyOptions) Descriptor() protoreflect.EnumDescriptor {
return file_api_client_options_proto_enumTypes[0].Descriptor()
}
func (AddressFamily_AddressFamilyOptions) Type() protoreflect.EnumType {
return &file_api_client_options_proto_enumTypes[0]
}
func (x AddressFamily_AddressFamilyOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AddressFamily_AddressFamilyOptions.Descriptor instead.
func (AddressFamily_AddressFamilyOptions) EnumDescriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{3, 0}
}
type Verbosity_VerbosityOptions int32
const (
Verbosity_DEFAULT Verbosity_VerbosityOptions = 0
Verbosity_INFO Verbosity_VerbosityOptions = 1
Verbosity_TRACE Verbosity_VerbosityOptions = 2
Verbosity_DEBUG Verbosity_VerbosityOptions = 3
Verbosity_WARN Verbosity_VerbosityOptions = 4
Verbosity_ERROR Verbosity_VerbosityOptions = 5
Verbosity_CRITICAL Verbosity_VerbosityOptions = 6
)
// Enum value maps for Verbosity_VerbosityOptions.
var (
Verbosity_VerbosityOptions_name = map[int32]string{
0: "DEFAULT",
1: "INFO",
2: "TRACE",
3: "DEBUG",
4: "WARN",
5: "ERROR",
6: "CRITICAL",
}
Verbosity_VerbosityOptions_value = map[string]int32{
"DEFAULT": 0,
"INFO": 1,
"TRACE": 2,
"DEBUG": 3,
"WARN": 4,
"ERROR": 5,
"CRITICAL": 6,
}
)
func (x Verbosity_VerbosityOptions) Enum() *Verbosity_VerbosityOptions {
p := new(Verbosity_VerbosityOptions)
*p = x
return p
}
func (x Verbosity_VerbosityOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Verbosity_VerbosityOptions) Descriptor() protoreflect.EnumDescriptor {
return file_api_client_options_proto_enumTypes[1].Descriptor()
}
func (Verbosity_VerbosityOptions) Type() protoreflect.EnumType {
return &file_api_client_options_proto_enumTypes[1]
}
func (x Verbosity_VerbosityOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Verbosity_VerbosityOptions.Descriptor instead.
func (Verbosity_VerbosityOptions) EnumDescriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{4, 0}
}
type OutputFormat_OutputFormatOptions int32
const (
OutputFormat_DEFAULT OutputFormat_OutputFormatOptions = 0
OutputFormat_JSON OutputFormat_OutputFormatOptions = 1
OutputFormat_HUMAN OutputFormat_OutputFormatOptions = 2
OutputFormat_YAML OutputFormat_OutputFormatOptions = 3
OutputFormat_DOTTED OutputFormat_OutputFormatOptions = 4
OutputFormat_FORTIO OutputFormat_OutputFormatOptions = 5
OutputFormat_EXPERIMENTAL_FORTIO_PEDANTIC OutputFormat_OutputFormatOptions = 6
)
// Enum value maps for OutputFormat_OutputFormatOptions.
var (
OutputFormat_OutputFormatOptions_name = map[int32]string{
0: "DEFAULT",
1: "JSON",
2: "HUMAN",
3: "YAML",
4: "DOTTED",
5: "FORTIO",
6: "EXPERIMENTAL_FORTIO_PEDANTIC",
}
OutputFormat_OutputFormatOptions_value = map[string]int32{
"DEFAULT": 0,
"JSON": 1,
"HUMAN": 2,
"YAML": 3,
"DOTTED": 4,
"FORTIO": 5,
"EXPERIMENTAL_FORTIO_PEDANTIC": 6,
}
)
func (x OutputFormat_OutputFormatOptions) Enum() *OutputFormat_OutputFormatOptions {
p := new(OutputFormat_OutputFormatOptions)
*p = x
return p
}
func (x OutputFormat_OutputFormatOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OutputFormat_OutputFormatOptions) Descriptor() protoreflect.EnumDescriptor {
return file_api_client_options_proto_enumTypes[2].Descriptor()
}
func (OutputFormat_OutputFormatOptions) Type() protoreflect.EnumType {
return &file_api_client_options_proto_enumTypes[2]
}
func (x OutputFormat_OutputFormatOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OutputFormat_OutputFormatOptions.Descriptor instead.
func (OutputFormat_OutputFormatOptions) EnumDescriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{5, 0}
}
type SequencerIdleStrategy_SequencerIdleStrategyOptions int32
const (
SequencerIdleStrategy_DEFAULT SequencerIdleStrategy_SequencerIdleStrategyOptions = 0
SequencerIdleStrategy_SPIN SequencerIdleStrategy_SequencerIdleStrategyOptions = 1
SequencerIdleStrategy_POLL SequencerIdleStrategy_SequencerIdleStrategyOptions = 2
SequencerIdleStrategy_SLEEP SequencerIdleStrategy_SequencerIdleStrategyOptions = 3
)
// Enum value maps for SequencerIdleStrategy_SequencerIdleStrategyOptions.
var (
SequencerIdleStrategy_SequencerIdleStrategyOptions_name = map[int32]string{
0: "DEFAULT",
1: "SPIN",
2: "POLL",
3: "SLEEP",
}
SequencerIdleStrategy_SequencerIdleStrategyOptions_value = map[string]int32{
"DEFAULT": 0,
"SPIN": 1,
"POLL": 2,
"SLEEP": 3,
}
)
func (x SequencerIdleStrategy_SequencerIdleStrategyOptions) Enum() *SequencerIdleStrategy_SequencerIdleStrategyOptions {
p := new(SequencerIdleStrategy_SequencerIdleStrategyOptions)
*p = x
return p
}
func (x SequencerIdleStrategy_SequencerIdleStrategyOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SequencerIdleStrategy_SequencerIdleStrategyOptions) Descriptor() protoreflect.EnumDescriptor {
return file_api_client_options_proto_enumTypes[3].Descriptor()
}
func (SequencerIdleStrategy_SequencerIdleStrategyOptions) Type() protoreflect.EnumType {
return &file_api_client_options_proto_enumTypes[3]
}
func (x SequencerIdleStrategy_SequencerIdleStrategyOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SequencerIdleStrategy_SequencerIdleStrategyOptions.Descriptor instead.
func (SequencerIdleStrategy_SequencerIdleStrategyOptions) EnumDescriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{6, 0}
}
type H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions int32
const (
H1ConnectionReuseStrategy_DEFAULT H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions = 0
H1ConnectionReuseStrategy_MRU H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions = 1
H1ConnectionReuseStrategy_LRU H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions = 2
)
// Enum value maps for H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions.
var (
H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions_name = map[int32]string{
0: "DEFAULT",
1: "MRU",
2: "LRU",
}
H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions_value = map[string]int32{
"DEFAULT": 0,
"MRU": 1,
"LRU": 2,
}
)
func (x H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions) Enum() *H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions {
p := new(H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions)
*p = x
return p
}
func (x H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions) Descriptor() protoreflect.EnumDescriptor {
return file_api_client_options_proto_enumTypes[4].Descriptor()
}
func (H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions) Type() protoreflect.EnumType {
return &file_api_client_options_proto_enumTypes[4]
}
func (x H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions.Descriptor instead.
func (H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions) EnumDescriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{8, 0}
}
type Protocol_ProtocolOptions int32
const (
// Encapsulate requests in HTTP/1.
// This is the default option.
Protocol_HTTP1 Protocol_ProtocolOptions = 0
// Encapsulate requests in HTTP/2.
Protocol_HTTP2 Protocol_ProtocolOptions = 1
// Encapsulate requests in HTTP/3 Quic.
//
// Note that certificate verification for HTTP/3 Quic connections currently
// cannot be skipped, make sure to include a host or an authority header
// that will pass the SAN/SNI verification.
// See https://github.com/envoyproxy/nighthawk/issues/727.
Protocol_HTTP3 Protocol_ProtocolOptions = 2
)
// Enum value maps for Protocol_ProtocolOptions.
var (
Protocol_ProtocolOptions_name = map[int32]string{
0: "HTTP1",
1: "HTTP2",
2: "HTTP3",
}
Protocol_ProtocolOptions_value = map[string]int32{
"HTTP1": 0,
"HTTP2": 1,
"HTTP3": 2,
}
)
func (x Protocol_ProtocolOptions) Enum() *Protocol_ProtocolOptions {
p := new(Protocol_ProtocolOptions)
*p = x
return p
}
func (x Protocol_ProtocolOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Protocol_ProtocolOptions) Descriptor() protoreflect.EnumDescriptor {
return file_api_client_options_proto_enumTypes[5].Descriptor()
}
func (Protocol_ProtocolOptions) Type() protoreflect.EnumType {
return &file_api_client_options_proto_enumTypes[5]
}
func (x Protocol_ProtocolOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Protocol_ProtocolOptions.Descriptor instead.
func (Protocol_ProtocolOptions) EnumDescriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{9, 0}
}
// Allows for static configuration of requests that should be send by the load generator.
type RequestOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RequestMethod v3.RequestMethod `protobuf:"varint,1,opt,name=request_method,json=requestMethod,proto3,enum=envoy.config.core.v3.RequestMethod" json:"request_method,omitempty"`
RequestHeaders []*v3.HeaderValueOption `protobuf:"bytes,2,rep,name=request_headers,json=requestHeaders,proto3" json:"request_headers,omitempty"`
// Our StreamDecoder depends on bounding the size here, so if this changes, an amendment
// to that is needed as well.
RequestBodySize *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=request_body_size,json=requestBodySize,proto3" json:"request_body_size,omitempty"`
}
func (x *RequestOptions) Reset() {
*x = RequestOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RequestOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestOptions) ProtoMessage() {}
func (x *RequestOptions) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RequestOptions.ProtoReflect.Descriptor instead.
func (*RequestOptions) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{0}
}
func (x *RequestOptions) GetRequestMethod() v3.RequestMethod {
if x != nil {
return x.RequestMethod
}
return v3.RequestMethod_METHOD_UNSPECIFIED
}
func (x *RequestOptions) GetRequestHeaders() []*v3.HeaderValueOption {
if x != nil {
return x.RequestHeaders
}
return nil
}
func (x *RequestOptions) GetRequestBodySize() *wrapperspb.UInt32Value {
if x != nil {
return x.RequestBodySize
}
return nil
}
// Used for providing multiple request options, especially for RequestSourcePlugins.
type RequestOptionsList struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Each option is used for a separate request to be sent by the requestSource.
Options []*RequestOptions `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
}
func (x *RequestOptionsList) Reset() {
*x = RequestOptionsList{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RequestOptionsList) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestOptionsList) ProtoMessage() {}
func (x *RequestOptionsList) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RequestOptionsList.ProtoReflect.Descriptor instead.
func (*RequestOptionsList) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{1}
}
func (x *RequestOptionsList) GetOptions() []*RequestOptions {
if x != nil {
return x.Options
}
return nil
}
// Configures a remote gRPC source that will deliver to-be-replayed request data to Nighthawks
// workers.
type RequestSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uri string `protobuf:"bytes,19,opt,name=uri,proto3" json:"uri,omitempty"` // [(validate.rules).string.uri = true];
}
func (x *RequestSource) Reset() {
*x = RequestSource{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RequestSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestSource) ProtoMessage() {}
func (x *RequestSource) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RequestSource.ProtoReflect.Descriptor instead.
func (*RequestSource) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{2}
}
func (x *RequestSource) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
// We wrap all values so we can have a unified way of option handling with respect to
// defaults, merging, etc. As there's no stock concept for enumerations, we manually
// define custom wrappers for them. These used to be strings, which did provide the
// wrapped type.
type AddressFamily struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value AddressFamily_AddressFamilyOptions `protobuf:"varint,1,opt,name=value,proto3,enum=nighthawk.client.AddressFamily_AddressFamilyOptions" json:"value,omitempty"`
}
func (x *AddressFamily) Reset() {
*x = AddressFamily{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AddressFamily) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddressFamily) ProtoMessage() {}
func (x *AddressFamily) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AddressFamily.ProtoReflect.Descriptor instead.
func (*AddressFamily) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{3}
}
func (x *AddressFamily) GetValue() AddressFamily_AddressFamilyOptions {
if x != nil {
return x.Value
}
return AddressFamily_AUTO
}
type Verbosity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value Verbosity_VerbosityOptions `protobuf:"varint,1,opt,name=value,proto3,enum=nighthawk.client.Verbosity_VerbosityOptions" json:"value,omitempty"`
}
func (x *Verbosity) Reset() {
*x = Verbosity{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Verbosity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Verbosity) ProtoMessage() {}
func (x *Verbosity) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Verbosity.ProtoReflect.Descriptor instead.
func (*Verbosity) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{4}
}
func (x *Verbosity) GetValue() Verbosity_VerbosityOptions {
if x != nil {
return x.Value
}
return Verbosity_DEFAULT
}
type OutputFormat struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value OutputFormat_OutputFormatOptions `protobuf:"varint,1,opt,name=value,proto3,enum=nighthawk.client.OutputFormat_OutputFormatOptions" json:"value,omitempty"`
}
func (x *OutputFormat) Reset() {
*x = OutputFormat{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OutputFormat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OutputFormat) ProtoMessage() {}
func (x *OutputFormat) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OutputFormat.ProtoReflect.Descriptor instead.
func (*OutputFormat) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{5}
}
func (x *OutputFormat) GetValue() OutputFormat_OutputFormatOptions {
if x != nil {
return x.Value
}
return OutputFormat_DEFAULT
}
type SequencerIdleStrategy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value SequencerIdleStrategy_SequencerIdleStrategyOptions `protobuf:"varint,1,opt,name=value,proto3,enum=nighthawk.client.SequencerIdleStrategy_SequencerIdleStrategyOptions" json:"value,omitempty"`
}
func (x *SequencerIdleStrategy) Reset() {
*x = SequencerIdleStrategy{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SequencerIdleStrategy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SequencerIdleStrategy) ProtoMessage() {}
func (x *SequencerIdleStrategy) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SequencerIdleStrategy.ProtoReflect.Descriptor instead.
func (*SequencerIdleStrategy) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{6}
}
func (x *SequencerIdleStrategy) GetValue() SequencerIdleStrategy_SequencerIdleStrategyOptions {
if x != nil {
return x.Value
}
return SequencerIdleStrategy_DEFAULT
}
type MultiTarget struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether to use HTTPS in requests to all backends; otherwise HTTP.
UseHttps *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=use_https,json=useHttps,proto3" json:"use_https,omitempty"`
// One or more address-port pairs to receive traffic distributed with round robin.
Endpoints []*MultiTarget_Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// The absolute HTTP request path (the part of the URL after host:port, e.g. /x/y/z).
// A single path is requested from all backends. Ignored when using a RequestSource.
Path *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
}
func (x *MultiTarget) Reset() {
*x = MultiTarget{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MultiTarget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MultiTarget) ProtoMessage() {}
func (x *MultiTarget) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MultiTarget.ProtoReflect.Descriptor instead.
func (*MultiTarget) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{7}
}
func (x *MultiTarget) GetUseHttps() *wrapperspb.BoolValue {
if x != nil {
return x.UseHttps
}
return nil
}
func (x *MultiTarget) GetEndpoints() []*MultiTarget_Endpoint {
if x != nil {
return x.Endpoints
}
return nil
}
func (x *MultiTarget) GetPath() *wrapperspb.StringValue {
if x != nil {
return x.Path
}
return nil
}
type H1ConnectionReuseStrategy struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions `protobuf:"varint,1,opt,name=value,proto3,enum=nighthawk.client.H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions" json:"value,omitempty"`
}
func (x *H1ConnectionReuseStrategy) Reset() {
*x = H1ConnectionReuseStrategy{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *H1ConnectionReuseStrategy) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*H1ConnectionReuseStrategy) ProtoMessage() {}
func (x *H1ConnectionReuseStrategy) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use H1ConnectionReuseStrategy.ProtoReflect.Descriptor instead.
func (*H1ConnectionReuseStrategy) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{8}
}
func (x *H1ConnectionReuseStrategy) GetValue() H1ConnectionReuseStrategy_H1ConnectionReuseStrategyOptions {
if x != nil {
return x.Value
}
return H1ConnectionReuseStrategy_DEFAULT
}
type Protocol struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The protocol to encapsulate requests in.
Value Protocol_ProtocolOptions `protobuf:"varint,1,opt,name=value,proto3,enum=nighthawk.client.Protocol_ProtocolOptions" json:"value,omitempty"`
}
func (x *Protocol) Reset() {
*x = Protocol{}
if protoimpl.UnsafeEnabled {
mi := &file_api_client_options_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Protocol) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Protocol) ProtoMessage() {}
func (x *Protocol) ProtoReflect() protoreflect.Message {
mi := &file_api_client_options_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Protocol.ProtoReflect.Descriptor instead.
func (*Protocol) Descriptor() ([]byte, []int) {
return file_api_client_options_proto_rawDescGZIP(), []int{9}
}
func (x *Protocol) GetValue() Protocol_ProtocolOptions {
if x != nil {
return x.Value
}
return Protocol_HTTP1
}
// TODO(oschaaf): Ultimately this will be a load test specification. The fact that it
// can arrive via CLI is just a concrete detail. Change this to reflect that.
// Highest unused number is 109.
type CommandLineOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The target requests-per-second rate. Default: 5.
RequestsPerSecond *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=requests_per_second,json=requestsPerSecond,proto3" json:"requests_per_second,omitempty"`
// The maximum allowed number of concurrent connections per event loop. HTTP/1 only. Default: 100.
Connections *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=connections,proto3" json:"connections,omitempty"`
// Types that are assignable to OneofDurationOptions:
// *CommandLineOptions_Duration
// *CommandLineOptions_NoDuration
OneofDurationOptions isCommandLineOptions_OneofDurationOptions `protobuf_oneof:"oneof_duration_options"`
// Connection connect timeout period in seconds. Default: 30.
Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
// The protocol to use when encapsulating requests.
// Defaults to HTTP/1 if no value is selected.
//
// Types that are assignable to OneofProtocol:
// *CommandLineOptions_H2
// *CommandLineOptions_Protocol
OneofProtocol isCommandLineOptions_OneofProtocol `protobuf_oneof:"oneof_protocol"`
// The number of concurrent event loops that should be used. Specify 'auto' to let
// Nighthawk leverage all vCPUs that have affinity to the Nighthawk process. Note that
// increasing this results in an effective load multiplier combined with the configured
// --rps and --connections values. Default: 1.
Concurrency *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=concurrency,proto3" json:"concurrency,omitempty"` // [(validate.rules).string = {pattern: "^([0-9]*|auto)$"}];
// Verbosity of the output. Possible values: [trace, debug, info, warn,
// error, critical]. The default level is 'info'.
Verbosity *Verbosity `protobuf:"bytes,7,opt,name=verbosity,proto3" json:"verbosity,omitempty"`
// Output format. Possible values: {"json", "human", "yaml", "dotted",
// "fortio"}. The default output format is 'human'.
// NOTE: not relevant to gRPC service
OutputFormat *OutputFormat `protobuf:"bytes,8,opt,name=output_format,json=outputFormat,proto3" json:"output_format,omitempty"`
// Use proactive connection prefetching (HTTP/1 only).
PrefetchConnections *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=prefetch_connections,json=prefetchConnections,proto3" json:"prefetch_connections,omitempty"`
// Release requests in bursts of the specified size (default: 0).
BurstSize *wrapperspb.UInt32Value `protobuf:"bytes,10,opt,name=burst_size,json=burstSize,proto3" json:"burst_size,omitempty"`
// Network address family preference. Possible values: [auto, v4, v6]. The default output format
// is 'AUTO'.
AddressFamily *AddressFamily `protobuf:"bytes,11,opt,name=address_family,json=addressFamily,proto3" json:"address_family,omitempty"`
// Either requests will be statically configured, or delivered through a remote gRPC service.
//
// Types that are assignable to OneofRequestOptions:
// *CommandLineOptions_RequestOptions
// *CommandLineOptions_RequestSource
// *CommandLineOptions_RequestSourcePluginConfig
OneofRequestOptions isCommandLineOptions_OneofRequestOptions `protobuf_oneof:"oneof_request_options"`
// DEPRECATED, use --transport-socket instead. Tls context configuration in json or compact yaml.
// Mutually exclusive with --transport-socket.
//
// Deprecated: Do not use.
TlsContext *v31.UpstreamTlsContext `protobuf:"bytes,13,opt,name=tls_context,json=tlsContext,proto3" json:"tls_context,omitempty"`
// Max pending requests (default: 0, no client side queuing. Specifying any other value will allow
// client-side queuing of requests).
MaxPendingRequests *wrapperspb.UInt32Value `protobuf:"bytes,14,opt,name=max_pending_requests,json=maxPendingRequests,proto3" json:"max_pending_requests,omitempty"`
// The maximum allowed number of concurrently active requests.
// HTTP/2 and HTTP/3 only, does not apply to HTTP/1. (default: 100).
MaxActiveRequests *wrapperspb.UInt32Value `protobuf:"bytes,15,opt,name=max_active_requests,json=maxActiveRequests,proto3" json:"max_active_requests,omitempty"`
// Max requests per connection (default: 4294937295).
MaxRequestsPerConnection *wrapperspb.UInt32Value `protobuf:"bytes,16,opt,name=max_requests_per_connection,json=maxRequestsPerConnection,proto3" json:"max_requests_per_connection,omitempty"`
// Choose between using a busy spin/yield loop or have the thread poll or sleep while waiting for
// the next scheduled request (default: SPIN).
SequencerIdleStrategy *SequencerIdleStrategy `protobuf:"bytes,17,opt,name=sequencer_idle_strategy,json=sequencerIdleStrategy,proto3" json:"sequencer_idle_strategy,omitempty"`
// Either a single URI is configured, or the same traffic can be spread across a static
// set of backends.
//
// Types that are assignable to OneofUri:
// *CommandLineOptions_Uri
// *CommandLineOptions_MultiTarget
OneofUri isCommandLineOptions_OneofUri `protobuf_oneof:"oneof_uri"`
// Trace uri. Example: zipkin://localhost:9411/api/v2/spans. Default is empty.
Trace *wrapperspb.StringValue `protobuf:"bytes,19,opt,name=trace,proto3" json:"trace,omitempty"` // [(validate.rules).string.uri = true];
// Choose picking the most recently used, or least-recently-used connections for re-use.(default:
// mru). WARNING: this option is experimental and may be removed or changed in the future!
ExperimentalH1ConnectionReuseStrategy *H1ConnectionReuseStrategy `protobuf:"bytes,23,opt,name=experimental_h1_connection_reuse_strategy,json=experimentalH1ConnectionReuseStrategy,proto3" json:"experimental_h1_connection_reuse_strategy,omitempty"`
// Termination predicate. Allows specifying a counter name plus threshold value for terminating
// execution.
TerminationPredicates map[string]uint64 `protobuf:"bytes,20,rep,name=termination_predicates,json=terminationPredicates,proto3" json:"termination_predicates,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// Allows specifying a counter name plus threshold value for failing execution. Defaults to not
// tolerating error status codes and connection errors.
FailurePredicates map[string]uint64 `protobuf:"bytes,24,rep,name=failure_predicates,json=failurePredicates,proto3" json:"failure_predicates,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// Enable open loop mode. When enabled, the benchmark client will not provide backpressure when
// resource limits are hit.
OpenLoop *wrapperspb.BoolValue `protobuf:"bytes,21,opt,name=open_loop,json=openLoop,proto3" json:"open_loop,omitempty"`
// Add uniformly distributed absolute request-release timing jitter. For example, to add 10 us of
// jitter, specify .00001s. Default is empty / no uniform jitter.
JitterUniform *durationpb.Duration `protobuf:"bytes,25,opt,name=jitter_uniform,json=jitterUniform,proto3" json:"jitter_uniform,omitempty"`
// Nighthawk service uri for running CLI in remote host mode. Example: grpc://localhost:8843/.
// Default is empty.
// NOTE: not relevant to gRPC service
NighthawkService *wrapperspb.StringValue `protobuf:"bytes,31,opt,name=nighthawk_service,json=nighthawkService,proto3" json:"nighthawk_service,omitempty"` // [(validate.rules).string.uri = true];
// DO NOT USE: This options is deprecated, if this behavior is desired, set
// max_concurrent_streams to one instead.
//
// Deprecated: Do not use.
ExperimentalH2UseMultipleConnections *wrapperspb.BoolValue `protobuf:"bytes,30,opt,name=experimental_h2_use_multiple_connections,json=experimentalH2UseMultipleConnections,proto3" json:"experimental_h2_use_multiple_connections,omitempty"`
// The maximum concurrent streams allowed on one HTTP/2 or HTTP/3 connection.
//
// Does not apply to HTTP/1.
// See https://httpwg.org/specs/rfc7540.html#rfc.section.5.1.2 for more
// details.
//
// This limits how many streams Nighthawk will initiate concurrently on a
// single connection. If the limit is reached, Nighthawk may queue requests or
// use additional connections depending on the other configuration values.
// E.g. setting this to 1 makes Nighthawk use a new connection for each
// request. (default: 2147483647).
MaxConcurrentStreams *wrapperspb.UInt32Value `protobuf:"bytes,108,opt,name=max_concurrent_streams,json=maxConcurrentStreams,proto3" json:"max_concurrent_streams,omitempty"`
// Label. Allows specifying multiple labels which will be persisted in structured output formats.
Labels []string `protobuf:"bytes,28,rep,name=labels,proto3" json:"labels,omitempty"`
// TransportSocket configuration to use in every request
TransportSocket *v3.TransportSocket `protobuf:"bytes,27,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"`
// Perform a simple single warmup request (per worker) before starting
// execution. Note that this will be reflected in the counters that
// Nighthawk writes to the output. Default is false.
SimpleWarmup *wrapperspb.BoolValue `protobuf:"bytes,32,opt,name=simple_warmup,json=simpleWarmup,proto3" json:"simple_warmup,omitempty"`
// Optional set of stat sinks where Nighthawk metrics will be flushed to.
StatsSinks []*v32.StatsSink `protobuf:"bytes,34,rep,name=stats_sinks,json=statsSinks,proto3" json:"stats_sinks,omitempty"`