-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
shared.pb.go
executable file
·2397 lines (2163 loc) · 102 KB
/
shared.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 2023 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/cloud/dataproc/v1/shared.proto
package dataprocpb
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"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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)
)
// Cluster components that can be activated.
type Component int32
const (
// Unspecified component. Specifying this will cause Cluster creation to fail.
Component_COMPONENT_UNSPECIFIED Component = 0
// The Anaconda python distribution. The Anaconda component is not supported
// in the Dataproc [2.0 image]
// (/https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-release-2.0).
// The 2.0 image is pre-installed with Miniconda.
Component_ANACONDA Component = 5
// Docker
Component_DOCKER Component = 13
// The Druid query engine. (alpha)
Component_DRUID Component = 9
// Flink
Component_FLINK Component = 14
// HBase. (beta)
Component_HBASE Component = 11
// The Hive Web HCatalog (the REST service for accessing HCatalog).
Component_HIVE_WEBHCAT Component = 3
// Hudi.
Component_HUDI Component = 18
// The Jupyter Notebook.
Component_JUPYTER Component = 1
// The Presto query engine.
Component_PRESTO Component = 6
// The Trino query engine.
Component_TRINO Component = 17
// The Ranger service.
Component_RANGER Component = 12
// The Solr service.
Component_SOLR Component = 10
// The Zeppelin notebook.
Component_ZEPPELIN Component = 4
// The Zookeeper service.
Component_ZOOKEEPER Component = 8
)
// Enum value maps for Component.
var (
Component_name = map[int32]string{
0: "COMPONENT_UNSPECIFIED",
5: "ANACONDA",
13: "DOCKER",
9: "DRUID",
14: "FLINK",
11: "HBASE",
3: "HIVE_WEBHCAT",
18: "HUDI",
1: "JUPYTER",
6: "PRESTO",
17: "TRINO",
12: "RANGER",
10: "SOLR",
4: "ZEPPELIN",
8: "ZOOKEEPER",
}
Component_value = map[string]int32{
"COMPONENT_UNSPECIFIED": 0,
"ANACONDA": 5,
"DOCKER": 13,
"DRUID": 9,
"FLINK": 14,
"HBASE": 11,
"HIVE_WEBHCAT": 3,
"HUDI": 18,
"JUPYTER": 1,
"PRESTO": 6,
"TRINO": 17,
"RANGER": 12,
"SOLR": 10,
"ZEPPELIN": 4,
"ZOOKEEPER": 8,
}
)
func (x Component) Enum() *Component {
p := new(Component)
*p = x
return p
}
func (x Component) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Component) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dataproc_v1_shared_proto_enumTypes[0].Descriptor()
}
func (Component) Type() protoreflect.EnumType {
return &file_google_cloud_dataproc_v1_shared_proto_enumTypes[0]
}
func (x Component) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Component.Descriptor instead.
func (Component) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{0}
}
// Actions in response to failure of a resource associated with a cluster.
type FailureAction int32
const (
// When FailureAction is unspecified, failure action defaults to NO_ACTION.
FailureAction_FAILURE_ACTION_UNSPECIFIED FailureAction = 0
// Take no action on failure to create a cluster resource. NO_ACTION is the
// default.
FailureAction_NO_ACTION FailureAction = 1
// Delete the failed cluster resource.
FailureAction_DELETE FailureAction = 2
)
// Enum value maps for FailureAction.
var (
FailureAction_name = map[int32]string{
0: "FAILURE_ACTION_UNSPECIFIED",
1: "NO_ACTION",
2: "DELETE",
}
FailureAction_value = map[string]int32{
"FAILURE_ACTION_UNSPECIFIED": 0,
"NO_ACTION": 1,
"DELETE": 2,
}
)
func (x FailureAction) Enum() *FailureAction {
p := new(FailureAction)
*p = x
return p
}
func (x FailureAction) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FailureAction) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dataproc_v1_shared_proto_enumTypes[1].Descriptor()
}
func (FailureAction) Type() protoreflect.EnumType {
return &file_google_cloud_dataproc_v1_shared_proto_enumTypes[1]
}
func (x FailureAction) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FailureAction.Descriptor instead.
func (FailureAction) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{1}
}
// `Role` specifies the tasks that will run on the node pool. Roles can be
// specific to workloads. Exactly one
// [GkeNodePoolTarget][google.cloud.dataproc.v1.GkeNodePoolTarget] within the
// virtual cluster must have the `DEFAULT` role, which is used to run all
// workloads that are not associated with a node pool.
type GkeNodePoolTarget_Role int32
const (
// Role is unspecified.
GkeNodePoolTarget_ROLE_UNSPECIFIED GkeNodePoolTarget_Role = 0
// At least one node pool must have the `DEFAULT` role.
// Work assigned to a role that is not associated with a node pool
// is assigned to the node pool with the `DEFAULT` role. For example,
// work assigned to the `CONTROLLER` role will be assigned to the node pool
// with the `DEFAULT` role if no node pool has the `CONTROLLER` role.
GkeNodePoolTarget_DEFAULT GkeNodePoolTarget_Role = 1
// Run work associated with the Dataproc control plane (for example,
// controllers and webhooks). Very low resource requirements.
GkeNodePoolTarget_CONTROLLER GkeNodePoolTarget_Role = 2
// Run work associated with a Spark driver of a job.
GkeNodePoolTarget_SPARK_DRIVER GkeNodePoolTarget_Role = 3
// Run work associated with a Spark executor of a job.
GkeNodePoolTarget_SPARK_EXECUTOR GkeNodePoolTarget_Role = 4
)
// Enum value maps for GkeNodePoolTarget_Role.
var (
GkeNodePoolTarget_Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "DEFAULT",
2: "CONTROLLER",
3: "SPARK_DRIVER",
4: "SPARK_EXECUTOR",
}
GkeNodePoolTarget_Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"DEFAULT": 1,
"CONTROLLER": 2,
"SPARK_DRIVER": 3,
"SPARK_EXECUTOR": 4,
}
)
func (x GkeNodePoolTarget_Role) Enum() *GkeNodePoolTarget_Role {
p := new(GkeNodePoolTarget_Role)
*p = x
return p
}
func (x GkeNodePoolTarget_Role) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (GkeNodePoolTarget_Role) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dataproc_v1_shared_proto_enumTypes[2].Descriptor()
}
func (GkeNodePoolTarget_Role) Type() protoreflect.EnumType {
return &file_google_cloud_dataproc_v1_shared_proto_enumTypes[2]
}
func (x GkeNodePoolTarget_Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use GkeNodePoolTarget_Role.Descriptor instead.
func (GkeNodePoolTarget_Role) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{11, 0}
}
// Runtime configuration for a workload.
type RuntimeConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Version of the batch runtime.
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Optional. Optional custom container image for the job runtime environment.
// If not specified, a default container image will be used.
ContainerImage string `protobuf:"bytes,2,opt,name=container_image,json=containerImage,proto3" json:"container_image,omitempty"`
// Optional. A mapping of property names to values, which are used to
// configure workload execution.
Properties map[string]string `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Dependency repository configuration.
RepositoryConfig *RepositoryConfig `protobuf:"bytes,5,opt,name=repository_config,json=repositoryConfig,proto3" json:"repository_config,omitempty"`
}
func (x *RuntimeConfig) Reset() {
*x = RuntimeConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RuntimeConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RuntimeConfig) ProtoMessage() {}
func (x *RuntimeConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 RuntimeConfig.ProtoReflect.Descriptor instead.
func (*RuntimeConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{0}
}
func (x *RuntimeConfig) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *RuntimeConfig) GetContainerImage() string {
if x != nil {
return x.ContainerImage
}
return ""
}
func (x *RuntimeConfig) GetProperties() map[string]string {
if x != nil {
return x.Properties
}
return nil
}
func (x *RuntimeConfig) GetRepositoryConfig() *RepositoryConfig {
if x != nil {
return x.RepositoryConfig
}
return nil
}
// Environment configuration for a workload.
type EnvironmentConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Execution configuration for a workload.
ExecutionConfig *ExecutionConfig `protobuf:"bytes,1,opt,name=execution_config,json=executionConfig,proto3" json:"execution_config,omitempty"`
// Optional. Peripherals configuration that workload has access to.
PeripheralsConfig *PeripheralsConfig `protobuf:"bytes,2,opt,name=peripherals_config,json=peripheralsConfig,proto3" json:"peripherals_config,omitempty"`
}
func (x *EnvironmentConfig) Reset() {
*x = EnvironmentConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EnvironmentConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentConfig) ProtoMessage() {}
func (x *EnvironmentConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 EnvironmentConfig.ProtoReflect.Descriptor instead.
func (*EnvironmentConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{1}
}
func (x *EnvironmentConfig) GetExecutionConfig() *ExecutionConfig {
if x != nil {
return x.ExecutionConfig
}
return nil
}
func (x *EnvironmentConfig) GetPeripheralsConfig() *PeripheralsConfig {
if x != nil {
return x.PeripheralsConfig
}
return nil
}
// Execution configuration for a workload.
type ExecutionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Service account that used to execute workload.
ServiceAccount string `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// Network configuration for workload execution.
//
// Types that are assignable to Network:
//
// *ExecutionConfig_NetworkUri
// *ExecutionConfig_SubnetworkUri
Network isExecutionConfig_Network `protobuf_oneof:"network"`
// Optional. Tags used for network traffic control.
NetworkTags []string `protobuf:"bytes,6,rep,name=network_tags,json=networkTags,proto3" json:"network_tags,omitempty"`
// Optional. The Cloud KMS key to use for encryption.
KmsKey string `protobuf:"bytes,7,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
// Optional. Applies to sessions only. The duration to keep the session alive
// while it's idling. Exceeding this threshold causes the session to
// terminate. This field cannot be set on a batch workload. Minimum value is
// 10 minutes; maximum value is 14 days (see JSON representation of
// [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
// Defaults to 1 hour if not set.
// If both `ttl` and `idle_ttl` are specified for an interactive session,
// the conditions are treated as `OR` conditions: the workload will be
// terminated when it has been idle for `idle_ttl` or when `ttl` has been
// exceeded, whichever occurs first.
IdleTtl *durationpb.Duration `protobuf:"bytes,8,opt,name=idle_ttl,json=idleTtl,proto3" json:"idle_ttl,omitempty"`
// Optional. The duration after which the workload will be terminated,
// specified as the JSON representation for
// [Duration](https://protobuf.dev/programming-guides/proto3/#json).
// When the workload exceeds this duration, it will be unconditionally
// terminated without waiting for ongoing work to finish. If `ttl` is not
// specified for a batch workload, the workload will be allowed to run until
// it exits naturally (or run forever without exiting). If `ttl` is not
// specified for an interactive session, it defaults to 24 hours. If `ttl` is
// not specified for a batch that uses 2.1+ runtime version, it defaults to 4
// hours. Minimum value is 10 minutes; maximum value is 14 days. If both `ttl`
// and `idle_ttl` are specified (for an interactive session), the conditions
// are treated as `OR` conditions: the workload will be terminated when it has
// been idle for `idle_ttl` or when `ttl` has been exceeded, whichever occurs
// first.
Ttl *durationpb.Duration `protobuf:"bytes,9,opt,name=ttl,proto3" json:"ttl,omitempty"`
// Optional. A Cloud Storage bucket used to stage workload dependencies,
// config files, and store workload output and other ephemeral data, such as
// Spark history files. If you do not specify a staging bucket, Cloud Dataproc
// will determine a Cloud Storage location according to the region where your
// workload is running, and then create and manage project-level, per-location
// staging and temporary buckets.
// **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
// a Cloud Storage bucket.**
StagingBucket string `protobuf:"bytes,10,opt,name=staging_bucket,json=stagingBucket,proto3" json:"staging_bucket,omitempty"`
}
func (x *ExecutionConfig) Reset() {
*x = ExecutionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExecutionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExecutionConfig) ProtoMessage() {}
func (x *ExecutionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 ExecutionConfig.ProtoReflect.Descriptor instead.
func (*ExecutionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{2}
}
func (x *ExecutionConfig) GetServiceAccount() string {
if x != nil {
return x.ServiceAccount
}
return ""
}
func (m *ExecutionConfig) GetNetwork() isExecutionConfig_Network {
if m != nil {
return m.Network
}
return nil
}
func (x *ExecutionConfig) GetNetworkUri() string {
if x, ok := x.GetNetwork().(*ExecutionConfig_NetworkUri); ok {
return x.NetworkUri
}
return ""
}
func (x *ExecutionConfig) GetSubnetworkUri() string {
if x, ok := x.GetNetwork().(*ExecutionConfig_SubnetworkUri); ok {
return x.SubnetworkUri
}
return ""
}
func (x *ExecutionConfig) GetNetworkTags() []string {
if x != nil {
return x.NetworkTags
}
return nil
}
func (x *ExecutionConfig) GetKmsKey() string {
if x != nil {
return x.KmsKey
}
return ""
}
func (x *ExecutionConfig) GetIdleTtl() *durationpb.Duration {
if x != nil {
return x.IdleTtl
}
return nil
}
func (x *ExecutionConfig) GetTtl() *durationpb.Duration {
if x != nil {
return x.Ttl
}
return nil
}
func (x *ExecutionConfig) GetStagingBucket() string {
if x != nil {
return x.StagingBucket
}
return ""
}
type isExecutionConfig_Network interface {
isExecutionConfig_Network()
}
type ExecutionConfig_NetworkUri struct {
// Optional. Network URI to connect workload to.
NetworkUri string `protobuf:"bytes,4,opt,name=network_uri,json=networkUri,proto3,oneof"`
}
type ExecutionConfig_SubnetworkUri struct {
// Optional. Subnetwork URI to connect workload to.
SubnetworkUri string `protobuf:"bytes,5,opt,name=subnetwork_uri,json=subnetworkUri,proto3,oneof"`
}
func (*ExecutionConfig_NetworkUri) isExecutionConfig_Network() {}
func (*ExecutionConfig_SubnetworkUri) isExecutionConfig_Network() {}
// Spark History Server configuration for the workload.
type SparkHistoryServerConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Resource name of an existing Dataproc Cluster to act as a Spark
// History Server for the workload.
//
// Example:
//
// * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
DataprocCluster string `protobuf:"bytes,1,opt,name=dataproc_cluster,json=dataprocCluster,proto3" json:"dataproc_cluster,omitempty"`
}
func (x *SparkHistoryServerConfig) Reset() {
*x = SparkHistoryServerConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SparkHistoryServerConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SparkHistoryServerConfig) ProtoMessage() {}
func (x *SparkHistoryServerConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 SparkHistoryServerConfig.ProtoReflect.Descriptor instead.
func (*SparkHistoryServerConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{3}
}
func (x *SparkHistoryServerConfig) GetDataprocCluster() string {
if x != nil {
return x.DataprocCluster
}
return ""
}
// Auxiliary services configuration for a workload.
type PeripheralsConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Resource name of an existing Dataproc Metastore service.
//
// Example:
//
// * `projects/[project_id]/locations/[region]/services/[service_id]`
MetastoreService string `protobuf:"bytes,1,opt,name=metastore_service,json=metastoreService,proto3" json:"metastore_service,omitempty"`
// Optional. The Spark History Server configuration for the workload.
SparkHistoryServerConfig *SparkHistoryServerConfig `protobuf:"bytes,2,opt,name=spark_history_server_config,json=sparkHistoryServerConfig,proto3" json:"spark_history_server_config,omitempty"`
}
func (x *PeripheralsConfig) Reset() {
*x = PeripheralsConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PeripheralsConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PeripheralsConfig) ProtoMessage() {}
func (x *PeripheralsConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 PeripheralsConfig.ProtoReflect.Descriptor instead.
func (*PeripheralsConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{4}
}
func (x *PeripheralsConfig) GetMetastoreService() string {
if x != nil {
return x.MetastoreService
}
return ""
}
func (x *PeripheralsConfig) GetSparkHistoryServerConfig() *SparkHistoryServerConfig {
if x != nil {
return x.SparkHistoryServerConfig
}
return nil
}
// Runtime information about workload execution.
type RuntimeInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. Map of remote access endpoints (such as web interfaces and
// APIs) to their URIs.
Endpoints map[string]string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. A URI pointing to the location of the stdout and stderr of the
// workload.
OutputUri string `protobuf:"bytes,2,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
// Output only. A URI pointing to the location of the diagnostics tarball.
DiagnosticOutputUri string `protobuf:"bytes,3,opt,name=diagnostic_output_uri,json=diagnosticOutputUri,proto3" json:"diagnostic_output_uri,omitempty"`
// Output only. Approximate workload resource usage, calculated when
// the workload completes (see [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing)).
//
// **Note:** This metric calculation may change in the future, for
// example, to capture cumulative workload resource
// consumption during workload execution (see the
// [Dataproc Serverless release notes]
// (https://cloud.google.com/dataproc-serverless/docs/release-notes)
// for announcements, changes, fixes
// and other Dataproc developments).
ApproximateUsage *UsageMetrics `protobuf:"bytes,6,opt,name=approximate_usage,json=approximateUsage,proto3" json:"approximate_usage,omitempty"`
// Output only. Snapshot of current workload resource usage.
CurrentUsage *UsageSnapshot `protobuf:"bytes,7,opt,name=current_usage,json=currentUsage,proto3" json:"current_usage,omitempty"`
}
func (x *RuntimeInfo) Reset() {
*x = RuntimeInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RuntimeInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RuntimeInfo) ProtoMessage() {}
func (x *RuntimeInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 RuntimeInfo.ProtoReflect.Descriptor instead.
func (*RuntimeInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{5}
}
func (x *RuntimeInfo) GetEndpoints() map[string]string {
if x != nil {
return x.Endpoints
}
return nil
}
func (x *RuntimeInfo) GetOutputUri() string {
if x != nil {
return x.OutputUri
}
return ""
}
func (x *RuntimeInfo) GetDiagnosticOutputUri() string {
if x != nil {
return x.DiagnosticOutputUri
}
return ""
}
func (x *RuntimeInfo) GetApproximateUsage() *UsageMetrics {
if x != nil {
return x.ApproximateUsage
}
return nil
}
func (x *RuntimeInfo) GetCurrentUsage() *UsageSnapshot {
if x != nil {
return x.CurrentUsage
}
return nil
}
// Usage metrics represent approximate total resources consumed by a workload.
type UsageMetrics struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. DCU (Dataproc Compute Units) usage in (`milliDCU` x `seconds`)
// (see [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing)).
MilliDcuSeconds int64 `protobuf:"varint,1,opt,name=milli_dcu_seconds,json=milliDcuSeconds,proto3" json:"milli_dcu_seconds,omitempty"`
// Optional. Shuffle storage usage in (`GB` x `seconds`) (see
// [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing)).
ShuffleStorageGbSeconds int64 `protobuf:"varint,2,opt,name=shuffle_storage_gb_seconds,json=shuffleStorageGbSeconds,proto3" json:"shuffle_storage_gb_seconds,omitempty"`
// Optional. Accelerator usage in (`milliAccelerator` x `seconds`) (see
// [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing)).
MilliAcceleratorSeconds int64 `protobuf:"varint,3,opt,name=milli_accelerator_seconds,json=milliAcceleratorSeconds,proto3" json:"milli_accelerator_seconds,omitempty"`
// Optional. Accelerator type being used, if any
AcceleratorType string `protobuf:"bytes,4,opt,name=accelerator_type,json=acceleratorType,proto3" json:"accelerator_type,omitempty"`
}
func (x *UsageMetrics) Reset() {
*x = UsageMetrics{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UsageMetrics) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageMetrics) ProtoMessage() {}
func (x *UsageMetrics) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 UsageMetrics.ProtoReflect.Descriptor instead.
func (*UsageMetrics) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{6}
}
func (x *UsageMetrics) GetMilliDcuSeconds() int64 {
if x != nil {
return x.MilliDcuSeconds
}
return 0
}
func (x *UsageMetrics) GetShuffleStorageGbSeconds() int64 {
if x != nil {
return x.ShuffleStorageGbSeconds
}
return 0
}
func (x *UsageMetrics) GetMilliAcceleratorSeconds() int64 {
if x != nil {
return x.MilliAcceleratorSeconds
}
return 0
}
func (x *UsageMetrics) GetAcceleratorType() string {
if x != nil {
return x.AcceleratorType
}
return ""
}
// The usage snapshot represents the resources consumed by a workload at a
// specified time.
type UsageSnapshot struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see
// [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing)).
MilliDcu int64 `protobuf:"varint,1,opt,name=milli_dcu,json=milliDcu,proto3" json:"milli_dcu,omitempty"`
// Optional. Shuffle Storage in gigabytes (GB). (see [Dataproc Serverless
// pricing] (https://cloud.google.com/dataproc-serverless/pricing))
ShuffleStorageGb int64 `protobuf:"varint,2,opt,name=shuffle_storage_gb,json=shuffleStorageGb,proto3" json:"shuffle_storage_gb,omitempty"`
// Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at
// premium tier (see [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing)).
MilliDcuPremium int64 `protobuf:"varint,4,opt,name=milli_dcu_premium,json=milliDcuPremium,proto3" json:"milli_dcu_premium,omitempty"`
// Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see
// [Dataproc Serverless pricing]
// (https://cloud.google.com/dataproc-serverless/pricing))
ShuffleStorageGbPremium int64 `protobuf:"varint,5,opt,name=shuffle_storage_gb_premium,json=shuffleStorageGbPremium,proto3" json:"shuffle_storage_gb_premium,omitempty"`
// Optional. Milli (one-thousandth) accelerator. (see [Dataproc
// Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
MilliAccelerator int64 `protobuf:"varint,6,opt,name=milli_accelerator,json=milliAccelerator,proto3" json:"milli_accelerator,omitempty"`
// Optional. Accelerator type being used, if any
AcceleratorType string `protobuf:"bytes,7,opt,name=accelerator_type,json=acceleratorType,proto3" json:"accelerator_type,omitempty"`
// Optional. The timestamp of the usage snapshot.
SnapshotTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=snapshot_time,json=snapshotTime,proto3" json:"snapshot_time,omitempty"`
}
func (x *UsageSnapshot) Reset() {
*x = UsageSnapshot{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_shared_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UsageSnapshot) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UsageSnapshot) ProtoMessage() {}
func (x *UsageSnapshot) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_shared_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 UsageSnapshot.ProtoReflect.Descriptor instead.
func (*UsageSnapshot) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_shared_proto_rawDescGZIP(), []int{7}
}
func (x *UsageSnapshot) GetMilliDcu() int64 {
if x != nil {
return x.MilliDcu
}
return 0
}
func (x *UsageSnapshot) GetShuffleStorageGb() int64 {
if x != nil {
return x.ShuffleStorageGb
}
return 0
}
func (x *UsageSnapshot) GetMilliDcuPremium() int64 {
if x != nil {
return x.MilliDcuPremium
}
return 0
}
func (x *UsageSnapshot) GetShuffleStorageGbPremium() int64 {
if x != nil {
return x.ShuffleStorageGbPremium
}
return 0
}
func (x *UsageSnapshot) GetMilliAccelerator() int64 {
if x != nil {
return x.MilliAccelerator
}
return 0
}
func (x *UsageSnapshot) GetAcceleratorType() string {
if x != nil {
return x.AcceleratorType
}
return ""
}
func (x *UsageSnapshot) GetSnapshotTime() *timestamppb.Timestamp {
if x != nil {
return x.SnapshotTime
}
return nil
}
// The cluster's GKE config.
type GkeClusterConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. A target GKE cluster to deploy to. It must be in the same project
// and region as the Dataproc cluster (the GKE cluster can be zonal or
// regional). Format:
// 'projects/{project}/locations/{location}/clusters/{cluster_id}'
GkeClusterTarget string `protobuf:"bytes,2,opt,name=gke_cluster_target,json=gkeClusterTarget,proto3" json:"gke_cluster_target,omitempty"`
// Optional. GKE node pools where workloads will be scheduled. At least one
// node pool must be assigned the `DEFAULT`
// [GkeNodePoolTarget.Role][google.cloud.dataproc.v1.GkeNodePoolTarget.Role].
// If a `GkeNodePoolTarget` is not specified, Dataproc constructs a `DEFAULT`
// `GkeNodePoolTarget`. Each role can be given to only one
// `GkeNodePoolTarget`. All node pools must have the same location settings.
NodePoolTarget []*GkeNodePoolTarget `protobuf:"bytes,3,rep,name=node_pool_target,json=nodePoolTarget,proto3" json:"node_pool_target,omitempty"`
}