This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
/
TransferConfig.java
3883 lines (3705 loc) · 114 KB
/
TransferConfig.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/transfer.proto
package com.google.cloud.bigquery.datatransfer.v1;
/**
*
*
* <pre>
* Represents a data transfer configuration. A transfer configuration
* contains all metadata needed to perform a data transfer. For example,
* `destination_dataset_id` specifies where data should be stored.
* When a new transfer configuration is created, the specified
* `destination_dataset_id` is created when needed and shared with the
* appropriate data source service account.
* </pre>
*
* Protobuf type {@code google.cloud.bigquery.datatransfer.v1.TransferConfig}
*/
public final class TransferConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.bigquery.datatransfer.v1.TransferConfig)
TransferConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferConfig.newBuilder() to construct.
private TransferConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TransferConfig() {
name_ = "";
displayName_ = "";
dataSourceId_ = "";
schedule_ = "";
state_ = 0;
datasetRegion_ = "";
notificationPubsubTopic_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TransferConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TransferConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
destinationCase_ = 2;
destination_ = s;
break;
}
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
displayName_ = s;
break;
}
case 34:
{
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (updateTime_ != null) {
subBuilder = updateTime_.toBuilder();
}
updateTime_ =
input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateTime_);
updateTime_ = subBuilder.buildPartial();
}
break;
}
case 42:
{
java.lang.String s = input.readStringRequireUtf8();
dataSourceId_ = s;
break;
}
case 58:
{
java.lang.String s = input.readStringRequireUtf8();
schedule_ = s;
break;
}
case 66:
{
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (nextRunTime_ != null) {
subBuilder = nextRunTime_.toBuilder();
}
nextRunTime_ =
input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nextRunTime_);
nextRunTime_ = subBuilder.buildPartial();
}
break;
}
case 74:
{
com.google.protobuf.Struct.Builder subBuilder = null;
if (params_ != null) {
subBuilder = params_.toBuilder();
}
params_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(params_);
params_ = subBuilder.buildPartial();
}
break;
}
case 80:
{
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 88:
{
userId_ = input.readInt64();
break;
}
case 96:
{
dataRefreshWindowDays_ = input.readInt32();
break;
}
case 104:
{
disabled_ = input.readBool();
break;
}
case 114:
{
java.lang.String s = input.readStringRequireUtf8();
datasetRegion_ = s;
break;
}
case 122:
{
java.lang.String s = input.readStringRequireUtf8();
notificationPubsubTopic_ = s;
break;
}
case 146:
{
com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.Builder subBuilder = null;
if (emailPreferences_ != null) {
subBuilder = emailPreferences_.toBuilder();
}
emailPreferences_ =
input.readMessage(
com.google.cloud.bigquery.datatransfer.v1.EmailPreferences.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(emailPreferences_);
emailPreferences_ = subBuilder.buildPartial();
}
break;
}
case 194:
{
com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.Builder subBuilder = null;
if (scheduleOptions_ != null) {
subBuilder = scheduleOptions_.toBuilder();
}
scheduleOptions_ =
input.readMessage(
com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.parser(),
extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scheduleOptions_);
scheduleOptions_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.bigquery.datatransfer.v1.TransferProto
.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.bigquery.datatransfer.v1.TransferProto
.internal_static_google_cloud_bigquery_datatransfer_v1_TransferConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.bigquery.datatransfer.v1.TransferConfig.class,
com.google.cloud.bigquery.datatransfer.v1.TransferConfig.Builder.class);
}
private int destinationCase_ = 0;
private java.lang.Object destination_;
public enum DestinationCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DESTINATION_DATASET_ID(2),
DESTINATION_NOT_SET(0);
private final int value;
private DestinationCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DestinationCase valueOf(int value) {
return forNumber(value);
}
public static DestinationCase forNumber(int value) {
switch (value) {
case 2:
return DESTINATION_DATASET_ID;
case 0:
return DESTINATION_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public DestinationCase getDestinationCase() {
return DestinationCase.forNumber(destinationCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
* <pre>
* The resource name of the transfer config.
* Transfer config names have the form of
* `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
* The name is automatically generated based on the config_id specified in
* CreateTransferConfigRequest along with project_id and region. If config_id
* is not provided, usually a uuid, even though it is not guaranteed or
* required, will be generated for config_id.
* </pre>
*
* <code>string name = 1;</code>
*
* @return The name.
*/
@java.lang.Override
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>
* The resource name of the transfer config.
* Transfer config names have the form of
* `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`.
* The name is automatically generated based on the config_id specified in
* CreateTransferConfigRequest along with project_id and region. If config_id
* is not provided, usually a uuid, even though it is not guaranteed or
* required, will be generated for config_id.
* </pre>
*
* <code>string name = 1;</code>
*
* @return The bytes for name.
*/
@java.lang.Override
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 DESTINATION_DATASET_ID_FIELD_NUMBER = 2;
/**
*
*
* <pre>
* The BigQuery target dataset id.
* </pre>
*
* <code>string destination_dataset_id = 2;</code>
*
* @return Whether the destinationDatasetId field is set.
*/
public boolean hasDestinationDatasetId() {
return destinationCase_ == 2;
}
/**
*
*
* <pre>
* The BigQuery target dataset id.
* </pre>
*
* <code>string destination_dataset_id = 2;</code>
*
* @return The destinationDatasetId.
*/
public java.lang.String getDestinationDatasetId() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
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();
if (destinationCase_ == 2) {
destination_ = s;
}
return s;
}
}
/**
*
*
* <pre>
* The BigQuery target dataset id.
* </pre>
*
* <code>string destination_dataset_id = 2;</code>
*
* @return The bytes for destinationDatasetId.
*/
public com.google.protobuf.ByteString getDestinationDatasetIdBytes() {
java.lang.Object ref = "";
if (destinationCase_ == 2) {
ref = destination_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (destinationCase_ == 2) {
destination_ = 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 specified display name for the data transfer.
* </pre>
*
* <code>string display_name = 3;</code>
*
* @return The displayName.
*/
@java.lang.Override
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 specified display name for the data transfer.
* </pre>
*
* <code>string display_name = 3;</code>
*
* @return The bytes for displayName.
*/
@java.lang.Override
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 DATA_SOURCE_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object dataSourceId_;
/**
*
*
* <pre>
* Data source id. Cannot be changed once data transfer is created.
* </pre>
*
* <code>string data_source_id = 5;</code>
*
* @return The dataSourceId.
*/
@java.lang.Override
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. Cannot be changed once data transfer is created.
* </pre>
*
* <code>string data_source_id = 5;</code>
*
* @return The bytes for dataSourceId.
*/
@java.lang.Override
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 PARAMS_FIELD_NUMBER = 9;
private com.google.protobuf.Struct params_;
/**
*
*
* <pre>
* Data transfer specific parameters.
* </pre>
*
* <code>.google.protobuf.Struct params = 9;</code>
*
* @return Whether the params field is set.
*/
@java.lang.Override
public boolean hasParams() {
return params_ != null;
}
/**
*
*
* <pre>
* Data transfer specific parameters.
* </pre>
*
* <code>.google.protobuf.Struct params = 9;</code>
*
* @return The params.
*/
@java.lang.Override
public com.google.protobuf.Struct getParams() {
return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_;
}
/**
*
*
* <pre>
* Data transfer specific parameters.
* </pre>
*
* <code>.google.protobuf.Struct params = 9;</code>
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getParamsOrBuilder() {
return getParams();
}
public static final int SCHEDULE_FIELD_NUMBER = 7;
private volatile java.lang.Object schedule_;
/**
*
*
* <pre>
* Data transfer schedule.
* If the data source does not support a custom schedule, this should be
* empty. If it is empty, the default value for the data source will be
* used.
* The specified times are in UTC.
* Examples of valid format:
* `1st,3rd monday of month 15:30`,
* `every wed,fri of jan,jun 13:15`, and
* `first sunday of quarter 00:00`.
* See more explanation about the format here:
* https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
* NOTE: the granularity should be at least 8 hours, or less frequent.
* </pre>
*
* <code>string schedule = 7;</code>
*
* @return The schedule.
*/
@java.lang.Override
public java.lang.String getSchedule() {
java.lang.Object ref = schedule_;
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();
schedule_ = s;
return s;
}
}
/**
*
*
* <pre>
* Data transfer schedule.
* If the data source does not support a custom schedule, this should be
* empty. If it is empty, the default value for the data source will be
* used.
* The specified times are in UTC.
* Examples of valid format:
* `1st,3rd monday of month 15:30`,
* `every wed,fri of jan,jun 13:15`, and
* `first sunday of quarter 00:00`.
* See more explanation about the format here:
* https://cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#the_schedule_format
* NOTE: the granularity should be at least 8 hours, or less frequent.
* </pre>
*
* <code>string schedule = 7;</code>
*
* @return The bytes for schedule.
*/
@java.lang.Override
public com.google.protobuf.ByteString getScheduleBytes() {
java.lang.Object ref = schedule_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
schedule_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCHEDULE_OPTIONS_FIELD_NUMBER = 24;
private com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions scheduleOptions_;
/**
*
*
* <pre>
* Options customizing the data transfer schedule.
* </pre>
*
* <code>.google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24;</code>
*
* @return Whether the scheduleOptions field is set.
*/
@java.lang.Override
public boolean hasScheduleOptions() {
return scheduleOptions_ != null;
}
/**
*
*
* <pre>
* Options customizing the data transfer schedule.
* </pre>
*
* <code>.google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24;</code>
*
* @return The scheduleOptions.
*/
@java.lang.Override
public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions getScheduleOptions() {
return scheduleOptions_ == null
? com.google.cloud.bigquery.datatransfer.v1.ScheduleOptions.getDefaultInstance()
: scheduleOptions_;
}
/**
*
*
* <pre>
* Options customizing the data transfer schedule.
* </pre>
*
* <code>.google.cloud.bigquery.datatransfer.v1.ScheduleOptions schedule_options = 24;</code>
*/
@java.lang.Override
public com.google.cloud.bigquery.datatransfer.v1.ScheduleOptionsOrBuilder
getScheduleOptionsOrBuilder() {
return getScheduleOptions();
}
public static final int DATA_REFRESH_WINDOW_DAYS_FIELD_NUMBER = 12;
private int dataRefreshWindowDays_;
/**
*
*
* <pre>
* The number of days to look back to automatically refresh the data.
* For example, if `data_refresh_window_days = 10`, then every day
* BigQuery reingests data for [today-10, today-1], rather than ingesting data
* for just [today-1].
* Only valid if the data source supports the feature. Set the value to 0
* to use the default value.
* </pre>
*
* <code>int32 data_refresh_window_days = 12;</code>
*
* @return The dataRefreshWindowDays.
*/
@java.lang.Override
public int getDataRefreshWindowDays() {
return dataRefreshWindowDays_;
}
public static final int DISABLED_FIELD_NUMBER = 13;
private boolean disabled_;
/**
*
*
* <pre>
* Is this config disabled. When set to true, no runs are scheduled
* for a given transfer.
* </pre>
*
* <code>bool disabled = 13;</code>
*
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int UPDATE_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp updateTime_;
/**
*
*
* <pre>
* Output only. Data transfer modification time. Ignored by server on input.
* </pre>
*
* <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return Whether the updateTime field is set.
*/
@java.lang.Override
public boolean hasUpdateTime() {
return updateTime_ != null;
}
/**
*
*
* <pre>
* Output only. Data transfer modification time. Ignored by server on input.
* </pre>
*
* <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return The updateTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getUpdateTime() {
return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
}
/**
*
*
* <pre>
* Output only. Data transfer modification time. Ignored by server on input.
* </pre>
*
* <code>.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
return getUpdateTime();
}
public static final int NEXT_RUN_TIME_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp nextRunTime_;
/**
*
*
* <pre>
* Output only. Next time when data transfer will run.
* </pre>
*
* <code>
* .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return Whether the nextRunTime field is set.
*/
@java.lang.Override
public boolean hasNextRunTime() {
return nextRunTime_ != null;
}
/**
*
*
* <pre>
* Output only. Next time when data transfer will run.
* </pre>
*
* <code>
* .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return The nextRunTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getNextRunTime() {
return nextRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : nextRunTime_;
}
/**
*
*
* <pre>
* Output only. Next time when data transfer will run.
* </pre>
*
* <code>
* .google.protobuf.Timestamp next_run_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getNextRunTimeOrBuilder() {
return getNextRunTime();
}
public static final int STATE_FIELD_NUMBER = 10;
private int state_;
/**
*
*
* <pre>
* Output only. State of the most recently updated transfer run.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
* <pre>
* Output only. State of the most recently updated transfer run.
* </pre>
*
* <code>
* .google.cloud.bigquery.datatransfer.v1.TransferState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
* </code>
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.bigquery.datatransfer.v1.TransferState getState() {
@SuppressWarnings("deprecation")
com.google.cloud.bigquery.datatransfer.v1.TransferState result =
com.google.cloud.bigquery.datatransfer.v1.TransferState.valueOf(state_);
return result == null
? com.google.cloud.bigquery.datatransfer.v1.TransferState.UNRECOGNIZED
: result;
}
public static final int USER_ID_FIELD_NUMBER = 11;
private long userId_;
/**
*
*
* <pre>
* Deprecated. Unique ID of the user on whose behalf transfer is done.
* </pre>
*
* <code>int64 user_id = 11;</code>
*
* @return The userId.
*/
@java.lang.Override
public long getUserId() {
return userId_;
}
public static final int DATASET_REGION_FIELD_NUMBER = 14;
private volatile java.lang.Object datasetRegion_;
/**
*
*
* <pre>
* Output only. Region in which BigQuery dataset is located.
* </pre>
*
* <code>string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The datasetRegion.
*/
@java.lang.Override
public java.lang.String getDatasetRegion() {
java.lang.Object ref = datasetRegion_;
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();
datasetRegion_ = s;
return s;
}
}
/**
*
*
* <pre>
* Output only. Region in which BigQuery dataset is located.
* </pre>
*
* <code>string dataset_region = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*
* @return The bytes for datasetRegion.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDatasetRegionBytes() {
java.lang.Object ref = datasetRegion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
datasetRegion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NOTIFICATION_PUBSUB_TOPIC_FIELD_NUMBER = 15;
private volatile java.lang.Object notificationPubsubTopic_;
/**
*
*
* <pre>
* Pub/Sub topic where notifications will be sent after transfer runs
* associated with this transfer config finish.
* </pre>
*
* <code>string notification_pubsub_topic = 15;</code>
*
* @return The notificationPubsubTopic.
*/
@java.lang.Override
public java.lang.String getNotificationPubsubTopic() {
java.lang.Object ref = notificationPubsubTopic_;
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();
notificationPubsubTopic_ = s;
return s;
}
}
/**
*
*
* <pre>
* Pub/Sub topic where notifications will be sent after transfer runs
* associated with this transfer config finish.
* </pre>
*
* <code>string notification_pubsub_topic = 15;</code>
*
* @return The bytes for notificationPubsubTopic.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() {
java.lang.Object ref = notificationPubsubTopic_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =