forked from ni/nimi-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnifake.proto
1270 lines (1048 loc) · 34 KB
/
nifake.proto
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
//---------------------------------------------------------------------
// This file is generated from NI-FAKE API metadata version 24.3.0f98
//---------------------------------------------------------------------
// Proto file for the NI-FAKE Metadata
//---------------------------------------------------------------------
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.ni.grpc.fake";
option java_outer_classname = "NiFake";
option csharp_namespace = "NationalInstruments.Grpc.Fake";
package nifake_grpc;
import "session.proto";
service NiFake {
rpc Abort(AbortRequest) returns (AbortResponse);
rpc BoolArrayOutputFunction(BoolArrayOutputFunctionRequest) returns (BoolArrayOutputFunctionResponse);
rpc Close(CloseRequest) returns (CloseResponse);
rpc EnumArrayOutputFunction(EnumArrayOutputFunctionRequest) returns (EnumArrayOutputFunctionResponse);
rpc EnumInputFunctionWithDefaults(EnumInputFunctionWithDefaultsRequest) returns (EnumInputFunctionWithDefaultsResponse);
rpc StringValuedEnumInputFunctionWithDefaults(StringValuedEnumInputFunctionWithDefaultsRequest) returns (StringValuedEnumInputFunctionWithDefaultsResponse);
rpc ErrorMessage(ErrorMessageRequest) returns (ErrorMessageResponse);
rpc FetchWaveform(FetchWaveformRequest) returns (FetchWaveformResponse);
rpc GetABoolean(GetABooleanRequest) returns (GetABooleanResponse);
rpc GetANumber(GetANumberRequest) returns (GetANumberResponse);
rpc GetAStringOfFixedMaximumSize(GetAStringOfFixedMaximumSizeRequest) returns (GetAStringOfFixedMaximumSizeResponse);
rpc GetAnIviDanceCharArray(GetAnIviDanceCharArrayRequest) returns (GetAnIviDanceCharArrayResponse);
rpc GetArrayUsingIviDance(GetArrayUsingIviDanceRequest) returns (GetArrayUsingIviDanceResponse);
rpc GetAttributeViBoolean(GetAttributeViBooleanRequest) returns (GetAttributeViBooleanResponse);
rpc GetAttributeViInt32(GetAttributeViInt32Request) returns (GetAttributeViInt32Response);
rpc GetAttributeViInt64(GetAttributeViInt64Request) returns (GetAttributeViInt64Response);
rpc GetAttributeViReal64(GetAttributeViReal64Request) returns (GetAttributeViReal64Response);
rpc GetAttributeViSession(GetAttributeViSessionRequest) returns (GetAttributeViSessionResponse);
rpc GetAttributeViString(GetAttributeViStringRequest) returns (GetAttributeViStringResponse);
rpc GetCalDateAndTime(GetCalDateAndTimeRequest) returns (GetCalDateAndTimeResponse);
rpc GetCalInterval(GetCalIntervalRequest) returns (GetCalIntervalResponse);
rpc GetEnumValue(GetEnumValueRequest) returns (GetEnumValueResponse);
rpc GetError(GetErrorRequest) returns (GetErrorResponse);
rpc InitWithOptions(InitWithOptionsRequest) returns (InitWithOptionsResponse);
rpc MultipleArrayTypes(MultipleArrayTypesRequest) returns (MultipleArrayTypesResponse);
rpc MultipleArraysSameSize(MultipleArraysSameSizeRequest) returns (MultipleArraysSameSizeResponse);
rpc OneInputFunction(OneInputFunctionRequest) returns (OneInputFunctionResponse);
rpc ParametersAreMultipleTypes(ParametersAreMultipleTypesRequest) returns (ParametersAreMultipleTypesResponse);
rpc PoorlyNamedSimpleFunction(PoorlyNamedSimpleFunctionRequest) returns (PoorlyNamedSimpleFunctionResponse);
rpc Read(ReadRequest) returns (ReadResponse);
rpc ReadFromChannel(ReadFromChannelRequest) returns (ReadFromChannelResponse);
rpc ReturnANumberAndAString(ReturnANumberAndAStringRequest) returns (ReturnANumberAndAStringResponse);
rpc ReturnMultipleTypes(ReturnMultipleTypesRequest) returns (ReturnMultipleTypesResponse);
rpc SetAttributeViBoolean(SetAttributeViBooleanRequest) returns (SetAttributeViBooleanResponse);
rpc SetAttributeViInt32(SetAttributeViInt32Request) returns (SetAttributeViInt32Response);
rpc SetAttributeViInt64(SetAttributeViInt64Request) returns (SetAttributeViInt64Response);
rpc SetAttributeViReal64(SetAttributeViReal64Request) returns (SetAttributeViReal64Response);
rpc SetAttributeViString(SetAttributeViStringRequest) returns (SetAttributeViStringResponse);
rpc TwoInputFunction(TwoInputFunctionRequest) returns (TwoInputFunctionResponse);
rpc Use64BitNumber(Use64BitNumberRequest) returns (Use64BitNumberResponse);
rpc WriteWaveform(WriteWaveformRequest) returns (WriteWaveformResponse);
rpc SetCustomType(SetCustomTypeRequest) returns (SetCustomTypeResponse);
rpc SetCustomTypeArray(SetCustomTypeArrayRequest) returns (SetCustomTypeArrayResponse);
rpc GetCustomType(GetCustomTypeRequest) returns (GetCustomTypeResponse);
rpc GetCustomTypeArray(GetCustomTypeArrayRequest) returns (GetCustomTypeArrayResponse);
rpc GetAnIviDanceWithATwistArray(GetAnIviDanceWithATwistArrayRequest) returns (GetAnIviDanceWithATwistArrayResponse);
rpc GetAnIviDanceWithATwistString(GetAnIviDanceWithATwistStringRequest) returns (GetAnIviDanceWithATwistStringResponse);
rpc DoubleAllTheNums(DoubleAllTheNumsRequest) returns (DoubleAllTheNumsResponse);
rpc AcceptListOfDurationsInSeconds(AcceptListOfDurationsInSecondsRequest) returns (AcceptListOfDurationsInSecondsResponse);
rpc ReturnDurationInSeconds(ReturnDurationInSecondsRequest) returns (ReturnDurationInSecondsResponse);
rpc ReturnListOfDurationsInSeconds(ReturnListOfDurationsInSecondsRequest) returns (ReturnListOfDurationsInSecondsResponse);
rpc ConfigureAbc(ConfigureAbcRequest) returns (ConfigureAbcResponse);
rpc ConfigureEnums(ConfigureEnumsRequest) returns (ConfigureEnumsResponse);
rpc ExportAttributeConfigurationBufferEx(ExportAttributeConfigurationBufferExRequest) returns (ExportAttributeConfigurationBufferExResponse);
rpc ImportAttributeConfigurationBufferEx(ImportAttributeConfigurationBufferExRequest) returns (ImportAttributeConfigurationBufferExResponse);
rpc FetchWithCustomSize(FetchWithCustomSizeRequest) returns (FetchWithCustomSizeResponse);
rpc GetParameterWithOverriddenGrpcName(GetParameterWithOverriddenGrpcNameRequest) returns (GetParameterWithOverriddenGrpcNameResponse);
rpc IviDanceWithTwistWithMultipleArraysAndOneBufferSize(IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest) returns (IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse);
rpc FunctionWithOverriddenGrpcName2x(FunctionWithOverriddenGrpcName2xRequest) returns (FunctionWithOverriddenGrpcName2xResponse);
rpc StringValuedEnumNoEnumGenerated(StringValuedEnumNoEnumGeneratedRequest) returns (StringValuedEnumNoEnumGeneratedResponse);
rpc IviDanceWithATwistCalculatedSizeOut(IviDanceWithATwistCalculatedSizeOutRequest) returns (IviDanceWithATwistCalculatedSizeOutResponse);
rpc ImportAttributeConfigurationBuffer(ImportAttributeConfigurationBufferRequest) returns (ImportAttributeConfigurationBufferResponse);
rpc ExportAttributeConfigurationBuffer(ExportAttributeConfigurationBufferRequest) returns (ExportAttributeConfigurationBufferResponse);
rpc Control4022(Control4022Request) returns (Control4022Response);
rpc AcceptViSessionArray(AcceptViSessionArrayRequest) returns (AcceptViSessionArrayResponse);
rpc AcceptViUInt32Array(AcceptViUInt32ArrayRequest) returns (AcceptViUInt32ArrayResponse);
rpc BoolArrayInputFunction(BoolArrayInputFunctionRequest) returns (BoolArrayInputFunctionResponse);
rpc CloseExtCal(CloseExtCalRequest) returns (CloseExtCalResponse);
rpc CommandWithReservedParam(CommandWithReservedParamRequest) returns (CommandWithReservedParamResponse);
rpc CreateConfigurationList(CreateConfigurationListRequest) returns (CreateConfigurationListResponse);
rpc CustomNestedStructRoundtrip(CustomNestedStructRoundtripRequest) returns (CustomNestedStructRoundtripResponse);
rpc GetBitfieldAsEnumArray(GetBitfieldAsEnumArrayRequest) returns (GetBitfieldAsEnumArrayResponse);
rpc GetAnIviDanceWithATwistArrayOfCustomType(GetAnIviDanceWithATwistArrayOfCustomTypeRequest) returns (GetAnIviDanceWithATwistArrayOfCustomTypeResponse);
rpc GetAnIviDanceWithATwistArrayWithInputArray(GetAnIviDanceWithATwistArrayWithInputArrayRequest) returns (GetAnIviDanceWithATwistArrayWithInputArrayResponse);
rpc GetAnIviDanceWithATwistByteArray(GetAnIviDanceWithATwistByteArrayRequest) returns (GetAnIviDanceWithATwistByteArrayResponse);
rpc GetAnIviDanceWithATwistStringStrlenBug(GetAnIviDanceWithATwistStringStrlenBugRequest) returns (GetAnIviDanceWithATwistStringStrlenBugResponse);
rpc GetArraySizeForCustomCode(GetArraySizeForCustomCodeRequest) returns (GetArraySizeForCustomCodeResponse);
rpc GetArrayViUInt8WithEnum(GetArrayViUInt8WithEnumRequest) returns (GetArrayViUInt8WithEnumResponse);
rpc GetViUInt8(GetViUInt8Request) returns (GetViUInt8Response);
rpc GetViInt32Array(GetViInt32ArrayRequest) returns (GetViInt32ArrayResponse);
rpc GetViUInt32Array(GetViUInt32ArrayRequest) returns (GetViUInt32ArrayResponse);
rpc MethodUsingEnumWithGrpcNameValues(MethodUsingEnumWithGrpcNameValuesRequest) returns (MethodUsingEnumWithGrpcNameValuesResponse);
rpc MethodWithGetLastErrorParam(MethodWithGetLastErrorParamRequest) returns (MethodWithGetLastErrorParamResponse);
rpc MethodWithGrpcOnlyParam(MethodWithGrpcOnlyParamRequest) returns (MethodWithGrpcOnlyParamResponse);
rpc MethodUsingWholeAndFractionalNumbers(MethodUsingWholeAndFractionalNumbersRequest) returns (MethodUsingWholeAndFractionalNumbersResponse);
rpc MethodUsingWholeMappedNumbers(MethodUsingWholeMappedNumbersRequest) returns (MethodUsingWholeMappedNumbersResponse);
rpc MethodWithGrpcFieldNumber(MethodWithGrpcFieldNumberRequest) returns (MethodWithGrpcFieldNumberResponse);
rpc MethodWithProtoOnlyParameter(MethodWithProtoOnlyParameterRequest) returns (MethodWithProtoOnlyParameterResponse);
rpc ReadDataWithInOutIviTwist(ReadDataWithInOutIviTwistRequest) returns (ReadDataWithInOutIviTwistResponse);
rpc ReadDataWithMultipleIviTwistParamSets(ReadDataWithMultipleIviTwistParamSetsRequest) returns (ReadDataWithMultipleIviTwistParamSetsResponse);
rpc InitExtCal(InitExtCalRequest) returns (InitExtCalResponse);
rpc InitWithVarArgs(InitWithVarArgsRequest) returns (InitWithVarArgsResponse);
rpc MultipleArraysSameSizeWithOptional(MultipleArraysSameSizeWithOptionalRequest) returns (MultipleArraysSameSizeWithOptionalResponse);
rpc UseATwoDimensionParameter(UseATwoDimensionParameterRequest) returns (UseATwoDimensionParameterResponse);
rpc ViUInt8ArrayInputFunction(ViUInt8ArrayInputFunctionRequest) returns (ViUInt8ArrayInputFunctionResponse);
rpc ViUInt8ArrayOutputFunction(ViUInt8ArrayOutputFunctionRequest) returns (ViUInt8ArrayOutputFunctionResponse);
rpc ViInt16ArrayInputFunction(ViInt16ArrayInputFunctionRequest) returns (ViInt16ArrayInputFunctionResponse);
}
enum NiFakeAttribute {
NIFAKE_ATTRIBUTE_UNSPECIFIED = 0;
NIFAKE_ATTRIBUTE_READ_WRITE_BOOL = 1000000;
NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE = 1000001;
NIFAKE_ATTRIBUTE_READ_WRITE_STRING = 1000002;
NIFAKE_ATTRIBUTE_READ_WRITE_COLOR = 1000003;
NIFAKE_ATTRIBUTE_READ_WRITE_INTEGER = 1000004;
NIFAKE_ATTRIBUTE_FLOAT_ENUM_NAME_OVERRIDE = 1000005;
NIFAKE_ATTRIBUTE_READ_WRITE_INT64 = 1000006;
NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE_WITH_CONVERTER = 1000007;
NIFAKE_ATTRIBUTE_READ_WRITE_INTEGER_WITH_CONVERTER = 1000008;
NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE_WITH_REPEATED_CAPABILITY = 1000009;
NIFAKE_ATTRIBUTE_READ_WRITE_STRING_REPEATED_CAPABILITY = 1000010;
NIFAKE_ATTRIBUTE_SAMPLE_COUNT = 1000012;
NIFAKE_ATTRIBUTE_SAMPLE_INTERVAL = 1000013;
}
enum GrpcColorOverride {
GRPC_COLOR_OVERRIDE_UNSPECIFIED = 0;
GRPC_COLOR_OVERRIDE_RED = 1;
GRPC_COLOR_OVERRIDE_BLUE = 2;
GRPC_COLOR_OVERRIDE_YELLOW = 5;
GRPC_COLOR_OVERRIDE_BLACK = 42;
}
enum FloatEnum {
FLOAT_ENUM_UNSPECIFIED = 0;
FLOAT_ENUM_THREE_POINT_FIVE = 1;
FLOAT_ENUM_FOUR_POINT_FIVE = 2;
FLOAT_ENUM_FIVE_POINT_FIVE = 3;
FLOAT_ENUM_SIX_POINT_FIVE = 4;
FLOAT_ENUM_SEVEN_POINT_FIVE = 5;
}
enum Turtle {
TURTLE_LEONARDO = 0;
TURTLE_DONATELLO = 1;
TURTLE_RAPHAEL = 2;
TURTLE_MICHELANGELO = 3;
}
enum MobileOSNames {
MOBILE_OS_NAMES_UNSPECIFIED = 0;
MOBILE_OS_NAMES_ANDROID = 1;
MOBILE_OS_NAMES_IOS = 2;
MOBILE_OS_NAMES_NONE = 3;
}
enum Bitfield {
BITFIELD_UNSPECIFIED = 0;
BITFIELD_FLAG_A = 1;
BITFIELD_FLAG_B = 2;
BITFIELD_FLAG_C = 4;
BITFIELD_FLAG_D = 8;
}
enum DecimalWholeNumber {
DECIMAL_WHOLE_NUMBER_ZERO = 0;
DECIMAL_WHOLE_NUMBER_NEGATIVE_ONE = -1;
DECIMAL_WHOLE_NUMBER_TWENTY_TWO = 22;
}
enum DecimalWholeNumberMapped {
DECIMAL_WHOLE_NUMBER_MAPPED_UNSPECIFIED = 0;
DECIMAL_WHOLE_NUMBER_MAPPED_ZERO = 1;
DECIMAL_WHOLE_NUMBER_MAPPED_NEGATIVE_ONE = 2;
DECIMAL_WHOLE_NUMBER_MAPPED_TWENTY_TWO = 3;
}
enum DecimalMixedNumber {
DECIMAL_MIXED_NUMBER_UNSPECIFIED = 0;
DECIMAL_MIXED_NUMBER_TWENTY_TWO = 1;
DECIMAL_MIXED_NUMBER_TWO_POINT_TWO = 2;
DECIMAL_MIXED_NUMBER_NEGATIVE_THREE = 3;
DECIMAL_MIXED_NUMBER_MAX_INT_32 = 4;
DECIMAL_MIXED_NUMBER_MAX_INT_32_PLUS_ONE = 5;
DECIMAL_MIXED_NUMBER_MIN_INT_32 = 6;
DECIMAL_MIXED_NUMBER_MIN_INT_32_MINUS_ONE = 7;
}
enum EnumWithGrpcNameValues {
ENUM_WITH_GRPC_NAME_VALUES_UNSPECIFIED = 0;
ENUM_WITH_GRPC_NAME_VALUES_ALTERED_GRPC_NAME_ONE = 1;
ENUM_WITH_GRPC_NAME_VALUES_TWO = 2;
}
enum SampleCount {
SAMPLE_COUNT_SAMPLE_COUNT_INFINITE = 0;
}
enum SampleInterval {
SAMPLE_INTERVAL_UNSPECIFIED = 0;
SAMPLE_INTERVAL_AUTO_DELAY = -1;
}
enum NiFakeInt32AttributeValues {
option allow_alias = true;
NIFAKE_INT32_UNSPECIFIED = 0;
NIFAKE_INT32_GRPC_COLOR_OVERRIDE_RED = 1;
NIFAKE_INT32_GRPC_COLOR_OVERRIDE_BLUE = 2;
NIFAKE_INT32_GRPC_COLOR_OVERRIDE_YELLOW = 5;
NIFAKE_INT32_GRPC_COLOR_OVERRIDE_BLACK = 42;
NIFAKE_INT32_SAMPLE_COUNT_SAMPLE_COUNT_INFINITE = 0;
}
enum NiFakeReal64AttributeValues {
NIFAKE_REAL64_UNSPECIFIED = 0;
NIFAKE_REAL64_SAMPLE_INTERVAL_AUTO_DELAY = -1;
}
enum NiFakeReal64AttributeValuesMapped {
NIFAKE_REAL64_MAPPED_UNSPECIFIED = 0;
NIFAKE_REAL64_FLOAT_ENUM_THREE_POINT_FIVE = 1;
NIFAKE_REAL64_FLOAT_ENUM_FOUR_POINT_FIVE = 2;
NIFAKE_REAL64_FLOAT_ENUM_FIVE_POINT_FIVE = 3;
NIFAKE_REAL64_FLOAT_ENUM_SIX_POINT_FIVE = 4;
NIFAKE_REAL64_FLOAT_ENUM_SEVEN_POINT_FIVE = 5;
}
message FakeCustomStruct {
sint32 struct_int = 1;
double struct_double = 2;
}
message CustomStructNestedTypedef {
FakeCustomStruct struct_custom_struct = 1;
CustomStructTypedef struct_custom_struct_typedef = 2;
}
message CustomStructTypedef {
sint32 struct_int = 1;
double struct_double = 2;
}
message NIComplexI16_struct {
sint32 real = 1;
sint32 imaginary = 2;
}
message NIComplexNumber_struct {
double real = 1;
double imaginary = 2;
}
message StringAndTurtle {
string string_arg = 1;
Turtle turtle = 2;
}
message CustomNamedType {
string string_arg = 1;
}
message AbortRequest {
nidevice_grpc.Session vi = 1;
}
message AbortResponse {
int32 status = 1;
}
message BoolArrayOutputFunctionRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_elements = 2;
}
message BoolArrayOutputFunctionResponse {
int32 status = 1;
repeated bool an_array = 2;
}
message CloseRequest {
nidevice_grpc.Session vi = 1;
}
message CloseResponse {
int32 status = 1;
}
message EnumArrayOutputFunctionRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_elements = 2;
}
message EnumArrayOutputFunctionResponse {
int32 status = 1;
repeated Turtle an_array = 2;
repeated sint32 an_array_raw = 3;
}
message EnumInputFunctionWithDefaultsRequest {
nidevice_grpc.Session vi = 1;
oneof a_turtle_enum {
Turtle a_turtle = 2;
sint32 a_turtle_raw = 3;
}
}
message EnumInputFunctionWithDefaultsResponse {
int32 status = 1;
}
message StringValuedEnumInputFunctionWithDefaultsRequest {
nidevice_grpc.Session vi = 1;
oneof a_mobile_os_name_enum {
MobileOSNames a_mobile_os_name_mapped = 2;
string a_mobile_os_name_raw = 3;
}
}
message StringValuedEnumInputFunctionWithDefaultsResponse {
int32 status = 1;
}
message ErrorMessageRequest {
nidevice_grpc.Session vi = 1;
sint32 error_code = 2;
}
message ErrorMessageResponse {
int32 status = 1;
string error_message = 2;
}
message FetchWaveformRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_samples = 2;
}
message FetchWaveformResponse {
int32 status = 1;
repeated double waveform_data = 2;
sint32 actual_number_of_samples = 3;
}
message GetABooleanRequest {
nidevice_grpc.Session vi = 1;
}
message GetABooleanResponse {
int32 status = 1;
bool a_boolean = 2;
}
message GetANumberRequest {
nidevice_grpc.Session vi = 1;
}
message GetANumberResponse {
int32 status = 1;
sint32 a_number = 2;
}
message GetAStringOfFixedMaximumSizeRequest {
nidevice_grpc.Session vi = 1;
}
message GetAStringOfFixedMaximumSizeResponse {
int32 status = 1;
string a_string = 2;
}
message GetAnIviDanceCharArrayRequest {
nidevice_grpc.Session vi = 1;
}
message GetAnIviDanceCharArrayResponse {
int32 status = 1;
string char_array = 2;
}
message GetArrayUsingIviDanceRequest {
nidevice_grpc.Session vi = 1;
}
message GetArrayUsingIviDanceResponse {
int32 status = 1;
repeated double array_out = 2;
}
message GetAttributeViBooleanRequest {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
}
message GetAttributeViBooleanResponse {
int32 status = 1;
bool attribute_value = 2;
}
message GetAttributeViInt32Request {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
}
message GetAttributeViInt32Response {
int32 status = 1;
sint32 attribute_value = 2;
}
message GetAttributeViInt64Request {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
}
message GetAttributeViInt64Response {
int32 status = 1;
int64 attribute_value = 2;
}
message GetAttributeViReal64Request {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
}
message GetAttributeViReal64Response {
int32 status = 1;
double attribute_value = 2;
}
message GetAttributeViSessionRequest {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
}
message GetAttributeViSessionResponse {
int32 status = 1;
nidevice_grpc.Session attribute_value = 2;
}
message GetAttributeViStringRequest {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
}
message GetAttributeViStringResponse {
int32 status = 1;
string attribute_value = 2;
}
message GetCalDateAndTimeRequest {
nidevice_grpc.Session vi = 1;
sint32 cal_type = 2;
}
message GetCalDateAndTimeResponse {
int32 status = 1;
sint32 month = 2;
sint32 day = 3;
sint32 year = 4;
sint32 hour = 5;
sint32 minute = 6;
}
message GetCalIntervalRequest {
nidevice_grpc.Session vi = 1;
}
message GetCalIntervalResponse {
int32 status = 1;
sint32 months = 2;
}
message GetEnumValueRequest {
nidevice_grpc.Session vi = 1;
}
message GetEnumValueResponse {
int32 status = 1;
sint32 a_quantity = 2;
Turtle a_turtle = 3;
sint32 a_turtle_raw = 4;
}
message GetErrorRequest {
nidevice_grpc.Session vi = 1;
}
message GetErrorResponse {
int32 status = 1;
sint32 error_code = 2;
string description = 3;
}
message InitWithOptionsRequest {
string session_name = 1;
string resource_name = 2;
bool id_query = 3;
bool reset_device = 4;
string option_string = 5;
nidevice_grpc.SessionInitializationBehavior initialization_behavior = 6;
}
message InitWithOptionsResponse {
int32 status = 1;
nidevice_grpc.Session vi = 2;
bool new_session_initialized = 3;
}
message MultipleArrayTypesRequest {
nidevice_grpc.Session vi = 1;
sint32 output_array_size = 2;
repeated double input_array_of_floats = 3;
repeated sint32 input_array_of_integers = 4;
}
message MultipleArrayTypesResponse {
int32 status = 1;
repeated double output_array = 2;
repeated double output_array_of_fixed_length = 3;
}
message MultipleArraysSameSizeRequest {
nidevice_grpc.Session vi = 1;
repeated double values1 = 2;
repeated double values2 = 3;
repeated double values3 = 4;
repeated double values4 = 5;
}
message MultipleArraysSameSizeResponse {
int32 status = 1;
}
message OneInputFunctionRequest {
nidevice_grpc.Session vi = 1;
sint32 a_number = 2;
}
message OneInputFunctionResponse {
int32 status = 1;
}
message ParametersAreMultipleTypesRequest {
nidevice_grpc.Session vi = 1;
bool a_boolean = 2;
sint32 an_int32 = 3;
int64 an_int64 = 4;
oneof an_int_enum_enum {
Turtle an_int_enum = 5;
sint32 an_int_enum_raw = 6;
}
double a_float = 7;
oneof a_float_enum_enum {
FloatEnum a_float_enum_mapped = 8;
double a_float_enum_raw = 9;
}
string a_string = 10;
}
message ParametersAreMultipleTypesResponse {
int32 status = 1;
}
message PoorlyNamedSimpleFunctionRequest {
nidevice_grpc.Session vi = 1;
}
message PoorlyNamedSimpleFunctionResponse {
int32 status = 1;
}
message ReadRequest {
nidevice_grpc.Session vi = 1;
double maximum_time = 2;
}
message ReadResponse {
int32 status = 1;
double reading = 2;
}
message ReadFromChannelRequest {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
sint32 maximum_time = 3;
}
message ReadFromChannelResponse {
int32 status = 1;
double reading = 2;
}
message ReturnANumberAndAStringRequest {
nidevice_grpc.Session vi = 1;
}
message ReturnANumberAndAStringResponse {
int32 status = 1;
sint32 a_number = 2;
string a_string = 3;
}
message ReturnMultipleTypesRequest {
nidevice_grpc.Session vi = 1;
sint32 array_size = 2;
}
message ReturnMultipleTypesResponse {
int32 status = 1;
bool a_boolean = 2;
sint32 an_int32 = 3;
int64 an_int64 = 4;
Turtle an_int_enum = 5;
sint32 an_int_enum_raw = 6;
double a_float = 7;
FloatEnum a_float_enum_mapped = 8;
double a_float_enum_raw = 9;
repeated double an_array = 10;
string a_string = 11;
}
message SetAttributeViBooleanRequest {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
bool attribute_value = 4;
}
message SetAttributeViBooleanResponse {
int32 status = 1;
}
message SetAttributeViInt32Request {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
oneof attribute_value_enum {
NiFakeInt32AttributeValues attribute_value = 4;
sint32 attribute_value_raw = 5;
}
}
message SetAttributeViInt32Response {
int32 status = 1;
}
message SetAttributeViInt64Request {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
int64 attribute_value_raw = 4;
}
message SetAttributeViInt64Response {
int32 status = 1;
}
message SetAttributeViReal64Request {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
oneof attribute_value_enum {
NiFakeReal64AttributeValues attribute_value = 4;
NiFakeReal64AttributeValuesMapped attribute_value_mapped = 5;
double attribute_value_raw = 6;
}
}
message SetAttributeViReal64Response {
int32 status = 1;
}
message SetAttributeViStringRequest {
nidevice_grpc.Session vi = 1;
string channel_name = 2;
NiFakeAttribute attribute_id = 3;
string attribute_value_raw = 4;
}
message SetAttributeViStringResponse {
int32 status = 1;
}
message TwoInputFunctionRequest {
nidevice_grpc.Session vi = 1;
double a_number = 2;
string a_string = 3;
}
message TwoInputFunctionResponse {
int32 status = 1;
}
message Use64BitNumberRequest {
nidevice_grpc.Session vi = 1;
int64 input = 2;
}
message Use64BitNumberResponse {
int32 status = 1;
int64 output = 2;
}
message WriteWaveformRequest {
nidevice_grpc.Session vi = 1;
repeated double waveform = 2;
}
message WriteWaveformResponse {
int32 status = 1;
}
message SetCustomTypeRequest {
nidevice_grpc.Session vi = 1;
FakeCustomStruct cs = 2;
}
message SetCustomTypeResponse {
int32 status = 1;
}
message SetCustomTypeArrayRequest {
nidevice_grpc.Session vi = 1;
repeated FakeCustomStruct cs = 2;
}
message SetCustomTypeArrayResponse {
int32 status = 1;
}
message GetCustomTypeRequest {
nidevice_grpc.Session vi = 1;
}
message GetCustomTypeResponse {
int32 status = 1;
FakeCustomStruct cs = 2;
}
message GetCustomTypeArrayRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_elements = 2;
}
message GetCustomTypeArrayResponse {
int32 status = 1;
repeated FakeCustomStruct cs = 2;
}
message GetAnIviDanceWithATwistArrayRequest {
nidevice_grpc.Session vi = 1;
string a_string = 2;
}
message GetAnIviDanceWithATwistArrayResponse {
int32 status = 1;
repeated sint32 array_out = 2;
sint32 actual_size = 3;
}
message GetAnIviDanceWithATwistStringRequest {
nidevice_grpc.Session vi = 1;
}
message GetAnIviDanceWithATwistStringResponse {
int32 status = 1;
string a_string = 2;
sint32 actual_size = 3;
}
message DoubleAllTheNumsRequest {
nidevice_grpc.Session vi = 1;
repeated double numbers = 2;
}
message DoubleAllTheNumsResponse {
int32 status = 1;
}
message AcceptListOfDurationsInSecondsRequest {
nidevice_grpc.Session vi = 1;
repeated double delays = 2;
}
message AcceptListOfDurationsInSecondsResponse {
int32 status = 1;
}
message ReturnDurationInSecondsRequest {
nidevice_grpc.Session vi = 1;
}
message ReturnDurationInSecondsResponse {
int32 status = 1;
double timedelta = 2;
}
message ReturnListOfDurationsInSecondsRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_elements = 2;
}
message ReturnListOfDurationsInSecondsResponse {
int32 status = 1;
repeated double timedeltas = 2;
}
message ConfigureAbcRequest {
nidevice_grpc.Session vi = 1;
}
message ConfigureAbcResponse {
int32 status = 1;
}
message ConfigureEnumsRequest {
nidevice_grpc.Session vi = 1;
oneof sample_count_enum {
SampleCount sample_count = 2;
sint32 sample_count_raw = 3;
}
oneof sample_interval_enum {
SampleInterval sample_interval = 4;
double sample_interval_raw = 5;
}
}
message ConfigureEnumsResponse {
int32 status = 1;
}
message ExportAttributeConfigurationBufferExRequest {
nidevice_grpc.Session vi = 1;
}
message ExportAttributeConfigurationBufferExResponse {
int32 status = 1;
bytes configuration = 2;
}
message ImportAttributeConfigurationBufferExRequest {
nidevice_grpc.Session vi = 1;
bytes configuration = 2;
}
message ImportAttributeConfigurationBufferExResponse {
int32 status = 1;
}
message FetchWithCustomSizeRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_waveforms = 2;
sint32 number_of_samples = 3;
}
message FetchWithCustomSizeResponse {
int32 status = 1;
repeated double waveform_data = 2;
}
message GetParameterWithOverriddenGrpcNameRequest {
nidevice_grpc.Session vi = 1;
oneof enum_parameter_raw_enum {
Turtle enum_parameter_raw = 2;
sint32 enum_parameter_raw_raw = 3;
}
}
message GetParameterWithOverriddenGrpcNameResponse {
int32 status = 1;
sint32 overridden_parameter = 2;
}
message IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest {
nidevice_grpc.Session vi = 1;
}
message IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse {
int32 status = 1;
repeated sint32 array1 = 2;
repeated sint32 array2 = 3;
repeated sint32 array3 = 4;
sint32 actual_num_elements = 5;
}
message FunctionWithOverriddenGrpcName2xRequest {
nidevice_grpc.Session vi = 1;
}
message FunctionWithOverriddenGrpcName2xResponse {
int32 status = 1;
}
message StringValuedEnumNoEnumGeneratedRequest {
nidevice_grpc.Session vi = 1;
string a_string_enum = 2;
}
message StringValuedEnumNoEnumGeneratedResponse {
int32 status = 1;
}
message IviDanceWithATwistCalculatedSizeOutRequest {
nidevice_grpc.Session vi = 1;
}
message IviDanceWithATwistCalculatedSizeOutResponse {
int32 status = 1;
repeated uint32 data = 2;
sint32 actual_num_waveforms = 3;
sint32 actual_samples_per_waveform = 4;
}
message ImportAttributeConfigurationBufferRequest {
nidevice_grpc.Session vi = 1;
bytes configuration = 2;
}
message ImportAttributeConfigurationBufferResponse {
int32 status = 1;
}
message ExportAttributeConfigurationBufferRequest {
nidevice_grpc.Session vi = 1;
}
message ExportAttributeConfigurationBufferResponse {
int32 status = 1;
bytes configuration = 2;
}
message Control4022Request {
string resource_name = 1;
sint32 configuration = 2;
}
message Control4022Response {
int32 status = 1;
}
message AcceptViSessionArrayRequest {
uint32 session_count = 1;
repeated nidevice_grpc.Session session_array = 2;
}
message AcceptViSessionArrayResponse {
int32 status = 1;
}
message AcceptViUInt32ArrayRequest {
nidevice_grpc.Session vi = 1;
repeated uint32 u_int32_array = 2;
}
message AcceptViUInt32ArrayResponse {
int32 status = 1;
}
message BoolArrayInputFunctionRequest {
nidevice_grpc.Session vi = 1;
sint32 number_of_elements = 2;
repeated bool an_array = 3;
}
message BoolArrayInputFunctionResponse {
int32 status = 1;
}
message CloseExtCalRequest {
nidevice_grpc.Session vi = 1;
sint32 action = 2;
}
message CloseExtCalResponse {
int32 status = 1;
}
message CommandWithReservedParamRequest {
nidevice_grpc.Session vi = 1;
}
message CommandWithReservedParamResponse {
int32 status = 1;
}
message CreateConfigurationListRequest {