/
v1.pb.go
1910 lines (1714 loc) · 74 KB
/
v1.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
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Protocol Buffers describing graph serialization (v1)
//
// We need to serialize types and function symbols to be able to recreate
// UserFns on the worker side, in particular. We use protos for compactness.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.21.4
// source: go/pkg/beam/core/runtime/graphx/v1/v1.proto
package v1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Kind is mostly identical to reflect.TypeKind, expect we handle certain
// types specially, such as "error".
type Type_Kind int32
const (
Type_INVALID Type_Kind = 0
// Primitive.
Type_BOOL Type_Kind = 1
Type_INT Type_Kind = 2
Type_INT8 Type_Kind = 3
Type_INT16 Type_Kind = 4
Type_INT32 Type_Kind = 5
Type_INT64 Type_Kind = 6
Type_UINT Type_Kind = 7
Type_UINT8 Type_Kind = 8
Type_UINT16 Type_Kind = 9
Type_UINT32 Type_Kind = 10
Type_UINT64 Type_Kind = 11
Type_STRING Type_Kind = 12
Type_FLOAT32 Type_Kind = 13
Type_FLOAT64 Type_Kind = 14
// Non-primitive types.
Type_SLICE Type_Kind = 20
Type_STRUCT Type_Kind = 21
Type_FUNC Type_Kind = 22
Type_CHAN Type_Kind = 23
Type_PTR Type_Kind = 24
Type_SPECIAL Type_Kind = 25
Type_EXTERNAL Type_Kind = 26
)
// Enum value maps for Type_Kind.
var (
Type_Kind_name = map[int32]string{
0: "INVALID",
1: "BOOL",
2: "INT",
3: "INT8",
4: "INT16",
5: "INT32",
6: "INT64",
7: "UINT",
8: "UINT8",
9: "UINT16",
10: "UINT32",
11: "UINT64",
12: "STRING",
13: "FLOAT32",
14: "FLOAT64",
20: "SLICE",
21: "STRUCT",
22: "FUNC",
23: "CHAN",
24: "PTR",
25: "SPECIAL",
26: "EXTERNAL",
}
Type_Kind_value = map[string]int32{
"INVALID": 0,
"BOOL": 1,
"INT": 2,
"INT8": 3,
"INT16": 4,
"INT32": 5,
"INT64": 6,
"UINT": 7,
"UINT8": 8,
"UINT16": 9,
"UINT32": 10,
"UINT64": 11,
"STRING": 12,
"FLOAT32": 13,
"FLOAT64": 14,
"SLICE": 20,
"STRUCT": 21,
"FUNC": 22,
"CHAN": 23,
"PTR": 24,
"SPECIAL": 25,
"EXTERNAL": 26,
}
)
func (x Type_Kind) Enum() *Type_Kind {
p := new(Type_Kind)
*p = x
return p
}
func (x Type_Kind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Type_Kind) Descriptor() protoreflect.EnumDescriptor {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[0].Descriptor()
}
func (Type_Kind) Type() protoreflect.EnumType {
return &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[0]
}
func (x Type_Kind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Type_Kind.Descriptor instead.
func (Type_Kind) EnumDescriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{0, 0}
}
// ChanDir matches reflect.ChanDir.
type Type_ChanDir int32
const (
Type_RECV Type_ChanDir = 0
Type_SEND Type_ChanDir = 1
Type_BOTH Type_ChanDir = 2
)
// Enum value maps for Type_ChanDir.
var (
Type_ChanDir_name = map[int32]string{
0: "RECV",
1: "SEND",
2: "BOTH",
}
Type_ChanDir_value = map[string]int32{
"RECV": 0,
"SEND": 1,
"BOTH": 2,
}
)
func (x Type_ChanDir) Enum() *Type_ChanDir {
p := new(Type_ChanDir)
*p = x
return p
}
func (x Type_ChanDir) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Type_ChanDir) Descriptor() protoreflect.EnumDescriptor {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[1].Descriptor()
}
func (Type_ChanDir) Type() protoreflect.EnumType {
return &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[1]
}
func (x Type_ChanDir) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Type_ChanDir.Descriptor instead.
func (Type_ChanDir) EnumDescriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{0, 1}
}
type Type_Special int32
const (
Type_ILLEGAL Type_Special = 0
// Go
Type_ERROR Type_Special = 1
Type_CONTEXT Type_Special = 2
Type_TYPE Type_Special = 3
// Beam
Type_EVENTTIME Type_Special = 10
Type_WINDOW Type_Special = 22
Type_KV Type_Special = 11
Type_COGBK Type_Special = 13
Type_WINDOWEDVALUE Type_Special = 14
Type_BUNDLEFINALIZATION Type_Special = 23
Type_STATEPROVIDER Type_Special = 24
Type_TIMERPROVIDER Type_Special = 25
Type_T Type_Special = 15
Type_U Type_Special = 16
Type_V Type_Special = 17
Type_W Type_Special = 18
Type_X Type_Special = 19
Type_Y Type_Special = 20
Type_Z Type_Special = 21
)
// Enum value maps for Type_Special.
var (
Type_Special_name = map[int32]string{
0: "ILLEGAL",
1: "ERROR",
2: "CONTEXT",
3: "TYPE",
10: "EVENTTIME",
22: "WINDOW",
11: "KV",
13: "COGBK",
14: "WINDOWEDVALUE",
23: "BUNDLEFINALIZATION",
24: "STATEPROVIDER",
25: "TIMERPROVIDER",
15: "T",
16: "U",
17: "V",
18: "W",
19: "X",
20: "Y",
21: "Z",
}
Type_Special_value = map[string]int32{
"ILLEGAL": 0,
"ERROR": 1,
"CONTEXT": 2,
"TYPE": 3,
"EVENTTIME": 10,
"WINDOW": 22,
"KV": 11,
"COGBK": 13,
"WINDOWEDVALUE": 14,
"BUNDLEFINALIZATION": 23,
"STATEPROVIDER": 24,
"TIMERPROVIDER": 25,
"T": 15,
"U": 16,
"V": 17,
"W": 18,
"X": 19,
"Y": 20,
"Z": 21,
}
)
func (x Type_Special) Enum() *Type_Special {
p := new(Type_Special)
*p = x
return p
}
func (x Type_Special) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Type_Special) Descriptor() protoreflect.EnumDescriptor {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[2].Descriptor()
}
func (Type_Special) Type() protoreflect.EnumType {
return &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[2]
}
func (x Type_Special) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Type_Special.Descriptor instead.
func (Type_Special) EnumDescriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{0, 2}
}
type MultiEdge_Inbound_InputKind int32
const (
MultiEdge_Inbound_INVALID MultiEdge_Inbound_InputKind = 0
MultiEdge_Inbound_MAIN MultiEdge_Inbound_InputKind = 1
MultiEdge_Inbound_SINGLETON MultiEdge_Inbound_InputKind = 2
MultiEdge_Inbound_SLICE MultiEdge_Inbound_InputKind = 3
MultiEdge_Inbound_MAP MultiEdge_Inbound_InputKind = 4
MultiEdge_Inbound_MULTIMAP MultiEdge_Inbound_InputKind = 5
MultiEdge_Inbound_ITER MultiEdge_Inbound_InputKind = 6
MultiEdge_Inbound_REITER MultiEdge_Inbound_InputKind = 7
)
// Enum value maps for MultiEdge_Inbound_InputKind.
var (
MultiEdge_Inbound_InputKind_name = map[int32]string{
0: "INVALID",
1: "MAIN",
2: "SINGLETON",
3: "SLICE",
4: "MAP",
5: "MULTIMAP",
6: "ITER",
7: "REITER",
}
MultiEdge_Inbound_InputKind_value = map[string]int32{
"INVALID": 0,
"MAIN": 1,
"SINGLETON": 2,
"SLICE": 3,
"MAP": 4,
"MULTIMAP": 5,
"ITER": 6,
"REITER": 7,
}
)
func (x MultiEdge_Inbound_InputKind) Enum() *MultiEdge_Inbound_InputKind {
p := new(MultiEdge_Inbound_InputKind)
*p = x
return p
}
func (x MultiEdge_Inbound_InputKind) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MultiEdge_Inbound_InputKind) Descriptor() protoreflect.EnumDescriptor {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[3].Descriptor()
}
func (MultiEdge_Inbound_InputKind) Type() protoreflect.EnumType {
return &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_enumTypes[3]
}
func (x MultiEdge_Inbound_InputKind) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MultiEdge_Inbound_InputKind.Descriptor instead.
func (MultiEdge_Inbound_InputKind) EnumDescriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{7, 0, 0}
}
// Type represents a serializable reflect.Type.
type Type struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Type kind.
Kind Type_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=org.apache.beam.sdks.go.pkg.beam.core.runtime.graphx.v1.Type_Kind" json:"kind,omitempty"`
// (Optional) Element type (if SLICE, PTR or CHAN)
Element *Type `protobuf:"bytes,2,opt,name=element,proto3" json:"element,omitempty"`
// (Optional) Fields (if STRUCT).
Fields []*Type_StructField `protobuf:"bytes,3,rep,name=fields,proto3" json:"fields,omitempty"`
// (Optional) Parameter types (if FUNC).
ParameterTypes []*Type `protobuf:"bytes,4,rep,name=parameter_types,json=parameterTypes,proto3" json:"parameter_types,omitempty"`
// (Optional) Return types (if FUNC).
ReturnTypes []*Type `protobuf:"bytes,5,rep,name=return_types,json=returnTypes,proto3" json:"return_types,omitempty"`
// (Optional) Is variadic (if FUNC).
IsVariadic bool `protobuf:"varint,6,opt,name=is_variadic,json=isVariadic,proto3" json:"is_variadic,omitempty"`
// (Optional) Channel direction (if CHAN).
ChanDir Type_ChanDir `protobuf:"varint,7,opt,name=chan_dir,json=chanDir,proto3,enum=org.apache.beam.sdks.go.pkg.beam.core.runtime.graphx.v1.Type_ChanDir" json:"chan_dir,omitempty"`
// (Optional) Special type (if SPECIAL)
Special Type_Special `protobuf:"varint,8,opt,name=special,proto3,enum=org.apache.beam.sdks.go.pkg.beam.core.runtime.graphx.v1.Type_Special" json:"special,omitempty"`
// (Optional) Key for external types.
// External types are types that are not directly serialized using
// the types above, but rather indirectly serialized. The wire format
// holds a lookup key into a registry to reify the types in a worker from a
// registry. The main usage of external serialization is to preserve
// methods attached to types.
ExternalKey string `protobuf:"bytes,9,opt,name=external_key,json=externalKey,proto3" json:"external_key,omitempty"`
}
func (x *Type) Reset() {
*x = Type{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Type) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Type) ProtoMessage() {}
func (x *Type) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Type.ProtoReflect.Descriptor instead.
func (*Type) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{0}
}
func (x *Type) GetKind() Type_Kind {
if x != nil {
return x.Kind
}
return Type_INVALID
}
func (x *Type) GetElement() *Type {
if x != nil {
return x.Element
}
return nil
}
func (x *Type) GetFields() []*Type_StructField {
if x != nil {
return x.Fields
}
return nil
}
func (x *Type) GetParameterTypes() []*Type {
if x != nil {
return x.ParameterTypes
}
return nil
}
func (x *Type) GetReturnTypes() []*Type {
if x != nil {
return x.ReturnTypes
}
return nil
}
func (x *Type) GetIsVariadic() bool {
if x != nil {
return x.IsVariadic
}
return false
}
func (x *Type) GetChanDir() Type_ChanDir {
if x != nil {
return x.ChanDir
}
return Type_RECV
}
func (x *Type) GetSpecial() Type_Special {
if x != nil {
return x.Special
}
return Type_ILLEGAL
}
func (x *Type) GetExternalKey() string {
if x != nil {
return x.ExternalKey
}
return ""
}
// FullType represents a serialized typex.FullType
type FullType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Components []*FullType `protobuf:"bytes,2,rep,name=components,proto3" json:"components,omitempty"`
}
func (x *FullType) Reset() {
*x = FullType{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FullType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FullType) ProtoMessage() {}
func (x *FullType) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FullType.ProtoReflect.Descriptor instead.
func (*FullType) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{1}
}
func (x *FullType) GetType() *Type {
if x != nil {
return x.Type
}
return nil
}
func (x *FullType) GetComponents() []*FullType {
if x != nil {
return x.Components
}
return nil
}
// UserFn represents a serialized function reference. The
// implementation is notably not serialized and must be present (and
// somehow discoverable from the symbol name) on the decoding side.
type UserFn struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Symbol name of function.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// (Required) Function type.
Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}
func (x *UserFn) Reset() {
*x = UserFn{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserFn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserFn) ProtoMessage() {}
func (x *UserFn) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserFn.ProtoReflect.Descriptor instead.
func (*UserFn) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{2}
}
func (x *UserFn) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UserFn) GetType() *Type {
if x != nil {
return x.Type
}
return nil
}
// DynFn represents a serialized function generator.
type DynFn struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Name of the generated function.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// (Required) Type of the generated function.
Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// (Required) Input to generator.
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// (Required) Symbol name of generator (of type []byte ->
// []reflect.Value -> []reflect.Value).
Gen string `protobuf:"bytes,4,opt,name=gen,proto3" json:"gen,omitempty"`
}
func (x *DynFn) Reset() {
*x = DynFn{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DynFn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DynFn) ProtoMessage() {}
func (x *DynFn) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DynFn.ProtoReflect.Descriptor instead.
func (*DynFn) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{3}
}
func (x *DynFn) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DynFn) GetType() *Type {
if x != nil {
return x.Type
}
return nil
}
func (x *DynFn) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *DynFn) GetGen() string {
if x != nil {
return x.Gen
}
return ""
}
// Fn represents a serialized function reference or struct.
type Fn struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Optional) Function reference.
Fn *UserFn `protobuf:"bytes,1,opt,name=fn,proto3" json:"fn,omitempty"`
// (Optional) Struct type.
Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// (Optional) JSON-serialized value, if struct.
Opt string `protobuf:"bytes,3,opt,name=opt,proto3" json:"opt,omitempty"`
// (Optional) Function generator, if dynamic function.
Dynfn *DynFn `protobuf:"bytes,4,opt,name=dynfn,proto3" json:"dynfn,omitempty"`
}
func (x *Fn) Reset() {
*x = Fn{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Fn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Fn) ProtoMessage() {}
func (x *Fn) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Fn.ProtoReflect.Descriptor instead.
func (*Fn) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{4}
}
func (x *Fn) GetFn() *UserFn {
if x != nil {
return x.Fn
}
return nil
}
func (x *Fn) GetType() *Type {
if x != nil {
return x.Type
}
return nil
}
func (x *Fn) GetOpt() string {
if x != nil {
return x.Opt
}
return ""
}
func (x *Fn) GetDynfn() *DynFn {
if x != nil {
return x.Dynfn
}
return nil
}
// WindowFn represents a window fn.
type WindowFn struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
SizeMs int64 `protobuf:"varint,2,opt,name=size_ms,json=sizeMs,proto3" json:"size_ms,omitempty"`
PeriodMs int64 `protobuf:"varint,3,opt,name=period_ms,json=periodMs,proto3" json:"period_ms,omitempty"`
GapMs int64 `protobuf:"varint,4,opt,name=gap_ms,json=gapMs,proto3" json:"gap_ms,omitempty"`
}
func (x *WindowFn) Reset() {
*x = WindowFn{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WindowFn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WindowFn) ProtoMessage() {}
func (x *WindowFn) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use WindowFn.ProtoReflect.Descriptor instead.
func (*WindowFn) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{5}
}
func (x *WindowFn) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
func (x *WindowFn) GetSizeMs() int64 {
if x != nil {
return x.SizeMs
}
return 0
}
func (x *WindowFn) GetPeriodMs() int64 {
if x != nil {
return x.PeriodMs
}
return 0
}
func (x *WindowFn) GetGapMs() int64 {
if x != nil {
return x.GapMs
}
return 0
}
// CustomCoder
type CustomCoder struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Name of the coder. For informational purposes only.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// (Required) Concrete type being coded.
Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// (Required) Encoding function.
Enc *UserFn `protobuf:"bytes,3,opt,name=enc,proto3" json:"enc,omitempty"`
// (Required) Decoding function.
Dec *UserFn `protobuf:"bytes,4,opt,name=dec,proto3" json:"dec,omitempty"`
}
func (x *CustomCoder) Reset() {
*x = CustomCoder{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomCoder) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomCoder) ProtoMessage() {}
func (x *CustomCoder) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CustomCoder.ProtoReflect.Descriptor instead.
func (*CustomCoder) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{6}
}
func (x *CustomCoder) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CustomCoder) GetType() *Type {
if x != nil {
return x.Type
}
return nil
}
func (x *CustomCoder) GetEnc() *UserFn {
if x != nil {
return x.Enc
}
return nil
}
func (x *CustomCoder) GetDec() *UserFn {
if x != nil {
return x.Dec
}
return nil
}
// MultiEdge represents a partly-serialized MultiEdge. It does not include
// node information, because runners manipulate the graph structure.
type MultiEdge struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Fn *Fn `protobuf:"bytes,1,opt,name=fn,proto3" json:"fn,omitempty"`
Opcode string `protobuf:"bytes,4,opt,name=opcode,proto3" json:"opcode,omitempty"`
WindowFn *WindowFn `protobuf:"bytes,5,opt,name=window_fn,json=windowFn,proto3" json:"window_fn,omitempty"`
Inbound []*MultiEdge_Inbound `protobuf:"bytes,2,rep,name=inbound,proto3" json:"inbound,omitempty"`
Outbound []*MultiEdge_Outbound `protobuf:"bytes,3,rep,name=outbound,proto3" json:"outbound,omitempty"`
}
func (x *MultiEdge) Reset() {
*x = MultiEdge{}
if protoimpl.UnsafeEnabled {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MultiEdge) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MultiEdge) ProtoMessage() {}
func (x *MultiEdge) ProtoReflect() protoreflect.Message {
mi := &file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MultiEdge.ProtoReflect.Descriptor instead.
func (*MultiEdge) Descriptor() ([]byte, []int) {
return file_go_pkg_beam_core_runtime_graphx_v1_v1_proto_rawDescGZIP(), []int{7}
}
func (x *MultiEdge) GetFn() *Fn {
if x != nil {
return x.Fn
}
return nil
}
func (x *MultiEdge) GetOpcode() string {
if x != nil {
return x.Opcode
}
return ""
}
func (x *MultiEdge) GetWindowFn() *WindowFn {
if x != nil {
return x.WindowFn
}
return nil
}
func (x *MultiEdge) GetInbound() []*MultiEdge_Inbound {
if x != nil {
return x.Inbound
}
return nil
}
func (x *MultiEdge) GetOutbound() []*MultiEdge_Outbound {
if x != nil {
return x.Outbound
}
return nil
}
// InjectPayload is the payload for the built-in Inject function.
type InjectPayload struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
N int32 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
}