This repository has been archived by the owner on Nov 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
messages.pb.go
16751 lines (16107 loc) · 410 KB
/
messages.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: messages.proto
package messages
import (
fmt "fmt"
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
math_bits "math/bits"
)
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Attachment_ContentEncoding int32
const (
Attachment_IDENTITY Attachment_ContentEncoding = 0
// When this is used, the data field is a single line base64 string
Attachment_BASE64 Attachment_ContentEncoding = 1
)
var Attachment_ContentEncoding_name = map[int32]string{
0: "IDENTITY",
1: "BASE64",
}
var Attachment_ContentEncoding_value = map[string]int32{
"IDENTITY": 0,
"BASE64": 1,
}
func (x Attachment_ContentEncoding) String() string {
return proto.EnumName(Attachment_ContentEncoding_name, int32(x))
}
func (Attachment_ContentEncoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{7, 0}
}
//*
// Status of a `TestStep`.
//
// The ordinal values of statuses are significant. The status of a TestCase
// is computed by picking the status with the highest value for all of its steps.
//
// For example, if a TestCase has steps with statuses passed, undefined and skipped,
// then the pickle's status is undefined.
type TestStepFinished_TestStepResult_Status int32
const (
// The step hasn't been matched or executed.
TestStepFinished_TestStepResult_UNKNOWN TestStepFinished_TestStepResult_Status = 0
// The step matched one step definition and passed execution.
TestStepFinished_TestStepResult_PASSED TestStepFinished_TestStepResult_Status = 1
// The step matched one step definition but was not executed because the
// previous step was not PASSED.
TestStepFinished_TestStepResult_SKIPPED TestStepFinished_TestStepResult_Status = 2
// The step matched one step definition and signalled pending during execution.
// This is the default behaviour of generated step definitions, which either
// throw a special PendingException, or return a special value indicating that it's
// pending. How to signal the pending status depends on the Cucumber implementation.
TestStepFinished_TestStepResult_PENDING TestStepFinished_TestStepResult_Status = 3
// The step matched no step definitions.
TestStepFinished_TestStepResult_UNDEFINED TestStepFinished_TestStepResult_Status = 4
// The step matched two or more step definitions.
TestStepFinished_TestStepResult_AMBIGUOUS TestStepFinished_TestStepResult_Status = 5
// The step matched one step definition and failed execution.
TestStepFinished_TestStepResult_FAILED TestStepFinished_TestStepResult_Status = 6
)
var TestStepFinished_TestStepResult_Status_name = map[int32]string{
0: "UNKNOWN",
1: "PASSED",
2: "SKIPPED",
3: "PENDING",
4: "UNDEFINED",
5: "AMBIGUOUS",
6: "FAILED",
}
var TestStepFinished_TestStepResult_Status_value = map[string]int32{
"UNKNOWN": 0,
"PASSED": 1,
"SKIPPED": 2,
"PENDING": 3,
"UNDEFINED": 4,
"AMBIGUOUS": 5,
"FAILED": 6,
}
func (x TestStepFinished_TestStepResult_Status) String() string {
return proto.EnumName(TestStepFinished_TestStepResult_Status_name, int32(x))
}
func (TestStepFinished_TestStepResult_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{15, 0, 0}
}
type StepDefinition_StepDefinitionPattern_StepDefinitionPatternType int32
const (
StepDefinition_StepDefinitionPattern_CUCUMBER_EXPRESSION StepDefinition_StepDefinitionPattern_StepDefinitionPatternType = 0
StepDefinition_StepDefinitionPattern_REGULAR_EXPRESSION StepDefinition_StepDefinitionPattern_StepDefinitionPatternType = 1
)
var StepDefinition_StepDefinitionPattern_StepDefinitionPatternType_name = map[int32]string{
0: "CUCUMBER_EXPRESSION",
1: "REGULAR_EXPRESSION",
}
var StepDefinition_StepDefinitionPattern_StepDefinitionPatternType_value = map[string]int32{
"CUCUMBER_EXPRESSION": 0,
"REGULAR_EXPRESSION": 1,
}
func (x StepDefinition_StepDefinitionPattern_StepDefinitionPatternType) String() string {
return proto.EnumName(StepDefinition_StepDefinitionPattern_StepDefinitionPatternType_name, int32(x))
}
func (StepDefinition_StepDefinitionPattern_StepDefinitionPatternType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{18, 0, 0}
}
//*
// All the messages that are passed between different components/processes are Envelope
// messages.
type Envelope struct {
// Types that are valid to be assigned to Message:
// *Envelope_Source
// *Envelope_GherkinDocument
// *Envelope_Pickle
// *Envelope_StepDefinition
// *Envelope_Hook
// *Envelope_ParameterType
// *Envelope_TestCase
// *Envelope_UndefinedParameterType
// *Envelope_TestRunStarted
// *Envelope_TestCaseStarted
// *Envelope_TestStepStarted
// *Envelope_Attachment
// *Envelope_TestStepFinished
// *Envelope_TestCaseFinished
// *Envelope_TestRunFinished
// *Envelope_ParseError
Message isEnvelope_Message `protobuf_oneof:"message"`
}
func (m *Envelope) Reset() { *m = Envelope{} }
func (m *Envelope) String() string { return proto.CompactTextString(m) }
func (*Envelope) ProtoMessage() {}
func (*Envelope) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{0}
}
func (m *Envelope) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Envelope.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Envelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_Envelope.Merge(m, src)
}
func (m *Envelope) XXX_Size() int {
return m.Size()
}
func (m *Envelope) XXX_DiscardUnknown() {
xxx_messageInfo_Envelope.DiscardUnknown(m)
}
var xxx_messageInfo_Envelope proto.InternalMessageInfo
type isEnvelope_Message interface {
isEnvelope_Message()
MarshalTo([]byte) (int, error)
Size() int
}
type Envelope_Source struct {
Source *Source `protobuf:"bytes,1,opt,name=source,proto3,oneof" json:"source,omitempty"`
}
type Envelope_GherkinDocument struct {
GherkinDocument *GherkinDocument `protobuf:"bytes,2,opt,name=gherkin_document,json=gherkinDocument,proto3,oneof" json:"gherkin_document,omitempty"`
}
type Envelope_Pickle struct {
Pickle *Pickle `protobuf:"bytes,3,opt,name=pickle,proto3,oneof" json:"pickle,omitempty"`
}
type Envelope_StepDefinition struct {
StepDefinition *StepDefinition `protobuf:"bytes,4,opt,name=step_definition,json=stepDefinition,proto3,oneof" json:"step_definition,omitempty"`
}
type Envelope_Hook struct {
Hook *Hook `protobuf:"bytes,5,opt,name=hook,proto3,oneof" json:"hook,omitempty"`
}
type Envelope_ParameterType struct {
ParameterType *ParameterType `protobuf:"bytes,6,opt,name=parameter_type,json=parameterType,proto3,oneof" json:"parameter_type,omitempty"`
}
type Envelope_TestCase struct {
TestCase *TestCase `protobuf:"bytes,7,opt,name=test_case,json=testCase,proto3,oneof" json:"test_case,omitempty"`
}
type Envelope_UndefinedParameterType struct {
UndefinedParameterType *UndefinedParameterType `protobuf:"bytes,8,opt,name=undefined_parameter_type,json=undefinedParameterType,proto3,oneof" json:"undefined_parameter_type,omitempty"`
}
type Envelope_TestRunStarted struct {
TestRunStarted *TestRunStarted `protobuf:"bytes,9,opt,name=test_run_started,json=testRunStarted,proto3,oneof" json:"test_run_started,omitempty"`
}
type Envelope_TestCaseStarted struct {
TestCaseStarted *TestCaseStarted `protobuf:"bytes,10,opt,name=test_case_started,json=testCaseStarted,proto3,oneof" json:"test_case_started,omitempty"`
}
type Envelope_TestStepStarted struct {
TestStepStarted *TestStepStarted `protobuf:"bytes,11,opt,name=test_step_started,json=testStepStarted,proto3,oneof" json:"test_step_started,omitempty"`
}
type Envelope_Attachment struct {
Attachment *Attachment `protobuf:"bytes,12,opt,name=attachment,proto3,oneof" json:"attachment,omitempty"`
}
type Envelope_TestStepFinished struct {
TestStepFinished *TestStepFinished `protobuf:"bytes,13,opt,name=test_step_finished,json=testStepFinished,proto3,oneof" json:"test_step_finished,omitempty"`
}
type Envelope_TestCaseFinished struct {
TestCaseFinished *TestCaseFinished `protobuf:"bytes,14,opt,name=test_case_finished,json=testCaseFinished,proto3,oneof" json:"test_case_finished,omitempty"`
}
type Envelope_TestRunFinished struct {
TestRunFinished *TestRunFinished `protobuf:"bytes,15,opt,name=test_run_finished,json=testRunFinished,proto3,oneof" json:"test_run_finished,omitempty"`
}
type Envelope_ParseError struct {
ParseError *ParseError `protobuf:"bytes,16,opt,name=parse_error,json=parseError,proto3,oneof" json:"parse_error,omitempty"`
}
func (*Envelope_Source) isEnvelope_Message() {}
func (*Envelope_GherkinDocument) isEnvelope_Message() {}
func (*Envelope_Pickle) isEnvelope_Message() {}
func (*Envelope_StepDefinition) isEnvelope_Message() {}
func (*Envelope_Hook) isEnvelope_Message() {}
func (*Envelope_ParameterType) isEnvelope_Message() {}
func (*Envelope_TestCase) isEnvelope_Message() {}
func (*Envelope_UndefinedParameterType) isEnvelope_Message() {}
func (*Envelope_TestRunStarted) isEnvelope_Message() {}
func (*Envelope_TestCaseStarted) isEnvelope_Message() {}
func (*Envelope_TestStepStarted) isEnvelope_Message() {}
func (*Envelope_Attachment) isEnvelope_Message() {}
func (*Envelope_TestStepFinished) isEnvelope_Message() {}
func (*Envelope_TestCaseFinished) isEnvelope_Message() {}
func (*Envelope_TestRunFinished) isEnvelope_Message() {}
func (*Envelope_ParseError) isEnvelope_Message() {}
func (m *Envelope) GetMessage() isEnvelope_Message {
if m != nil {
return m.Message
}
return nil
}
func (m *Envelope) GetSource() *Source {
if x, ok := m.GetMessage().(*Envelope_Source); ok {
return x.Source
}
return nil
}
func (m *Envelope) GetGherkinDocument() *GherkinDocument {
if x, ok := m.GetMessage().(*Envelope_GherkinDocument); ok {
return x.GherkinDocument
}
return nil
}
func (m *Envelope) GetPickle() *Pickle {
if x, ok := m.GetMessage().(*Envelope_Pickle); ok {
return x.Pickle
}
return nil
}
func (m *Envelope) GetStepDefinition() *StepDefinition {
if x, ok := m.GetMessage().(*Envelope_StepDefinition); ok {
return x.StepDefinition
}
return nil
}
func (m *Envelope) GetHook() *Hook {
if x, ok := m.GetMessage().(*Envelope_Hook); ok {
return x.Hook
}
return nil
}
func (m *Envelope) GetParameterType() *ParameterType {
if x, ok := m.GetMessage().(*Envelope_ParameterType); ok {
return x.ParameterType
}
return nil
}
func (m *Envelope) GetTestCase() *TestCase {
if x, ok := m.GetMessage().(*Envelope_TestCase); ok {
return x.TestCase
}
return nil
}
func (m *Envelope) GetUndefinedParameterType() *UndefinedParameterType {
if x, ok := m.GetMessage().(*Envelope_UndefinedParameterType); ok {
return x.UndefinedParameterType
}
return nil
}
func (m *Envelope) GetTestRunStarted() *TestRunStarted {
if x, ok := m.GetMessage().(*Envelope_TestRunStarted); ok {
return x.TestRunStarted
}
return nil
}
func (m *Envelope) GetTestCaseStarted() *TestCaseStarted {
if x, ok := m.GetMessage().(*Envelope_TestCaseStarted); ok {
return x.TestCaseStarted
}
return nil
}
func (m *Envelope) GetTestStepStarted() *TestStepStarted {
if x, ok := m.GetMessage().(*Envelope_TestStepStarted); ok {
return x.TestStepStarted
}
return nil
}
func (m *Envelope) GetAttachment() *Attachment {
if x, ok := m.GetMessage().(*Envelope_Attachment); ok {
return x.Attachment
}
return nil
}
func (m *Envelope) GetTestStepFinished() *TestStepFinished {
if x, ok := m.GetMessage().(*Envelope_TestStepFinished); ok {
return x.TestStepFinished
}
return nil
}
func (m *Envelope) GetTestCaseFinished() *TestCaseFinished {
if x, ok := m.GetMessage().(*Envelope_TestCaseFinished); ok {
return x.TestCaseFinished
}
return nil
}
func (m *Envelope) GetTestRunFinished() *TestRunFinished {
if x, ok := m.GetMessage().(*Envelope_TestRunFinished); ok {
return x.TestRunFinished
}
return nil
}
func (m *Envelope) GetParseError() *ParseError {
if x, ok := m.GetMessage().(*Envelope_ParseError); ok {
return x.ParseError
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Envelope) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Envelope_Source)(nil),
(*Envelope_GherkinDocument)(nil),
(*Envelope_Pickle)(nil),
(*Envelope_StepDefinition)(nil),
(*Envelope_Hook)(nil),
(*Envelope_ParameterType)(nil),
(*Envelope_TestCase)(nil),
(*Envelope_UndefinedParameterType)(nil),
(*Envelope_TestRunStarted)(nil),
(*Envelope_TestCaseStarted)(nil),
(*Envelope_TestStepStarted)(nil),
(*Envelope_Attachment)(nil),
(*Envelope_TestStepFinished)(nil),
(*Envelope_TestCaseFinished)(nil),
(*Envelope_TestRunFinished)(nil),
(*Envelope_ParseError)(nil),
}
}
// From https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto
type Timestamp struct {
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive.
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
}
func (m *Timestamp) Reset() { *m = Timestamp{} }
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
func (*Timestamp) ProtoMessage() {}
func (*Timestamp) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{1}
}
func (m *Timestamp) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Timestamp.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Timestamp) XXX_Merge(src proto.Message) {
xxx_messageInfo_Timestamp.Merge(m, src)
}
func (m *Timestamp) XXX_Size() int {
return m.Size()
}
func (m *Timestamp) XXX_DiscardUnknown() {
xxx_messageInfo_Timestamp.DiscardUnknown(m)
}
var xxx_messageInfo_Timestamp proto.InternalMessageInfo
func (m *Timestamp) GetSeconds() int64 {
if m != nil {
return m.Seconds
}
return 0
}
func (m *Timestamp) GetNanos() int32 {
if m != nil {
return m.Nanos
}
return 0
}
// The structure is pretty close of the Timestamp one. For clarity, a second type
// of message is used.
type Duration struct {
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive.
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
}
func (m *Duration) Reset() { *m = Duration{} }
func (m *Duration) String() string { return proto.CompactTextString(m) }
func (*Duration) ProtoMessage() {}
func (*Duration) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{2}
}
func (m *Duration) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Duration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Duration.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Duration) XXX_Merge(src proto.Message) {
xxx_messageInfo_Duration.Merge(m, src)
}
func (m *Duration) XXX_Size() int {
return m.Size()
}
func (m *Duration) XXX_DiscardUnknown() {
xxx_messageInfo_Duration.DiscardUnknown(m)
}
var xxx_messageInfo_Duration proto.InternalMessageInfo
func (m *Duration) GetSeconds() int64 {
if m != nil {
return m.Seconds
}
return 0
}
func (m *Duration) GetNanos() int32 {
if m != nil {
return m.Nanos
}
return 0
}
//*
// Points to a line and a column in a text file
type Location struct {
Line uint32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
Column uint32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"`
}
func (m *Location) Reset() { *m = Location{} }
func (m *Location) String() string { return proto.CompactTextString(m) }
func (*Location) ProtoMessage() {}
func (*Location) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{3}
}
func (m *Location) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Location.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Location) XXX_Merge(src proto.Message) {
xxx_messageInfo_Location.Merge(m, src)
}
func (m *Location) XXX_Size() int {
return m.Size()
}
func (m *Location) XXX_DiscardUnknown() {
xxx_messageInfo_Location.DiscardUnknown(m)
}
var xxx_messageInfo_Location proto.InternalMessageInfo
func (m *Location) GetLine() uint32 {
if m != nil {
return m.Line
}
return 0
}
func (m *Location) GetColumn() uint32 {
if m != nil {
return m.Column
}
return 0
}
//*
// Points to a [Source](#io.cucumber.messages.Source) identified by `uri` and a
// [Location](#io.cucumber.messages.Location) within that file.
type SourceReference struct {
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Location *Location `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
}
func (m *SourceReference) Reset() { *m = SourceReference{} }
func (m *SourceReference) String() string { return proto.CompactTextString(m) }
func (*SourceReference) ProtoMessage() {}
func (*SourceReference) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{4}
}
func (m *SourceReference) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SourceReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SourceReference.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SourceReference) XXX_Merge(src proto.Message) {
xxx_messageInfo_SourceReference.Merge(m, src)
}
func (m *SourceReference) XXX_Size() int {
return m.Size()
}
func (m *SourceReference) XXX_DiscardUnknown() {
xxx_messageInfo_SourceReference.DiscardUnknown(m)
}
var xxx_messageInfo_SourceReference proto.InternalMessageInfo
func (m *SourceReference) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *SourceReference) GetLocation() *Location {
if m != nil {
return m.Location
}
return nil
}
//*
// A source file, typically a Gherkin document
type Source struct {
//*
// The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier)
// of the source, typically a file path relative to the root directory
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// The contents of the file
Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// The media type of the file. Can be used to specify custom types, such as
// text/x.cucumber.gherkin+plain
MediaType string `protobuf:"bytes,3,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
}
func (m *Source) Reset() { *m = Source{} }
func (m *Source) String() string { return proto.CompactTextString(m) }
func (*Source) ProtoMessage() {}
func (*Source) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{5}
}
func (m *Source) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Source.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Source) XXX_Merge(src proto.Message) {
xxx_messageInfo_Source.Merge(m, src)
}
func (m *Source) XXX_Size() int {
return m.Size()
}
func (m *Source) XXX_DiscardUnknown() {
xxx_messageInfo_Source.DiscardUnknown(m)
}
var xxx_messageInfo_Source proto.InternalMessageInfo
func (m *Source) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *Source) GetData() string {
if m != nil {
return m.Data
}
return ""
}
func (m *Source) GetMediaType() string {
if m != nil {
return m.MediaType
}
return ""
}
//*
// The [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) of a Gherkin document.
// Cucumber implementations should *not* depend on `GherkinDocument` or any of its
// children for execution - use [Pickle](#io.cucumber.messages.Pickle) instead.
//
// The only consumers of `GherkinDocument` should only be formatters that produce
// "rich" output, resembling the original Gherkin document.
type GherkinDocument struct {
//*
// The [URI](https://en.wikipedia.org/wiki/Uniform_Resource_Identifier)
// of the source, typically a file path relative to the root directory
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
Feature *GherkinDocument_Feature `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"`
// All the comments in the Gherkin document
Comments []*GherkinDocument_Comment `protobuf:"bytes,3,rep,name=comments,proto3" json:"comments,omitempty"`
}
func (m *GherkinDocument) Reset() { *m = GherkinDocument{} }
func (m *GherkinDocument) String() string { return proto.CompactTextString(m) }
func (*GherkinDocument) ProtoMessage() {}
func (*GherkinDocument) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{6}
}
func (m *GherkinDocument) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GherkinDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GherkinDocument.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GherkinDocument) XXX_Merge(src proto.Message) {
xxx_messageInfo_GherkinDocument.Merge(m, src)
}
func (m *GherkinDocument) XXX_Size() int {
return m.Size()
}
func (m *GherkinDocument) XXX_DiscardUnknown() {
xxx_messageInfo_GherkinDocument.DiscardUnknown(m)
}
var xxx_messageInfo_GherkinDocument proto.InternalMessageInfo
func (m *GherkinDocument) GetUri() string {
if m != nil {
return m.Uri
}
return ""
}
func (m *GherkinDocument) GetFeature() *GherkinDocument_Feature {
if m != nil {
return m.Feature
}
return nil
}
func (m *GherkinDocument) GetComments() []*GherkinDocument_Comment {
if m != nil {
return m.Comments
}
return nil
}
//*
// A comment in a Gherkin document
type GherkinDocument_Comment struct {
// The location of the comment
Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// The text of the comment
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
}
func (m *GherkinDocument_Comment) Reset() { *m = GherkinDocument_Comment{} }
func (m *GherkinDocument_Comment) String() string { return proto.CompactTextString(m) }
func (*GherkinDocument_Comment) ProtoMessage() {}
func (*GherkinDocument_Comment) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{6, 0}
}
func (m *GherkinDocument_Comment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GherkinDocument_Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GherkinDocument_Comment.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GherkinDocument_Comment) XXX_Merge(src proto.Message) {
xxx_messageInfo_GherkinDocument_Comment.Merge(m, src)
}
func (m *GherkinDocument_Comment) XXX_Size() int {
return m.Size()
}
func (m *GherkinDocument_Comment) XXX_DiscardUnknown() {
xxx_messageInfo_GherkinDocument_Comment.DiscardUnknown(m)
}
var xxx_messageInfo_GherkinDocument_Comment proto.InternalMessageInfo
func (m *GherkinDocument_Comment) GetLocation() *Location {
if m != nil {
return m.Location
}
return nil
}
func (m *GherkinDocument_Comment) GetText() string {
if m != nil {
return m.Text
}
return ""
}
//*
// The top level node in the AST
type GherkinDocument_Feature struct {
// The location of the `Feature` keyword
Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// All the tags placed above the `Feature` keyword
Tags []*GherkinDocument_Feature_Tag `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
// The [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code of the Gherkin document
Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
// The text of the `Feature` keyword (in the language specified by `language`)
Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"`
// The name of the feature (the text following the `keyword`)
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
// The line(s) underneath the line with the `keyword` that are used as description
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
// Zero or more children
Children []*GherkinDocument_Feature_FeatureChild `protobuf:"bytes,7,rep,name=children,proto3" json:"children,omitempty"`
}
func (m *GherkinDocument_Feature) Reset() { *m = GherkinDocument_Feature{} }
func (m *GherkinDocument_Feature) String() string { return proto.CompactTextString(m) }
func (*GherkinDocument_Feature) ProtoMessage() {}
func (*GherkinDocument_Feature) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{6, 1}
}
func (m *GherkinDocument_Feature) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GherkinDocument_Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GherkinDocument_Feature.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GherkinDocument_Feature) XXX_Merge(src proto.Message) {
xxx_messageInfo_GherkinDocument_Feature.Merge(m, src)
}
func (m *GherkinDocument_Feature) XXX_Size() int {
return m.Size()
}
func (m *GherkinDocument_Feature) XXX_DiscardUnknown() {
xxx_messageInfo_GherkinDocument_Feature.DiscardUnknown(m)
}
var xxx_messageInfo_GherkinDocument_Feature proto.InternalMessageInfo
func (m *GherkinDocument_Feature) GetLocation() *Location {
if m != nil {
return m.Location
}
return nil
}
func (m *GherkinDocument_Feature) GetTags() []*GherkinDocument_Feature_Tag {
if m != nil {
return m.Tags
}
return nil
}
func (m *GherkinDocument_Feature) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
func (m *GherkinDocument_Feature) GetKeyword() string {
if m != nil {
return m.Keyword
}
return ""
}
func (m *GherkinDocument_Feature) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GherkinDocument_Feature) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *GherkinDocument_Feature) GetChildren() []*GherkinDocument_Feature_FeatureChild {
if m != nil {
return m.Children
}
return nil
}
//*
// A tag
type GherkinDocument_Feature_Tag struct {
// Location of the tag
Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// The name of the tag (including the leading `@`)
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Unique ID to be able to reference the Tag from PickleTag
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
}
func (m *GherkinDocument_Feature_Tag) Reset() { *m = GherkinDocument_Feature_Tag{} }
func (m *GherkinDocument_Feature_Tag) String() string { return proto.CompactTextString(m) }
func (*GherkinDocument_Feature_Tag) ProtoMessage() {}
func (*GherkinDocument_Feature_Tag) Descriptor() ([]byte, []int) {
return fileDescriptor_4dc296cbfe5ffcd5, []int{6, 1, 0}
}
func (m *GherkinDocument_Feature_Tag) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GherkinDocument_Feature_Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GherkinDocument_Feature_Tag.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GherkinDocument_Feature_Tag) XXX_Merge(src proto.Message) {
xxx_messageInfo_GherkinDocument_Feature_Tag.Merge(m, src)
}
func (m *GherkinDocument_Feature_Tag) XXX_Size() int {
return m.Size()
}
func (m *GherkinDocument_Feature_Tag) XXX_DiscardUnknown() {
xxx_messageInfo_GherkinDocument_Feature_Tag.DiscardUnknown(m)
}
var xxx_messageInfo_GherkinDocument_Feature_Tag proto.InternalMessageInfo
func (m *GherkinDocument_Feature_Tag) GetLocation() *Location {
if m != nil {
return m.Location
}
return nil
}
func (m *GherkinDocument_Feature_Tag) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *GherkinDocument_Feature_Tag) GetId() string {
if m != nil {
return m.Id
}
return ""
}
//*
// A child node of a `Feature` node
type GherkinDocument_Feature_FeatureChild struct {
// Types that are valid to be assigned to Value:
// *GherkinDocument_Feature_FeatureChild_Rule_
// *GherkinDocument_Feature_FeatureChild_Background
// *GherkinDocument_Feature_FeatureChild_Scenario
Value isGherkinDocument_Feature_FeatureChild_Value `protobuf_oneof:"value"`