-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
beam_runner_api.pb.go
6403 lines (5668 loc) · 258 KB
/
beam_runner_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. DO NOT EDIT.
// source: beam_runner_api.proto
package pipeline_v1
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
_ "github.com/golang/protobuf/ptypes/any"
_ "github.com/golang/protobuf/ptypes/timestamp"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type BeamConstants_Constants int32
const (
// All timestamps of elements or window boundaries must be within
// the interval [MIN_TIMESTAMP_MILLIS, MAX_TIMESTAMP_MILLIS].
// The smallest representable timestamp of an element or a window boundary.
BeamConstants_MIN_TIMESTAMP_MILLIS BeamConstants_Constants = 0
// The largest representable timestamp of an element or a window boundary.
BeamConstants_MAX_TIMESTAMP_MILLIS BeamConstants_Constants = 1
// The maximum timestamp for the global window.
// Triggers use max timestamp to set timers' timestamp. Timers fire when
// the watermark passes their timestamps. So, the timestamp needs to be
// smaller than the MAX_TIMESTAMP_MILLIS.
// One standard day is subtracted from MAX_TIMESTAMP_MILLIS to make sure
// the max timestamp is smaller than MAX_TIMESTAMP_MILLIS even after rounding up
// to seconds or minutes.
BeamConstants_GLOBAL_WINDOW_MAX_TIMESTAMP_MILLIS BeamConstants_Constants = 2
)
var BeamConstants_Constants_name = map[int32]string{
0: "MIN_TIMESTAMP_MILLIS",
1: "MAX_TIMESTAMP_MILLIS",
2: "GLOBAL_WINDOW_MAX_TIMESTAMP_MILLIS",
}
var BeamConstants_Constants_value = map[string]int32{
"MIN_TIMESTAMP_MILLIS": 0,
"MAX_TIMESTAMP_MILLIS": 1,
"GLOBAL_WINDOW_MAX_TIMESTAMP_MILLIS": 2,
}
func (x BeamConstants_Constants) String() string {
return proto.EnumName(BeamConstants_Constants_name, int32(x))
}
func (BeamConstants_Constants) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{0, 0}
}
// Primitive transforms may not specify composite sub-transforms.
type StandardPTransforms_Primitives int32
const (
// ParDo is a Beam transform for generic parallel processing. The ParDo
// processing paradigm is similar to the “Map” phase of a
// Map/Shuffle/Reduce-style algorithm: a ParDo transform considers each
// element in the input PCollection, performs some processing function
// (your user code) on that element, and emits zero, one, or multiple
// elements to an output PCollection.
//
// See https://beam.apache.org/documentation/programming-guide/#pardo
// for additional details.
//
// Payload: ParDoPayload
StandardPTransforms_PAR_DO StandardPTransforms_Primitives = 0
// Flatten is a Beam transform for PCollection objects that store the same
// data type. Flatten merges multiple PCollection objects into a single
// logical PCollection.
//
// See https://beam.apache.org/documentation/programming-guide/#flatten
// for additional details.
//
// Payload: None
StandardPTransforms_FLATTEN StandardPTransforms_Primitives = 1
// GroupByKey is a Beam transform for processing collections of key/value
// pairs. It’s a parallel reduction operation, analogous to the Shuffle
// phase of a Map/Shuffle/Reduce-style algorithm. The input to GroupByKey is
// a collection of key/value pairs that represents a multimap, where the
// collection contains multiple pairs that have the same key, but different
// values. Given such a collection, you use GroupByKey to collect all of the
// values associated with each unique key.
//
// See https://beam.apache.org/documentation/programming-guide/#groupbykey
// for additional details.
//
// Never defines an environment as the runner is required to implement this
// transform.
//
// Payload: None
StandardPTransforms_GROUP_BY_KEY StandardPTransforms_Primitives = 2
// A transform which produces a single empty byte array at the minimum
// timestamp in the GlobalWindow.
//
// Never defines an environment as the runner is required to implement this
// transform.
//
// Payload: None
StandardPTransforms_IMPULSE StandardPTransforms_Primitives = 3
// Windowing subdivides a PCollection according to the timestamps of its
// individual elements. Transforms that aggregate multiple elements, such as
// GroupByKey and Combine, work implicitly on a per-window basis — they
// process each PCollection as a succession of multiple, finite windows,
// though the entire collection itself may be of unbounded size.
//
// See https://beam.apache.org/documentation/programming-guide/#windowing
// for additional details.
//
// Payload: WindowIntoPayload
StandardPTransforms_ASSIGN_WINDOWS StandardPTransforms_Primitives = 4
// A testing input that generates an unbounded {@link PCollection} of
// elements, advancing the watermark and processing time as elements are
// emitted. After all of the specified elements are emitted, ceases to
// produce output.
//
// See https://beam.apache.org/blog/2016/10/20/test-stream.html
// for additional details.
//
// Payload: TestStreamPayload
StandardPTransforms_TEST_STREAM StandardPTransforms_Primitives = 5
// Represents mapping of main input window onto side input window.
//
// Side input window mapping function:
// Input: KV<nonce, MainInputWindow>
// Output: KV<nonce, SideInputWindow>
//
// For each main input window, the side input window is returned. The
// nonce is used by a runner to associate each input with its output.
// The nonce is represented as an opaque set of bytes.
//
// Payload: SideInput#window_mapping_fn FunctionSpec
StandardPTransforms_MAP_WINDOWS StandardPTransforms_Primitives = 6
// Used to merge windows during a GroupByKey.
//
// Window merging function:
// Input: KV<nonce, iterable<OriginalWindow>>
// Output: KV<nonce, KV<iterable<UnmergedOriginalWindow>, iterable<KV<MergedWindow, iterable<ConsumedOriginalWindow>>>>
//
// For each set of original windows, a list of all unmerged windows is
// output alongside a map of merged window to set of consumed windows.
// All original windows must be contained in either the unmerged original
// window set or one of the consumed original window sets. Each original
// window can only be part of one output set. The nonce is used by a runner
// to associate each input with its output. The nonce is represented as an
// opaque set of bytes.
//
// Payload: WindowingStrategy#window_fn FunctionSpec
StandardPTransforms_MERGE_WINDOWS StandardPTransforms_Primitives = 7
)
var StandardPTransforms_Primitives_name = map[int32]string{
0: "PAR_DO",
1: "FLATTEN",
2: "GROUP_BY_KEY",
3: "IMPULSE",
4: "ASSIGN_WINDOWS",
5: "TEST_STREAM",
6: "MAP_WINDOWS",
7: "MERGE_WINDOWS",
}
var StandardPTransforms_Primitives_value = map[string]int32{
"PAR_DO": 0,
"FLATTEN": 1,
"GROUP_BY_KEY": 2,
"IMPULSE": 3,
"ASSIGN_WINDOWS": 4,
"TEST_STREAM": 5,
"MAP_WINDOWS": 6,
"MERGE_WINDOWS": 7,
}
func (x StandardPTransforms_Primitives) String() string {
return proto.EnumName(StandardPTransforms_Primitives_name, int32(x))
}
func (StandardPTransforms_Primitives) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{4, 0}
}
type StandardPTransforms_DeprecatedPrimitives int32
const (
// Represents the operation to read a Bounded or Unbounded source.
// Payload: ReadPayload.
StandardPTransforms_READ StandardPTransforms_DeprecatedPrimitives = 0
// Runners should move away from translating `CreatePCollectionView` and treat this as
// part of the translation for a `ParDo` side input.
StandardPTransforms_CREATE_VIEW StandardPTransforms_DeprecatedPrimitives = 1
)
var StandardPTransforms_DeprecatedPrimitives_name = map[int32]string{
0: "READ",
1: "CREATE_VIEW",
}
var StandardPTransforms_DeprecatedPrimitives_value = map[string]int32{
"READ": 0,
"CREATE_VIEW": 1,
}
func (x StandardPTransforms_DeprecatedPrimitives) String() string {
return proto.EnumName(StandardPTransforms_DeprecatedPrimitives_name, int32(x))
}
func (StandardPTransforms_DeprecatedPrimitives) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{4, 1}
}
type StandardPTransforms_Composites int32
const (
// Represents the Combine.perKey() operation.
// If this is produced by an SDK, it is assumed that the SDK understands
// each of CombineComponents.
// Payload: CombinePayload
StandardPTransforms_COMBINE_PER_KEY StandardPTransforms_Composites = 0
// Represents the Combine.globally() operation.
// If this is produced by an SDK, it is assumed that the SDK understands
// each of CombineComponents.
// Payload: CombinePayload
StandardPTransforms_COMBINE_GLOBALLY StandardPTransforms_Composites = 1
// Represents the Reshuffle operation.
StandardPTransforms_RESHUFFLE StandardPTransforms_Composites = 2
// Less well-known. Payload: WriteFilesPayload.
StandardPTransforms_WRITE_FILES StandardPTransforms_Composites = 3
)
var StandardPTransforms_Composites_name = map[int32]string{
0: "COMBINE_PER_KEY",
1: "COMBINE_GLOBALLY",
2: "RESHUFFLE",
3: "WRITE_FILES",
}
var StandardPTransforms_Composites_value = map[string]int32{
"COMBINE_PER_KEY": 0,
"COMBINE_GLOBALLY": 1,
"RESHUFFLE": 2,
"WRITE_FILES": 3,
}
func (x StandardPTransforms_Composites) String() string {
return proto.EnumName(StandardPTransforms_Composites_name, int32(x))
}
func (StandardPTransforms_Composites) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{4, 2}
}
// Payload for all of these: CombinePayload
type StandardPTransforms_CombineComponents int32
const (
// Represents the Pre-Combine part of a lifted Combine Per Key, as described
// in the following document:
// https://s.apache.org/beam-runner-api-combine-model#heading=h.ta0g6ase8z07
// Payload: CombinePayload
StandardPTransforms_COMBINE_PER_KEY_PRECOMBINE StandardPTransforms_CombineComponents = 0
// Represents the Merge Accumulators part of a lifted Combine Per Key, as
// described in the following document:
// https://s.apache.org/beam-runner-api-combine-model#heading=h.jco9rvatld5m
// Payload: CombinePayload
StandardPTransforms_COMBINE_PER_KEY_MERGE_ACCUMULATORS StandardPTransforms_CombineComponents = 1
// Represents the Extract Outputs part of a lifted Combine Per Key, as
// described in the following document:
// https://s.apache.org/beam-runner-api-combine-model#heading=h.i9i6p8gtl6ku
// Payload: CombinePayload
StandardPTransforms_COMBINE_PER_KEY_EXTRACT_OUTPUTS StandardPTransforms_CombineComponents = 2
// Represents the Combine Grouped Values transform, as described in the
// following document:
// https://s.apache.org/beam-runner-api-combine-model#heading=h.aj86ew4v1wk
// Payload: CombinePayload
StandardPTransforms_COMBINE_GROUPED_VALUES StandardPTransforms_CombineComponents = 3
// Represents the Convert To Accumulators transform, as described in the
// following document:
// https://s.apache.org/beam-runner-api-combine-model#heading=h.h5697l1scd9x
// Payload: CombinePayload
StandardPTransforms_COMBINE_PER_KEY_CONVERT_TO_ACCUMULATORS StandardPTransforms_CombineComponents = 4
)
var StandardPTransforms_CombineComponents_name = map[int32]string{
0: "COMBINE_PER_KEY_PRECOMBINE",
1: "COMBINE_PER_KEY_MERGE_ACCUMULATORS",
2: "COMBINE_PER_KEY_EXTRACT_OUTPUTS",
3: "COMBINE_GROUPED_VALUES",
4: "COMBINE_PER_KEY_CONVERT_TO_ACCUMULATORS",
}
var StandardPTransforms_CombineComponents_value = map[string]int32{
"COMBINE_PER_KEY_PRECOMBINE": 0,
"COMBINE_PER_KEY_MERGE_ACCUMULATORS": 1,
"COMBINE_PER_KEY_EXTRACT_OUTPUTS": 2,
"COMBINE_GROUPED_VALUES": 3,
"COMBINE_PER_KEY_CONVERT_TO_ACCUMULATORS": 4,
}
func (x StandardPTransforms_CombineComponents) String() string {
return proto.EnumName(StandardPTransforms_CombineComponents_name, int32(x))
}
func (StandardPTransforms_CombineComponents) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{4, 3}
}
// Payload for all of these: ParDoPayload containing the user's SDF
type StandardPTransforms_SplittableParDoComponents int32
const (
// Pairs the input element with its initial restriction.
// Input: element; output: KV(element, restriction).
StandardPTransforms_PAIR_WITH_RESTRICTION StandardPTransforms_SplittableParDoComponents = 0
// Splits the restriction inside an element/restriction pair.
// Input: KV(element, restriction); output: KV(element, restriction).
StandardPTransforms_SPLIT_RESTRICTION StandardPTransforms_SplittableParDoComponents = 1
// Applies the DoFn to every element/restriction pair in a uniquely keyed
// collection, in a splittable fashion.
// Input: KV(bytes, KV(element, restriction)); output: DoFn's output.
// The first "bytes" is an opaque unique key using the standard bytes coder.
// Typically a runner would rewrite this into a runner-specific grouping
// operation supporting state and timers, followed by PROCESS_ELEMENTS,
// with some runner-specific glue code in between.
StandardPTransforms_PROCESS_KEYED_ELEMENTS StandardPTransforms_SplittableParDoComponents = 2
// Like PROCESS_KEYED_ELEMENTS, but without the unique key - just elements
// and restrictions.
// Input: KV(element, restriction); output: DoFn's output.
StandardPTransforms_PROCESS_ELEMENTS StandardPTransforms_SplittableParDoComponents = 3
// Splits the restriction of each element/restriction pair and returns the
// resulting splits, with a corresponding floating point size estimations
// for each.
// A reasonable value for size is the number of bytes expected to be
// produced by this (element, restriction) pair.
// Input: KV(element, restriction)
// Output: KV(KV(element, restriction), size))
StandardPTransforms_SPLIT_AND_SIZE_RESTRICTIONS StandardPTransforms_SplittableParDoComponents = 4
// Like PROCESS_ELEMENTS, but accepts the sized output produced by
// SPLIT_RESTRICTION_WITH_SIZING.
// Input: KV(KV(element, restriction), size); output: DoFn's output.
StandardPTransforms_PROCESS_SIZED_ELEMENTS_AND_RESTRICTIONS StandardPTransforms_SplittableParDoComponents = 5
)
var StandardPTransforms_SplittableParDoComponents_name = map[int32]string{
0: "PAIR_WITH_RESTRICTION",
1: "SPLIT_RESTRICTION",
2: "PROCESS_KEYED_ELEMENTS",
3: "PROCESS_ELEMENTS",
4: "SPLIT_AND_SIZE_RESTRICTIONS",
5: "PROCESS_SIZED_ELEMENTS_AND_RESTRICTIONS",
}
var StandardPTransforms_SplittableParDoComponents_value = map[string]int32{
"PAIR_WITH_RESTRICTION": 0,
"SPLIT_RESTRICTION": 1,
"PROCESS_KEYED_ELEMENTS": 2,
"PROCESS_ELEMENTS": 3,
"SPLIT_AND_SIZE_RESTRICTIONS": 4,
"PROCESS_SIZED_ELEMENTS_AND_RESTRICTIONS": 5,
}
func (x StandardPTransforms_SplittableParDoComponents) String() string {
return proto.EnumName(StandardPTransforms_SplittableParDoComponents_name, int32(x))
}
func (StandardPTransforms_SplittableParDoComponents) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{4, 4}
}
type StandardSideInputTypes_Enum int32
const (
// Represents a view over a PCollection<V>.
//
// StateGetRequests performed on this side input must use
// StateKey.IterableSideInput.
StandardSideInputTypes_ITERABLE StandardSideInputTypes_Enum = 0
// Represents a view over a PCollection<KV<K, V>>.
//
// StateGetRequests performed on this side input must use
// StateKey.IterableSideInput or StateKey.MultimapSideInput.
StandardSideInputTypes_MULTIMAP StandardSideInputTypes_Enum = 1
)
var StandardSideInputTypes_Enum_name = map[int32]string{
0: "ITERABLE",
1: "MULTIMAP",
}
var StandardSideInputTypes_Enum_value = map[string]int32{
"ITERABLE": 0,
"MULTIMAP": 1,
}
func (x StandardSideInputTypes_Enum) String() string {
return proto.EnumName(StandardSideInputTypes_Enum_name, int32(x))
}
func (StandardSideInputTypes_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{5, 0}
}
type IsBounded_Enum int32
const (
IsBounded_UNSPECIFIED IsBounded_Enum = 0
IsBounded_UNBOUNDED IsBounded_Enum = 1
IsBounded_BOUNDED IsBounded_Enum = 2
)
var IsBounded_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "UNBOUNDED",
2: "BOUNDED",
}
var IsBounded_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"UNBOUNDED": 1,
"BOUNDED": 2,
}
func (x IsBounded_Enum) String() string {
return proto.EnumName(IsBounded_Enum_name, int32(x))
}
func (IsBounded_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{15, 0}
}
type StandardCoders_Enum int32
const (
// Components: None
StandardCoders_BYTES StandardCoders_Enum = 0
// Components: None
StandardCoders_STRING_UTF8 StandardCoders_Enum = 10
// Components: The key and value coder, in that order.
StandardCoders_KV StandardCoders_Enum = 1
// Components: None
StandardCoders_BOOL StandardCoders_Enum = 12
// Variable length Encodes a 64-bit integer.
// Components: None
StandardCoders_VARINT StandardCoders_Enum = 2
// Encodes the floating point value as a big-endian 64-bit integer
// according to the IEEE 754 double format bit layout.
// Components: None
StandardCoders_DOUBLE StandardCoders_Enum = 11
// Encodes an iterable of elements.
//
// The encoding for an iterable [e1...eN] of known length N is
//
// fixed32(N)
// encode(e1) encode(e2) encode(e3) ... encode(eN)
//
// If the length is unknown, it is batched up into groups of size b1..bM
// and encoded as
//
// fixed32(-1)
// varInt64(b1) encode(e1) encode(e2) ... encode(e_b1)
// varInt64(b2) encode(e_(b1+1)) encode(e_(b1+2)) ... encode(e_(b1+b2))
// ...
// varInt64(bM) encode(e_(N-bM+1)) encode(e_(N-bM+2)) ... encode(eN)
// varInt64(0)
//
// Components: Coder for a single element.
StandardCoders_ITERABLE StandardCoders_Enum = 3
// Encodes a timer containing a user key, a dynamic timer tag, a clear bit,
// a fire timestamp, a hold timestamp, the windows and the paneinfo.
// The encoding is represented as:
// user key - user defined key, uses the component coder.
// dynamic timer tag - a string which identifies a timer.
// windows - uses component coders.
// clear bit - a boolean set for clearing the timer.
// fire timestamp - a big endian 8 byte integer representing millis-since-epoch.
// The encoded representation is shifted so that the byte representation of
// negative values are lexicographically ordered before the byte representation
// of positive values. This is typically done by subtracting -9223372036854775808
// from the value and encoding it as a signed big endian integer. Example values:
//
// -9223372036854775808: 00 00 00 00 00 00 00 00
// -255: 7F FF FF FF FF FF FF 01
// -1: 7F FF FF FF FF FF FF FF
// 0: 80 00 00 00 00 00 00 00
// 1: 80 00 00 00 00 00 00 01
// 256: 80 00 00 00 00 00 01 00
// 9223372036854775807: FF FF FF FF FF FF FF FF
// hold timestamp - similar to the fire timestamp.
// paneinfo - similar to the paneinfo of the windowed_value.
// Components: Coder for the key and windows.
StandardCoders_TIMER StandardCoders_Enum = 4
// Components: None
StandardCoders_INTERVAL_WINDOW StandardCoders_Enum = 5
// Components: The coder to attach a length prefix to
StandardCoders_LENGTH_PREFIX StandardCoders_Enum = 6
// Components: None
StandardCoders_GLOBAL_WINDOW StandardCoders_Enum = 7
// Encodes an element, the windows it is in, the timestamp of the element,
// and the pane of the element. The encoding is represented as:
// timestamp windows pane element
// timestamp - A big endian 8 byte integer representing millis-since-epoch.
// The encoded representation is shifted so that the byte representation
// of negative values are lexicographically ordered before the byte
// representation of positive values. This is typically done by
// subtracting -9223372036854775808 from the value and encoding it as a
// signed big endian integer. Example values:
//
// -9223372036854775808: 00 00 00 00 00 00 00 00
// -255: 7F FF FF FF FF FF FF 01
// -1: 7F FF FF FF FF FF FF FF
// 0: 80 00 00 00 00 00 00 00
// 1: 80 00 00 00 00 00 00 01
// 256: 80 00 00 00 00 00 01 00
// 9223372036854775807: FF FF FF FF FF FF FF FF
//
// windows - The windows are encoded using the beam:coder:iterable:v1
// format, where the windows are encoded using the supplied window
// coder.
//
// pane - The first byte of the pane info determines which type of
// encoding is used, as well as the is_first, is_last, and timing
// fields. If this byte is bits [0 1 2 3 4 5 6 7], then:
// * bits [0 1 2 3] determine the encoding as follows:
// 0000 - The entire pane info is encoded as a single byte.
// The is_first, is_last, and timing fields are encoded
// as below, and the index and non-speculative index are
// both zero (and hence are not encoded here).
// 0001 - The pane info is encoded as this byte plus a single
// VarInt encoed integer representing the pane index. The
// non-speculative index can be derived as follows:
// -1 if the pane is early, otherwise equal to index.
// 0010 - The pane info is encoded as this byte plus two VarInt
// encoded integers representing the pane index and
// non-speculative index respectively.
// * bits [4 5] encode the timing as follows:
// 00 - early
// 01 - on time
// 10 - late
// 11 - unknown
// * bit 6 is 1 if this is the first pane, 0 otherwise.
// * bit 7 is 1 if this is the last pane, 0 otherwise.
//
// element - The element incoded using the supplied element coder.
//
// Components: The element coder and the window coder, in that order.
StandardCoders_WINDOWED_VALUE StandardCoders_Enum = 8
// A windowed value coder with parameterized timestamp, windows and pane info.
// Encodes an element with only the value of the windowed value.
// Decodes the value and assigns the parameterized timestamp, windows and pane info to the
// windowed value.
// Components: The element coder and the window coder, in that order
// The payload of this coder is an encoded windowed value using the
// beam:coder:windowed_value:v1 coder parameterized by a beam:coder:bytes:v1
// element coder and the window coder that this param_windowed_value coder uses.
StandardCoders_PARAM_WINDOWED_VALUE StandardCoders_Enum = 14
// Encodes an iterable of elements, some of which may be stored elsewhere.
//
// The encoding for a state-backed iterable is the same as that for
// an iterable, but the final varInt64(0) terminating the set of batches
// may instead be replaced by
//
// varInt64(-1)
// varInt64(len(token))
// token
//
// where token is an opaque byte string that can be used to fetch the
// remainder of the iterable (e.g. over the state API).
//
// Components: Coder for a single element.
// Experimental.
StandardCoders_STATE_BACKED_ITERABLE StandardCoders_Enum = 9
// Encodes a "row", an element with a known schema, defined by an
// instance of Schema from schema.proto.
//
// A row is encoded as the concatenation of:
// - The number of attributes in the schema, encoded with
// beam:coder:varint:v1. This makes it possible to detect certain
// allowed schema changes (appending or removing columns) in
// long-running streaming pipelines.
// - A byte array representing a packed bitset indicating null fields (a
// 1 indicating a null) encoded with beam:coder:bytes:v1. The unused
// bits in the last byte must be set to 0. If there are no nulls an
// empty byte array is encoded.
// The two-byte bitset (not including the lenghth-prefix) for the row
// [NULL, 0, 0, 0, NULL, 0, 0, NULL, 0, NULL] would be
// [0b10010001, 0b00000010]
// - An encoding for each non-null field, concatenated together.
//
// Schema types are mapped to coders as follows:
// AtomicType:
// BYTE: not yet a standard coder (BEAM-7996)
// INT16: not yet a standard coder (BEAM-7996)
// INT32: beam:coder:varint:v1
// INT64: beam:coder:varint:v1
// FLOAT: not yet a standard coder (BEAM-7996)
// DOUBLE: beam:coder:double:v1
// STRING: beam:coder:string_utf8:v1
// BOOLEAN: beam:coder:bool:v1
// BYTES: beam:coder:bytes:v1
// ArrayType: beam:coder:iterable:v1 (always has a known length)
// MapType: not yet a standard coder (BEAM-7996)
// RowType: beam:coder:row:v1
// LogicalType: Uses the coder for its representation.
//
// The payload for RowCoder is an instance of Schema.
// Components: None
// Experimental.
StandardCoders_ROW StandardCoders_Enum = 13
)
var StandardCoders_Enum_name = map[int32]string{
0: "BYTES",
10: "STRING_UTF8",
1: "KV",
12: "BOOL",
2: "VARINT",
11: "DOUBLE",
3: "ITERABLE",
4: "TIMER",
5: "INTERVAL_WINDOW",
6: "LENGTH_PREFIX",
7: "GLOBAL_WINDOW",
8: "WINDOWED_VALUE",
14: "PARAM_WINDOWED_VALUE",
9: "STATE_BACKED_ITERABLE",
13: "ROW",
}
var StandardCoders_Enum_value = map[string]int32{
"BYTES": 0,
"STRING_UTF8": 10,
"KV": 1,
"BOOL": 12,
"VARINT": 2,
"DOUBLE": 11,
"ITERABLE": 3,
"TIMER": 4,
"INTERVAL_WINDOW": 5,
"LENGTH_PREFIX": 6,
"GLOBAL_WINDOW": 7,
"WINDOWED_VALUE": 8,
"PARAM_WINDOWED_VALUE": 14,
"STATE_BACKED_ITERABLE": 9,
"ROW": 13,
}
func (x StandardCoders_Enum) String() string {
return proto.EnumName(StandardCoders_Enum_name, int32(x))
}
func (StandardCoders_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{23, 0}
}
type MergeStatus_Enum int32
const (
MergeStatus_UNSPECIFIED MergeStatus_Enum = 0
// The WindowFn does not require merging.
// Examples: global window, FixedWindows, SlidingWindows
MergeStatus_NON_MERGING MergeStatus_Enum = 1
// The WindowFn is merging and the PCollection has not had merging
// performed.
// Example: Sessions prior to a GroupByKey
MergeStatus_NEEDS_MERGE MergeStatus_Enum = 2
// The WindowFn is merging and the PCollection has had merging occur
// already.
// Example: Sessions after a GroupByKey
MergeStatus_ALREADY_MERGED MergeStatus_Enum = 3
)
var MergeStatus_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "NON_MERGING",
2: "NEEDS_MERGE",
3: "ALREADY_MERGED",
}
var MergeStatus_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"NON_MERGING": 1,
"NEEDS_MERGE": 2,
"ALREADY_MERGED": 3,
}
func (x MergeStatus_Enum) String() string {
return proto.EnumName(MergeStatus_Enum_name, int32(x))
}
func (MergeStatus_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{25, 0}
}
type AccumulationMode_Enum int32
const (
AccumulationMode_UNSPECIFIED AccumulationMode_Enum = 0
// The aggregation is discarded when it is output
AccumulationMode_DISCARDING AccumulationMode_Enum = 1
// The aggregation is accumulated across outputs
AccumulationMode_ACCUMULATING AccumulationMode_Enum = 2
// The aggregation emits retractions when it is output
AccumulationMode_RETRACTING AccumulationMode_Enum = 3
)
var AccumulationMode_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "DISCARDING",
2: "ACCUMULATING",
3: "RETRACTING",
}
var AccumulationMode_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"DISCARDING": 1,
"ACCUMULATING": 2,
"RETRACTING": 3,
}
func (x AccumulationMode_Enum) String() string {
return proto.EnumName(AccumulationMode_Enum_name, int32(x))
}
func (AccumulationMode_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{26, 0}
}
type ClosingBehavior_Enum int32
const (
ClosingBehavior_UNSPECIFIED ClosingBehavior_Enum = 0
// Emit output when a window expires, whether or not there has been
// any new data since the last output.
ClosingBehavior_EMIT_ALWAYS ClosingBehavior_Enum = 1
// Only emit output when new data has arrives since the last output
ClosingBehavior_EMIT_IF_NONEMPTY ClosingBehavior_Enum = 2
)
var ClosingBehavior_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "EMIT_ALWAYS",
2: "EMIT_IF_NONEMPTY",
}
var ClosingBehavior_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"EMIT_ALWAYS": 1,
"EMIT_IF_NONEMPTY": 2,
}
func (x ClosingBehavior_Enum) String() string {
return proto.EnumName(ClosingBehavior_Enum_name, int32(x))
}
func (ClosingBehavior_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{27, 0}
}
type OnTimeBehavior_Enum int32
const (
OnTimeBehavior_UNSPECIFIED OnTimeBehavior_Enum = 0
// Always fire the on-time pane. Even if there is no new data since
// the previous firing, an element will be produced.
OnTimeBehavior_FIRE_ALWAYS OnTimeBehavior_Enum = 1
// Only fire the on-time pane if there is new data since the previous firing.
OnTimeBehavior_FIRE_IF_NONEMPTY OnTimeBehavior_Enum = 2
)
var OnTimeBehavior_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "FIRE_ALWAYS",
2: "FIRE_IF_NONEMPTY",
}
var OnTimeBehavior_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"FIRE_ALWAYS": 1,
"FIRE_IF_NONEMPTY": 2,
}
func (x OnTimeBehavior_Enum) String() string {
return proto.EnumName(OnTimeBehavior_Enum_name, int32(x))
}
func (OnTimeBehavior_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{28, 0}
}
type OutputTime_Enum int32
const (
OutputTime_UNSPECIFIED OutputTime_Enum = 0
// The output has the timestamp of the end of the window.
OutputTime_END_OF_WINDOW OutputTime_Enum = 1
// The output has the latest timestamp of the input elements since
// the last output.
OutputTime_LATEST_IN_PANE OutputTime_Enum = 2
// The output has the earliest timestamp of the input elements since
// the last output.
OutputTime_EARLIEST_IN_PANE OutputTime_Enum = 3
)
var OutputTime_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "END_OF_WINDOW",
2: "LATEST_IN_PANE",
3: "EARLIEST_IN_PANE",
}
var OutputTime_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"END_OF_WINDOW": 1,
"LATEST_IN_PANE": 2,
"EARLIEST_IN_PANE": 3,
}
func (x OutputTime_Enum) String() string {
return proto.EnumName(OutputTime_Enum_name, int32(x))
}
func (OutputTime_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{29, 0}
}
type TimeDomain_Enum int32
const (
TimeDomain_UNSPECIFIED TimeDomain_Enum = 0
// Event time is time from the perspective of the data
TimeDomain_EVENT_TIME TimeDomain_Enum = 1
// Processing time is time from the perspective of the
// execution of your pipeline
TimeDomain_PROCESSING_TIME TimeDomain_Enum = 2
// Synchronized processing time is the minimum of the
// processing time of all pending elements.
//
// The "processing time" of an element refers to
// the local processing time at which it was emitted
TimeDomain_SYNCHRONIZED_PROCESSING_TIME TimeDomain_Enum = 3
)
var TimeDomain_Enum_name = map[int32]string{
0: "UNSPECIFIED",
1: "EVENT_TIME",
2: "PROCESSING_TIME",
3: "SYNCHRONIZED_PROCESSING_TIME",
}
var TimeDomain_Enum_value = map[string]int32{
"UNSPECIFIED": 0,
"EVENT_TIME": 1,
"PROCESSING_TIME": 2,
"SYNCHRONIZED_PROCESSING_TIME": 3,
}
func (x TimeDomain_Enum) String() string {
return proto.EnumName(TimeDomain_Enum_name, int32(x))
}
func (TimeDomain_Enum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{30, 0}
}
type StandardArtifacts_Types int32
const (
// A URN for locally-accessible artifact files.
// payload: ArtifactFilePayload
StandardArtifacts_FILE StandardArtifacts_Types = 0
// A URN for artifacts described by URLs.
// payload: ArtifactUrlPayload
StandardArtifacts_URL StandardArtifacts_Types = 1
// A URN for artifacts embedded in ArtifactInformation proto.
// payload: EmbeddedFilePayload.
StandardArtifacts_EMBEDDED StandardArtifacts_Types = 2
// A URN for Python artifacts hosted on PYPI.
// payload: PypiPayload
StandardArtifacts_PYPI StandardArtifacts_Types = 3
// A URN for Java artifacts hosted on a Maven repository.
// payload: MavenPayload
StandardArtifacts_MAVEN StandardArtifacts_Types = 4
// A URN for deferred artifacts.
// payload: DeferredArtifactPayload
StandardArtifacts_DEFERRED StandardArtifacts_Types = 5
)
var StandardArtifacts_Types_name = map[int32]string{
0: "FILE",
1: "URL",
2: "EMBEDDED",
3: "PYPI",
4: "MAVEN",
5: "DEFERRED",
}
var StandardArtifacts_Types_value = map[string]int32{
"FILE": 0,
"URL": 1,
"EMBEDDED": 2,
"PYPI": 3,
"MAVEN": 4,
"DEFERRED": 5,
}
func (x StandardArtifacts_Types) String() string {
return proto.EnumName(StandardArtifacts_Types_name, int32(x))
}
func (StandardArtifacts_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{34, 0}
}
type StandardArtifacts_Roles int32
const (
// A URN for staging-to role.
// payload: ArtifactStagingToRolePayload
StandardArtifacts_STAGING_TO StandardArtifacts_Roles = 0
)
var StandardArtifacts_Roles_name = map[int32]string{
0: "STAGING_TO",
}
var StandardArtifacts_Roles_value = map[string]int32{
"STAGING_TO": 0,
}
func (x StandardArtifacts_Roles) String() string {
return proto.EnumName(StandardArtifacts_Roles_name, int32(x))
}
func (StandardArtifacts_Roles) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{34, 1}
}
type StandardEnvironments_Environments int32
const (
StandardEnvironments_DOCKER StandardEnvironments_Environments = 0
StandardEnvironments_PROCESS StandardEnvironments_Environments = 1
StandardEnvironments_EXTERNAL StandardEnvironments_Environments = 2
)
var StandardEnvironments_Environments_name = map[int32]string{
0: "DOCKER",
1: "PROCESS",
2: "EXTERNAL",
}
var StandardEnvironments_Environments_value = map[string]int32{
"DOCKER": 0,
"PROCESS": 1,
"EXTERNAL": 2,
}
func (x StandardEnvironments_Environments) String() string {
return proto.EnumName(StandardEnvironments_Environments_name, int32(x))
}
func (StandardEnvironments_Environments) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_cf57597c3a9659a9, []int{44, 0}
}
type StandardProtocols_Enum int32
const (
// Indicates suport for progress reporting via the legacy Metrics proto.
StandardProtocols_LEGACY_PROGRESS_REPORTING StandardProtocols_Enum = 0
// Indicates suport for progress reporting via the new MonitoringInfo proto.
StandardProtocols_PROGRESS_REPORTING StandardProtocols_Enum = 1
// Indicates suport for worker status protocol defined at
// https://s.apache.org/beam-fn-api-harness-status.
StandardProtocols_WORKER_STATUS StandardProtocols_Enum = 2
// Indicates this SDK can take advantage of multiple cores when processing
// concurrent process bundle requests. (Note that all SDKs must process
// an unbounded number of concurrent process bundle requests; this capability
// simply indicates this SDK can actually parallelize the work across multiple
// cores.
StandardProtocols_MULTI_CORE_BUNDLE_PROCESSING StandardProtocols_Enum = 3
)
var StandardProtocols_Enum_name = map[int32]string{