/
datatransfer.pb.go
executable file
·4090 lines (3735 loc) · 198 KB
/
datatransfer.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.30.0
// protoc v3.21.12
// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto
package datatransferpb
import (
context "context"
reflect "reflect"
sync "sync"
_ "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"
durationpb "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
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)
)
// Parameter type.
type DataSourceParameter_Type int32
const (
// Type unspecified.
DataSourceParameter_TYPE_UNSPECIFIED DataSourceParameter_Type = 0
// String parameter.
DataSourceParameter_STRING DataSourceParameter_Type = 1
// Integer parameter (64-bits).
// Will be serialized to json as string.
DataSourceParameter_INTEGER DataSourceParameter_Type = 2
// Double precision floating point parameter.
DataSourceParameter_DOUBLE DataSourceParameter_Type = 3
// Boolean parameter.
DataSourceParameter_BOOLEAN DataSourceParameter_Type = 4
// Deprecated. This field has no effect.
DataSourceParameter_RECORD DataSourceParameter_Type = 5
// Page ID for a Google+ Page.
DataSourceParameter_PLUS_PAGE DataSourceParameter_Type = 6
)
// Enum value maps for DataSourceParameter_Type.
var (
DataSourceParameter_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "STRING",
2: "INTEGER",
3: "DOUBLE",
4: "BOOLEAN",
5: "RECORD",
6: "PLUS_PAGE",
}
DataSourceParameter_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"STRING": 1,
"INTEGER": 2,
"DOUBLE": 3,
"BOOLEAN": 4,
"RECORD": 5,
"PLUS_PAGE": 6,
}
)
func (x DataSourceParameter_Type) Enum() *DataSourceParameter_Type {
p := new(DataSourceParameter_Type)
*p = x
return p
}
func (x DataSourceParameter_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DataSourceParameter_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[0].Descriptor()
}
func (DataSourceParameter_Type) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[0]
}
func (x DataSourceParameter_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DataSourceParameter_Type.Descriptor instead.
func (DataSourceParameter_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{0, 0}
}
// The type of authorization needed for this data source.
type DataSource_AuthorizationType int32
const (
// Type unspecified.
DataSource_AUTHORIZATION_TYPE_UNSPECIFIED DataSource_AuthorizationType = 0
// Use OAuth 2 authorization codes that can be exchanged
// for a refresh token on the backend.
DataSource_AUTHORIZATION_CODE DataSource_AuthorizationType = 1
// Return an authorization code for a given Google+ page that can then be
// exchanged for a refresh token on the backend.
DataSource_GOOGLE_PLUS_AUTHORIZATION_CODE DataSource_AuthorizationType = 2
// Use First Party OAuth.
DataSource_FIRST_PARTY_OAUTH DataSource_AuthorizationType = 3
)
// Enum value maps for DataSource_AuthorizationType.
var (
DataSource_AuthorizationType_name = map[int32]string{
0: "AUTHORIZATION_TYPE_UNSPECIFIED",
1: "AUTHORIZATION_CODE",
2: "GOOGLE_PLUS_AUTHORIZATION_CODE",
3: "FIRST_PARTY_OAUTH",
}
DataSource_AuthorizationType_value = map[string]int32{
"AUTHORIZATION_TYPE_UNSPECIFIED": 0,
"AUTHORIZATION_CODE": 1,
"GOOGLE_PLUS_AUTHORIZATION_CODE": 2,
"FIRST_PARTY_OAUTH": 3,
}
)
func (x DataSource_AuthorizationType) Enum() *DataSource_AuthorizationType {
p := new(DataSource_AuthorizationType)
*p = x
return p
}
func (x DataSource_AuthorizationType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DataSource_AuthorizationType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[1].Descriptor()
}
func (DataSource_AuthorizationType) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[1]
}
func (x DataSource_AuthorizationType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DataSource_AuthorizationType.Descriptor instead.
func (DataSource_AuthorizationType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{1, 0}
}
// Represents how the data source supports data auto refresh.
type DataSource_DataRefreshType int32
const (
// The data source won't support data auto refresh, which is default value.
DataSource_DATA_REFRESH_TYPE_UNSPECIFIED DataSource_DataRefreshType = 0
// The data source supports data auto refresh, and runs will be scheduled
// for the past few days. Does not allow custom values to be set for each
// transfer config.
DataSource_SLIDING_WINDOW DataSource_DataRefreshType = 1
// The data source supports data auto refresh, and runs will be scheduled
// for the past few days. Allows custom values to be set for each transfer
// config.
DataSource_CUSTOM_SLIDING_WINDOW DataSource_DataRefreshType = 2
)
// Enum value maps for DataSource_DataRefreshType.
var (
DataSource_DataRefreshType_name = map[int32]string{
0: "DATA_REFRESH_TYPE_UNSPECIFIED",
1: "SLIDING_WINDOW",
2: "CUSTOM_SLIDING_WINDOW",
}
DataSource_DataRefreshType_value = map[string]int32{
"DATA_REFRESH_TYPE_UNSPECIFIED": 0,
"SLIDING_WINDOW": 1,
"CUSTOM_SLIDING_WINDOW": 2,
}
)
func (x DataSource_DataRefreshType) Enum() *DataSource_DataRefreshType {
p := new(DataSource_DataRefreshType)
*p = x
return p
}
func (x DataSource_DataRefreshType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DataSource_DataRefreshType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[2].Descriptor()
}
func (DataSource_DataRefreshType) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[2]
}
func (x DataSource_DataRefreshType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DataSource_DataRefreshType.Descriptor instead.
func (DataSource_DataRefreshType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{1, 1}
}
// Represents which runs should be pulled.
type ListTransferRunsRequest_RunAttempt int32
const (
// All runs should be returned.
ListTransferRunsRequest_RUN_ATTEMPT_UNSPECIFIED ListTransferRunsRequest_RunAttempt = 0
// Only latest run per day should be returned.
ListTransferRunsRequest_LATEST ListTransferRunsRequest_RunAttempt = 1
)
// Enum value maps for ListTransferRunsRequest_RunAttempt.
var (
ListTransferRunsRequest_RunAttempt_name = map[int32]string{
0: "RUN_ATTEMPT_UNSPECIFIED",
1: "LATEST",
}
ListTransferRunsRequest_RunAttempt_value = map[string]int32{
"RUN_ATTEMPT_UNSPECIFIED": 0,
"LATEST": 1,
}
)
func (x ListTransferRunsRequest_RunAttempt) Enum() *ListTransferRunsRequest_RunAttempt {
p := new(ListTransferRunsRequest_RunAttempt)
*p = x
return p
}
func (x ListTransferRunsRequest_RunAttempt) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ListTransferRunsRequest_RunAttempt) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[3].Descriptor()
}
func (ListTransferRunsRequest_RunAttempt) Type() protoreflect.EnumType {
return &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_enumTypes[3]
}
func (x ListTransferRunsRequest_RunAttempt) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ListTransferRunsRequest_RunAttempt.Descriptor instead.
func (ListTransferRunsRequest_RunAttempt) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{13, 0}
}
// A parameter used to define custom fields in a data source definition.
type DataSourceParameter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Parameter identifier.
ParamId string `protobuf:"bytes,1,opt,name=param_id,json=paramId,proto3" json:"param_id,omitempty"`
// Parameter display name in the user interface.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Parameter description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Parameter type.
Type DataSourceParameter_Type `protobuf:"varint,4,opt,name=type,proto3,enum=google.cloud.bigquery.datatransfer.v1.DataSourceParameter_Type" json:"type,omitempty"`
// Is parameter required.
Required bool `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"`
// Deprecated. This field has no effect.
Repeated bool `protobuf:"varint,6,opt,name=repeated,proto3" json:"repeated,omitempty"`
// Regular expression which can be used for parameter validation.
ValidationRegex string `protobuf:"bytes,7,opt,name=validation_regex,json=validationRegex,proto3" json:"validation_regex,omitempty"`
// All possible values for the parameter.
AllowedValues []string `protobuf:"bytes,8,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
// For integer and double values specifies minimum allowed value.
MinValue *wrapperspb.DoubleValue `protobuf:"bytes,9,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"`
// For integer and double values specifies maximum allowed value.
MaxValue *wrapperspb.DoubleValue `protobuf:"bytes,10,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"`
// Deprecated. This field has no effect.
Fields []*DataSourceParameter `protobuf:"bytes,11,rep,name=fields,proto3" json:"fields,omitempty"`
// Description of the requirements for this field, in case the user input does
// not fulfill the regex pattern or min/max values.
ValidationDescription string `protobuf:"bytes,12,opt,name=validation_description,json=validationDescription,proto3" json:"validation_description,omitempty"`
// URL to a help document to further explain the naming requirements.
ValidationHelpUrl string `protobuf:"bytes,13,opt,name=validation_help_url,json=validationHelpUrl,proto3" json:"validation_help_url,omitempty"`
// Cannot be changed after initial creation.
Immutable bool `protobuf:"varint,14,opt,name=immutable,proto3" json:"immutable,omitempty"`
// Deprecated. This field has no effect.
Recurse bool `protobuf:"varint,15,opt,name=recurse,proto3" json:"recurse,omitempty"`
// If true, it should not be used in new transfers, and it should not be
// visible to users.
Deprecated bool `protobuf:"varint,20,opt,name=deprecated,proto3" json:"deprecated,omitempty"`
}
func (x *DataSourceParameter) Reset() {
*x = DataSourceParameter{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DataSourceParameter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataSourceParameter) ProtoMessage() {}
func (x *DataSourceParameter) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_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 DataSourceParameter.ProtoReflect.Descriptor instead.
func (*DataSourceParameter) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{0}
}
func (x *DataSourceParameter) GetParamId() string {
if x != nil {
return x.ParamId
}
return ""
}
func (x *DataSourceParameter) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *DataSourceParameter) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *DataSourceParameter) GetType() DataSourceParameter_Type {
if x != nil {
return x.Type
}
return DataSourceParameter_TYPE_UNSPECIFIED
}
func (x *DataSourceParameter) GetRequired() bool {
if x != nil {
return x.Required
}
return false
}
func (x *DataSourceParameter) GetRepeated() bool {
if x != nil {
return x.Repeated
}
return false
}
func (x *DataSourceParameter) GetValidationRegex() string {
if x != nil {
return x.ValidationRegex
}
return ""
}
func (x *DataSourceParameter) GetAllowedValues() []string {
if x != nil {
return x.AllowedValues
}
return nil
}
func (x *DataSourceParameter) GetMinValue() *wrapperspb.DoubleValue {
if x != nil {
return x.MinValue
}
return nil
}
func (x *DataSourceParameter) GetMaxValue() *wrapperspb.DoubleValue {
if x != nil {
return x.MaxValue
}
return nil
}
func (x *DataSourceParameter) GetFields() []*DataSourceParameter {
if x != nil {
return x.Fields
}
return nil
}
func (x *DataSourceParameter) GetValidationDescription() string {
if x != nil {
return x.ValidationDescription
}
return ""
}
func (x *DataSourceParameter) GetValidationHelpUrl() string {
if x != nil {
return x.ValidationHelpUrl
}
return ""
}
func (x *DataSourceParameter) GetImmutable() bool {
if x != nil {
return x.Immutable
}
return false
}
func (x *DataSourceParameter) GetRecurse() bool {
if x != nil {
return x.Recurse
}
return false
}
func (x *DataSourceParameter) GetDeprecated() bool {
if x != nil {
return x.Deprecated
}
return false
}
// Defines the properties and custom parameters for a data source.
type DataSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. Data source resource name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Data source id.
DataSourceId string `protobuf:"bytes,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
// User friendly data source name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// User friendly data source description string.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Data source client id which should be used to receive refresh token.
ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Api auth scopes for which refresh token needs to be obtained. These are
// scopes needed by a data source to prepare data and ingest them into
// BigQuery, e.g., https://www.googleapis.com/auth/bigquery
Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"`
// Deprecated. This field has no effect.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/datatransfer/v1/datatransfer.proto.
TransferType TransferType `protobuf:"varint,7,opt,name=transfer_type,json=transferType,proto3,enum=google.cloud.bigquery.datatransfer.v1.TransferType" json:"transfer_type,omitempty"`
// Deprecated. This field has no effect.
//
// Deprecated: Marked as deprecated in google/cloud/bigquery/datatransfer/v1/datatransfer.proto.
SupportsMultipleTransfers bool `protobuf:"varint,8,opt,name=supports_multiple_transfers,json=supportsMultipleTransfers,proto3" json:"supports_multiple_transfers,omitempty"`
// The number of seconds to wait for an update from the data source
// before the Data Transfer Service marks the transfer as FAILED.
UpdateDeadlineSeconds int32 `protobuf:"varint,9,opt,name=update_deadline_seconds,json=updateDeadlineSeconds,proto3" json:"update_deadline_seconds,omitempty"`
// Default data transfer schedule.
// Examples of valid schedules include:
// `1st,3rd monday of month 15:30`,
// `every wed,fri of jan,jun 13:15`, and
// `first sunday of quarter 00:00`.
DefaultSchedule string `protobuf:"bytes,10,opt,name=default_schedule,json=defaultSchedule,proto3" json:"default_schedule,omitempty"`
// Specifies whether the data source supports a user defined schedule, or
// operates on the default schedule.
// When set to `true`, user can override default schedule.
SupportsCustomSchedule bool `protobuf:"varint,11,opt,name=supports_custom_schedule,json=supportsCustomSchedule,proto3" json:"supports_custom_schedule,omitempty"`
// Data source parameters.
Parameters []*DataSourceParameter `protobuf:"bytes,12,rep,name=parameters,proto3" json:"parameters,omitempty"`
// Url for the help document for this data source.
HelpUrl string `protobuf:"bytes,13,opt,name=help_url,json=helpUrl,proto3" json:"help_url,omitempty"`
// Indicates the type of authorization.
AuthorizationType DataSource_AuthorizationType `protobuf:"varint,14,opt,name=authorization_type,json=authorizationType,proto3,enum=google.cloud.bigquery.datatransfer.v1.DataSource_AuthorizationType" json:"authorization_type,omitempty"`
// Specifies whether the data source supports automatic data refresh for the
// past few days, and how it's supported.
// For some data sources, data might not be complete until a few days later,
// so it's useful to refresh data automatically.
DataRefreshType DataSource_DataRefreshType `protobuf:"varint,15,opt,name=data_refresh_type,json=dataRefreshType,proto3,enum=google.cloud.bigquery.datatransfer.v1.DataSource_DataRefreshType" json:"data_refresh_type,omitempty"`
// Default data refresh window on days.
// Only meaningful when `data_refresh_type` = `SLIDING_WINDOW`.
DefaultDataRefreshWindowDays int32 `protobuf:"varint,16,opt,name=default_data_refresh_window_days,json=defaultDataRefreshWindowDays,proto3" json:"default_data_refresh_window_days,omitempty"`
// Disables backfilling and manual run scheduling
// for the data source.
ManualRunsDisabled bool `protobuf:"varint,17,opt,name=manual_runs_disabled,json=manualRunsDisabled,proto3" json:"manual_runs_disabled,omitempty"`
// The minimum interval for scheduler to schedule runs.
MinimumScheduleInterval *durationpb.Duration `protobuf:"bytes,18,opt,name=minimum_schedule_interval,json=minimumScheduleInterval,proto3" json:"minimum_schedule_interval,omitempty"`
}
func (x *DataSource) Reset() {
*x = DataSource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DataSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataSource) ProtoMessage() {}
func (x *DataSource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_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 DataSource.ProtoReflect.Descriptor instead.
func (*DataSource) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{1}
}
func (x *DataSource) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DataSource) GetDataSourceId() string {
if x != nil {
return x.DataSourceId
}
return ""
}
func (x *DataSource) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *DataSource) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *DataSource) GetClientId() string {
if x != nil {
return x.ClientId
}
return ""
}
func (x *DataSource) GetScopes() []string {
if x != nil {
return x.Scopes
}
return nil
}
// Deprecated: Marked as deprecated in google/cloud/bigquery/datatransfer/v1/datatransfer.proto.
func (x *DataSource) GetTransferType() TransferType {
if x != nil {
return x.TransferType
}
return TransferType_TRANSFER_TYPE_UNSPECIFIED
}
// Deprecated: Marked as deprecated in google/cloud/bigquery/datatransfer/v1/datatransfer.proto.
func (x *DataSource) GetSupportsMultipleTransfers() bool {
if x != nil {
return x.SupportsMultipleTransfers
}
return false
}
func (x *DataSource) GetUpdateDeadlineSeconds() int32 {
if x != nil {
return x.UpdateDeadlineSeconds
}
return 0
}
func (x *DataSource) GetDefaultSchedule() string {
if x != nil {
return x.DefaultSchedule
}
return ""
}
func (x *DataSource) GetSupportsCustomSchedule() bool {
if x != nil {
return x.SupportsCustomSchedule
}
return false
}
func (x *DataSource) GetParameters() []*DataSourceParameter {
if x != nil {
return x.Parameters
}
return nil
}
func (x *DataSource) GetHelpUrl() string {
if x != nil {
return x.HelpUrl
}
return ""
}
func (x *DataSource) GetAuthorizationType() DataSource_AuthorizationType {
if x != nil {
return x.AuthorizationType
}
return DataSource_AUTHORIZATION_TYPE_UNSPECIFIED
}
func (x *DataSource) GetDataRefreshType() DataSource_DataRefreshType {
if x != nil {
return x.DataRefreshType
}
return DataSource_DATA_REFRESH_TYPE_UNSPECIFIED
}
func (x *DataSource) GetDefaultDataRefreshWindowDays() int32 {
if x != nil {
return x.DefaultDataRefreshWindowDays
}
return 0
}
func (x *DataSource) GetManualRunsDisabled() bool {
if x != nil {
return x.ManualRunsDisabled
}
return false
}
func (x *DataSource) GetMinimumScheduleInterval() *durationpb.Duration {
if x != nil {
return x.MinimumScheduleInterval
}
return nil
}
// A request to get data source info.
type GetDataSourceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The field will contain name of the resource requested, for
// example: `projects/{project_id}/dataSources/{data_source_id}` or
// `projects/{project_id}/locations/{location_id}/dataSources/{data_source_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetDataSourceRequest) Reset() {
*x = GetDataSourceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetDataSourceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDataSourceRequest) ProtoMessage() {}
func (x *GetDataSourceRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_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 GetDataSourceRequest.ProtoReflect.Descriptor instead.
func (*GetDataSourceRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{2}
}
func (x *GetDataSourceRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request to list supported data sources and their data transfer settings.
type ListDataSourcesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The BigQuery project id for which data sources should be
// returned. Must be in the form: `projects/{project_id}` or
// `projects/{project_id}/locations/{location_id}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Pagination token, which can be used to request a specific page
// of `ListDataSourcesRequest` list results. For multiple-page
// results, `ListDataSourcesResponse` outputs
// a `next_page` token, which can be used as the
// `page_token` value to request the next page of list results.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Page size. The default page size is the maximum value of 1000 results.
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
}
func (x *ListDataSourcesRequest) Reset() {
*x = ListDataSourcesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDataSourcesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDataSourcesRequest) ProtoMessage() {}
func (x *ListDataSourcesRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_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 ListDataSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListDataSourcesRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{3}
}
func (x *ListDataSourcesRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListDataSourcesRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
func (x *ListDataSourcesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
// Returns list of supported data sources and their metadata.
type ListDataSourcesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of supported data sources and their transfer settings.
DataSources []*DataSource `protobuf:"bytes,1,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
// Output only. The next-pagination token. For multiple-page list results,
// this token can be used as the
// `ListDataSourcesRequest.page_token`
// to request the next page of list results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListDataSourcesResponse) Reset() {
*x = ListDataSourcesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListDataSourcesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListDataSourcesResponse) ProtoMessage() {}
func (x *ListDataSourcesResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_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 ListDataSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListDataSourcesResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{4}
}
func (x *ListDataSourcesResponse) GetDataSources() []*DataSource {
if x != nil {
return x.DataSources
}
return nil
}
func (x *ListDataSourcesResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// A request to create a data transfer configuration. If new credentials are
// needed for this transfer configuration, authorization info must be provided.
// If authorization info is provided, the transfer configuration will be
// associated with the user id corresponding to the authorization info.
// Otherwise, the transfer configuration will be associated with the calling
// user.
type CreateTransferConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The BigQuery project id where the transfer configuration should
// be created. Must be in the format
// projects/{project_id}/locations/{location_id} or projects/{project_id}. If
// specified location and location of the destination bigquery dataset do not
// match - the request will fail.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Data transfer configuration to create.
TransferConfig *TransferConfig `protobuf:"bytes,2,opt,name=transfer_config,json=transferConfig,proto3" json:"transfer_config,omitempty"`
// Optional OAuth2 authorization code to use with this transfer configuration.
// This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
// and new credentials are needed, as indicated by `CheckValidCreds`. In order
// to obtain authorization_code, make a request to the following URL:
// <pre class="prettyprint" suppresswarning="true">
// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
// </pre>
// * The <var>client_id</var> is the OAuth client_id of the a data source as
// returned by ListDataSources method.
// * <var>data_source_scopes</var> are the scopes returned by ListDataSources
// method.
//
// Note that this should not be set when `service_account_name` is used to
// create the transfer config.
AuthorizationCode string `protobuf:"bytes,3,opt,name=authorization_code,json=authorizationCode,proto3" json:"authorization_code,omitempty"`
// Optional version info. This is required only if
// `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
// are needed, as indicated by `CheckValidCreds`. In order to obtain version
// info, make a request to the following URL:
// <pre class="prettyprint" suppresswarning="true">
// https://www.gstatic.com/bigquerydatatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
// </pre>
// * The <var>client_id</var> is the OAuth client_id of the a data source as
// returned by ListDataSources method.
// * <var>data_source_scopes</var> are the scopes returned by ListDataSources
// method.
//
// Note that this should not be set when `service_account_name` is used to
// create the transfer config.
VersionInfo string `protobuf:"bytes,5,opt,name=version_info,json=versionInfo,proto3" json:"version_info,omitempty"`
// Optional service account email. If this field is set, the transfer config
// will be created with this service account's credentials. It requires that
// the requesting user calling this API has permissions to act as this service
// account.
//
// Note that not all data sources support service account credentials when
// creating a transfer config. For the latest list of data sources, read about
// [using service
// accounts](https://cloud.google.com/bigquery-transfer/docs/use-service-accounts).
ServiceAccountName string `protobuf:"bytes,6,opt,name=service_account_name,json=serviceAccountName,proto3" json:"service_account_name,omitempty"`
}
func (x *CreateTransferConfigRequest) Reset() {
*x = CreateTransferConfigRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateTransferConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateTransferConfigRequest) ProtoMessage() {}
func (x *CreateTransferConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_bigquery_datatransfer_v1_datatransfer_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 CreateTransferConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateTransferConfigRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_bigquery_datatransfer_v1_datatransfer_proto_rawDescGZIP(), []int{5}
}
func (x *CreateTransferConfigRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateTransferConfigRequest) GetTransferConfig() *TransferConfig {
if x != nil {
return x.TransferConfig
}
return nil
}
func (x *CreateTransferConfigRequest) GetAuthorizationCode() string {
if x != nil {
return x.AuthorizationCode
}
return ""
}
func (x *CreateTransferConfigRequest) GetVersionInfo() string {
if x != nil {
return x.VersionInfo
}
return ""
}
func (x *CreateTransferConfigRequest) GetServiceAccountName() string {
if x != nil {
return x.ServiceAccountName
}