This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
/
DataSource.java
4170 lines (3967 loc) · 120 KB
/
DataSource.java
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 2020 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
*
* https://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.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/bigquery/datatransfer/v1/datatransfer.proto
package com.google.cloud.bigquery.datatransfer.v1;
/**
*
*
* <pre>
* Represents data source metadata. Metadata is sufficient to
* render UI and request proper OAuth tokens.
* </pre>
*
* Protobuf type {@code google.cloud.bigquery.datatransfer.v1.DataSource}
*/
public final class DataSource extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.DataSource)
DataSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataSource.newBuilder() to construct.
private DataSource(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DataSource() {
name_ = "";
dataSourceId_ = "";
displayName_ = "";
description_ = "";
clientId_ = "";
scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
transferType_ = 0;
defaultSchedule_ = "";
parameters_ = java.util.Collections.emptyList();
helpUrl_ = "";
authorizationType_ = 0;
dataRefreshType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataSource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private DataSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
dataSourceId_ = s;
break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
break;
}
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
clientId_ = s;
break;
}
case 50:
{
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
scopes_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
scopes_.add(s);
break;
}
case 56:
{
int rawValue = input.readEnum();
transferType_ = rawValue;
break;
}
case 64:
{
supportsMultipleTransfers_ = input.readBool();
break;
}
case 72:
{
updateDeadlineSeconds_ = input.readInt32();
break;
}
case 82:
{
java.lang.String s = input.readStringRequireUtf8();
defaultSchedule_ = s;
break;
}
case 88:
{
supportsCustomSchedule_ = input.readBool();
break;
}
case 98:
{
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
parameters_ =
new java.util.ArrayList<
com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter>();
mutable_bitField0_ |= 0x00000002;
}
parameters_.add(
input.readMessage(
com.google.cloud.bigquery.datatransfer.v1.DataSourceParameter.parser(),
extensionRegistry));
break;
}
case 106:
{
java.lang.String s = input.readStringRequireUtf8();
helpUrl_ = s;
break;
}
case 112:
{
int rawValue = input.readEnum();
authorizationType_ = rawValue;
break;
}
case 120:
{
int rawValue = input.readEnum();
dataRefreshType_ = rawValue;
break;
}
case 128:
{
defaultDataRefreshWindowDays_ = input.readInt32();
break;
}
case 136:
{
manualRunsDisabled_ = input.readBool();
break;
}
case 146:
{
com.google.protobuf.Duration.Builder subBuilder = null;
if (minimumScheduleInterval_ != null) {
subBuilder = minimumScheduleInterval_.toBuilder();
}
minimumScheduleInterval_ =
input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(minimumScheduleInterval_);
minimumScheduleInterval_ = subBuilder.buildPartial();
}
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
scopes_ = scopes_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
parameters_ = java.util.Collections.unmodifiableList(parameters_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.bigquery.datatransfer.v1.DataTransferProto
.internal_static_google_cloud_bigquery_datatransfer_v1_DataSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.bigquery.datatransfer.v1.DataSource.class,
com.google.cloud.bigquery.datatransfer.v1.DataSource.Builder.class);
}
/**
*
*
* <pre>
* The type of authorization needed for this data source.
* </pre>
*
* Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType}
*/
public enum AuthorizationType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* <pre>
* Type unspecified.
* </pre>
*
* <code>AUTHORIZATION_TYPE_UNSPECIFIED = 0;</code>
*/
AUTHORIZATION_TYPE_UNSPECIFIED(0),
/**
*
*
* <pre>
* Use OAuth 2 authorization codes that can be exchanged
* for a refresh token on the backend.
* </pre>
*
* <code>AUTHORIZATION_CODE = 1;</code>
*/
AUTHORIZATION_CODE(1),
/**
*
*
* <pre>
* Return an authorization code for a given Google+ page that can then be
* exchanged for a refresh token on the backend.
* </pre>
*
* <code>GOOGLE_PLUS_AUTHORIZATION_CODE = 2;</code>
*/
GOOGLE_PLUS_AUTHORIZATION_CODE(2),
UNRECOGNIZED(-1),
;
/**
*
*
* <pre>
* Type unspecified.
* </pre>
*
* <code>AUTHORIZATION_TYPE_UNSPECIFIED = 0;</code>
*/
public static final int AUTHORIZATION_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
* <pre>
* Use OAuth 2 authorization codes that can be exchanged
* for a refresh token on the backend.
* </pre>
*
* <code>AUTHORIZATION_CODE = 1;</code>
*/
public static final int AUTHORIZATION_CODE_VALUE = 1;
/**
*
*
* <pre>
* Return an authorization code for a given Google+ page that can then be
* exchanged for a refresh token on the backend.
* </pre>
*
* <code>GOOGLE_PLUS_AUTHORIZATION_CODE = 2;</code>
*/
public static final int GOOGLE_PLUS_AUTHORIZATION_CODE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AuthorizationType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AuthorizationType forNumber(int value) {
switch (value) {
case 0:
return AUTHORIZATION_TYPE_UNSPECIFIED;
case 1:
return AUTHORIZATION_CODE;
case 2:
return GOOGLE_PLUS_AUTHORIZATION_CODE;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<AuthorizationType>
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<AuthorizationType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<AuthorizationType>() {
public AuthorizationType findValueByNumber(int number) {
return AuthorizationType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final AuthorizationType[] VALUES = values();
public static AuthorizationType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AuthorizationType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datatransfer.v1.DataSource.AuthorizationType)
}
/**
*
*
* <pre>
* Represents how the data source supports data auto refresh.
* </pre>
*
* Protobuf enum {@code google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType}
*/
public enum DataRefreshType implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* <pre>
* The data source won't support data auto refresh, which is default value.
* </pre>
*
* <code>DATA_REFRESH_TYPE_UNSPECIFIED = 0;</code>
*/
DATA_REFRESH_TYPE_UNSPECIFIED(0),
/**
*
*
* <pre>
* 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.
* </pre>
*
* <code>SLIDING_WINDOW = 1;</code>
*/
SLIDING_WINDOW(1),
/**
*
*
* <pre>
* 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.
* </pre>
*
* <code>CUSTOM_SLIDING_WINDOW = 2;</code>
*/
CUSTOM_SLIDING_WINDOW(2),
UNRECOGNIZED(-1),
;
/**
*
*
* <pre>
* The data source won't support data auto refresh, which is default value.
* </pre>
*
* <code>DATA_REFRESH_TYPE_UNSPECIFIED = 0;</code>
*/
public static final int DATA_REFRESH_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
* <pre>
* 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.
* </pre>
*
* <code>SLIDING_WINDOW = 1;</code>
*/
public static final int SLIDING_WINDOW_VALUE = 1;
/**
*
*
* <pre>
* 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.
* </pre>
*
* <code>CUSTOM_SLIDING_WINDOW = 2;</code>
*/
public static final int CUSTOM_SLIDING_WINDOW_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataRefreshType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DataRefreshType forNumber(int value) {
switch (value) {
case 0:
return DATA_REFRESH_TYPE_UNSPECIFIED;
case 1:
return SLIDING_WINDOW;
case 2:
return CUSTOM_SLIDING_WINDOW;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<DataRefreshType> internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<DataRefreshType>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<DataRefreshType>() {
public DataRefreshType findValueByNumber(int number) {
return DataRefreshType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.bigquery.datatransfer.v1.DataSource.getDescriptor()
.getEnumTypes()
.get(1);
}
private static final DataRefreshType[] VALUES = values();
public static DataRefreshType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private DataRefreshType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.bigquery.datatransfer.v1.DataSource.DataRefreshType)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
* <pre>
* Output only. Data source resource name.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
* <pre>
* Output only. Data source resource name.
* </pre>
*
* <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_SOURCE_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object dataSourceId_;
/**
*
*
* <pre>
* Data source id.
* </pre>
*
* <code>string data_source_id = 2;</code>
*
* @return The dataSourceId.
*/
public java.lang.String getDataSourceId() {
java.lang.Object ref = dataSourceId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
dataSourceId_ = s;
return s;
}
}
/**
*
*
* <pre>
* Data source id.
* </pre>
*
* <code>string data_source_id = 2;</code>
*
* @return The bytes for dataSourceId.
*/
public com.google.protobuf.ByteString getDataSourceIdBytes() {
java.lang.Object ref = dataSourceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dataSourceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAY_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object displayName_;
/**
*
*
* <pre>
* User friendly data source name.
* </pre>
*
* <code>string display_name = 3;</code>
*
* @return The displayName.
*/
public java.lang.String getDisplayName() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayName_ = s;
return s;
}
}
/**
*
*
* <pre>
* User friendly data source name.
* </pre>
*
* <code>string display_name = 3;</code>
*
* @return The bytes for displayName.
*/
public com.google.protobuf.ByteString getDisplayNameBytes() {
java.lang.Object ref = displayName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
displayName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
*
* <pre>
* User friendly data source description string.
* </pre>
*
* <code>string description = 4;</code>
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
* <pre>
* User friendly data source description string.
* </pre>
*
* <code>string description = 4;</code>
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object clientId_;
/**
*
*
* <pre>
* Data source client id which should be used to receive refresh token.
* </pre>
*
* <code>string client_id = 5;</code>
*
* @return The clientId.
*/
public java.lang.String getClientId() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientId_ = s;
return s;
}
}
/**
*
*
* <pre>
* Data source client id which should be used to receive refresh token.
* </pre>
*
* <code>string client_id = 5;</code>
*
* @return The bytes for clientId.
*/
public com.google.protobuf.ByteString getClientIdBytes() {
java.lang.Object ref = clientId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
clientId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCOPES_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList scopes_;
/**
*
*
* <pre>
* 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
* </pre>
*
* <code>repeated string scopes = 6;</code>
*
* @return A list containing the scopes.
*/
public com.google.protobuf.ProtocolStringList getScopesList() {
return scopes_;
}
/**
*
*
* <pre>
* 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
* </pre>
*
* <code>repeated string scopes = 6;</code>
*
* @return The count of scopes.
*/
public int getScopesCount() {
return scopes_.size();
}
/**
*
*
* <pre>
* 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
* </pre>
*
* <code>repeated string scopes = 6;</code>
*
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
/**
*
*
* <pre>
* 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
* </pre>
*
* <code>repeated string scopes = 6;</code>
*
* @param index The index of the value to return.
* @return The bytes of the scopes at the given index.
*/
public com.google.protobuf.ByteString getScopesBytes(int index) {
return scopes_.getByteString(index);
}
public static final int TRANSFER_TYPE_FIELD_NUMBER = 7;
private int transferType_;
/**
*
*
* <pre>
* Deprecated. This field has no effect.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];
* </code>
*
* @return The enum numeric value on the wire for transferType.
*/
@java.lang.Deprecated
public int getTransferTypeValue() {
return transferType_;
}
/**
*
*
* <pre>
* Deprecated. This field has no effect.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferType transfer_type = 7 [deprecated = true];
* </code>
*
* @return The transferType.
*/
@java.lang.Deprecated
public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType() {
@SuppressWarnings("deprecation")
com.google.cloud.bigquery.datatransfer.v1.TransferType result =
com.google.cloud.bigquery.datatransfer.v1.TransferType.valueOf(transferType_);
return result == null
? com.google.cloud.bigquery.datatransfer.v1.TransferType.UNRECOGNIZED
: result;
}
public static final int SUPPORTS_MULTIPLE_TRANSFERS_FIELD_NUMBER = 8;
private boolean supportsMultipleTransfers_;
/**
*
*
* <pre>
* Deprecated. This field has no effect.
* </pre>
*
* <code>bool supports_multiple_transfers = 8 [deprecated = true];</code>
*
* @return The supportsMultipleTransfers.
*/
@java.lang.Deprecated
public boolean getSupportsMultipleTransfers() {
return supportsMultipleTransfers_;
}
public static final int UPDATE_DEADLINE_SECONDS_FIELD_NUMBER = 9;
private int updateDeadlineSeconds_;
/**
*
*
* <pre>
* The number of seconds to wait for an update from the data source
* before the Data Transfer Service marks the transfer as FAILED.
* </pre>
*
* <code>int32 update_deadline_seconds = 9;</code>
*
* @return The updateDeadlineSeconds.
*/
public int getUpdateDeadlineSeconds() {
return updateDeadlineSeconds_;
}
public static final int DEFAULT_SCHEDULE_FIELD_NUMBER = 10;
private volatile java.lang.Object defaultSchedule_;
/**
*
*
* <pre>
* 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`.
* </pre>
*
* <code>string default_schedule = 10;</code>
*
* @return The defaultSchedule.
*/
public java.lang.String getDefaultSchedule() {
java.lang.Object ref = defaultSchedule_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultSchedule_ = s;
return s;
}
}
/**
*
*
* <pre>