Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit ce67d4c

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#11)
- [ ] 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 baa9091 commit ce67d4c

5 files changed

Lines changed: 76 additions & 31 deletions

File tree

google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceClient.java

Lines changed: 60 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
* calls that map to API methods. Sample code to get started:
5252
*
5353
* <pre>{@code
54-
* // This snippet has been automatically generated for illustrative purposes only.
55-
* // It may require modifications to work in your environment.
54+
* // This snippet has been automatically generated and should be regarded as a code template only.
55+
* // It will require modifications to work:
56+
* // - It may require correct/in-range values for request initialization.
57+
* // - It may require specifying regional endpoints when creating the service client as shown in
58+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5659
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
5760
* ConsumerProcurementServiceClient.create()) {
5861
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
@@ -90,8 +93,11 @@
9093
* <p>To customize credentials:
9194
*
9295
* <pre>{@code
93-
* // This snippet has been automatically generated for illustrative purposes only.
94-
* // It may require modifications to work in your environment.
96+
* // This snippet has been automatically generated and should be regarded as a code template only.
97+
* // It will require modifications to work:
98+
* // - It may require correct/in-range values for request initialization.
99+
* // - It may require specifying regional endpoints when creating the service client as shown in
100+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
95101
* ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
96102
* ConsumerProcurementServiceSettings.newBuilder()
97103
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -103,8 +109,11 @@
103109
* <p>To customize the endpoint:
104110
*
105111
* <pre>{@code
106-
* // This snippet has been automatically generated for illustrative purposes only.
107-
* // It may require modifications to work in your environment.
112+
* // This snippet has been automatically generated and should be regarded as a code template only.
113+
* // It will require modifications to work:
114+
* // - It may require correct/in-range values for request initialization.
115+
* // - It may require specifying regional endpoints when creating the service client as shown in
116+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
108117
* ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
109118
* ConsumerProcurementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
110119
* ConsumerProcurementServiceClient consumerProcurementServiceClient =
@@ -115,8 +124,11 @@
115124
* the wire:
116125
*
117126
* <pre>{@code
118-
* // This snippet has been automatically generated for illustrative purposes only.
119-
* // It may require modifications to work in your environment.
127+
* // This snippet has been automatically generated and should be regarded as a code template only.
128+
* // It will require modifications to work:
129+
* // - It may require correct/in-range values for request initialization.
130+
* // - It may require specifying regional endpoints when creating the service client as shown in
131+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
120132
* ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
121133
* ConsumerProcurementServiceSettings.newBuilder()
122134
* .setTransportChannelProvider(
@@ -219,8 +231,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
219231
* <p>Sample code:
220232
*
221233
* <pre>{@code
222-
* // This snippet has been automatically generated for illustrative purposes only.
223-
* // It may require modifications to work in your environment.
234+
* // This snippet has been automatically generated and should be regarded as a code template only.
235+
* // It will require modifications to work:
236+
* // - It may require correct/in-range values for request initialization.
237+
* // - It may require specifying regional endpoints when creating the service client as shown in
238+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
224239
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
225240
* ConsumerProcurementServiceClient.create()) {
226241
* PlaceOrderRequest request =
@@ -254,8 +269,11 @@ public final OperationFuture<Order, PlaceOrderMetadata> placeOrderAsync(
254269
* <p>Sample code:
255270
*
256271
* <pre>{@code
257-
* // This snippet has been automatically generated for illustrative purposes only.
258-
* // It may require modifications to work in your environment.
272+
* // This snippet has been automatically generated and should be regarded as a code template only.
273+
* // It will require modifications to work:
274+
* // - It may require correct/in-range values for request initialization.
275+
* // - It may require specifying regional endpoints when creating the service client as shown in
276+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
259277
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
260278
* ConsumerProcurementServiceClient.create()) {
261279
* PlaceOrderRequest request =
@@ -289,8 +307,11 @@ public final OperationFuture<Order, PlaceOrderMetadata> placeOrderAsync(
289307
* <p>Sample code:
290308
*
291309
* <pre>{@code
292-
* // This snippet has been automatically generated for illustrative purposes only.
293-
* // It may require modifications to work in your environment.
310+
* // This snippet has been automatically generated and should be regarded as a code template only.
311+
* // It will require modifications to work:
312+
* // - It may require correct/in-range values for request initialization.
313+
* // - It may require specifying regional endpoints when creating the service client as shown in
314+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
294315
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
295316
* ConsumerProcurementServiceClient.create()) {
296317
* PlaceOrderRequest request =
@@ -319,8 +340,11 @@ public final UnaryCallable<PlaceOrderRequest, Operation> placeOrderCallable() {
319340
* <p>Sample code:
320341
*
321342
* <pre>{@code
322-
* // This snippet has been automatically generated for illustrative purposes only.
323-
* // It may require modifications to work in your environment.
343+
* // This snippet has been automatically generated and should be regarded as a code template only.
344+
* // It will require modifications to work:
345+
* // - It may require correct/in-range values for request initialization.
346+
* // - It may require specifying regional endpoints when creating the service client as shown in
347+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
324348
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
325349
* ConsumerProcurementServiceClient.create()) {
326350
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
@@ -343,8 +367,11 @@ public final Order getOrder(GetOrderRequest request) {
343367
* <p>Sample code:
344368
*
345369
* <pre>{@code
346-
* // This snippet has been automatically generated for illustrative purposes only.
347-
* // It may require modifications to work in your environment.
370+
* // This snippet has been automatically generated and should be regarded as a code template only.
371+
* // It will require modifications to work:
372+
* // - It may require correct/in-range values for request initialization.
373+
* // - It may require specifying regional endpoints when creating the service client as shown in
374+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
348375
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
349376
* ConsumerProcurementServiceClient.create()) {
350377
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
@@ -367,8 +394,11 @@ public final UnaryCallable<GetOrderRequest, Order> getOrderCallable() {
367394
* <p>Sample code:
368395
*
369396
* <pre>{@code
370-
* // This snippet has been automatically generated for illustrative purposes only.
371-
* // It may require modifications to work in your environment.
397+
* // This snippet has been automatically generated and should be regarded as a code template only.
398+
* // It will require modifications to work:
399+
* // - It may require correct/in-range values for request initialization.
400+
* // - It may require specifying regional endpoints when creating the service client as shown in
401+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
372402
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
373403
* ConsumerProcurementServiceClient.create()) {
374404
* ListOrdersRequest request =
@@ -399,8 +429,11 @@ public final ListOrdersPagedResponse listOrders(ListOrdersRequest request) {
399429
* <p>Sample code:
400430
*
401431
* <pre>{@code
402-
* // This snippet has been automatically generated for illustrative purposes only.
403-
* // It may require modifications to work in your environment.
432+
* // This snippet has been automatically generated and should be regarded as a code template only.
433+
* // It will require modifications to work:
434+
* // - It may require correct/in-range values for request initialization.
435+
* // - It may require specifying regional endpoints when creating the service client as shown in
436+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
404437
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
405438
* ConsumerProcurementServiceClient.create()) {
406439
* ListOrdersRequest request =
@@ -431,8 +464,11 @@ public final UnaryCallable<ListOrdersRequest, ListOrdersPagedResponse> listOrder
431464
* <p>Sample code:
432465
*
433466
* <pre>{@code
434-
* // This snippet has been automatically generated for illustrative purposes only.
435-
* // It may require modifications to work in your environment.
467+
* // This snippet has been automatically generated and should be regarded as a code template only.
468+
* // It will require modifications to work:
469+
* // - It may require correct/in-range values for request initialization.
470+
* // - It may require specifying regional endpoints when creating the service client as shown in
471+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
436472
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
437473
* ConsumerProcurementServiceClient.create()) {
438474
* ListOrdersRequest request =

google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/ConsumerProcurementServiceSettings.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 getOrder 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
* ConsumerProcurementServiceSettings.Builder consumerProcurementServiceSettingsBuilder =
6265
* ConsumerProcurementServiceSettings.newBuilder();
6366
* consumerProcurementServiceSettingsBuilder

google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@
3232
* <p>Sample for ConsumerProcurementServiceClient:
3333
*
3434
* <pre>{@code
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 (ConsumerProcurementServiceClient consumerProcurementServiceClient =
3841
* ConsumerProcurementServiceClient.create()) {
3942
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();

google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/ConsumerProcurementServiceStubSettings.java

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

google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/HttpJsonConsumerProcurementServiceStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class HttpJsonConsumerProcurementServiceStub extends ConsumerProcurementS
9292
.setRequestBodyExtractor(
9393
request ->
9494
ProtoRestSerializer.create()
95-
.toBody("*", request.toBuilder().clearParent().build()))
95+
.toBody("*", request.toBuilder().clearParent().build(), false))
9696
.build())
9797
.setResponseParser(
9898
ProtoMessageResponseParser.<Operation>newBuilder()

0 commit comments

Comments
 (0)