forked from googleapis/java-spanner
/
datasource.pb.go
1941 lines (1763 loc) · 89 KB
/
datasource.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/bigquery/datatransfer/v1/datasource.proto
package datatransfer
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
empty "github.com/golang/protobuf/ptypes/empty"
_ "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "google.golang.org/genproto/googleapis/api/annotations"
field_mask "google.golang.org/genproto/protobuf/field_mask"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Options for writing to the table.
// The WRITE_EMPTY option is intentionally excluded from the enum and is not
// supported by the data transfer service.
type WriteDisposition int32
const (
// The default writeDispostion
WriteDisposition_WRITE_DISPOSITION_UNSPECIFIED WriteDisposition = 0
// overwrites the table data.
WriteDisposition_WRITE_TRUNCATE WriteDisposition = 1
// the data is appended to the table.
// Note duplication might happen if this mode is used.
WriteDisposition_WRITE_APPEND WriteDisposition = 2
)
var WriteDisposition_name = map[int32]string{
0: "WRITE_DISPOSITION_UNSPECIFIED",
1: "WRITE_TRUNCATE",
2: "WRITE_APPEND",
}
var WriteDisposition_value = map[string]int32{
"WRITE_DISPOSITION_UNSPECIFIED": 0,
"WRITE_TRUNCATE": 1,
"WRITE_APPEND": 2,
}
func (x WriteDisposition) String() string {
return proto.EnumName(WriteDisposition_name, int32(x))
}
func (WriteDisposition) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0}
}
// Data format.
type ImportedDataInfo_Format int32
const (
// Unspecified format. In this case, we have to infer the format from the
// data source.
ImportedDataInfo_FORMAT_UNSPECIFIED ImportedDataInfo_Format = 0
// CSV format.
ImportedDataInfo_CSV ImportedDataInfo_Format = 1
// Newline-delimited JSON.
ImportedDataInfo_JSON ImportedDataInfo_Format = 2
// Avro format. See http://avro.apache.org .
ImportedDataInfo_AVRO ImportedDataInfo_Format = 3
// RecordIO.
ImportedDataInfo_RECORDIO ImportedDataInfo_Format = 4
// ColumnIO.
ImportedDataInfo_COLUMNIO ImportedDataInfo_Format = 5
// Capacitor.
ImportedDataInfo_CAPACITOR ImportedDataInfo_Format = 6
// Parquet format. See https://parquet.apache.org .
ImportedDataInfo_PARQUET ImportedDataInfo_Format = 7
// ORC format. See https://orc.apache.org .
ImportedDataInfo_ORC ImportedDataInfo_Format = 8
)
var ImportedDataInfo_Format_name = map[int32]string{
0: "FORMAT_UNSPECIFIED",
1: "CSV",
2: "JSON",
3: "AVRO",
4: "RECORDIO",
5: "COLUMNIO",
6: "CAPACITOR",
7: "PARQUET",
8: "ORC",
}
var ImportedDataInfo_Format_value = map[string]int32{
"FORMAT_UNSPECIFIED": 0,
"CSV": 1,
"JSON": 2,
"AVRO": 3,
"RECORDIO": 4,
"COLUMNIO": 5,
"CAPACITOR": 6,
"PARQUET": 7,
"ORC": 8,
}
func (x ImportedDataInfo_Format) String() string {
return proto.EnumName(ImportedDataInfo_Format_name, int32(x))
}
func (ImportedDataInfo_Format) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 0}
}
// Encoding of input data in CSV/JSON format.
type ImportedDataInfo_Encoding int32
const (
// Default encoding (UTF8).
ImportedDataInfo_ENCODING_UNSPECIFIED ImportedDataInfo_Encoding = 0
// ISO_8859_1 encoding.
ImportedDataInfo_ISO_8859_1 ImportedDataInfo_Encoding = 1
// UTF8 encoding.
ImportedDataInfo_UTF8 ImportedDataInfo_Encoding = 2
)
var ImportedDataInfo_Encoding_name = map[int32]string{
0: "ENCODING_UNSPECIFIED",
1: "ISO_8859_1",
2: "UTF8",
}
var ImportedDataInfo_Encoding_value = map[string]int32{
"ENCODING_UNSPECIFIED": 0,
"ISO_8859_1": 1,
"UTF8": 2,
}
func (x ImportedDataInfo_Encoding) String() string {
return proto.EnumName(ImportedDataInfo_Encoding_name, int32(x))
}
func (ImportedDataInfo_Encoding) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 1}
}
// LINT.IfChange
// Field type.
type ImportedDataInfo_FieldSchema_Type int32
const (
// Illegal value.
ImportedDataInfo_FieldSchema_TYPE_UNSPECIFIED ImportedDataInfo_FieldSchema_Type = 0
// 64K, UTF8.
ImportedDataInfo_FieldSchema_STRING ImportedDataInfo_FieldSchema_Type = 1
// 64-bit signed.
ImportedDataInfo_FieldSchema_INTEGER ImportedDataInfo_FieldSchema_Type = 2
// 64-bit IEEE floating point.
ImportedDataInfo_FieldSchema_FLOAT ImportedDataInfo_FieldSchema_Type = 3
// Aggregate type.
ImportedDataInfo_FieldSchema_RECORD ImportedDataInfo_FieldSchema_Type = 4
// 64K, Binary.
ImportedDataInfo_FieldSchema_BYTES ImportedDataInfo_FieldSchema_Type = 5
// 2-valued.
ImportedDataInfo_FieldSchema_BOOLEAN ImportedDataInfo_FieldSchema_Type = 6
// 64-bit signed usec since UTC epoch.
ImportedDataInfo_FieldSchema_TIMESTAMP ImportedDataInfo_FieldSchema_Type = 7
// Civil date - Year, Month, Day.
ImportedDataInfo_FieldSchema_DATE ImportedDataInfo_FieldSchema_Type = 8
// Civil time - Hour, Minute, Second, Microseconds.
ImportedDataInfo_FieldSchema_TIME ImportedDataInfo_FieldSchema_Type = 9
// Combination of civil date and civil time.
ImportedDataInfo_FieldSchema_DATETIME ImportedDataInfo_FieldSchema_Type = 10
// Numeric type with 38 decimal digits of precision and 9 decimal digits
// of scale.
ImportedDataInfo_FieldSchema_NUMERIC ImportedDataInfo_FieldSchema_Type = 11
// Geography object (go/googlesql_geography).
ImportedDataInfo_FieldSchema_GEOGRAPHY ImportedDataInfo_FieldSchema_Type = 12
)
var ImportedDataInfo_FieldSchema_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "STRING",
2: "INTEGER",
3: "FLOAT",
4: "RECORD",
5: "BYTES",
6: "BOOLEAN",
7: "TIMESTAMP",
8: "DATE",
9: "TIME",
10: "DATETIME",
11: "NUMERIC",
12: "GEOGRAPHY",
}
var ImportedDataInfo_FieldSchema_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"STRING": 1,
"INTEGER": 2,
"FLOAT": 3,
"RECORD": 4,
"BYTES": 5,
"BOOLEAN": 6,
"TIMESTAMP": 7,
"DATE": 8,
"TIME": 9,
"DATETIME": 10,
"NUMERIC": 11,
"GEOGRAPHY": 12,
}
func (x ImportedDataInfo_FieldSchema_Type) String() string {
return proto.EnumName(ImportedDataInfo_FieldSchema_Type_name, int32(x))
}
func (ImportedDataInfo_FieldSchema_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 0, 0}
}
// Describes data which should be imported.
type ImportedDataInfo struct {
// SQL query to run. When empty, API checks that there is only one
// table_def specified and loads this table. Only Standard SQL queries
// are accepted. Legacy SQL is not allowed.
Sql string `protobuf:"bytes,1,opt,name=sql,proto3" json:"sql,omitempty"`
// Table where results should be written.
DestinationTableId string `protobuf:"bytes,2,opt,name=destination_table_id,json=destinationTableId,proto3" json:"destination_table_id,omitempty"`
// The description of a destination table. This can be several sentences
// or paragraphs describing the table contents in detail.
DestinationTableDescription string `protobuf:"bytes,10,opt,name=destination_table_description,json=destinationTableDescription,proto3" json:"destination_table_description,omitempty"`
// When used WITHOUT the "sql" parameter, describes the schema of the
// destination table.
// When used WITH the "sql" parameter, describes tables with data stored
// outside of BigQuery.
TableDefs []*ImportedDataInfo_TableDefinition `protobuf:"bytes,3,rep,name=table_defs,json=tableDefs,proto3" json:"table_defs,omitempty"`
// Inline code for User-defined function resources.
// Ignored when "sql" parameter is empty.
UserDefinedFunctions []string `protobuf:"bytes,4,rep,name=user_defined_functions,json=userDefinedFunctions,proto3" json:"user_defined_functions,omitempty"`
// Specifies the action if the destination table already exists.
WriteDisposition WriteDisposition `protobuf:"varint,6,opt,name=write_disposition,json=writeDisposition,proto3,enum=google.cloud.bigquery.datatransfer.v1.WriteDisposition" json:"write_disposition,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportedDataInfo) Reset() { *m = ImportedDataInfo{} }
func (m *ImportedDataInfo) String() string { return proto.CompactTextString(m) }
func (*ImportedDataInfo) ProtoMessage() {}
func (*ImportedDataInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0}
}
func (m *ImportedDataInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportedDataInfo.Unmarshal(m, b)
}
func (m *ImportedDataInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportedDataInfo.Marshal(b, m, deterministic)
}
func (m *ImportedDataInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportedDataInfo.Merge(m, src)
}
func (m *ImportedDataInfo) XXX_Size() int {
return xxx_messageInfo_ImportedDataInfo.Size(m)
}
func (m *ImportedDataInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ImportedDataInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ImportedDataInfo proto.InternalMessageInfo
func (m *ImportedDataInfo) GetSql() string {
if m != nil {
return m.Sql
}
return ""
}
func (m *ImportedDataInfo) GetDestinationTableId() string {
if m != nil {
return m.DestinationTableId
}
return ""
}
func (m *ImportedDataInfo) GetDestinationTableDescription() string {
if m != nil {
return m.DestinationTableDescription
}
return ""
}
func (m *ImportedDataInfo) GetTableDefs() []*ImportedDataInfo_TableDefinition {
if m != nil {
return m.TableDefs
}
return nil
}
func (m *ImportedDataInfo) GetUserDefinedFunctions() []string {
if m != nil {
return m.UserDefinedFunctions
}
return nil
}
func (m *ImportedDataInfo) GetWriteDisposition() WriteDisposition {
if m != nil {
return m.WriteDisposition
}
return WriteDisposition_WRITE_DISPOSITION_UNSPECIFIED
}
// Defines schema of a field in the imported data.
type ImportedDataInfo_FieldSchema struct {
// Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127}
FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
// Field type
Type ImportedDataInfo_FieldSchema_Type `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.bigquery.datatransfer.v1.ImportedDataInfo_FieldSchema_Type" json:"type,omitempty"`
// Is field repeated.
IsRepeated bool `protobuf:"varint,3,opt,name=is_repeated,json=isRepeated,proto3" json:"is_repeated,omitempty"`
// Description for this field.
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Present iff type == RECORD.
Schema *ImportedDataInfo_RecordSchema `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportedDataInfo_FieldSchema) Reset() { *m = ImportedDataInfo_FieldSchema{} }
func (m *ImportedDataInfo_FieldSchema) String() string { return proto.CompactTextString(m) }
func (*ImportedDataInfo_FieldSchema) ProtoMessage() {}
func (*ImportedDataInfo_FieldSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 0}
}
func (m *ImportedDataInfo_FieldSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportedDataInfo_FieldSchema.Unmarshal(m, b)
}
func (m *ImportedDataInfo_FieldSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportedDataInfo_FieldSchema.Marshal(b, m, deterministic)
}
func (m *ImportedDataInfo_FieldSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportedDataInfo_FieldSchema.Merge(m, src)
}
func (m *ImportedDataInfo_FieldSchema) XXX_Size() int {
return xxx_messageInfo_ImportedDataInfo_FieldSchema.Size(m)
}
func (m *ImportedDataInfo_FieldSchema) XXX_DiscardUnknown() {
xxx_messageInfo_ImportedDataInfo_FieldSchema.DiscardUnknown(m)
}
var xxx_messageInfo_ImportedDataInfo_FieldSchema proto.InternalMessageInfo
func (m *ImportedDataInfo_FieldSchema) GetFieldName() string {
if m != nil {
return m.FieldName
}
return ""
}
func (m *ImportedDataInfo_FieldSchema) GetType() ImportedDataInfo_FieldSchema_Type {
if m != nil {
return m.Type
}
return ImportedDataInfo_FieldSchema_TYPE_UNSPECIFIED
}
func (m *ImportedDataInfo_FieldSchema) GetIsRepeated() bool {
if m != nil {
return m.IsRepeated
}
return false
}
func (m *ImportedDataInfo_FieldSchema) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ImportedDataInfo_FieldSchema) GetSchema() *ImportedDataInfo_RecordSchema {
if m != nil {
return m.Schema
}
return nil
}
// Describes schema of the data to be ingested.
type ImportedDataInfo_RecordSchema struct {
// One field per column in the record.
Fields []*ImportedDataInfo_FieldSchema `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportedDataInfo_RecordSchema) Reset() { *m = ImportedDataInfo_RecordSchema{} }
func (m *ImportedDataInfo_RecordSchema) String() string { return proto.CompactTextString(m) }
func (*ImportedDataInfo_RecordSchema) ProtoMessage() {}
func (*ImportedDataInfo_RecordSchema) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 1}
}
func (m *ImportedDataInfo_RecordSchema) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportedDataInfo_RecordSchema.Unmarshal(m, b)
}
func (m *ImportedDataInfo_RecordSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportedDataInfo_RecordSchema.Marshal(b, m, deterministic)
}
func (m *ImportedDataInfo_RecordSchema) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportedDataInfo_RecordSchema.Merge(m, src)
}
func (m *ImportedDataInfo_RecordSchema) XXX_Size() int {
return xxx_messageInfo_ImportedDataInfo_RecordSchema.Size(m)
}
func (m *ImportedDataInfo_RecordSchema) XXX_DiscardUnknown() {
xxx_messageInfo_ImportedDataInfo_RecordSchema.DiscardUnknown(m)
}
var xxx_messageInfo_ImportedDataInfo_RecordSchema proto.InternalMessageInfo
func (m *ImportedDataInfo_RecordSchema) GetFields() []*ImportedDataInfo_FieldSchema {
if m != nil {
return m.Fields
}
return nil
}
// External table definition. These tables can be referenced with 'name'
// in the query and can be read just like any other table.
type ImportedDataInfo_TableDefinition struct {
// BigQuery table_id (required). This will be used to reference this
// table in the query.
TableId string `protobuf:"bytes,1,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// URIs for the data to be imported. All URIs must be from the same storage
// system.
SourceUris []string `protobuf:"bytes,2,rep,name=source_uris,json=sourceUris,proto3" json:"source_uris,omitempty"`
// Describes the format of the data in source_uri.
Format ImportedDataInfo_Format `protobuf:"varint,3,opt,name=format,proto3,enum=google.cloud.bigquery.datatransfer.v1.ImportedDataInfo_Format" json:"format,omitempty"`
// Specify the maximum number of bad records that can be ignored.
// If bad records exceed this threshold the query is aborted.
MaxBadRecords int32 `protobuf:"varint,4,opt,name=max_bad_records,json=maxBadRecords,proto3" json:"max_bad_records,omitempty"`
// Character encoding of the input when applicable (CSV, JSON).
// Defaults to UTF8.
Encoding ImportedDataInfo_Encoding `protobuf:"varint,5,opt,name=encoding,proto3,enum=google.cloud.bigquery.datatransfer.v1.ImportedDataInfo_Encoding" json:"encoding,omitempty"`
// CSV specific options.
CsvOptions *ImportedDataInfo_TableDefinition_CsvOptions `protobuf:"bytes,6,opt,name=csv_options,json=csvOptions,proto3" json:"csv_options,omitempty"`
// Optional schema for the data. When not specified for JSON and CSV formats
// we will try to detect it automatically.
Schema *ImportedDataInfo_RecordSchema `protobuf:"bytes,7,opt,name=schema,proto3" json:"schema,omitempty"`
// Indicates if extra values that are not represented in the table schema is
// allowed.
IgnoreUnknownValues *wrappers.BoolValue `protobuf:"bytes,10,opt,name=ignore_unknown_values,json=ignoreUnknownValues,proto3" json:"ignore_unknown_values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportedDataInfo_TableDefinition) Reset() { *m = ImportedDataInfo_TableDefinition{} }
func (m *ImportedDataInfo_TableDefinition) String() string { return proto.CompactTextString(m) }
func (*ImportedDataInfo_TableDefinition) ProtoMessage() {}
func (*ImportedDataInfo_TableDefinition) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 2}
}
func (m *ImportedDataInfo_TableDefinition) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportedDataInfo_TableDefinition.Unmarshal(m, b)
}
func (m *ImportedDataInfo_TableDefinition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportedDataInfo_TableDefinition.Marshal(b, m, deterministic)
}
func (m *ImportedDataInfo_TableDefinition) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportedDataInfo_TableDefinition.Merge(m, src)
}
func (m *ImportedDataInfo_TableDefinition) XXX_Size() int {
return xxx_messageInfo_ImportedDataInfo_TableDefinition.Size(m)
}
func (m *ImportedDataInfo_TableDefinition) XXX_DiscardUnknown() {
xxx_messageInfo_ImportedDataInfo_TableDefinition.DiscardUnknown(m)
}
var xxx_messageInfo_ImportedDataInfo_TableDefinition proto.InternalMessageInfo
func (m *ImportedDataInfo_TableDefinition) GetTableId() string {
if m != nil {
return m.TableId
}
return ""
}
func (m *ImportedDataInfo_TableDefinition) GetSourceUris() []string {
if m != nil {
return m.SourceUris
}
return nil
}
func (m *ImportedDataInfo_TableDefinition) GetFormat() ImportedDataInfo_Format {
if m != nil {
return m.Format
}
return ImportedDataInfo_FORMAT_UNSPECIFIED
}
func (m *ImportedDataInfo_TableDefinition) GetMaxBadRecords() int32 {
if m != nil {
return m.MaxBadRecords
}
return 0
}
func (m *ImportedDataInfo_TableDefinition) GetEncoding() ImportedDataInfo_Encoding {
if m != nil {
return m.Encoding
}
return ImportedDataInfo_ENCODING_UNSPECIFIED
}
func (m *ImportedDataInfo_TableDefinition) GetCsvOptions() *ImportedDataInfo_TableDefinition_CsvOptions {
if m != nil {
return m.CsvOptions
}
return nil
}
func (m *ImportedDataInfo_TableDefinition) GetSchema() *ImportedDataInfo_RecordSchema {
if m != nil {
return m.Schema
}
return nil
}
func (m *ImportedDataInfo_TableDefinition) GetIgnoreUnknownValues() *wrappers.BoolValue {
if m != nil {
return m.IgnoreUnknownValues
}
return nil
}
// CSV specific options.
type ImportedDataInfo_TableDefinition_CsvOptions struct {
// The delimiter. We currently restrict this to U+0001 to U+00FF and
// apply additional constraints during validation.
FieldDelimiter *wrappers.StringValue `protobuf:"bytes,1,opt,name=field_delimiter,json=fieldDelimiter,proto3" json:"field_delimiter,omitempty"`
// Whether CSV files are allowed to have quoted newlines. If quoted
// newlines are allowed, we can't split CSV files.
AllowQuotedNewlines *wrappers.BoolValue `protobuf:"bytes,2,opt,name=allow_quoted_newlines,json=allowQuotedNewlines,proto3" json:"allow_quoted_newlines,omitempty"`
// The quote character. We currently restrict this to U+0000 to U+00FF
// and apply additional constraints during validation. Set to '\0' to
// indicate no quote is used.
QuoteChar *wrappers.StringValue `protobuf:"bytes,3,opt,name=quote_char,json=quoteChar,proto3" json:"quote_char,omitempty"`
// Number of leading rows to skip.
SkipLeadingRows *wrappers.Int64Value `protobuf:"bytes,4,opt,name=skip_leading_rows,json=skipLeadingRows,proto3" json:"skip_leading_rows,omitempty"`
// Accept rows that are missing trailing optional columns.
AllowJaggedRows *wrappers.BoolValue `protobuf:"bytes,5,opt,name=allow_jagged_rows,json=allowJaggedRows,proto3" json:"allow_jagged_rows,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) Reset() {
*m = ImportedDataInfo_TableDefinition_CsvOptions{}
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) String() string {
return proto.CompactTextString(m)
}
func (*ImportedDataInfo_TableDefinition_CsvOptions) ProtoMessage() {}
func (*ImportedDataInfo_TableDefinition_CsvOptions) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{0, 2, 0}
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportedDataInfo_TableDefinition_CsvOptions.Unmarshal(m, b)
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportedDataInfo_TableDefinition_CsvOptions.Marshal(b, m, deterministic)
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportedDataInfo_TableDefinition_CsvOptions.Merge(m, src)
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) XXX_Size() int {
return xxx_messageInfo_ImportedDataInfo_TableDefinition_CsvOptions.Size(m)
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) XXX_DiscardUnknown() {
xxx_messageInfo_ImportedDataInfo_TableDefinition_CsvOptions.DiscardUnknown(m)
}
var xxx_messageInfo_ImportedDataInfo_TableDefinition_CsvOptions proto.InternalMessageInfo
func (m *ImportedDataInfo_TableDefinition_CsvOptions) GetFieldDelimiter() *wrappers.StringValue {
if m != nil {
return m.FieldDelimiter
}
return nil
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) GetAllowQuotedNewlines() *wrappers.BoolValue {
if m != nil {
return m.AllowQuotedNewlines
}
return nil
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) GetQuoteChar() *wrappers.StringValue {
if m != nil {
return m.QuoteChar
}
return nil
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) GetSkipLeadingRows() *wrappers.Int64Value {
if m != nil {
return m.SkipLeadingRows
}
return nil
}
func (m *ImportedDataInfo_TableDefinition_CsvOptions) GetAllowJaggedRows() *wrappers.BoolValue {
if m != nil {
return m.AllowJaggedRows
}
return nil
}
// A request to update a transfer run.
type UpdateTransferRunRequest struct {
// Run name must be set and correspond to an already existing run. Only
// state, error_status, and data_version fields will be updated. All other
// fields will be ignored.
TransferRun *TransferRun `protobuf:"bytes,1,opt,name=transfer_run,json=transferRun,proto3" json:"transfer_run,omitempty"`
// Required list of fields to be updated in this request.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateTransferRunRequest) Reset() { *m = UpdateTransferRunRequest{} }
func (m *UpdateTransferRunRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateTransferRunRequest) ProtoMessage() {}
func (*UpdateTransferRunRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{1}
}
func (m *UpdateTransferRunRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateTransferRunRequest.Unmarshal(m, b)
}
func (m *UpdateTransferRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateTransferRunRequest.Marshal(b, m, deterministic)
}
func (m *UpdateTransferRunRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateTransferRunRequest.Merge(m, src)
}
func (m *UpdateTransferRunRequest) XXX_Size() int {
return xxx_messageInfo_UpdateTransferRunRequest.Size(m)
}
func (m *UpdateTransferRunRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateTransferRunRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateTransferRunRequest proto.InternalMessageInfo
func (m *UpdateTransferRunRequest) GetTransferRun() *TransferRun {
if m != nil {
return m.TransferRun
}
return nil
}
func (m *UpdateTransferRunRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// A request to add transfer status messages to the run.
type LogTransferRunMessagesRequest struct {
// Name of the resource in the form:
// "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Messages to append.
TransferMessages []*TransferMessage `protobuf:"bytes,2,rep,name=transfer_messages,json=transferMessages,proto3" json:"transfer_messages,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogTransferRunMessagesRequest) Reset() { *m = LogTransferRunMessagesRequest{} }
func (m *LogTransferRunMessagesRequest) String() string { return proto.CompactTextString(m) }
func (*LogTransferRunMessagesRequest) ProtoMessage() {}
func (*LogTransferRunMessagesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{2}
}
func (m *LogTransferRunMessagesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogTransferRunMessagesRequest.Unmarshal(m, b)
}
func (m *LogTransferRunMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogTransferRunMessagesRequest.Marshal(b, m, deterministic)
}
func (m *LogTransferRunMessagesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogTransferRunMessagesRequest.Merge(m, src)
}
func (m *LogTransferRunMessagesRequest) XXX_Size() int {
return xxx_messageInfo_LogTransferRunMessagesRequest.Size(m)
}
func (m *LogTransferRunMessagesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_LogTransferRunMessagesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_LogTransferRunMessagesRequest proto.InternalMessageInfo
func (m *LogTransferRunMessagesRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *LogTransferRunMessagesRequest) GetTransferMessages() []*TransferMessage {
if m != nil {
return m.TransferMessages
}
return nil
}
// A request to start and monitor a BigQuery load job.
type StartBigQueryJobsRequest struct {
// Name of the resource in the form:
// "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Import jobs which should be started and monitored.
ImportedData []*ImportedDataInfo `protobuf:"bytes,2,rep,name=imported_data,json=importedData,proto3" json:"imported_data,omitempty"`
// User credentials which should be used to start/monitor
// BigQuery jobs. If not specified, then jobs
// are started using data source service account credentials.
// This may be OAuth token or JWT token.
UserCredentials []byte `protobuf:"bytes,3,opt,name=user_credentials,json=userCredentials,proto3" json:"user_credentials,omitempty"`
// The number of BQ Jobs that can run in parallel.
MaxParallelism int32 `protobuf:"varint,8,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StartBigQueryJobsRequest) Reset() { *m = StartBigQueryJobsRequest{} }
func (m *StartBigQueryJobsRequest) String() string { return proto.CompactTextString(m) }
func (*StartBigQueryJobsRequest) ProtoMessage() {}
func (*StartBigQueryJobsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{3}
}
func (m *StartBigQueryJobsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StartBigQueryJobsRequest.Unmarshal(m, b)
}
func (m *StartBigQueryJobsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StartBigQueryJobsRequest.Marshal(b, m, deterministic)
}
func (m *StartBigQueryJobsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartBigQueryJobsRequest.Merge(m, src)
}
func (m *StartBigQueryJobsRequest) XXX_Size() int {
return xxx_messageInfo_StartBigQueryJobsRequest.Size(m)
}
func (m *StartBigQueryJobsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StartBigQueryJobsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StartBigQueryJobsRequest proto.InternalMessageInfo
func (m *StartBigQueryJobsRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *StartBigQueryJobsRequest) GetImportedData() []*ImportedDataInfo {
if m != nil {
return m.ImportedData
}
return nil
}
func (m *StartBigQueryJobsRequest) GetUserCredentials() []byte {
if m != nil {
return m.UserCredentials
}
return nil
}
func (m *StartBigQueryJobsRequest) GetMaxParallelism() int32 {
if m != nil {
return m.MaxParallelism
}
return 0
}
// A request to finish a run.
type FinishRunRequest struct {
// Name of the resource in the form:
// "projects/{project_id}/locations/{location_id}/transferConfigs/{config_id}/runs/{run_id}"
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FinishRunRequest) Reset() { *m = FinishRunRequest{} }
func (m *FinishRunRequest) String() string { return proto.CompactTextString(m) }
func (*FinishRunRequest) ProtoMessage() {}
func (*FinishRunRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{4}
}
func (m *FinishRunRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FinishRunRequest.Unmarshal(m, b)
}
func (m *FinishRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FinishRunRequest.Marshal(b, m, deterministic)
}
func (m *FinishRunRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FinishRunRequest.Merge(m, src)
}
func (m *FinishRunRequest) XXX_Size() int {
return xxx_messageInfo_FinishRunRequest.Size(m)
}
func (m *FinishRunRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FinishRunRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FinishRunRequest proto.InternalMessageInfo
func (m *FinishRunRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Represents the request of the CreateDataSourceDefinition method.
type CreateDataSourceDefinitionRequest struct {
// The BigQuery project id for which data source definition is associated.
// Must be in the form: `projects/{project_id}/locations/{location_id}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Data source definition.
DataSourceDefinition *DataSourceDefinition `protobuf:"bytes,2,opt,name=data_source_definition,json=dataSourceDefinition,proto3" json:"data_source_definition,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateDataSourceDefinitionRequest) Reset() { *m = CreateDataSourceDefinitionRequest{} }
func (m *CreateDataSourceDefinitionRequest) String() string { return proto.CompactTextString(m) }
func (*CreateDataSourceDefinitionRequest) ProtoMessage() {}
func (*CreateDataSourceDefinitionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{5}
}
func (m *CreateDataSourceDefinitionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateDataSourceDefinitionRequest.Unmarshal(m, b)
}
func (m *CreateDataSourceDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateDataSourceDefinitionRequest.Marshal(b, m, deterministic)
}
func (m *CreateDataSourceDefinitionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateDataSourceDefinitionRequest.Merge(m, src)
}
func (m *CreateDataSourceDefinitionRequest) XXX_Size() int {
return xxx_messageInfo_CreateDataSourceDefinitionRequest.Size(m)
}
func (m *CreateDataSourceDefinitionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateDataSourceDefinitionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateDataSourceDefinitionRequest proto.InternalMessageInfo
func (m *CreateDataSourceDefinitionRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateDataSourceDefinitionRequest) GetDataSourceDefinition() *DataSourceDefinition {
if m != nil {
return m.DataSourceDefinition
}
return nil
}
// Represents the request of the UpdateDataSourceDefinition method.
type UpdateDataSourceDefinitionRequest struct {
// Data source definition.
DataSourceDefinition *DataSourceDefinition `protobuf:"bytes,1,opt,name=data_source_definition,json=dataSourceDefinition,proto3" json:"data_source_definition,omitempty"`
// Update field mask.
UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateDataSourceDefinitionRequest) Reset() { *m = UpdateDataSourceDefinitionRequest{} }
func (m *UpdateDataSourceDefinitionRequest) String() string { return proto.CompactTextString(m) }
func (*UpdateDataSourceDefinitionRequest) ProtoMessage() {}
func (*UpdateDataSourceDefinitionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{6}
}
func (m *UpdateDataSourceDefinitionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateDataSourceDefinitionRequest.Unmarshal(m, b)
}
func (m *UpdateDataSourceDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateDataSourceDefinitionRequest.Marshal(b, m, deterministic)
}
func (m *UpdateDataSourceDefinitionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateDataSourceDefinitionRequest.Merge(m, src)
}
func (m *UpdateDataSourceDefinitionRequest) XXX_Size() int {
return xxx_messageInfo_UpdateDataSourceDefinitionRequest.Size(m)
}
func (m *UpdateDataSourceDefinitionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateDataSourceDefinitionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateDataSourceDefinitionRequest proto.InternalMessageInfo
func (m *UpdateDataSourceDefinitionRequest) GetDataSourceDefinition() *DataSourceDefinition {
if m != nil {
return m.DataSourceDefinition
}
return nil
}
func (m *UpdateDataSourceDefinitionRequest) GetUpdateMask() *field_mask.FieldMask {
if m != nil {
return m.UpdateMask
}
return nil
}
// Represents the request of the DeleteDataSourceDefinition method. All transfer
// configs associated with the data source must be deleted first, before the
// data source can be deleted.
type DeleteDataSourceDefinitionRequest struct {
// The field will contain name of the resource requested, for example:
// `projects/{project_id}/locations/{location_id}/dataSourceDefinitions/{data_source_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteDataSourceDefinitionRequest) Reset() { *m = DeleteDataSourceDefinitionRequest{} }
func (m *DeleteDataSourceDefinitionRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteDataSourceDefinitionRequest) ProtoMessage() {}
func (*DeleteDataSourceDefinitionRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_63170854e2f004ff, []int{7}
}
func (m *DeleteDataSourceDefinitionRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteDataSourceDefinitionRequest.Unmarshal(m, b)
}
func (m *DeleteDataSourceDefinitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteDataSourceDefinitionRequest.Marshal(b, m, deterministic)
}
func (m *DeleteDataSourceDefinitionRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteDataSourceDefinitionRequest.Merge(m, src)
}
func (m *DeleteDataSourceDefinitionRequest) XXX_Size() int {
return xxx_messageInfo_DeleteDataSourceDefinitionRequest.Size(m)
}
func (m *DeleteDataSourceDefinitionRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteDataSourceDefinitionRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteDataSourceDefinitionRequest proto.InternalMessageInfo
func (m *DeleteDataSourceDefinitionRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}