/
control.pb.go
2461 lines (2183 loc) · 90.1 KB
/
control.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
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.14.0
// source: grpc/testing/control.proto
package grpc_testing
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type ClientType int32
const (
// Many languages support a basic distinction between using
// sync or async client, and this allows the specification
ClientType_SYNC_CLIENT ClientType = 0
ClientType_ASYNC_CLIENT ClientType = 1
ClientType_OTHER_CLIENT ClientType = 2 // used for some language-specific variants
ClientType_CALLBACK_CLIENT ClientType = 3
)
// Enum value maps for ClientType.
var (
ClientType_name = map[int32]string{
0: "SYNC_CLIENT",
1: "ASYNC_CLIENT",
2: "OTHER_CLIENT",
3: "CALLBACK_CLIENT",
}
ClientType_value = map[string]int32{
"SYNC_CLIENT": 0,
"ASYNC_CLIENT": 1,
"OTHER_CLIENT": 2,
"CALLBACK_CLIENT": 3,
}
)
func (x ClientType) Enum() *ClientType {
p := new(ClientType)
*p = x
return p
}
func (x ClientType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ClientType) Descriptor() protoreflect.EnumDescriptor {
return file_grpc_testing_control_proto_enumTypes[0].Descriptor()
}
func (ClientType) Type() protoreflect.EnumType {
return &file_grpc_testing_control_proto_enumTypes[0]
}
func (x ClientType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ClientType.Descriptor instead.
func (ClientType) EnumDescriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{0}
}
type ServerType int32
const (
ServerType_SYNC_SERVER ServerType = 0
ServerType_ASYNC_SERVER ServerType = 1
ServerType_ASYNC_GENERIC_SERVER ServerType = 2
ServerType_OTHER_SERVER ServerType = 3 // used for some language-specific variants
ServerType_CALLBACK_SERVER ServerType = 4
)
// Enum value maps for ServerType.
var (
ServerType_name = map[int32]string{
0: "SYNC_SERVER",
1: "ASYNC_SERVER",
2: "ASYNC_GENERIC_SERVER",
3: "OTHER_SERVER",
4: "CALLBACK_SERVER",
}
ServerType_value = map[string]int32{
"SYNC_SERVER": 0,
"ASYNC_SERVER": 1,
"ASYNC_GENERIC_SERVER": 2,
"OTHER_SERVER": 3,
"CALLBACK_SERVER": 4,
}
)
func (x ServerType) Enum() *ServerType {
p := new(ServerType)
*p = x
return p
}
func (x ServerType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ServerType) Descriptor() protoreflect.EnumDescriptor {
return file_grpc_testing_control_proto_enumTypes[1].Descriptor()
}
func (ServerType) Type() protoreflect.EnumType {
return &file_grpc_testing_control_proto_enumTypes[1]
}
func (x ServerType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ServerType.Descriptor instead.
func (ServerType) EnumDescriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{1}
}
type RpcType int32
const (
RpcType_UNARY RpcType = 0
RpcType_STREAMING RpcType = 1
RpcType_STREAMING_FROM_CLIENT RpcType = 2
RpcType_STREAMING_FROM_SERVER RpcType = 3
RpcType_STREAMING_BOTH_WAYS RpcType = 4
)
// Enum value maps for RpcType.
var (
RpcType_name = map[int32]string{
0: "UNARY",
1: "STREAMING",
2: "STREAMING_FROM_CLIENT",
3: "STREAMING_FROM_SERVER",
4: "STREAMING_BOTH_WAYS",
}
RpcType_value = map[string]int32{
"UNARY": 0,
"STREAMING": 1,
"STREAMING_FROM_CLIENT": 2,
"STREAMING_FROM_SERVER": 3,
"STREAMING_BOTH_WAYS": 4,
}
)
func (x RpcType) Enum() *RpcType {
p := new(RpcType)
*p = x
return p
}
func (x RpcType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RpcType) Descriptor() protoreflect.EnumDescriptor {
return file_grpc_testing_control_proto_enumTypes[2].Descriptor()
}
func (RpcType) Type() protoreflect.EnumType {
return &file_grpc_testing_control_proto_enumTypes[2]
}
func (x RpcType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RpcType.Descriptor instead.
func (RpcType) EnumDescriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{2}
}
// Parameters of poisson process distribution, which is a good representation
// of activity coming in from independent identical stationary sources.
type PoissonParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The rate of arrivals (a.k.a. lambda parameter of the exp distribution).
OfferedLoad float64 `protobuf:"fixed64,1,opt,name=offered_load,json=offeredLoad,proto3" json:"offered_load,omitempty"`
}
func (x *PoissonParams) Reset() {
*x = PoissonParams{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PoissonParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PoissonParams) ProtoMessage() {}
func (x *PoissonParams) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 PoissonParams.ProtoReflect.Descriptor instead.
func (*PoissonParams) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{0}
}
func (x *PoissonParams) GetOfferedLoad() float64 {
if x != nil {
return x.OfferedLoad
}
return 0
}
// Once an RPC finishes, immediately start a new one.
// No configuration parameters needed.
type ClosedLoopParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ClosedLoopParams) Reset() {
*x = ClosedLoopParams{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClosedLoopParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClosedLoopParams) ProtoMessage() {}
func (x *ClosedLoopParams) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 ClosedLoopParams.ProtoReflect.Descriptor instead.
func (*ClosedLoopParams) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{1}
}
type LoadParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Load:
// *LoadParams_ClosedLoop
// *LoadParams_Poisson
Load isLoadParams_Load `protobuf_oneof:"load"`
}
func (x *LoadParams) Reset() {
*x = LoadParams{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LoadParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadParams) ProtoMessage() {}
func (x *LoadParams) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 LoadParams.ProtoReflect.Descriptor instead.
func (*LoadParams) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{2}
}
func (m *LoadParams) GetLoad() isLoadParams_Load {
if m != nil {
return m.Load
}
return nil
}
func (x *LoadParams) GetClosedLoop() *ClosedLoopParams {
if x, ok := x.GetLoad().(*LoadParams_ClosedLoop); ok {
return x.ClosedLoop
}
return nil
}
func (x *LoadParams) GetPoisson() *PoissonParams {
if x, ok := x.GetLoad().(*LoadParams_Poisson); ok {
return x.Poisson
}
return nil
}
type isLoadParams_Load interface {
isLoadParams_Load()
}
type LoadParams_ClosedLoop struct {
ClosedLoop *ClosedLoopParams `protobuf:"bytes,1,opt,name=closed_loop,json=closedLoop,proto3,oneof"`
}
type LoadParams_Poisson struct {
Poisson *PoissonParams `protobuf:"bytes,2,opt,name=poisson,proto3,oneof"`
}
func (*LoadParams_ClosedLoop) isLoadParams_Load() {}
func (*LoadParams_Poisson) isLoadParams_Load() {}
// presence of SecurityParams implies use of TLS
type SecurityParams struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UseTestCa bool `protobuf:"varint,1,opt,name=use_test_ca,json=useTestCa,proto3" json:"use_test_ca,omitempty"`
ServerHostOverride string `protobuf:"bytes,2,opt,name=server_host_override,json=serverHostOverride,proto3" json:"server_host_override,omitempty"`
CredType string `protobuf:"bytes,3,opt,name=cred_type,json=credType,proto3" json:"cred_type,omitempty"`
}
func (x *SecurityParams) Reset() {
*x = SecurityParams{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SecurityParams) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecurityParams) ProtoMessage() {}
func (x *SecurityParams) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 SecurityParams.ProtoReflect.Descriptor instead.
func (*SecurityParams) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{3}
}
func (x *SecurityParams) GetUseTestCa() bool {
if x != nil {
return x.UseTestCa
}
return false
}
func (x *SecurityParams) GetServerHostOverride() string {
if x != nil {
return x.ServerHostOverride
}
return ""
}
func (x *SecurityParams) GetCredType() string {
if x != nil {
return x.CredType
}
return ""
}
type ChannelArg struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are assignable to Value:
// *ChannelArg_StrValue
// *ChannelArg_IntValue
Value isChannelArg_Value `protobuf_oneof:"value"`
}
func (x *ChannelArg) Reset() {
*x = ChannelArg{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChannelArg) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChannelArg) ProtoMessage() {}
func (x *ChannelArg) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 ChannelArg.ProtoReflect.Descriptor instead.
func (*ChannelArg) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{4}
}
func (x *ChannelArg) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (m *ChannelArg) GetValue() isChannelArg_Value {
if m != nil {
return m.Value
}
return nil
}
func (x *ChannelArg) GetStrValue() string {
if x, ok := x.GetValue().(*ChannelArg_StrValue); ok {
return x.StrValue
}
return ""
}
func (x *ChannelArg) GetIntValue() int32 {
if x, ok := x.GetValue().(*ChannelArg_IntValue); ok {
return x.IntValue
}
return 0
}
type isChannelArg_Value interface {
isChannelArg_Value()
}
type ChannelArg_StrValue struct {
StrValue string `protobuf:"bytes,2,opt,name=str_value,json=strValue,proto3,oneof"`
}
type ChannelArg_IntValue struct {
IntValue int32 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}
func (*ChannelArg_StrValue) isChannelArg_Value() {}
func (*ChannelArg_IntValue) isChannelArg_Value() {}
type ClientConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of targets to connect to. At least one target needs to be specified.
ServerTargets []string `protobuf:"bytes,1,rep,name=server_targets,json=serverTargets,proto3" json:"server_targets,omitempty"`
ClientType ClientType `protobuf:"varint,2,opt,name=client_type,json=clientType,proto3,enum=grpc.testing.ClientType" json:"client_type,omitempty"`
SecurityParams *SecurityParams `protobuf:"bytes,3,opt,name=security_params,json=securityParams,proto3" json:"security_params,omitempty"`
// How many concurrent RPCs to start for each channel.
// For synchronous client, use a separate thread for each outstanding RPC.
OutstandingRpcsPerChannel int32 `protobuf:"varint,4,opt,name=outstanding_rpcs_per_channel,json=outstandingRpcsPerChannel,proto3" json:"outstanding_rpcs_per_channel,omitempty"`
// Number of independent client channels to create.
// i-th channel will connect to server_target[i % server_targets.size()]
ClientChannels int32 `protobuf:"varint,5,opt,name=client_channels,json=clientChannels,proto3" json:"client_channels,omitempty"`
// Only for async client. Number of threads to use to start/manage RPCs.
AsyncClientThreads int32 `protobuf:"varint,7,opt,name=async_client_threads,json=asyncClientThreads,proto3" json:"async_client_threads,omitempty"`
RpcType RpcType `protobuf:"varint,8,opt,name=rpc_type,json=rpcType,proto3,enum=grpc.testing.RpcType" json:"rpc_type,omitempty"`
// The requested load for the entire client (aggregated over all the threads).
LoadParams *LoadParams `protobuf:"bytes,10,opt,name=load_params,json=loadParams,proto3" json:"load_params,omitempty"`
PayloadConfig *PayloadConfig `protobuf:"bytes,11,opt,name=payload_config,json=payloadConfig,proto3" json:"payload_config,omitempty"`
HistogramParams *HistogramParams `protobuf:"bytes,12,opt,name=histogram_params,json=histogramParams,proto3" json:"histogram_params,omitempty"`
// Specify the cores we should run the client on, if desired
CoreList []int32 `protobuf:"varint,13,rep,packed,name=core_list,json=coreList,proto3" json:"core_list,omitempty"`
CoreLimit int32 `protobuf:"varint,14,opt,name=core_limit,json=coreLimit,proto3" json:"core_limit,omitempty"`
// If we use an OTHER_CLIENT client_type, this string gives more detail
OtherClientApi string `protobuf:"bytes,15,opt,name=other_client_api,json=otherClientApi,proto3" json:"other_client_api,omitempty"`
ChannelArgs []*ChannelArg `protobuf:"bytes,16,rep,name=channel_args,json=channelArgs,proto3" json:"channel_args,omitempty"`
// Number of threads that share each completion queue
ThreadsPerCq int32 `protobuf:"varint,17,opt,name=threads_per_cq,json=threadsPerCq,proto3" json:"threads_per_cq,omitempty"`
// Number of messages on a stream before it gets finished/restarted
MessagesPerStream int32 `protobuf:"varint,18,opt,name=messages_per_stream,json=messagesPerStream,proto3" json:"messages_per_stream,omitempty"`
// Use coalescing API when possible.
UseCoalesceApi bool `protobuf:"varint,19,opt,name=use_coalesce_api,json=useCoalesceApi,proto3" json:"use_coalesce_api,omitempty"`
// If 0, disabled. Else, specifies the period between gathering latency
// medians in milliseconds.
MedianLatencyCollectionIntervalMillis int32 `protobuf:"varint,20,opt,name=median_latency_collection_interval_millis,json=medianLatencyCollectionIntervalMillis,proto3" json:"median_latency_collection_interval_millis,omitempty"`
// Number of client processes. 0 indicates no restriction.
ClientProcesses int32 `protobuf:"varint,21,opt,name=client_processes,json=clientProcesses,proto3" json:"client_processes,omitempty"`
}
func (x *ClientConfig) Reset() {
*x = ClientConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientConfig) ProtoMessage() {}
func (x *ClientConfig) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 ClientConfig.ProtoReflect.Descriptor instead.
func (*ClientConfig) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{5}
}
func (x *ClientConfig) GetServerTargets() []string {
if x != nil {
return x.ServerTargets
}
return nil
}
func (x *ClientConfig) GetClientType() ClientType {
if x != nil {
return x.ClientType
}
return ClientType_SYNC_CLIENT
}
func (x *ClientConfig) GetSecurityParams() *SecurityParams {
if x != nil {
return x.SecurityParams
}
return nil
}
func (x *ClientConfig) GetOutstandingRpcsPerChannel() int32 {
if x != nil {
return x.OutstandingRpcsPerChannel
}
return 0
}
func (x *ClientConfig) GetClientChannels() int32 {
if x != nil {
return x.ClientChannels
}
return 0
}
func (x *ClientConfig) GetAsyncClientThreads() int32 {
if x != nil {
return x.AsyncClientThreads
}
return 0
}
func (x *ClientConfig) GetRpcType() RpcType {
if x != nil {
return x.RpcType
}
return RpcType_UNARY
}
func (x *ClientConfig) GetLoadParams() *LoadParams {
if x != nil {
return x.LoadParams
}
return nil
}
func (x *ClientConfig) GetPayloadConfig() *PayloadConfig {
if x != nil {
return x.PayloadConfig
}
return nil
}
func (x *ClientConfig) GetHistogramParams() *HistogramParams {
if x != nil {
return x.HistogramParams
}
return nil
}
func (x *ClientConfig) GetCoreList() []int32 {
if x != nil {
return x.CoreList
}
return nil
}
func (x *ClientConfig) GetCoreLimit() int32 {
if x != nil {
return x.CoreLimit
}
return 0
}
func (x *ClientConfig) GetOtherClientApi() string {
if x != nil {
return x.OtherClientApi
}
return ""
}
func (x *ClientConfig) GetChannelArgs() []*ChannelArg {
if x != nil {
return x.ChannelArgs
}
return nil
}
func (x *ClientConfig) GetThreadsPerCq() int32 {
if x != nil {
return x.ThreadsPerCq
}
return 0
}
func (x *ClientConfig) GetMessagesPerStream() int32 {
if x != nil {
return x.MessagesPerStream
}
return 0
}
func (x *ClientConfig) GetUseCoalesceApi() bool {
if x != nil {
return x.UseCoalesceApi
}
return false
}
func (x *ClientConfig) GetMedianLatencyCollectionIntervalMillis() int32 {
if x != nil {
return x.MedianLatencyCollectionIntervalMillis
}
return 0
}
func (x *ClientConfig) GetClientProcesses() int32 {
if x != nil {
return x.ClientProcesses
}
return 0
}
type ClientStatus struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Stats *ClientStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
}
func (x *ClientStatus) Reset() {
*x = ClientStatus{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientStatus) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientStatus) ProtoMessage() {}
func (x *ClientStatus) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 ClientStatus.ProtoReflect.Descriptor instead.
func (*ClientStatus) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{6}
}
func (x *ClientStatus) GetStats() *ClientStats {
if x != nil {
return x.Stats
}
return nil
}
// Request current stats
type Mark struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// if true, the stats will be reset after taking their snapshot.
Reset_ bool `protobuf:"varint,1,opt,name=reset,proto3" json:"reset,omitempty"`
}
func (x *Mark) Reset() {
*x = Mark{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Mark) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Mark) ProtoMessage() {}
func (x *Mark) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 Mark.ProtoReflect.Descriptor instead.
func (*Mark) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{7}
}
func (x *Mark) GetReset_() bool {
if x != nil {
return x.Reset_
}
return false
}
type ClientArgs struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Argtype:
// *ClientArgs_Setup
// *ClientArgs_Mark
Argtype isClientArgs_Argtype `protobuf_oneof:"argtype"`
}
func (x *ClientArgs) Reset() {
*x = ClientArgs{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClientArgs) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClientArgs) ProtoMessage() {}
func (x *ClientArgs) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 ClientArgs.ProtoReflect.Descriptor instead.
func (*ClientArgs) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{8}
}
func (m *ClientArgs) GetArgtype() isClientArgs_Argtype {
if m != nil {
return m.Argtype
}
return nil
}
func (x *ClientArgs) GetSetup() *ClientConfig {
if x, ok := x.GetArgtype().(*ClientArgs_Setup); ok {
return x.Setup
}
return nil
}
func (x *ClientArgs) GetMark() *Mark {
if x, ok := x.GetArgtype().(*ClientArgs_Mark); ok {
return x.Mark
}
return nil
}
type isClientArgs_Argtype interface {
isClientArgs_Argtype()
}
type ClientArgs_Setup struct {
Setup *ClientConfig `protobuf:"bytes,1,opt,name=setup,proto3,oneof"`
}
type ClientArgs_Mark struct {
Mark *Mark `protobuf:"bytes,2,opt,name=mark,proto3,oneof"`
}
func (*ClientArgs_Setup) isClientArgs_Argtype() {}
func (*ClientArgs_Mark) isClientArgs_Argtype() {}
type ServerConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerType ServerType `protobuf:"varint,1,opt,name=server_type,json=serverType,proto3,enum=grpc.testing.ServerType" json:"server_type,omitempty"`
SecurityParams *SecurityParams `protobuf:"bytes,2,opt,name=security_params,json=securityParams,proto3" json:"security_params,omitempty"`
// Port on which to listen. Zero means pick unused port.
Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
// Only for async server. Number of threads used to serve the requests.
AsyncServerThreads int32 `protobuf:"varint,7,opt,name=async_server_threads,json=asyncServerThreads,proto3" json:"async_server_threads,omitempty"`
// Specify the number of cores to limit server to, if desired
CoreLimit int32 `protobuf:"varint,8,opt,name=core_limit,json=coreLimit,proto3" json:"core_limit,omitempty"`
// payload config, used in generic server.
// Note this must NOT be used in proto (non-generic) servers. For proto servers,
// 'response sizes' must be configured from the 'response_size' field of the
// 'SimpleRequest' objects in RPC requests.
PayloadConfig *PayloadConfig `protobuf:"bytes,9,opt,name=payload_config,json=payloadConfig,proto3" json:"payload_config,omitempty"`
// Specify the cores we should run the server on, if desired
CoreList []int32 `protobuf:"varint,10,rep,packed,name=core_list,json=coreList,proto3" json:"core_list,omitempty"`
// If we use an OTHER_SERVER client_type, this string gives more detail
OtherServerApi string `protobuf:"bytes,11,opt,name=other_server_api,json=otherServerApi,proto3" json:"other_server_api,omitempty"`
// Number of threads that share each completion queue
ThreadsPerCq int32 `protobuf:"varint,12,opt,name=threads_per_cq,json=threadsPerCq,proto3" json:"threads_per_cq,omitempty"`
// Buffer pool size (no buffer pool specified if unset)
ResourceQuotaSize int32 `protobuf:"varint,1001,opt,name=resource_quota_size,json=resourceQuotaSize,proto3" json:"resource_quota_size,omitempty"`
ChannelArgs []*ChannelArg `protobuf:"bytes,1002,rep,name=channel_args,json=channelArgs,proto3" json:"channel_args,omitempty"`
// Number of server processes. 0 indicates no restriction.
ServerProcesses int32 `protobuf:"varint,21,opt,name=server_processes,json=serverProcesses,proto3" json:"server_processes,omitempty"`
}
func (x *ServerConfig) Reset() {
*x = ServerConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_grpc_testing_control_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ServerConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ServerConfig) ProtoMessage() {}
func (x *ServerConfig) ProtoReflect() protoreflect.Message {
mi := &file_grpc_testing_control_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 ServerConfig.ProtoReflect.Descriptor instead.
func (*ServerConfig) Descriptor() ([]byte, []int) {
return file_grpc_testing_control_proto_rawDescGZIP(), []int{9}
}
func (x *ServerConfig) GetServerType() ServerType {
if x != nil {
return x.ServerType
}
return ServerType_SYNC_SERVER
}
func (x *ServerConfig) GetSecurityParams() *SecurityParams {
if x != nil {
return x.SecurityParams
}
return nil
}
func (x *ServerConfig) GetPort() int32 {
if x != nil {
return x.Port
}
return 0
}
func (x *ServerConfig) GetAsyncServerThreads() int32 {
if x != nil {
return x.AsyncServerThreads
}
return 0
}