-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
batches.pb.go
executable file
·1893 lines (1710 loc) · 79.3 KB
/
batches.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.30.0
// protoc v3.21.12
// source: google/cloud/dataproc/v1/batches.proto
package dataprocpb
import (
context "context"
reflect "reflect"
sync "sync"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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)
)
// The batch state.
type Batch_State int32
const (
// The batch state is unknown.
Batch_STATE_UNSPECIFIED Batch_State = 0
// The batch is created before running.
Batch_PENDING Batch_State = 1
// The batch is running.
Batch_RUNNING Batch_State = 2
// The batch is cancelling.
Batch_CANCELLING Batch_State = 3
// The batch cancellation was successful.
Batch_CANCELLED Batch_State = 4
// The batch completed successfully.
Batch_SUCCEEDED Batch_State = 5
// The batch is no longer running due to an error.
Batch_FAILED Batch_State = 6
)
// Enum value maps for Batch_State.
var (
Batch_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "RUNNING",
3: "CANCELLING",
4: "CANCELLED",
5: "SUCCEEDED",
6: "FAILED",
}
Batch_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"RUNNING": 2,
"CANCELLING": 3,
"CANCELLED": 4,
"SUCCEEDED": 5,
"FAILED": 6,
}
)
func (x Batch_State) Enum() *Batch_State {
p := new(Batch_State)
*p = x
return p
}
func (x Batch_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Batch_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dataproc_v1_batches_proto_enumTypes[0].Descriptor()
}
func (Batch_State) Type() protoreflect.EnumType {
return &file_google_cloud_dataproc_v1_batches_proto_enumTypes[0]
}
func (x Batch_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Batch_State.Descriptor instead.
func (Batch_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{5, 0}
}
// A request to create a batch workload.
type CreateBatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The parent resource where this batch will be created.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The batch to create.
Batch *Batch `protobuf:"bytes,2,opt,name=batch,proto3" json:"batch,omitempty"`
// Optional. The ID to use for the batch, which will become the final
// component of the batch's resource name.
//
// This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
BatchId string `protobuf:"bytes,3,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
// Optional. A unique ID used to identify the request. If the service
// receives two
// [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s
// with the same request_id, the second request is ignored and the
// Operation that corresponds to the first Batch created and stored
// in the backend is returned.
//
// Recommendation: Set this value to a
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
//
// The value must contain only letters (a-z, A-Z), numbers (0-9),
// underscores (_), and hyphens (-). The maximum length is 40 characters.
RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
}
func (x *CreateBatchRequest) Reset() {
*x = CreateBatchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateBatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateBatchRequest) ProtoMessage() {}
func (x *CreateBatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 CreateBatchRequest.ProtoReflect.Descriptor instead.
func (*CreateBatchRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{0}
}
func (x *CreateBatchRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateBatchRequest) GetBatch() *Batch {
if x != nil {
return x.Batch
}
return nil
}
func (x *CreateBatchRequest) GetBatchId() string {
if x != nil {
return x.BatchId
}
return ""
}
func (x *CreateBatchRequest) GetRequestId() string {
if x != nil {
return x.RequestId
}
return ""
}
// A request to get the resource representation for a batch workload.
type GetBatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The fully qualified name of the batch to retrieve
// in the format
// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetBatchRequest) Reset() {
*x = GetBatchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetBatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBatchRequest) ProtoMessage() {}
func (x *GetBatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 GetBatchRequest.ProtoReflect.Descriptor instead.
func (*GetBatchRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{1}
}
func (x *GetBatchRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// A request to list batch workloads in a project.
type ListBatchesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The parent, which owns this collection of batches.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of batches to return in each response.
// The service may return fewer than this value.
// The default page size is 20; the maximum page size is 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token received from a previous `ListBatches` call.
// Provide this token to retrieve the subsequent page.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. A filter for the batches to return in the response.
//
// A filter is a logical expression constraining the values of various fields
// in each batch resource. Filters are case sensitive, and may contain
// multiple clauses combined with logical operators (AND/OR).
// Supported fields are `batch_id`, `batch_uuid`, `state`, and `create_time`.
//
// e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"`
// filters for batches in state RUNNING that were created before 2023-01-01
//
// See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed
// description of the filter syntax and a list of supported comparisons.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Field(s) on which to sort the list of batches.
//
// Currently the only supported sort orders are unspecified (empty) and
// `create_time desc` to sort by most recently created batches first.
//
// See https://google.aip.dev/132#ordering for more details.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
}
func (x *ListBatchesRequest) Reset() {
*x = ListBatchesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListBatchesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListBatchesRequest) ProtoMessage() {}
func (x *ListBatchesRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 ListBatchesRequest.ProtoReflect.Descriptor instead.
func (*ListBatchesRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{2}
}
func (x *ListBatchesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListBatchesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListBatchesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListBatchesRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListBatchesRequest) GetOrderBy() string {
if x != nil {
return x.OrderBy
}
return ""
}
// A list of batch workloads.
type ListBatchesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The batches from the specified collection.
Batches []*Batch `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListBatchesResponse) Reset() {
*x = ListBatchesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListBatchesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListBatchesResponse) ProtoMessage() {}
func (x *ListBatchesResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 ListBatchesResponse.ProtoReflect.Descriptor instead.
func (*ListBatchesResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{3}
}
func (x *ListBatchesResponse) GetBatches() []*Batch {
if x != nil {
return x.Batches
}
return nil
}
func (x *ListBatchesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// A request to delete a batch workload.
type DeleteBatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The fully qualified name of the batch to retrieve
// in the format
// "projects/PROJECT_ID/locations/DATAPROC_REGION/batches/BATCH_ID"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DeleteBatchRequest) Reset() {
*x = DeleteBatchRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteBatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteBatchRequest) ProtoMessage() {}
func (x *DeleteBatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 DeleteBatchRequest.ProtoReflect.Descriptor instead.
func (*DeleteBatchRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{4}
}
func (x *DeleteBatchRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// A representation of a batch workload in the service.
type Batch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name of the batch.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. A batch UUID (Unique Universal Identifier). The service
// generates this value when it creates the batch.
Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Output only. The time when the batch was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The application/framework-specific portion of the batch configuration.
//
// Types that are assignable to BatchConfig:
// *Batch_PysparkBatch
// *Batch_SparkBatch
// *Batch_SparkRBatch
// *Batch_SparkSqlBatch
BatchConfig isBatch_BatchConfig `protobuf_oneof:"batch_config"`
// Output only. Runtime information about batch execution.
RuntimeInfo *RuntimeInfo `protobuf:"bytes,8,opt,name=runtime_info,json=runtimeInfo,proto3" json:"runtime_info,omitempty"`
// Output only. The state of the batch.
State Batch_State `protobuf:"varint,9,opt,name=state,proto3,enum=google.cloud.dataproc.v1.Batch_State" json:"state,omitempty"`
// Output only. Batch state details, such as a failure
// description if the state is `FAILED`.
StateMessage string `protobuf:"bytes,10,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
// Output only. The time when the batch entered a current state.
StateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=state_time,json=stateTime,proto3" json:"state_time,omitempty"`
// Output only. The email address of the user who created the batch.
Creator string `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty"`
// Optional. The labels to associate with this batch.
// Label **keys** must contain 1 to 63 characters, and must conform to
// [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
// Label **values** may be empty, but, if present, must contain 1 to 63
// characters, and must conform to [RFC
// 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
// associated with a batch.
Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Runtime configuration for the batch execution.
RuntimeConfig *RuntimeConfig `protobuf:"bytes,14,opt,name=runtime_config,json=runtimeConfig,proto3" json:"runtime_config,omitempty"`
// Optional. Environment configuration for the batch execution.
EnvironmentConfig *EnvironmentConfig `protobuf:"bytes,15,opt,name=environment_config,json=environmentConfig,proto3" json:"environment_config,omitempty"`
// Output only. The resource name of the operation associated with this batch.
Operation string `protobuf:"bytes,16,opt,name=operation,proto3" json:"operation,omitempty"`
// Output only. Historical state information for the batch.
StateHistory []*Batch_StateHistory `protobuf:"bytes,17,rep,name=state_history,json=stateHistory,proto3" json:"state_history,omitempty"`
}
func (x *Batch) Reset() {
*x = Batch{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Batch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Batch) ProtoMessage() {}
func (x *Batch) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 Batch.ProtoReflect.Descriptor instead.
func (*Batch) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{5}
}
func (x *Batch) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Batch) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
func (x *Batch) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (m *Batch) GetBatchConfig() isBatch_BatchConfig {
if m != nil {
return m.BatchConfig
}
return nil
}
func (x *Batch) GetPysparkBatch() *PySparkBatch {
if x, ok := x.GetBatchConfig().(*Batch_PysparkBatch); ok {
return x.PysparkBatch
}
return nil
}
func (x *Batch) GetSparkBatch() *SparkBatch {
if x, ok := x.GetBatchConfig().(*Batch_SparkBatch); ok {
return x.SparkBatch
}
return nil
}
func (x *Batch) GetSparkRBatch() *SparkRBatch {
if x, ok := x.GetBatchConfig().(*Batch_SparkRBatch); ok {
return x.SparkRBatch
}
return nil
}
func (x *Batch) GetSparkSqlBatch() *SparkSqlBatch {
if x, ok := x.GetBatchConfig().(*Batch_SparkSqlBatch); ok {
return x.SparkSqlBatch
}
return nil
}
func (x *Batch) GetRuntimeInfo() *RuntimeInfo {
if x != nil {
return x.RuntimeInfo
}
return nil
}
func (x *Batch) GetState() Batch_State {
if x != nil {
return x.State
}
return Batch_STATE_UNSPECIFIED
}
func (x *Batch) GetStateMessage() string {
if x != nil {
return x.StateMessage
}
return ""
}
func (x *Batch) GetStateTime() *timestamppb.Timestamp {
if x != nil {
return x.StateTime
}
return nil
}
func (x *Batch) GetCreator() string {
if x != nil {
return x.Creator
}
return ""
}
func (x *Batch) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Batch) GetRuntimeConfig() *RuntimeConfig {
if x != nil {
return x.RuntimeConfig
}
return nil
}
func (x *Batch) GetEnvironmentConfig() *EnvironmentConfig {
if x != nil {
return x.EnvironmentConfig
}
return nil
}
func (x *Batch) GetOperation() string {
if x != nil {
return x.Operation
}
return ""
}
func (x *Batch) GetStateHistory() []*Batch_StateHistory {
if x != nil {
return x.StateHistory
}
return nil
}
type isBatch_BatchConfig interface {
isBatch_BatchConfig()
}
type Batch_PysparkBatch struct {
// Optional. PySpark batch config.
PysparkBatch *PySparkBatch `protobuf:"bytes,4,opt,name=pyspark_batch,json=pysparkBatch,proto3,oneof"`
}
type Batch_SparkBatch struct {
// Optional. Spark batch config.
SparkBatch *SparkBatch `protobuf:"bytes,5,opt,name=spark_batch,json=sparkBatch,proto3,oneof"`
}
type Batch_SparkRBatch struct {
// Optional. SparkR batch config.
SparkRBatch *SparkRBatch `protobuf:"bytes,6,opt,name=spark_r_batch,json=sparkRBatch,proto3,oneof"`
}
type Batch_SparkSqlBatch struct {
// Optional. SparkSql batch config.
SparkSqlBatch *SparkSqlBatch `protobuf:"bytes,7,opt,name=spark_sql_batch,json=sparkSqlBatch,proto3,oneof"`
}
func (*Batch_PysparkBatch) isBatch_BatchConfig() {}
func (*Batch_SparkBatch) isBatch_BatchConfig() {}
func (*Batch_SparkRBatch) isBatch_BatchConfig() {}
func (*Batch_SparkSqlBatch) isBatch_BatchConfig() {}
// A configuration for running an
// [Apache
// PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html)
// batch workload.
type PySparkBatch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The HCFS URI of the main Python file to use as the Spark driver.
// Must be a .py file.
MainPythonFileUri string `protobuf:"bytes,1,opt,name=main_python_file_uri,json=mainPythonFileUri,proto3" json:"main_python_file_uri,omitempty"`
// Optional. The arguments to pass to the driver. Do not include arguments
// that can be set as batch properties, such as `--conf`, since a collision
// can occur that causes an incorrect batch submission.
Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
// Optional. HCFS file URIs of Python files to pass to the PySpark
// framework. Supported file types: `.py`, `.egg`, and `.zip`.
PythonFileUris []string `protobuf:"bytes,3,rep,name=python_file_uris,json=pythonFileUris,proto3" json:"python_file_uris,omitempty"`
// Optional. HCFS URIs of jar files to add to the classpath of the
// Spark driver and tasks.
JarFileUris []string `protobuf:"bytes,4,rep,name=jar_file_uris,json=jarFileUris,proto3" json:"jar_file_uris,omitempty"`
// Optional. HCFS URIs of files to be placed in the working directory of
// each executor.
FileUris []string `protobuf:"bytes,5,rep,name=file_uris,json=fileUris,proto3" json:"file_uris,omitempty"`
// Optional. HCFS URIs of archives to be extracted into the working directory
// of each executor. Supported file types:
// `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
ArchiveUris []string `protobuf:"bytes,6,rep,name=archive_uris,json=archiveUris,proto3" json:"archive_uris,omitempty"`
}
func (x *PySparkBatch) Reset() {
*x = PySparkBatch{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PySparkBatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PySparkBatch) ProtoMessage() {}
func (x *PySparkBatch) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 PySparkBatch.ProtoReflect.Descriptor instead.
func (*PySparkBatch) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{6}
}
func (x *PySparkBatch) GetMainPythonFileUri() string {
if x != nil {
return x.MainPythonFileUri
}
return ""
}
func (x *PySparkBatch) GetArgs() []string {
if x != nil {
return x.Args
}
return nil
}
func (x *PySparkBatch) GetPythonFileUris() []string {
if x != nil {
return x.PythonFileUris
}
return nil
}
func (x *PySparkBatch) GetJarFileUris() []string {
if x != nil {
return x.JarFileUris
}
return nil
}
func (x *PySparkBatch) GetFileUris() []string {
if x != nil {
return x.FileUris
}
return nil
}
func (x *PySparkBatch) GetArchiveUris() []string {
if x != nil {
return x.ArchiveUris
}
return nil
}
// A configuration for running an [Apache Spark](https://spark.apache.org/)
// batch workload.
type SparkBatch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The specification of the main method to call to drive the Spark
// workload. Specify either the jar file that contains the main class or the
// main class name. To pass both a main jar and a main class in that jar, add
// the jar to `jar_file_uris`, and then specify the main class
// name in `main_class`.
//
// Types that are assignable to Driver:
// *SparkBatch_MainJarFileUri
// *SparkBatch_MainClass
Driver isSparkBatch_Driver `protobuf_oneof:"driver"`
// Optional. The arguments to pass to the driver. Do not include arguments
// that can be set as batch properties, such as `--conf`, since a collision
// can occur that causes an incorrect batch submission.
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// Optional. HCFS URIs of jar files to add to the classpath of the
// Spark driver and tasks.
JarFileUris []string `protobuf:"bytes,4,rep,name=jar_file_uris,json=jarFileUris,proto3" json:"jar_file_uris,omitempty"`
// Optional. HCFS URIs of files to be placed in the working directory of
// each executor.
FileUris []string `protobuf:"bytes,5,rep,name=file_uris,json=fileUris,proto3" json:"file_uris,omitempty"`
// Optional. HCFS URIs of archives to be extracted into the working directory
// of each executor. Supported file types:
// `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
ArchiveUris []string `protobuf:"bytes,6,rep,name=archive_uris,json=archiveUris,proto3" json:"archive_uris,omitempty"`
}
func (x *SparkBatch) Reset() {
*x = SparkBatch{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SparkBatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SparkBatch) ProtoMessage() {}
func (x *SparkBatch) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_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 SparkBatch.ProtoReflect.Descriptor instead.
func (*SparkBatch) Descriptor() ([]byte, []int) {
return file_google_cloud_dataproc_v1_batches_proto_rawDescGZIP(), []int{7}
}
func (m *SparkBatch) GetDriver() isSparkBatch_Driver {
if m != nil {
return m.Driver
}
return nil
}
func (x *SparkBatch) GetMainJarFileUri() string {
if x, ok := x.GetDriver().(*SparkBatch_MainJarFileUri); ok {
return x.MainJarFileUri
}
return ""
}
func (x *SparkBatch) GetMainClass() string {
if x, ok := x.GetDriver().(*SparkBatch_MainClass); ok {
return x.MainClass
}
return ""
}
func (x *SparkBatch) GetArgs() []string {
if x != nil {
return x.Args
}
return nil
}
func (x *SparkBatch) GetJarFileUris() []string {
if x != nil {
return x.JarFileUris
}
return nil
}
func (x *SparkBatch) GetFileUris() []string {
if x != nil {
return x.FileUris
}
return nil
}
func (x *SparkBatch) GetArchiveUris() []string {
if x != nil {
return x.ArchiveUris
}
return nil
}
type isSparkBatch_Driver interface {
isSparkBatch_Driver()
}
type SparkBatch_MainJarFileUri struct {
// Optional. The HCFS URI of the jar file that contains the main class.
MainJarFileUri string `protobuf:"bytes,1,opt,name=main_jar_file_uri,json=mainJarFileUri,proto3,oneof"`
}
type SparkBatch_MainClass struct {
// Optional. The name of the driver main class. The jar file that contains
// the class must be in the classpath or specified in `jar_file_uris`.
MainClass string `protobuf:"bytes,2,opt,name=main_class,json=mainClass,proto3,oneof"`
}
func (*SparkBatch_MainJarFileUri) isSparkBatch_Driver() {}
func (*SparkBatch_MainClass) isSparkBatch_Driver() {}
// A configuration for running an
// [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html)
// batch workload.
type SparkRBatch struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The HCFS URI of the main R file to use as the driver.
// Must be a `.R` or `.r` file.
MainRFileUri string `protobuf:"bytes,1,opt,name=main_r_file_uri,json=mainRFileUri,proto3" json:"main_r_file_uri,omitempty"`
// Optional. The arguments to pass to the Spark driver. Do not include
// arguments that can be set as batch properties, such as `--conf`, since a
// collision can occur that causes an incorrect batch submission.
Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
// Optional. HCFS URIs of files to be placed in the working directory of
// each executor.
FileUris []string `protobuf:"bytes,3,rep,name=file_uris,json=fileUris,proto3" json:"file_uris,omitempty"`
// Optional. HCFS URIs of archives to be extracted into the working directory
// of each executor. Supported file types:
// `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
ArchiveUris []string `protobuf:"bytes,4,rep,name=archive_uris,json=archiveUris,proto3" json:"archive_uris,omitempty"`
}
func (x *SparkRBatch) Reset() {
*x = SparkRBatch{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SparkRBatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SparkRBatch) ProtoMessage() {}
func (x *SparkRBatch) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dataproc_v1_batches_proto_msgTypes[8]
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 SparkRBatch.ProtoReflect.Descriptor instead.
func (*SparkRBatch) Descriptor() ([]byte, []int) {