Skip to content

Commit f951c4d

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#801)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 2afc548 commit f951c4d

File tree

41 files changed

+374
-152
lines changed

Some content is hidden

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

41 files changed

+374
-152
lines changed

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminClient.java

+175-70
Large diffs are not rendered by default.

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/AccessApprovalAdminSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@
5555
* <p>For example, to set the total timeout of getApprovalRequest to 30 seconds:
5656
*
5757
* <pre>{@code
58-
* // This snippet has been automatically generated for illustrative purposes only.
59-
* // It may require modifications to work in your environment.
58+
* // This snippet has been automatically generated and should be regarded as a code template only.
59+
* // It will require modifications to work:
60+
* // - It may require correct/in-range values for request initialization.
61+
* // - It may require specifying regional endpoints when creating the service client as shown in
62+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6063
* AccessApprovalAdminSettings.Builder accessApprovalAdminSettingsBuilder =
6164
* AccessApprovalAdminSettings.newBuilder();
6265
* accessApprovalAdminSettingsBuilder

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
* <p>Sample for AccessApprovalAdminClient:
5353
*
5454
* <pre>{@code
55-
* // This snippet has been automatically generated for illustrative purposes only.
56-
* // It may require modifications to work in your environment.
55+
* // This snippet has been automatically generated and should be regarded as a code template only.
56+
* // It will require modifications to work:
57+
* // - It may require correct/in-range values for request initialization.
58+
* // - It may require specifying regional endpoints when creating the service client as shown in
59+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5760
* try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
5861
* ApprovalRequestName name =
5962
* ApprovalRequestName.ofProjectApprovalRequestName("[PROJECT]", "[APPROVAL_REQUEST]");

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/AccessApprovalStubSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@
8585
* <p>For example, to set the total timeout of getApprovalRequest to 30 seconds:
8686
*
8787
* <pre>{@code
88-
* // This snippet has been automatically generated for illustrative purposes only.
89-
* // It may require modifications to work in your environment.
88+
* // This snippet has been automatically generated and should be regarded as a code template only.
89+
* // It will require modifications to work:
90+
* // - It may require correct/in-range values for request initialization.
91+
* // - It may require specifying regional endpoints when creating the service client as shown in
92+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9093
* AccessApprovalStubSettings.Builder accessApprovalAdminSettingsBuilder =
9194
* AccessApprovalStubSettings.newBuilder();
9295
* accessApprovalAdminSettingsBuilder

java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/HttpJsonAccessApprovalStub.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub {
173173
.setRequestBodyExtractor(
174174
request ->
175175
ProtoRestSerializer.create()
176-
.toBody("*", request.toBuilder().clearName().build()))
176+
.toBody("*", request.toBuilder().clearName().build(), false))
177177
.build())
178178
.setResponseParser(
179179
ProtoMessageResponseParser.<ApprovalRequest>newBuilder()
@@ -213,7 +213,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub {
213213
.setRequestBodyExtractor(
214214
request ->
215215
ProtoRestSerializer.create()
216-
.toBody("*", request.toBuilder().clearName().build()))
216+
.toBody("*", request.toBuilder().clearName().build(), false))
217217
.build())
218218
.setResponseParser(
219219
ProtoMessageResponseParser.<ApprovalRequest>newBuilder()
@@ -253,7 +253,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub {
253253
.setRequestBodyExtractor(
254254
request ->
255255
ProtoRestSerializer.create()
256-
.toBody("*", request.toBuilder().clearName().build()))
256+
.toBody("*", request.toBuilder().clearName().build(), false))
257257
.build())
258258
.setResponseParser(
259259
ProtoMessageResponseParser.<ApprovalRequest>newBuilder()
@@ -334,7 +334,7 @@ public class HttpJsonAccessApprovalStub extends AccessApprovalStub {
334334
.setRequestBodyExtractor(
335335
request ->
336336
ProtoRestSerializer.create()
337-
.toBody("settings", request.getSettings()))
337+
.toBody("settings", request.getSettings(), false))
338338
.build())
339339
.setResponseParser(
340340
ProtoMessageResponseParser.<AccessApprovalSettings>newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/AsyncApproveApprovalRequest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

3333
public static void asyncApproveApprovalRequest() throws Exception {
34-
// This snippet has been automatically generated for illustrative purposes only.
35-
// It may require modifications to work in your environment.
34+
// This snippet has been automatically generated and should be regarded as a code template only.
35+
// It will require modifications to work:
36+
// - It may require correct/in-range values for request initialization.
37+
// - It may require specifying regional endpoints when creating the service client as shown in
38+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3639
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3740
ApproveApprovalRequestMessage request =
3841
ApproveApprovalRequestMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/approveapprovalrequest/SyncApproveApprovalRequest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void syncApproveApprovalRequest() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3639
ApproveApprovalRequestMessage request =
3740
ApproveApprovalRequestMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateSetCredentialsProvider() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
AccessApprovalAdminSettings accessApprovalAdminSettings =
3538
AccessApprovalAdminSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetCredentialsProvider1.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
2727
}
2828

2929
public static void syncCreateSetCredentialsProvider1() throws Exception {
30-
// This snippet has been automatically generated for illustrative purposes only.
31-
// It may require modifications to work in your environment.
30+
// This snippet has been automatically generated and should be regarded as a code template only.
31+
// It will require modifications to work:
32+
// - It may require correct/in-range values for request initialization.
33+
// - It may require specifying regional endpoints when creating the service client as shown in
34+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
AccessApprovalAdminSettings accessApprovalAdminSettings =
3336
AccessApprovalAdminSettings.newBuilder()
3437
.setTransportChannelProvider(

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/create/SyncCreateSetEndpoint.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateSetEndpoint() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
AccessApprovalAdminSettings accessApprovalAdminSettings =
3437
AccessApprovalAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
3538
AccessApprovalAdminClient accessApprovalAdminClient =

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/AsyncDeleteAccessApprovalSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncDeleteAccessApprovalSettings() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3639
DeleteAccessApprovalSettingsMessage request =
3740
DeleteAccessApprovalSettingsMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncDeleteAccessApprovalSettings() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3538
DeleteAccessApprovalSettingsMessage request =
3639
DeleteAccessApprovalSettingsMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsAccessapprovalsettingsname.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncDeleteAccessApprovalSettingsAccessapprovalsettingsname() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3437
AccessApprovalSettingsName name = AccessApprovalSettingsName.ofProjectName("[PROJECT]");
3538
accessApprovalAdminClient.deleteAccessApprovalSettings(name);

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/deleteaccessapprovalsettings/SyncDeleteAccessApprovalSettingsString.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncDeleteAccessApprovalSettingsString() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3437
String name = AccessApprovalSettingsName.ofProjectName("[PROJECT]").toString();
3538
accessApprovalAdminClient.deleteAccessApprovalSettings(name);

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/AsyncDismissApprovalRequest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncDismissApprovalRequest() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3639
DismissApprovalRequestMessage request =
3740
DismissApprovalRequestMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/dismissapprovalrequest/SyncDismissApprovalRequest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncDismissApprovalRequest() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3538
DismissApprovalRequestMessage request =
3639
DismissApprovalRequestMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/AsyncGetAccessApprovalServiceAccount.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void asyncGetAccessApprovalServiceAccount() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3538
GetAccessApprovalServiceAccountMessage request =
3639
GetAccessApprovalServiceAccountMessage.newBuilder().setName("name3373707").build();

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccount.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncGetAccessApprovalServiceAccount() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3437
GetAccessApprovalServiceAccountMessage request =
3538
GetAccessApprovalServiceAccountMessage.newBuilder().setName("name3373707").build();

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalserviceaccount/SyncGetAccessApprovalServiceAccountString.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
2727
}
2828

2929
public static void syncGetAccessApprovalServiceAccountString() throws Exception {
30-
// This snippet has been automatically generated for illustrative purposes only.
31-
// It may require modifications to work in your environment.
30+
// This snippet has been automatically generated and should be regarded as a code template only.
31+
// It will require modifications to work:
32+
// - It may require correct/in-range values for request initialization.
33+
// - It may require specifying regional endpoints when creating the service client as shown in
34+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3336
String name = "name3373707";
3437
AccessApprovalServiceAccount response =

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/AsyncGetAccessApprovalSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncGetAccessApprovalSettings() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3639
GetAccessApprovalSettingsMessage request =
3740
GetAccessApprovalSettingsMessage.newBuilder()

java-accessapproval/samples/snippets/generated/com/google/cloud/accessapproval/v1/accessapprovaladminclient/getaccessapprovalsettings/SyncGetAccessApprovalSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncGetAccessApprovalSettings() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (AccessApprovalAdminClient accessApprovalAdminClient = AccessApprovalAdminClient.create()) {
3538
GetAccessApprovalSettingsMessage request =
3639
GetAccessApprovalSettingsMessage.newBuilder()

0 commit comments

Comments
 (0)