Skip to content

Commit 0b728fd

Browse files
Refreshing auto-generated code, dependency updates (#2578)
* Refreshing auto-generated code for create() -> of() rename * Updating gax and auth versions
1 parent a49c7d5 commit 0b728fd

163 files changed

Lines changed: 534 additions & 537 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2beta1/DlpServiceClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -861,7 +861,7 @@ public final UnaryCallable<RedactContentRequest, RedactContentResponse> redactCo
861861
*
862862
* <pre><code>
863863
* try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
864-
* ResultName name = ResultName.create("[RESULT]");
864+
* ResultName name = ResultName.of("[RESULT]");
865865
* ListInspectFindingsResponse response = dlpServiceClient.listInspectFindings(name);
866866
* }
867867
* </code></pre>
@@ -885,7 +885,7 @@ public final ListInspectFindingsResponse listInspectFindings(ResultName name) {
885885
*
886886
* <pre><code>
887887
* try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
888-
* ResultName name = ResultName.create("[RESULT]");
888+
* ResultName name = ResultName.of("[RESULT]");
889889
* ListInspectFindingsRequest request = ListInspectFindingsRequest.newBuilder()
890890
* .setNameWithResultName(name)
891891
* .build();
@@ -908,7 +908,7 @@ public final ListInspectFindingsResponse listInspectFindings(ListInspectFindings
908908
*
909909
* <pre><code>
910910
* try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
911-
* ResultName name = ResultName.create("[RESULT]");
911+
* ResultName name = ResultName.of("[RESULT]");
912912
* ListInspectFindingsRequest request = ListInspectFindingsRequest.newBuilder()
913913
* .setNameWithResultName(name)
914914
* .build();

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2beta1/DlpServiceSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2beta1/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2beta1/stub/DlpServiceStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2beta1/stub/GrpcDlpServiceStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2beta1/DlpServiceClientTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -310,7 +310,7 @@ public void redactContentExceptionTest() throws Exception {
310310
@Test
311311
@SuppressWarnings("all")
312312
public void createInspectOperationTest() throws Exception {
313-
ResultName name2 = ResultName.create("[RESULT]");
313+
ResultName name2 = ResultName.of("[RESULT]");
314314
InspectOperationResult expectedResponse =
315315
InspectOperationResult.newBuilder().setNameWithResultName(name2).build();
316316
Operation resultOperation =
@@ -385,7 +385,7 @@ public void listInspectFindingsTest() {
385385
ListInspectFindingsResponse.newBuilder().setNextPageToken(nextPageToken).build();
386386
mockDlpService.addResponse(expectedResponse);
387387

388-
ResultName name = ResultName.create("[RESULT]");
388+
ResultName name = ResultName.of("[RESULT]");
389389

390390
ListInspectFindingsResponse actualResponse = client.listInspectFindings(name);
391391
Assert.assertEquals(expectedResponse, actualResponse);
@@ -404,7 +404,7 @@ public void listInspectFindingsExceptionTest() throws Exception {
404404
mockDlpService.addException(exception);
405405

406406
try {
407-
ResultName name = ResultName.create("[RESULT]");
407+
ResultName name = ResultName.of("[RESULT]");
408408

409409
client.listInspectFindings(name);
410410
Assert.fail("No exception raised");

google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2beta1/MockDlpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2beta1/MockDlpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorGroupServiceClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@
3737
* <pre>
3838
* <code>
3939
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
40-
* GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
40+
* GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
4141
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
4242
* }
4343
* </code>
@@ -159,7 +159,7 @@ public ErrorGroupServiceStub getStub() {
159159
*
160160
* <pre><code>
161161
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
162-
* GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
162+
* GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
163163
* ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
164164
* }
165165
* </code></pre>
@@ -187,7 +187,7 @@ public final ErrorGroup getGroup(GroupName groupName) {
187187
*
188188
* <pre><code>
189189
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
190-
* GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
190+
* GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
191191
* GetGroupRequest request = GetGroupRequest.newBuilder()
192192
* .setGroupNameWithGroupName(groupName)
193193
* .build();
@@ -210,7 +210,7 @@ private final ErrorGroup getGroup(GetGroupRequest request) {
210210
*
211211
* <pre><code>
212212
* try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
213-
* GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
213+
* GroupName groupName = GroupName.of("[PROJECT]", "[GROUP]");
214214
* GetGroupRequest request = GetGroupRequest.newBuilder()
215215
* .setGroupNameWithGroupName(groupName)
216216
* .build();

google-cloud-errorreporting/src/main/java/com/google/cloud/errorreporting/v1beta1/ErrorGroupServiceSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017, Google Inc. All rights reserved.
2+
* Copyright 2017, Google LLC All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)