-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.pb.go
1117 lines (984 loc) · 45.5 KB
/
api.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.
// source: api.proto
// DO NOT EDIT!
/*
Package gauge_messages is a generated protocol buffer package.
It is generated from these files:
api.proto
spec.proto
It has these top-level messages:
GetProjectRootRequest
GetProjectRootResponse
GetInstallationRootRequest
GetInstallationRootResponse
GetAllStepsRequest
GetAllStepsResponse
SpecsRequest
SpecsResponse
GetAllConceptsRequest
GetAllConceptsResponse
ConceptInfo
GetStepValueRequest
GetStepValueResponse
GetLanguagePluginLibPathRequest
GetLanguagePluginLibPathResponse
ErrorResponse
PerformRefactoringRequest
PerformRefactoringResponse
ExtractConceptInfoRequest
ExtractConceptRequest
TextInfo
Step
ExtractConceptResponse
FormatSpecsRequest
FormatSpecsResponse
UnsupportedApiMessageResponse
APIMessage
ProtoSpec
ProtoItem
ProtoScenario
Span
ProtoTableDrivenScenario
ProtoStep
ProtoConcept
ProtoTags
Fragment
Parameter
ProtoComment
ProtoTable
ProtoTableRow
ProtoStepExecutionResult
ProtoExecutionResult
ProtoHookFailure
ProtoSuiteResult
ProtoSpecResult
Error
ProtoStepValue
*/
package gauge_messages
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type APIMessage_APIMessageType int32
const (
APIMessage_GetProjectRootRequest APIMessage_APIMessageType = 0
APIMessage_GetProjectRootResponse APIMessage_APIMessageType = 1
APIMessage_GetInstallationRootRequest APIMessage_APIMessageType = 2
APIMessage_GetInstallationRootResponse APIMessage_APIMessageType = 3
APIMessage_GetAllStepsRequest APIMessage_APIMessageType = 4
APIMessage_GetAllStepResponse APIMessage_APIMessageType = 5
APIMessage_SpecsRequest APIMessage_APIMessageType = 6
APIMessage_SpecsResponse APIMessage_APIMessageType = 7
APIMessage_GetStepValueRequest APIMessage_APIMessageType = 8
APIMessage_GetStepValueResponse APIMessage_APIMessageType = 9
APIMessage_GetLanguagePluginLibPathRequest APIMessage_APIMessageType = 10
APIMessage_GetLanguagePluginLibPathResponse APIMessage_APIMessageType = 11
APIMessage_ErrorResponse APIMessage_APIMessageType = 12
APIMessage_GetAllConceptsRequest APIMessage_APIMessageType = 13
APIMessage_GetAllConceptsResponse APIMessage_APIMessageType = 14
APIMessage_PerformRefactoringRequest APIMessage_APIMessageType = 15
APIMessage_PerformRefactoringResponse APIMessage_APIMessageType = 16
APIMessage_ExtractConceptRequest APIMessage_APIMessageType = 17
APIMessage_ExtractConceptResponse APIMessage_APIMessageType = 18
APIMessage_FormatSpecsRequest APIMessage_APIMessageType = 19
APIMessage_FormatSpecsResponse APIMessage_APIMessageType = 20
APIMessage_UnsupportedApiMessageResponse APIMessage_APIMessageType = 21
)
var APIMessage_APIMessageType_name = map[int32]string{
0: "GetProjectRootRequest",
1: "GetProjectRootResponse",
2: "GetInstallationRootRequest",
3: "GetInstallationRootResponse",
4: "GetAllStepsRequest",
5: "GetAllStepResponse",
6: "SpecsRequest",
7: "SpecsResponse",
8: "GetStepValueRequest",
9: "GetStepValueResponse",
10: "GetLanguagePluginLibPathRequest",
11: "GetLanguagePluginLibPathResponse",
12: "ErrorResponse",
13: "GetAllConceptsRequest",
14: "GetAllConceptsResponse",
15: "PerformRefactoringRequest",
16: "PerformRefactoringResponse",
17: "ExtractConceptRequest",
18: "ExtractConceptResponse",
19: "FormatSpecsRequest",
20: "FormatSpecsResponse",
21: "UnsupportedApiMessageResponse",
}
var APIMessage_APIMessageType_value = map[string]int32{
"GetProjectRootRequest": 0,
"GetProjectRootResponse": 1,
"GetInstallationRootRequest": 2,
"GetInstallationRootResponse": 3,
"GetAllStepsRequest": 4,
"GetAllStepResponse": 5,
"SpecsRequest": 6,
"SpecsResponse": 7,
"GetStepValueRequest": 8,
"GetStepValueResponse": 9,
"GetLanguagePluginLibPathRequest": 10,
"GetLanguagePluginLibPathResponse": 11,
"ErrorResponse": 12,
"GetAllConceptsRequest": 13,
"GetAllConceptsResponse": 14,
"PerformRefactoringRequest": 15,
"PerformRefactoringResponse": 16,
"ExtractConceptRequest": 17,
"ExtractConceptResponse": 18,
"FormatSpecsRequest": 19,
"FormatSpecsResponse": 20,
"UnsupportedApiMessageResponse": 21,
}
func (x APIMessage_APIMessageType) String() string {
return proto.EnumName(APIMessage_APIMessageType_name, int32(x))
}
func (APIMessage_APIMessageType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{26, 0}
}
// / Request to get the Root Directory of the project
type GetProjectRootRequest struct {
}
func (m *GetProjectRootRequest) Reset() { *m = GetProjectRootRequest{} }
func (m *GetProjectRootRequest) String() string { return proto.CompactTextString(m) }
func (*GetProjectRootRequest) ProtoMessage() {}
func (*GetProjectRootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// / Response of GetProjectRootRequest.
type GetProjectRootResponse struct {
// / Holds the absolute path of the Project Root directory.
ProjectRoot string `protobuf:"bytes,1,opt,name=projectRoot" json:"projectRoot,omitempty"`
}
func (m *GetProjectRootResponse) Reset() { *m = GetProjectRootResponse{} }
func (m *GetProjectRootResponse) String() string { return proto.CompactTextString(m) }
func (*GetProjectRootResponse) ProtoMessage() {}
func (*GetProjectRootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *GetProjectRootResponse) GetProjectRoot() string {
if m != nil {
return m.ProjectRoot
}
return ""
}
// / Request to get the Root Directory of the Gauge installation
type GetInstallationRootRequest struct {
}
func (m *GetInstallationRootRequest) Reset() { *m = GetInstallationRootRequest{} }
func (m *GetInstallationRootRequest) String() string { return proto.CompactTextString(m) }
func (*GetInstallationRootRequest) ProtoMessage() {}
func (*GetInstallationRootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
// / Response of GetInstallationRootRequest
type GetInstallationRootResponse struct {
// / Holds the absolute path of the Gauge installation directory
InstallationRoot string `protobuf:"bytes,1,opt,name=installationRoot" json:"installationRoot,omitempty"`
}
func (m *GetInstallationRootResponse) Reset() { *m = GetInstallationRootResponse{} }
func (m *GetInstallationRootResponse) String() string { return proto.CompactTextString(m) }
func (*GetInstallationRootResponse) ProtoMessage() {}
func (*GetInstallationRootResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *GetInstallationRootResponse) GetInstallationRoot() string {
if m != nil {
return m.InstallationRoot
}
return ""
}
// / Request to get all Steps in the project
type GetAllStepsRequest struct {
}
func (m *GetAllStepsRequest) Reset() { *m = GetAllStepsRequest{} }
func (m *GetAllStepsRequest) String() string { return proto.CompactTextString(m) }
func (*GetAllStepsRequest) ProtoMessage() {}
func (*GetAllStepsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
// / Response to GetAllStepsRequest
type GetAllStepsResponse struct {
// / Holds a collection of Steps that are defined in the project.
AllSteps []*ProtoStepValue `protobuf:"bytes,1,rep,name=allSteps" json:"allSteps,omitempty"`
}
func (m *GetAllStepsResponse) Reset() { *m = GetAllStepsResponse{} }
func (m *GetAllStepsResponse) String() string { return proto.CompactTextString(m) }
func (*GetAllStepsResponse) ProtoMessage() {}
func (*GetAllStepsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *GetAllStepsResponse) GetAllSteps() []*ProtoStepValue {
if m != nil {
return m.AllSteps
}
return nil
}
// / Request to get all Specs in the project
type SpecsRequest struct {
Specs []string `protobuf:"bytes,1,rep,name=specs" json:"specs,omitempty"`
}
func (m *SpecsRequest) Reset() { *m = SpecsRequest{} }
func (m *SpecsRequest) String() string { return proto.CompactTextString(m) }
func (*SpecsRequest) ProtoMessage() {}
func (*SpecsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *SpecsRequest) GetSpecs() []string {
if m != nil {
return m.Specs
}
return nil
}
// / Response to GetAllSpecsRequest
type SpecsResponse struct {
// / Holds a collection of Spec details.
Details []*SpecsResponse_SpecDetail `protobuf:"bytes,1,rep,name=details" json:"details,omitempty"`
}
func (m *SpecsResponse) Reset() { *m = SpecsResponse{} }
func (m *SpecsResponse) String() string { return proto.CompactTextString(m) }
func (*SpecsResponse) ProtoMessage() {}
func (*SpecsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *SpecsResponse) GetDetails() []*SpecsResponse_SpecDetail {
if m != nil {
return m.Details
}
return nil
}
type SpecsResponse_SpecDetail struct {
// / Holds a collection of Specs that are defined in the project.
Spec *ProtoSpec `protobuf:"bytes,1,opt,name=spec" json:"spec,omitempty"`
// / Holds a collection of parse errors present in the above spec.
ParseErrors []*Error `protobuf:"bytes,2,rep,name=parseErrors" json:"parseErrors,omitempty"`
}
func (m *SpecsResponse_SpecDetail) Reset() { *m = SpecsResponse_SpecDetail{} }
func (m *SpecsResponse_SpecDetail) String() string { return proto.CompactTextString(m) }
func (*SpecsResponse_SpecDetail) ProtoMessage() {}
func (*SpecsResponse_SpecDetail) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 0} }
func (m *SpecsResponse_SpecDetail) GetSpec() *ProtoSpec {
if m != nil {
return m.Spec
}
return nil
}
func (m *SpecsResponse_SpecDetail) GetParseErrors() []*Error {
if m != nil {
return m.ParseErrors
}
return nil
}
// / Request to get all Concepts in the project
type GetAllConceptsRequest struct {
}
func (m *GetAllConceptsRequest) Reset() { *m = GetAllConceptsRequest{} }
func (m *GetAllConceptsRequest) String() string { return proto.CompactTextString(m) }
func (*GetAllConceptsRequest) ProtoMessage() {}
func (*GetAllConceptsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
// / Response to GetAllConceptsResponse
type GetAllConceptsResponse struct {
// / Holds a collection of Concepts that are defined in the project.
Concepts []*ConceptInfo `protobuf:"bytes,1,rep,name=concepts" json:"concepts,omitempty"`
}
func (m *GetAllConceptsResponse) Reset() { *m = GetAllConceptsResponse{} }
func (m *GetAllConceptsResponse) String() string { return proto.CompactTextString(m) }
func (*GetAllConceptsResponse) ProtoMessage() {}
func (*GetAllConceptsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *GetAllConceptsResponse) GetConcepts() []*ConceptInfo {
if m != nil {
return m.Concepts
}
return nil
}
// / Details of a Concept
type ConceptInfo struct {
// / The text that defines a concept
StepValue *ProtoStepValue `protobuf:"bytes,1,opt,name=stepValue" json:"stepValue,omitempty"`
// / The absolute path to the file that contains the Concept
Filepath string `protobuf:"bytes,2,opt,name=filepath" json:"filepath,omitempty"`
// / The line number in the file where the concept is defined.
LineNumber int32 `protobuf:"varint,3,opt,name=lineNumber" json:"lineNumber,omitempty"`
}
func (m *ConceptInfo) Reset() { *m = ConceptInfo{} }
func (m *ConceptInfo) String() string { return proto.CompactTextString(m) }
func (*ConceptInfo) ProtoMessage() {}
func (*ConceptInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *ConceptInfo) GetStepValue() *ProtoStepValue {
if m != nil {
return m.StepValue
}
return nil
}
func (m *ConceptInfo) GetFilepath() string {
if m != nil {
return m.Filepath
}
return ""
}
func (m *ConceptInfo) GetLineNumber() int32 {
if m != nil {
return m.LineNumber
}
return 0
}
// / Request to get a Step Value.
type GetStepValueRequest struct {
// / The text of the Step.
StepText string `protobuf:"bytes,1,opt,name=stepText" json:"stepText,omitempty"`
// / Flag to indicate if the Step has an inline table.
HasInlineTable bool `protobuf:"varint,2,opt,name=hasInlineTable" json:"hasInlineTable,omitempty"`
}
func (m *GetStepValueRequest) Reset() { *m = GetStepValueRequest{} }
func (m *GetStepValueRequest) String() string { return proto.CompactTextString(m) }
func (*GetStepValueRequest) ProtoMessage() {}
func (*GetStepValueRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *GetStepValueRequest) GetStepText() string {
if m != nil {
return m.StepText
}
return ""
}
func (m *GetStepValueRequest) GetHasInlineTable() bool {
if m != nil {
return m.HasInlineTable
}
return false
}
// / Response to GetStepValueRequest
type GetStepValueResponse struct {
// / The Step corresponding to the request provided.
StepValue *ProtoStepValue `protobuf:"bytes,1,opt,name=stepValue" json:"stepValue,omitempty"`
}
func (m *GetStepValueResponse) Reset() { *m = GetStepValueResponse{} }
func (m *GetStepValueResponse) String() string { return proto.CompactTextString(m) }
func (*GetStepValueResponse) ProtoMessage() {}
func (*GetStepValueResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *GetStepValueResponse) GetStepValue() *ProtoStepValue {
if m != nil {
return m.StepValue
}
return nil
}
// / Request to get the location of language plugin's Lib directory
type GetLanguagePluginLibPathRequest struct {
// / The language to locate the lib directory for.
Language string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
}
func (m *GetLanguagePluginLibPathRequest) Reset() { *m = GetLanguagePluginLibPathRequest{} }
func (m *GetLanguagePluginLibPathRequest) String() string { return proto.CompactTextString(m) }
func (*GetLanguagePluginLibPathRequest) ProtoMessage() {}
func (*GetLanguagePluginLibPathRequest) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{13}
}
func (m *GetLanguagePluginLibPathRequest) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
// / Response to GetLanguagePluginLibPathRequest
type GetLanguagePluginLibPathResponse struct {
// / Absolute path to the Lib directory of the language.
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
}
func (m *GetLanguagePluginLibPathResponse) Reset() { *m = GetLanguagePluginLibPathResponse{} }
func (m *GetLanguagePluginLibPathResponse) String() string { return proto.CompactTextString(m) }
func (*GetLanguagePluginLibPathResponse) ProtoMessage() {}
func (*GetLanguagePluginLibPathResponse) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{14}
}
func (m *GetLanguagePluginLibPathResponse) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
// / A generic failure response
type ErrorResponse struct {
// / Actual error message
Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
}
func (m *ErrorResponse) Reset() { *m = ErrorResponse{} }
func (m *ErrorResponse) String() string { return proto.CompactTextString(m) }
func (*ErrorResponse) ProtoMessage() {}
func (*ErrorResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
func (m *ErrorResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
// / Request to perform a Refactor
type PerformRefactoringRequest struct {
// / Step to refactor
OldStep string `protobuf:"bytes,1,opt,name=oldStep" json:"oldStep,omitempty"`
// / Change to be made
NewStep string `protobuf:"bytes,2,opt,name=newStep" json:"newStep,omitempty"`
}
func (m *PerformRefactoringRequest) Reset() { *m = PerformRefactoringRequest{} }
func (m *PerformRefactoringRequest) String() string { return proto.CompactTextString(m) }
func (*PerformRefactoringRequest) ProtoMessage() {}
func (*PerformRefactoringRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *PerformRefactoringRequest) GetOldStep() string {
if m != nil {
return m.OldStep
}
return ""
}
func (m *PerformRefactoringRequest) GetNewStep() string {
if m != nil {
return m.NewStep
}
return ""
}
// / Response to PerformRefactoringRequest
type PerformRefactoringResponse struct {
// / Flag indicating Success
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
// / Error message if the refactoring was unsuccessful.
Errors []string `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"`
// / Collection of files that were changed as part of the Refactoring.
FilesChanged []string `protobuf:"bytes,3,rep,name=filesChanged" json:"filesChanged,omitempty"`
}
func (m *PerformRefactoringResponse) Reset() { *m = PerformRefactoringResponse{} }
func (m *PerformRefactoringResponse) String() string { return proto.CompactTextString(m) }
func (*PerformRefactoringResponse) ProtoMessage() {}
func (*PerformRefactoringResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
func (m *PerformRefactoringResponse) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
func (m *PerformRefactoringResponse) GetErrors() []string {
if m != nil {
return m.Errors
}
return nil
}
func (m *PerformRefactoringResponse) GetFilesChanged() []string {
if m != nil {
return m.FilesChanged
}
return nil
}
// / Request to perform Extract to Concept refactoring
// / The runner does not do the refactoring here, instead it provides inputs enabling the IDE to do refactoring
type ExtractConceptInfoRequest struct {
// / The text blob containing steps that should be refactored to concept.
Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}
func (m *ExtractConceptInfoRequest) Reset() { *m = ExtractConceptInfoRequest{} }
func (m *ExtractConceptInfoRequest) String() string { return proto.CompactTextString(m) }
func (*ExtractConceptInfoRequest) ProtoMessage() {}
func (*ExtractConceptInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *ExtractConceptInfoRequest) GetText() string {
if m != nil {
return m.Text
}
return ""
}
// / Request to perform Extract to Concept refactoring
type ExtractConceptRequest struct {
// / The Concept name given by the user
ConceptName *Step `protobuf:"bytes,1,opt,name=conceptName" json:"conceptName,omitempty"`
// / steps to extract
Steps []*Step `protobuf:"bytes,2,rep,name=steps" json:"steps,omitempty"`
// / Flag indicating if refactoring should be done across project
ChangeAcrossProject bool `protobuf:"varint,3,opt,name=changeAcrossProject" json:"changeAcrossProject,omitempty"`
// / The concept filename in which extracted concept will be added
ConceptFileName string `protobuf:"bytes,4,opt,name=conceptFileName" json:"conceptFileName,omitempty"`
// / Info related to selected text, only if changeAcrossProject is false
SelectedTextInfo *TextInfo `protobuf:"bytes,5,opt,name=selectedTextInfo" json:"selectedTextInfo,omitempty"`
}
func (m *ExtractConceptRequest) Reset() { *m = ExtractConceptRequest{} }
func (m *ExtractConceptRequest) String() string { return proto.CompactTextString(m) }
func (*ExtractConceptRequest) ProtoMessage() {}
func (*ExtractConceptRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
func (m *ExtractConceptRequest) GetConceptName() *Step {
if m != nil {
return m.ConceptName
}
return nil
}
func (m *ExtractConceptRequest) GetSteps() []*Step {
if m != nil {
return m.Steps
}
return nil
}
func (m *ExtractConceptRequest) GetChangeAcrossProject() bool {
if m != nil {
return m.ChangeAcrossProject
}
return false
}
func (m *ExtractConceptRequest) GetConceptFileName() string {
if m != nil {
return m.ConceptFileName
}
return ""
}
func (m *ExtractConceptRequest) GetSelectedTextInfo() *TextInfo {
if m != nil {
return m.SelectedTextInfo
}
return nil
}
type TextInfo struct {
// / The filename from where concept is being extracted
FileName string `protobuf:"bytes,1,opt,name=fileName" json:"fileName,omitempty"`
// / storing the starting and ending line number of selected text
StartingLineNo int32 `protobuf:"varint,2,opt,name=startingLineNo" json:"startingLineNo,omitempty"`
EndLineNo int32 `protobuf:"varint,3,opt,name=endLineNo" json:"endLineNo,omitempty"`
}
func (m *TextInfo) Reset() { *m = TextInfo{} }
func (m *TextInfo) String() string { return proto.CompactTextString(m) }
func (*TextInfo) ProtoMessage() {}
func (*TextInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
func (m *TextInfo) GetFileName() string {
if m != nil {
return m.FileName
}
return ""
}
func (m *TextInfo) GetStartingLineNo() int32 {
if m != nil {
return m.StartingLineNo
}
return 0
}
func (m *TextInfo) GetEndLineNo() int32 {
if m != nil {
return m.EndLineNo
}
return 0
}
type Step struct {
// / name of the step
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// / table present in step as parameter
Table string `protobuf:"bytes,2,opt,name=table" json:"table,omitempty"`
// / name of table in concept heading, if it comes as a param to concept
ParamTableName string `protobuf:"bytes,3,opt,name=paramTableName" json:"paramTableName,omitempty"`
}
func (m *Step) Reset() { *m = Step{} }
func (m *Step) String() string { return proto.CompactTextString(m) }
func (*Step) ProtoMessage() {}
func (*Step) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
func (m *Step) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Step) GetTable() string {
if m != nil {
return m.Table
}
return ""
}
func (m *Step) GetParamTableName() string {
if m != nil {
return m.ParamTableName
}
return ""
}
// / Response to perform Extract to Concept refactoring
type ExtractConceptResponse struct {
// / Flag indicating Success
IsSuccess bool `protobuf:"varint,1,opt,name=isSuccess" json:"isSuccess,omitempty"`
// / Error message if the refactoring was unsuccessful.
Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
// / Collection of files that were changed as part of the Refactoring.
FilesChanged []string `protobuf:"bytes,3,rep,name=filesChanged" json:"filesChanged,omitempty"`
}
func (m *ExtractConceptResponse) Reset() { *m = ExtractConceptResponse{} }
func (m *ExtractConceptResponse) String() string { return proto.CompactTextString(m) }
func (*ExtractConceptResponse) ProtoMessage() {}
func (*ExtractConceptResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *ExtractConceptResponse) GetIsSuccess() bool {
if m != nil {
return m.IsSuccess
}
return false
}
func (m *ExtractConceptResponse) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *ExtractConceptResponse) GetFilesChanged() []string {
if m != nil {
return m.FilesChanged
}
return nil
}
// / Request to format spec files
type FormatSpecsRequest struct {
// / Specs to be formatted
Specs []string `protobuf:"bytes,1,rep,name=specs" json:"specs,omitempty"`
}
func (m *FormatSpecsRequest) Reset() { *m = FormatSpecsRequest{} }
func (m *FormatSpecsRequest) String() string { return proto.CompactTextString(m) }
func (*FormatSpecsRequest) ProtoMessage() {}
func (*FormatSpecsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
func (m *FormatSpecsRequest) GetSpecs() []string {
if m != nil {
return m.Specs
}
return nil
}
// / Response on formatting spec files
type FormatSpecsResponse struct {
// / Errors occurred on formatting
Errors []string `protobuf:"bytes,1,rep,name=errors" json:"errors,omitempty"`
// / Warnings occurred on formatting
Warnings []string `protobuf:"bytes,2,rep,name=warnings" json:"warnings,omitempty"`
}
func (m *FormatSpecsResponse) Reset() { *m = FormatSpecsResponse{} }
func (m *FormatSpecsResponse) String() string { return proto.CompactTextString(m) }
func (*FormatSpecsResponse) ProtoMessage() {}
func (*FormatSpecsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
func (m *FormatSpecsResponse) GetErrors() []string {
if m != nil {
return m.Errors
}
return nil
}
func (m *FormatSpecsResponse) GetWarnings() []string {
if m != nil {
return m.Warnings
}
return nil
}
// / Response when a API message request is not supported.
type UnsupportedApiMessageResponse struct {
}
func (m *UnsupportedApiMessageResponse) Reset() { *m = UnsupportedApiMessageResponse{} }
func (m *UnsupportedApiMessageResponse) String() string { return proto.CompactTextString(m) }
func (*UnsupportedApiMessageResponse) ProtoMessage() {}
func (*UnsupportedApiMessageResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
// / A generic message composing of all possible operations.
// / One of the Request/Response fields will have value, depending on the MessageType set.
type APIMessage struct {
// / Type of API call being made
MessageType APIMessage_APIMessageType `protobuf:"varint,1,opt,name=messageType,enum=gauge.messages.APIMessage_APIMessageType" json:"messageType,omitempty"`
// / A unique id to represent this message. A response to the message should copy over this value.
// / This is used to synchronize messages & responses
MessageId int64 `protobuf:"varint,2,opt,name=messageId" json:"messageId,omitempty"`
// / [GetProjectRootRequest](#gauge.messages.GetProjectRootRequest)
ProjectRootRequest *GetProjectRootRequest `protobuf:"bytes,3,opt,name=projectRootRequest" json:"projectRootRequest,omitempty"`
// / [GetProjectRootResponse](#gauge.messages.GetProjectRootResponse)
ProjectRootResponse *GetProjectRootResponse `protobuf:"bytes,4,opt,name=projectRootResponse" json:"projectRootResponse,omitempty"`
// / [GetInstallationRootRequest](#gauge.messages.GetInstallationRootRequest)
InstallationRootRequest *GetInstallationRootRequest `protobuf:"bytes,5,opt,name=installationRootRequest" json:"installationRootRequest,omitempty"`
// / [GetInstallationRootResponse](#gauge.messages.GetInstallationRootResponse)
InstallationRootResponse *GetInstallationRootResponse `protobuf:"bytes,6,opt,name=installationRootResponse" json:"installationRootResponse,omitempty"`
// / [GetAllStepsRequest](#gauge.messages.GetAllStepsRequest)
AllStepsRequest *GetAllStepsRequest `protobuf:"bytes,7,opt,name=allStepsRequest" json:"allStepsRequest,omitempty"`
// / [GetAllStepsResponse](#gauge.messages.GetAllStepsResponse)
AllStepsResponse *GetAllStepsResponse `protobuf:"bytes,8,opt,name=allStepsResponse" json:"allStepsResponse,omitempty"`
// / [GetAllSpecsRequest](#gauge.messages.GetAllSpecsRequest)
SpecsRequest *SpecsRequest `protobuf:"bytes,9,opt,name=specsRequest" json:"specsRequest,omitempty"`
// / [GetAllSpecsResponse](#gauge.messages.GetAllSpecsResponse)
SpecsResponse *SpecsResponse `protobuf:"bytes,10,opt,name=specsResponse" json:"specsResponse,omitempty"`
// / [GetStepValueRequest](#gauge.messages.GetStepValueRequest)
StepValueRequest *GetStepValueRequest `protobuf:"bytes,11,opt,name=stepValueRequest" json:"stepValueRequest,omitempty"`
// / [GetStepValueResponse](#gauge.messages.GetStepValueResponse)
StepValueResponse *GetStepValueResponse `protobuf:"bytes,12,opt,name=stepValueResponse" json:"stepValueResponse,omitempty"`
// / [GetLanguagePluginLibPathRequest](#gauge.messages.GetLanguagePluginLibPathRequest)
LibPathRequest *GetLanguagePluginLibPathRequest `protobuf:"bytes,13,opt,name=libPathRequest" json:"libPathRequest,omitempty"`
// / [GetLanguagePluginLibPathResponse](#gauge.messages.GetLanguagePluginLibPathResponse)
LibPathResponse *GetLanguagePluginLibPathResponse `protobuf:"bytes,14,opt,name=libPathResponse" json:"libPathResponse,omitempty"`
// / [ErrorResponse](#gauge.messages.ErrorResponse)
Error *ErrorResponse `protobuf:"bytes,15,opt,name=error" json:"error,omitempty"`
// / [GetAllConceptsRequest](#gauge.messages.GetAllConceptsRequest)
AllConceptsRequest *GetAllConceptsRequest `protobuf:"bytes,16,opt,name=allConceptsRequest" json:"allConceptsRequest,omitempty"`
// / [GetAllConceptsResponse](#gauge.messages.GetAllConceptsResponse)
AllConceptsResponse *GetAllConceptsResponse `protobuf:"bytes,17,opt,name=allConceptsResponse" json:"allConceptsResponse,omitempty"`
// / [PerformRefactoringRequest](#gauge.messages.PerformRefactoringRequest)
PerformRefactoringRequest *PerformRefactoringRequest `protobuf:"bytes,18,opt,name=performRefactoringRequest" json:"performRefactoringRequest,omitempty"`
// / [PerformRefactoringResponse](#gauge.messages.PerformRefactoringResponse)
PerformRefactoringResponse *PerformRefactoringResponse `protobuf:"bytes,19,opt,name=performRefactoringResponse" json:"performRefactoringResponse,omitempty"`
// / [ExtractConceptRequest](#gauge.messages.ExtractConceptRequest)
ExtractConceptRequest *ExtractConceptRequest `protobuf:"bytes,20,opt,name=extractConceptRequest" json:"extractConceptRequest,omitempty"`
// / [ExtractConceptResponse](#gauge.messages.ExtractConceptResponse)
ExtractConceptResponse *ExtractConceptResponse `protobuf:"bytes,21,opt,name=extractConceptResponse" json:"extractConceptResponse,omitempty"`
// / [FormatSpecsRequest] (#gauge.messages.FormatSpecsRequest)
FormatSpecsRequest *FormatSpecsRequest `protobuf:"bytes,22,opt,name=formatSpecsRequest" json:"formatSpecsRequest,omitempty"`
// / [FormatSpecsResponse] (#gauge.messages.FormatSpecsResponse)
FormatSpecsResponse *FormatSpecsResponse `protobuf:"bytes,23,opt,name=formatSpecsResponse" json:"formatSpecsResponse,omitempty"`
// / [UnsupportedApiMessageResponse] (#gauge.messages.UnsupportedApiMessageResponse)
UnsupportedApiMessageResponse *UnsupportedApiMessageResponse `protobuf:"bytes,24,opt,name=unsupportedApiMessageResponse" json:"unsupportedApiMessageResponse,omitempty"`
}
func (m *APIMessage) Reset() { *m = APIMessage{} }
func (m *APIMessage) String() string { return proto.CompactTextString(m) }
func (*APIMessage) ProtoMessage() {}
func (*APIMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
func (m *APIMessage) GetMessageType() APIMessage_APIMessageType {
if m != nil {
return m.MessageType
}
return APIMessage_GetProjectRootRequest
}
func (m *APIMessage) GetMessageId() int64 {
if m != nil {
return m.MessageId
}
return 0
}
func (m *APIMessage) GetProjectRootRequest() *GetProjectRootRequest {
if m != nil {
return m.ProjectRootRequest
}
return nil
}
func (m *APIMessage) GetProjectRootResponse() *GetProjectRootResponse {
if m != nil {
return m.ProjectRootResponse
}
return nil
}
func (m *APIMessage) GetInstallationRootRequest() *GetInstallationRootRequest {
if m != nil {
return m.InstallationRootRequest
}
return nil
}
func (m *APIMessage) GetInstallationRootResponse() *GetInstallationRootResponse {
if m != nil {
return m.InstallationRootResponse
}
return nil
}
func (m *APIMessage) GetAllStepsRequest() *GetAllStepsRequest {
if m != nil {
return m.AllStepsRequest
}
return nil
}
func (m *APIMessage) GetAllStepsResponse() *GetAllStepsResponse {
if m != nil {
return m.AllStepsResponse
}
return nil
}
func (m *APIMessage) GetSpecsRequest() *SpecsRequest {
if m != nil {
return m.SpecsRequest
}
return nil
}
func (m *APIMessage) GetSpecsResponse() *SpecsResponse {
if m != nil {
return m.SpecsResponse
}
return nil
}
func (m *APIMessage) GetStepValueRequest() *GetStepValueRequest {
if m != nil {
return m.StepValueRequest
}
return nil
}
func (m *APIMessage) GetStepValueResponse() *GetStepValueResponse {
if m != nil {
return m.StepValueResponse
}
return nil
}
func (m *APIMessage) GetLibPathRequest() *GetLanguagePluginLibPathRequest {
if m != nil {
return m.LibPathRequest
}
return nil
}
func (m *APIMessage) GetLibPathResponse() *GetLanguagePluginLibPathResponse {
if m != nil {
return m.LibPathResponse
}
return nil
}
func (m *APIMessage) GetError() *ErrorResponse {
if m != nil {
return m.Error
}
return nil
}
func (m *APIMessage) GetAllConceptsRequest() *GetAllConceptsRequest {
if m != nil {
return m.AllConceptsRequest
}
return nil
}
func (m *APIMessage) GetAllConceptsResponse() *GetAllConceptsResponse {
if m != nil {
return m.AllConceptsResponse
}
return nil
}
func (m *APIMessage) GetPerformRefactoringRequest() *PerformRefactoringRequest {
if m != nil {
return m.PerformRefactoringRequest
}
return nil
}
func (m *APIMessage) GetPerformRefactoringResponse() *PerformRefactoringResponse {
if m != nil {
return m.PerformRefactoringResponse
}
return nil
}
func (m *APIMessage) GetExtractConceptRequest() *ExtractConceptRequest {
if m != nil {
return m.ExtractConceptRequest
}
return nil
}
func (m *APIMessage) GetExtractConceptResponse() *ExtractConceptResponse {
if m != nil {
return m.ExtractConceptResponse
}
return nil
}
func (m *APIMessage) GetFormatSpecsRequest() *FormatSpecsRequest {
if m != nil {
return m.FormatSpecsRequest
}
return nil
}
func (m *APIMessage) GetFormatSpecsResponse() *FormatSpecsResponse {
if m != nil {
return m.FormatSpecsResponse
}
return nil
}
func (m *APIMessage) GetUnsupportedApiMessageResponse() *UnsupportedApiMessageResponse {
if m != nil {
return m.UnsupportedApiMessageResponse
}
return nil
}
func init() {
proto.RegisterType((*GetProjectRootRequest)(nil), "gauge.messages.GetProjectRootRequest")
proto.RegisterType((*GetProjectRootResponse)(nil), "gauge.messages.GetProjectRootResponse")
proto.RegisterType((*GetInstallationRootRequest)(nil), "gauge.messages.GetInstallationRootRequest")
proto.RegisterType((*GetInstallationRootResponse)(nil), "gauge.messages.GetInstallationRootResponse")
proto.RegisterType((*GetAllStepsRequest)(nil), "gauge.messages.GetAllStepsRequest")
proto.RegisterType((*GetAllStepsResponse)(nil), "gauge.messages.GetAllStepsResponse")
proto.RegisterType((*SpecsRequest)(nil), "gauge.messages.SpecsRequest")
proto.RegisterType((*SpecsResponse)(nil), "gauge.messages.SpecsResponse")
proto.RegisterType((*SpecsResponse_SpecDetail)(nil), "gauge.messages.SpecsResponse.SpecDetail")