This repository was archived by the owner on Sep 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed
src/main/java/com/example/bigquerydatatransfer Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 33
33
</dependency >
34
34
<!-- [END bigquerydatatransfer_install_without_bom] -->
35
35
36
+ <dependency >
37
+ <groupId >com.google.protobuf</groupId >
38
+ <artifactId >protobuf-java-util</artifactId >
39
+ <version >3.13.0</version >
40
+ </dependency >
41
+
36
42
<dependency >
37
43
<groupId >junit</groupId >
38
44
<artifactId >junit</artifactId >
Original file line number Diff line number Diff line change 32
32
</dependency >
33
33
<!-- {x-version-update-end} -->
34
34
35
+ <dependency >
36
+ <groupId >com.google.protobuf</groupId >
37
+ <artifactId >protobuf-java-util</artifactId >
38
+ <version >3.13.0</version >
39
+ </dependency >
40
+
35
41
<dependency >
36
42
<groupId >junit</groupId >
37
43
<artifactId >junit</artifactId >
Original file line number Diff line number Diff line change 44
44
</dependency >
45
45
<!-- [END bigquerydatatransfer_install_with_bom] -->
46
46
47
+ <dependency >
48
+ <groupId >com.google.protobuf</groupId >
49
+ <artifactId >protobuf-java-util</artifactId >
50
+ </dependency >
51
+
47
52
<!-- Test dependencies -->
48
53
<dependency >
49
54
<groupId >junit</groupId >
Original file line number Diff line number Diff line change 22
22
import com .google .cloud .bigquery .datatransfer .v1 .TransferConfig ;
23
23
import com .google .cloud .bigquery .datatransfer .v1 .UpdateTransferConfigRequest ;
24
24
import com .google .protobuf .FieldMask ;
25
+ import com .google .protobuf .util .FieldMaskUtil ;
25
26
import java .io .IOException ;
26
27
27
28
// Sample to update transfer config.
@@ -40,7 +41,7 @@ public static void updateTransferConfig(String configId) throws IOException {
40
41
.setName (configId )
41
42
.setDisplayName ("UPDATED_DISPLAY_NAME" )
42
43
.build ();
43
- FieldMask updateMask = FieldMask . newBuilder (). addPaths ( "display_name" ). build ( );
44
+ FieldMask updateMask = FieldMaskUtil . fromString ( "display_name" );
44
45
UpdateTransferConfigRequest request =
45
46
UpdateTransferConfigRequest .newBuilder ()
46
47
.setTransferConfig (transferConfig )
You can’t perform that action at this time.
0 commit comments