/
environment.pb.go
executable file
·2174 lines (1961 loc) · 92.6 KB
/
environment.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
// Copyright 2022 Google LLC
//
// Licensed 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/dataflow/v1beta3/environment.proto
package dataflowpb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
structpb "google.golang.org/protobuf/types/known/structpb"
)
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)
)
// Specifies the processing model used by a
// [google.dataflow.v1beta3.Job], which determines the way the Job is
// managed by the Cloud Dataflow service (how workers are scheduled, how
// inputs are sharded, etc).
type JobType int32
const (
// The type of the job is unspecified, or unknown.
JobType_JOB_TYPE_UNKNOWN JobType = 0
// A batch job with a well-defined end point: data is read, data is
// processed, data is written, and the job is done.
JobType_JOB_TYPE_BATCH JobType = 1
// A continuously streaming job with no end: data is read,
// processed, and written continuously.
JobType_JOB_TYPE_STREAMING JobType = 2
)
// Enum value maps for JobType.
var (
JobType_name = map[int32]string{
0: "JOB_TYPE_UNKNOWN",
1: "JOB_TYPE_BATCH",
2: "JOB_TYPE_STREAMING",
}
JobType_value = map[string]int32{
"JOB_TYPE_UNKNOWN": 0,
"JOB_TYPE_BATCH": 1,
"JOB_TYPE_STREAMING": 2,
}
)
func (x JobType) Enum() *JobType {
p := new(JobType)
*p = x
return p
}
func (x JobType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (JobType) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[0].Descriptor()
}
func (JobType) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[0]
}
func (x JobType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use JobType.Descriptor instead.
func (JobType) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{0}
}
// Specifies the resource to optimize for in Flexible Resource Scheduling.
type FlexResourceSchedulingGoal int32
const (
// Run in the default mode.
FlexResourceSchedulingGoal_FLEXRS_UNSPECIFIED FlexResourceSchedulingGoal = 0
// Optimize for lower execution time.
FlexResourceSchedulingGoal_FLEXRS_SPEED_OPTIMIZED FlexResourceSchedulingGoal = 1
// Optimize for lower cost.
FlexResourceSchedulingGoal_FLEXRS_COST_OPTIMIZED FlexResourceSchedulingGoal = 2
)
// Enum value maps for FlexResourceSchedulingGoal.
var (
FlexResourceSchedulingGoal_name = map[int32]string{
0: "FLEXRS_UNSPECIFIED",
1: "FLEXRS_SPEED_OPTIMIZED",
2: "FLEXRS_COST_OPTIMIZED",
}
FlexResourceSchedulingGoal_value = map[string]int32{
"FLEXRS_UNSPECIFIED": 0,
"FLEXRS_SPEED_OPTIMIZED": 1,
"FLEXRS_COST_OPTIMIZED": 2,
}
)
func (x FlexResourceSchedulingGoal) Enum() *FlexResourceSchedulingGoal {
p := new(FlexResourceSchedulingGoal)
*p = x
return p
}
func (x FlexResourceSchedulingGoal) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FlexResourceSchedulingGoal) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[1].Descriptor()
}
func (FlexResourceSchedulingGoal) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[1]
}
func (x FlexResourceSchedulingGoal) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FlexResourceSchedulingGoal.Descriptor instead.
func (FlexResourceSchedulingGoal) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{1}
}
// Specifies what happens to a resource when a Cloud Dataflow
// [google.dataflow.v1beta3.Job][google.dataflow.v1beta3.Job] has completed.
type TeardownPolicy int32
const (
// The teardown policy isn't specified, or is unknown.
TeardownPolicy_TEARDOWN_POLICY_UNKNOWN TeardownPolicy = 0
// Always teardown the resource.
TeardownPolicy_TEARDOWN_ALWAYS TeardownPolicy = 1
// Teardown the resource on success. This is useful for debugging
// failures.
TeardownPolicy_TEARDOWN_ON_SUCCESS TeardownPolicy = 2
// Never teardown the resource. This is useful for debugging and
// development.
TeardownPolicy_TEARDOWN_NEVER TeardownPolicy = 3
)
// Enum value maps for TeardownPolicy.
var (
TeardownPolicy_name = map[int32]string{
0: "TEARDOWN_POLICY_UNKNOWN",
1: "TEARDOWN_ALWAYS",
2: "TEARDOWN_ON_SUCCESS",
3: "TEARDOWN_NEVER",
}
TeardownPolicy_value = map[string]int32{
"TEARDOWN_POLICY_UNKNOWN": 0,
"TEARDOWN_ALWAYS": 1,
"TEARDOWN_ON_SUCCESS": 2,
"TEARDOWN_NEVER": 3,
}
)
func (x TeardownPolicy) Enum() *TeardownPolicy {
p := new(TeardownPolicy)
*p = x
return p
}
func (x TeardownPolicy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TeardownPolicy) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[2].Descriptor()
}
func (TeardownPolicy) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[2]
}
func (x TeardownPolicy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TeardownPolicy.Descriptor instead.
func (TeardownPolicy) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{2}
}
// The default set of packages to be staged on a pool of workers.
type DefaultPackageSet int32
const (
// The default set of packages to stage is unknown, or unspecified.
DefaultPackageSet_DEFAULT_PACKAGE_SET_UNKNOWN DefaultPackageSet = 0
// Indicates that no packages should be staged at the worker unless
// explicitly specified by the job.
DefaultPackageSet_DEFAULT_PACKAGE_SET_NONE DefaultPackageSet = 1
// Stage packages typically useful to workers written in Java.
DefaultPackageSet_DEFAULT_PACKAGE_SET_JAVA DefaultPackageSet = 2
// Stage packages typically useful to workers written in Python.
DefaultPackageSet_DEFAULT_PACKAGE_SET_PYTHON DefaultPackageSet = 3
)
// Enum value maps for DefaultPackageSet.
var (
DefaultPackageSet_name = map[int32]string{
0: "DEFAULT_PACKAGE_SET_UNKNOWN",
1: "DEFAULT_PACKAGE_SET_NONE",
2: "DEFAULT_PACKAGE_SET_JAVA",
3: "DEFAULT_PACKAGE_SET_PYTHON",
}
DefaultPackageSet_value = map[string]int32{
"DEFAULT_PACKAGE_SET_UNKNOWN": 0,
"DEFAULT_PACKAGE_SET_NONE": 1,
"DEFAULT_PACKAGE_SET_JAVA": 2,
"DEFAULT_PACKAGE_SET_PYTHON": 3,
}
)
func (x DefaultPackageSet) Enum() *DefaultPackageSet {
p := new(DefaultPackageSet)
*p = x
return p
}
func (x DefaultPackageSet) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DefaultPackageSet) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[3].Descriptor()
}
func (DefaultPackageSet) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[3]
}
func (x DefaultPackageSet) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DefaultPackageSet.Descriptor instead.
func (DefaultPackageSet) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{3}
}
// Specifies the algorithm used to determine the number of worker
// processes to run at any given point in time, based on the amount of
// data left to process, the number of workers, and how quickly
// existing workers are processing data.
type AutoscalingAlgorithm int32
const (
// The algorithm is unknown, or unspecified.
AutoscalingAlgorithm_AUTOSCALING_ALGORITHM_UNKNOWN AutoscalingAlgorithm = 0
// Disable autoscaling.
AutoscalingAlgorithm_AUTOSCALING_ALGORITHM_NONE AutoscalingAlgorithm = 1
// Increase worker count over time to reduce job execution time.
AutoscalingAlgorithm_AUTOSCALING_ALGORITHM_BASIC AutoscalingAlgorithm = 2
)
// Enum value maps for AutoscalingAlgorithm.
var (
AutoscalingAlgorithm_name = map[int32]string{
0: "AUTOSCALING_ALGORITHM_UNKNOWN",
1: "AUTOSCALING_ALGORITHM_NONE",
2: "AUTOSCALING_ALGORITHM_BASIC",
}
AutoscalingAlgorithm_value = map[string]int32{
"AUTOSCALING_ALGORITHM_UNKNOWN": 0,
"AUTOSCALING_ALGORITHM_NONE": 1,
"AUTOSCALING_ALGORITHM_BASIC": 2,
}
)
func (x AutoscalingAlgorithm) Enum() *AutoscalingAlgorithm {
p := new(AutoscalingAlgorithm)
*p = x
return p
}
func (x AutoscalingAlgorithm) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AutoscalingAlgorithm) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[4].Descriptor()
}
func (AutoscalingAlgorithm) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[4]
}
func (x AutoscalingAlgorithm) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AutoscalingAlgorithm.Descriptor instead.
func (AutoscalingAlgorithm) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{4}
}
// Specifies how IP addresses should be allocated to the worker machines.
type WorkerIPAddressConfiguration int32
const (
// The configuration is unknown, or unspecified.
WorkerIPAddressConfiguration_WORKER_IP_UNSPECIFIED WorkerIPAddressConfiguration = 0
// Workers should have public IP addresses.
WorkerIPAddressConfiguration_WORKER_IP_PUBLIC WorkerIPAddressConfiguration = 1
// Workers should have private IP addresses.
WorkerIPAddressConfiguration_WORKER_IP_PRIVATE WorkerIPAddressConfiguration = 2
)
// Enum value maps for WorkerIPAddressConfiguration.
var (
WorkerIPAddressConfiguration_name = map[int32]string{
0: "WORKER_IP_UNSPECIFIED",
1: "WORKER_IP_PUBLIC",
2: "WORKER_IP_PRIVATE",
}
WorkerIPAddressConfiguration_value = map[string]int32{
"WORKER_IP_UNSPECIFIED": 0,
"WORKER_IP_PUBLIC": 1,
"WORKER_IP_PRIVATE": 2,
}
)
func (x WorkerIPAddressConfiguration) Enum() *WorkerIPAddressConfiguration {
p := new(WorkerIPAddressConfiguration)
*p = x
return p
}
func (x WorkerIPAddressConfiguration) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WorkerIPAddressConfiguration) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[5].Descriptor()
}
func (WorkerIPAddressConfiguration) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[5]
}
func (x WorkerIPAddressConfiguration) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WorkerIPAddressConfiguration.Descriptor instead.
func (WorkerIPAddressConfiguration) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{5}
}
// Specifies the shuffle mode used by a
// [google.dataflow.v1beta3.Job], which determines the approach data is shuffled
// during processing. More details in:
// https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle
type ShuffleMode int32
const (
// Shuffle mode information is not available.
ShuffleMode_SHUFFLE_MODE_UNSPECIFIED ShuffleMode = 0
// Shuffle is done on the worker VMs.
ShuffleMode_VM_BASED ShuffleMode = 1
// Shuffle is done on the service side.
ShuffleMode_SERVICE_BASED ShuffleMode = 2
)
// Enum value maps for ShuffleMode.
var (
ShuffleMode_name = map[int32]string{
0: "SHUFFLE_MODE_UNSPECIFIED",
1: "VM_BASED",
2: "SERVICE_BASED",
}
ShuffleMode_value = map[string]int32{
"SHUFFLE_MODE_UNSPECIFIED": 0,
"VM_BASED": 1,
"SERVICE_BASED": 2,
}
)
func (x ShuffleMode) Enum() *ShuffleMode {
p := new(ShuffleMode)
*p = x
return p
}
func (x ShuffleMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ShuffleMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_dataflow_v1beta3_environment_proto_enumTypes[6].Descriptor()
}
func (ShuffleMode) Type() protoreflect.EnumType {
return &file_google_dataflow_v1beta3_environment_proto_enumTypes[6]
}
func (x ShuffleMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ShuffleMode.Descriptor instead.
func (ShuffleMode) EnumDescriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{6}
}
// Describes the environment in which a Dataflow Job runs.
type Environment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The prefix of the resources the system should use for temporary
// storage. The system will append the suffix "/temp-{JOBNAME} to
// this resource prefix, where {JOBNAME} is the value of the
// job_name field. The resulting bucket and object prefix is used
// as the prefix of the resources used to store temporary data
// needed during the job execution. NOTE: This will override the
// value in taskrunner_settings.
// The supported resource type is:
//
// Google Cloud Storage:
//
// storage.googleapis.com/{bucket}/{object}
// bucket.storage.googleapis.com/{object}
TempStoragePrefix string `protobuf:"bytes,1,opt,name=temp_storage_prefix,json=tempStoragePrefix,proto3" json:"temp_storage_prefix,omitempty"`
// The type of cluster manager API to use. If unknown or
// unspecified, the service will attempt to choose a reasonable
// default. This should be in the form of the API service name,
// e.g. "compute.googleapis.com".
ClusterManagerApiService string `protobuf:"bytes,2,opt,name=cluster_manager_api_service,json=clusterManagerApiService,proto3" json:"cluster_manager_api_service,omitempty"`
// The list of experiments to enable. This field should be used for SDK
// related experiments and not for service related experiments. The proper
// field for service related experiments is service_options.
Experiments []string `protobuf:"bytes,3,rep,name=experiments,proto3" json:"experiments,omitempty"`
// The list of service options to enable. This field should be used for
// service related experiments only. These experiments, when graduating to GA,
// should be replaced by dedicated fields or become default (i.e. always on).
ServiceOptions []string `protobuf:"bytes,16,rep,name=service_options,json=serviceOptions,proto3" json:"service_options,omitempty"`
// If set, contains the Cloud KMS key identifier used to encrypt data
// at rest, AKA a Customer Managed Encryption Key (CMEK).
//
// Format:
//
// projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
ServiceKmsKeyName string `protobuf:"bytes,12,opt,name=service_kms_key_name,json=serviceKmsKeyName,proto3" json:"service_kms_key_name,omitempty"`
// The worker pools. At least one "harness" worker pool must be
// specified in order for the job to have workers.
WorkerPools []*WorkerPool `protobuf:"bytes,4,rep,name=worker_pools,json=workerPools,proto3" json:"worker_pools,omitempty"`
// A description of the process that generated the request.
UserAgent *structpb.Struct `protobuf:"bytes,5,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
// A structure describing which components and their versions of the service
// are required in order to run the job.
Version *structpb.Struct `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
// The dataset for the current project where various workflow
// related tables are stored.
//
// The supported resource type is:
//
// Google BigQuery:
//
// bigquery.googleapis.com/{dataset}
Dataset string `protobuf:"bytes,7,opt,name=dataset,proto3" json:"dataset,omitempty"`
// The Cloud Dataflow SDK pipeline options specified by the user. These
// options are passed through the service and are used to recreate the
// SDK pipeline options on the worker in a language agnostic and platform
// independent way.
SdkPipelineOptions *structpb.Struct `protobuf:"bytes,8,opt,name=sdk_pipeline_options,json=sdkPipelineOptions,proto3" json:"sdk_pipeline_options,omitempty"`
// Experimental settings.
InternalExperiments *anypb.Any `protobuf:"bytes,9,opt,name=internal_experiments,json=internalExperiments,proto3" json:"internal_experiments,omitempty"`
// Identity to run virtual machines as. Defaults to the default account.
ServiceAccountEmail string `protobuf:"bytes,10,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
// Which Flexible Resource Scheduling mode to run in.
FlexResourceSchedulingGoal FlexResourceSchedulingGoal `protobuf:"varint,11,opt,name=flex_resource_scheduling_goal,json=flexResourceSchedulingGoal,proto3,enum=google.dataflow.v1beta3.FlexResourceSchedulingGoal" json:"flex_resource_scheduling_goal,omitempty"`
// The Compute Engine region
// (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
// which worker processing should occur, e.g. "us-west1". Mutually exclusive
// with worker_zone. If neither worker_region nor worker_zone is specified,
// default to the control plane's region.
WorkerRegion string `protobuf:"bytes,13,opt,name=worker_region,json=workerRegion,proto3" json:"worker_region,omitempty"`
// The Compute Engine zone
// (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
// which worker processing should occur, e.g. "us-west1-a". Mutually exclusive
// with worker_region. If neither worker_region nor worker_zone is specified,
// a zone in the control plane's region is chosen based on available capacity.
WorkerZone string `protobuf:"bytes,14,opt,name=worker_zone,json=workerZone,proto3" json:"worker_zone,omitempty"`
// Output only. The shuffle mode used for the job.
ShuffleMode ShuffleMode `protobuf:"varint,15,opt,name=shuffle_mode,json=shuffleMode,proto3,enum=google.dataflow.v1beta3.ShuffleMode" json:"shuffle_mode,omitempty"`
// Any debugging options to be supplied to the job.
DebugOptions *DebugOptions `protobuf:"bytes,17,opt,name=debug_options,json=debugOptions,proto3" json:"debug_options,omitempty"`
}
func (x *Environment) Reset() {
*x = Environment{}
if protoimpl.UnsafeEnabled {
mi := &file_google_dataflow_v1beta3_environment_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Environment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Environment) ProtoMessage() {}
func (x *Environment) ProtoReflect() protoreflect.Message {
mi := &file_google_dataflow_v1beta3_environment_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 Environment.ProtoReflect.Descriptor instead.
func (*Environment) Descriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{0}
}
func (x *Environment) GetTempStoragePrefix() string {
if x != nil {
return x.TempStoragePrefix
}
return ""
}
func (x *Environment) GetClusterManagerApiService() string {
if x != nil {
return x.ClusterManagerApiService
}
return ""
}
func (x *Environment) GetExperiments() []string {
if x != nil {
return x.Experiments
}
return nil
}
func (x *Environment) GetServiceOptions() []string {
if x != nil {
return x.ServiceOptions
}
return nil
}
func (x *Environment) GetServiceKmsKeyName() string {
if x != nil {
return x.ServiceKmsKeyName
}
return ""
}
func (x *Environment) GetWorkerPools() []*WorkerPool {
if x != nil {
return x.WorkerPools
}
return nil
}
func (x *Environment) GetUserAgent() *structpb.Struct {
if x != nil {
return x.UserAgent
}
return nil
}
func (x *Environment) GetVersion() *structpb.Struct {
if x != nil {
return x.Version
}
return nil
}
func (x *Environment) GetDataset() string {
if x != nil {
return x.Dataset
}
return ""
}
func (x *Environment) GetSdkPipelineOptions() *structpb.Struct {
if x != nil {
return x.SdkPipelineOptions
}
return nil
}
func (x *Environment) GetInternalExperiments() *anypb.Any {
if x != nil {
return x.InternalExperiments
}
return nil
}
func (x *Environment) GetServiceAccountEmail() string {
if x != nil {
return x.ServiceAccountEmail
}
return ""
}
func (x *Environment) GetFlexResourceSchedulingGoal() FlexResourceSchedulingGoal {
if x != nil {
return x.FlexResourceSchedulingGoal
}
return FlexResourceSchedulingGoal_FLEXRS_UNSPECIFIED
}
func (x *Environment) GetWorkerRegion() string {
if x != nil {
return x.WorkerRegion
}
return ""
}
func (x *Environment) GetWorkerZone() string {
if x != nil {
return x.WorkerZone
}
return ""
}
func (x *Environment) GetShuffleMode() ShuffleMode {
if x != nil {
return x.ShuffleMode
}
return ShuffleMode_SHUFFLE_MODE_UNSPECIFIED
}
func (x *Environment) GetDebugOptions() *DebugOptions {
if x != nil {
return x.DebugOptions
}
return nil
}
// The packages that must be installed in order for a worker to run the
// steps of the Cloud Dataflow job that will be assigned to its worker
// pool.
//
// This is the mechanism by which the Cloud Dataflow SDK causes code to
// be loaded onto the workers. For example, the Cloud Dataflow Java SDK
// might use this to install jars containing the user's code and all of the
// various dependencies (libraries, data files, etc.) required in order
// for that code to run.
type Package struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the package.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The resource to read the package from. The supported resource type is:
//
// Google Cloud Storage:
//
// storage.googleapis.com/{bucket}
// bucket.storage.googleapis.com/
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
}
func (x *Package) Reset() {
*x = Package{}
if protoimpl.UnsafeEnabled {
mi := &file_google_dataflow_v1beta3_environment_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Package) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Package) ProtoMessage() {}
func (x *Package) ProtoReflect() protoreflect.Message {
mi := &file_google_dataflow_v1beta3_environment_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 Package.ProtoReflect.Descriptor instead.
func (*Package) Descriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{1}
}
func (x *Package) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Package) GetLocation() string {
if x != nil {
return x.Location
}
return ""
}
// Describes the data disk used by a workflow job.
type Disk struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Size of disk in GB. If zero or unspecified, the service will
// attempt to choose a reasonable default.
SizeGb int32 `protobuf:"varint,1,opt,name=size_gb,json=sizeGb,proto3" json:"size_gb,omitempty"`
// Disk storage type, as defined by Google Compute Engine. This
// must be a disk type appropriate to the project and zone in which
// the workers will run. If unknown or unspecified, the service
// will attempt to choose a reasonable default.
//
// For example, the standard persistent disk type is a resource name
// typically ending in "pd-standard". If SSD persistent disks are
// available, the resource name typically ends with "pd-ssd". The
// actual valid values are defined the Google Compute Engine API,
// not by the Cloud Dataflow API; consult the Google Compute Engine
// documentation for more information about determining the set of
// available disk types for a particular project and zone.
//
// Google Compute Engine Disk types are local to a particular
// project in a particular zone, and so the resource name will
// typically look something like this:
//
// compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
DiskType string `protobuf:"bytes,2,opt,name=disk_type,json=diskType,proto3" json:"disk_type,omitempty"`
// Directory in a VM where disk is mounted.
MountPoint string `protobuf:"bytes,3,opt,name=mount_point,json=mountPoint,proto3" json:"mount_point,omitempty"`
}
func (x *Disk) Reset() {
*x = Disk{}
if protoimpl.UnsafeEnabled {
mi := &file_google_dataflow_v1beta3_environment_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Disk) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Disk) ProtoMessage() {}
func (x *Disk) ProtoReflect() protoreflect.Message {
mi := &file_google_dataflow_v1beta3_environment_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 Disk.ProtoReflect.Descriptor instead.
func (*Disk) Descriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{2}
}
func (x *Disk) GetSizeGb() int32 {
if x != nil {
return x.SizeGb
}
return 0
}
func (x *Disk) GetDiskType() string {
if x != nil {
return x.DiskType
}
return ""
}
func (x *Disk) GetMountPoint() string {
if x != nil {
return x.MountPoint
}
return ""
}
// Provides data to pass through to the worker harness.
type WorkerSettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The base URL for accessing Google Cloud APIs.
//
// When workers access Google Cloud APIs, they logically do so via
// relative URLs. If this field is specified, it supplies the base
// URL to use for resolving these relative URLs. The normative
// algorithm used is defined by RFC 1808, "Relative Uniform Resource
// Locators".
//
// If not specified, the default value is "http://www.googleapis.com/"
BaseUrl string `protobuf:"bytes,1,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
// Whether to send work progress updates to the service.
ReportingEnabled bool `protobuf:"varint,2,opt,name=reporting_enabled,json=reportingEnabled,proto3" json:"reporting_enabled,omitempty"`
// The Cloud Dataflow service path relative to the root URL, for example,
// "dataflow/v1b3/projects".
ServicePath string `protobuf:"bytes,3,opt,name=service_path,json=servicePath,proto3" json:"service_path,omitempty"`
// The Shuffle service path relative to the root URL, for example,
// "shuffle/v1beta1".
ShuffleServicePath string `protobuf:"bytes,4,opt,name=shuffle_service_path,json=shuffleServicePath,proto3" json:"shuffle_service_path,omitempty"`
// The ID of the worker running this pipeline.
WorkerId string `protobuf:"bytes,5,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"`
// The prefix of the resources the system should use for temporary
// storage.
//
// The supported resource type is:
//
// Google Cloud Storage:
//
// storage.googleapis.com/{bucket}/{object}
// bucket.storage.googleapis.com/{object}
TempStoragePrefix string `protobuf:"bytes,6,opt,name=temp_storage_prefix,json=tempStoragePrefix,proto3" json:"temp_storage_prefix,omitempty"`
}
func (x *WorkerSettings) Reset() {
*x = WorkerSettings{}
if protoimpl.UnsafeEnabled {
mi := &file_google_dataflow_v1beta3_environment_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WorkerSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkerSettings) ProtoMessage() {}
func (x *WorkerSettings) ProtoReflect() protoreflect.Message {
mi := &file_google_dataflow_v1beta3_environment_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 WorkerSettings.ProtoReflect.Descriptor instead.
func (*WorkerSettings) Descriptor() ([]byte, []int) {
return file_google_dataflow_v1beta3_environment_proto_rawDescGZIP(), []int{3}
}
func (x *WorkerSettings) GetBaseUrl() string {
if x != nil {
return x.BaseUrl
}
return ""
}
func (x *WorkerSettings) GetReportingEnabled() bool {
if x != nil {
return x.ReportingEnabled
}
return false
}
func (x *WorkerSettings) GetServicePath() string {
if x != nil {
return x.ServicePath
}
return ""
}
func (x *WorkerSettings) GetShuffleServicePath() string {
if x != nil {
return x.ShuffleServicePath
}
return ""
}
func (x *WorkerSettings) GetWorkerId() string {
if x != nil {
return x.WorkerId
}
return ""
}
func (x *WorkerSettings) GetTempStoragePrefix() string {
if x != nil {
return x.TempStoragePrefix
}
return ""
}
// Taskrunner configuration settings.
type TaskRunnerSettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The UNIX user ID on the worker VM to use for tasks launched by
// taskrunner; e.g. "root".
TaskUser string `protobuf:"bytes,1,opt,name=task_user,json=taskUser,proto3" json:"task_user,omitempty"`
// The UNIX group ID on the worker VM to use for tasks launched by
// taskrunner; e.g. "wheel".
TaskGroup string `protobuf:"bytes,2,opt,name=task_group,json=taskGroup,proto3" json:"task_group,omitempty"`
// The OAuth2 scopes to be requested by the taskrunner in order to
// access the Cloud Dataflow API.
OauthScopes []string `protobuf:"bytes,3,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
// The base URL for the taskrunner to use when accessing Google Cloud APIs.
//
// When workers access Google Cloud APIs, they logically do so via
// relative URLs. If this field is specified, it supplies the base
// URL to use for resolving these relative URLs. The normative
// algorithm used is defined by RFC 1808, "Relative Uniform Resource
// Locators".
//
// If not specified, the default value is "http://www.googleapis.com/"
BaseUrl string `protobuf:"bytes,4,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
// The API version of endpoint, e.g. "v1b3"
DataflowApiVersion string `protobuf:"bytes,5,opt,name=dataflow_api_version,json=dataflowApiVersion,proto3" json:"dataflow_api_version,omitempty"`
// The settings to pass to the parallel worker harness.
ParallelWorkerSettings *WorkerSettings `protobuf:"bytes,6,opt,name=parallel_worker_settings,json=parallelWorkerSettings,proto3" json:"parallel_worker_settings,omitempty"`
// The location on the worker for task-specific subdirectories.
BaseTaskDir string `protobuf:"bytes,7,opt,name=base_task_dir,json=baseTaskDir,proto3" json:"base_task_dir,omitempty"`
// Whether to continue taskrunner if an exception is hit.
ContinueOnException bool `protobuf:"varint,8,opt,name=continue_on_exception,json=continueOnException,proto3" json:"continue_on_exception,omitempty"`
// Whether to send taskrunner log info to Google Compute Engine VM serial
// console.
LogToSerialconsole bool `protobuf:"varint,9,opt,name=log_to_serialconsole,json=logToSerialconsole,proto3" json:"log_to_serialconsole,omitempty"`
// Whether to also send taskrunner log info to stderr.
Alsologtostderr bool `protobuf:"varint,10,opt,name=alsologtostderr,proto3" json:"alsologtostderr,omitempty"`
// Indicates where to put logs. If this is not specified, the logs
// will not be uploaded.
//
// The supported resource type is:
//
// Google Cloud Storage:
//
// storage.googleapis.com/{bucket}/{object}
// bucket.storage.googleapis.com/{object}
LogUploadLocation string `protobuf:"bytes,11,opt,name=log_upload_location,json=logUploadLocation,proto3" json:"log_upload_location,omitempty"`
// The directory on the VM to store logs.
LogDir string `protobuf:"bytes,12,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"`
// The prefix of the resources the taskrunner should use for
// temporary storage.
//
// The supported resource type is:
//
// Google Cloud Storage:
//
// storage.googleapis.com/{bucket}/{object}
// bucket.storage.googleapis.com/{object}
TempStoragePrefix string `protobuf:"bytes,13,opt,name=temp_storage_prefix,json=tempStoragePrefix,proto3" json:"temp_storage_prefix,omitempty"`
// The command to launch the worker harness.