Skip to content

Commit 5d2a50f

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#257)
- [ ] 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 08fc899 commit 5d2a50f

File tree

39 files changed

+355
-143
lines changed

39 files changed

+355
-143
lines changed

java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java

Lines changed: 165 additions & 66 deletions
Large diffs are not rendered by default.

java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java

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

java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
* <p>Sample for EssentialContactsServiceClient:
2525
*
2626
* <pre>{@code
27-
* // This snippet has been automatically generated for illustrative purposes only.
28-
* // It may require modifications to work in your environment.
27+
* // This snippet has been automatically generated and should be regarded as a code template only.
28+
* // It will require modifications to work:
29+
* // - It may require correct/in-range values for request initialization.
30+
* // - It may require specifying regional endpoints when creating the service client as shown in
31+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2932
* try (EssentialContactsServiceClient essentialContactsServiceClient =
3033
* EssentialContactsServiceClient.create()) {
3134
* FolderName parent = FolderName.of("[FOLDER]");

java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@
8383
* <p>For example, to set the total timeout of createContact to 30 seconds:
8484
*
8585
* <pre>{@code
86-
* // This snippet has been automatically generated for illustrative purposes only.
87-
* // It may require modifications to work in your environment.
86+
* // This snippet has been automatically generated and should be regarded as a code template only.
87+
* // It will require modifications to work:
88+
* // - It may require correct/in-range values for request initialization.
89+
* // - It may require specifying regional endpoints when creating the service client as shown in
90+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8891
* EssentialContactsServiceStubSettings.Builder essentialContactsServiceSettingsBuilder =
8992
* EssentialContactsServiceStubSettings.newBuilder();
9093
* essentialContactsServiceSettingsBuilder

java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public class HttpJsonEssentialContactsServiceStub extends EssentialContactsServi
9292
})
9393
.setRequestBodyExtractor(
9494
request ->
95-
ProtoRestSerializer.create().toBody("contact", request.getContact()))
95+
ProtoRestSerializer.create()
96+
.toBody("contact", request.getContact(), false))
9697
.build())
9798
.setResponseParser(
9899
ProtoMessageResponseParser.<Contact>newBuilder()
@@ -133,7 +134,8 @@ public class HttpJsonEssentialContactsServiceStub extends EssentialContactsServi
133134
})
134135
.setRequestBodyExtractor(
135136
request ->
136-
ProtoRestSerializer.create().toBody("contact", request.getContact()))
137+
ProtoRestSerializer.create()
138+
.toBody("contact", request.getContact(), false))
137139
.build())
138140
.setResponseParser(
139141
ProtoMessageResponseParser.<Contact>newBuilder()
@@ -327,7 +329,7 @@ public class HttpJsonEssentialContactsServiceStub extends EssentialContactsServi
327329
.setRequestBodyExtractor(
328330
request ->
329331
ProtoRestSerializer.create()
330-
.toBody("*", request.toBuilder().clearResource().build()))
332+
.toBody("*", request.toBuilder().clearResource().build(), false))
331333
.build())
332334
.setResponseParser(
333335
ProtoMessageResponseParser.<Empty>newBuilder()

java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
3232
}
3333

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

java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception {
3333
}
3434

3535
public static void asyncComputeContactsPaged() throws Exception {
36-
// This snippet has been automatically generated for illustrative purposes only.
37-
// It may require modifications to work in your environment.
36+
// This snippet has been automatically generated and should be regarded as a code template only.
37+
// It will require modifications to work:
38+
// - It may require correct/in-range values for request initialization.
39+
// - It may require specifying regional endpoints when creating the service client as shown in
40+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3841
try (EssentialContactsServiceClient essentialContactsServiceClient =
3942
EssentialContactsServiceClient.create()) {
4043
ComputeContactsRequest request =

java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java

Lines changed: 5 additions & 2 deletions
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 syncComputeContacts() 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 (EssentialContactsServiceClient essentialContactsServiceClient =
3740
EssentialContactsServiceClient.create()) {
3841
ComputeContactsRequest request =

java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java

Lines changed: 5 additions & 2 deletions
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
EssentialContactsServiceSettings essentialContactsServiceSettings =
3538
EssentialContactsServiceSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

java-essential-contacts/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java

Lines changed: 5 additions & 2 deletions
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
EssentialContactsServiceSettings essentialContactsServiceSettings =
3336
EssentialContactsServiceSettings.newBuilder()
3437
.setTransportChannelProvider(

0 commit comments

Comments
 (0)