Skip to content

Commit

Permalink
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
Browse files Browse the repository at this point in the history
…ator_java versions (#11)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472750037

Source-Link: googleapis/googleapis@88f2ea3

Source-Link: googleapis/googleapis-gen@230a558
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 9, 2022
1 parent 5b75ff9 commit ef29d2d
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
* calls that map to API methods. Sample code to get started:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
Expand Down Expand Up @@ -90,8 +93,11 @@
* <p>To customize credentials:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
* ConsumerProcurementServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -103,8 +109,11 @@
* <p>To customize the endpoint:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
* ConsumerProcurementServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ConsumerProcurementServiceClient consumerProcurementServiceClient =
Expand All @@ -115,8 +124,11 @@
* the wire:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConsumerProcurementServiceSettings consumerProcurementServiceSettings =
* ConsumerProcurementServiceSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -219,8 +231,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* PlaceOrderRequest request =
Expand Down Expand Up @@ -254,8 +269,11 @@ public final OperationFuture<Order, PlaceOrderMetadata> placeOrderAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* PlaceOrderRequest request =
Expand Down Expand Up @@ -289,8 +307,11 @@ public final OperationFuture<Order, PlaceOrderMetadata> placeOrderAsync(
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* PlaceOrderRequest request =
Expand Down Expand Up @@ -319,8 +340,11 @@ public final UnaryCallable<PlaceOrderRequest, Operation> placeOrderCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
Expand All @@ -343,8 +367,11 @@ public final Order getOrder(GetOrderRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
Expand All @@ -367,8 +394,11 @@ public final UnaryCallable<GetOrderRequest, Order> getOrderCallable() {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* ListOrdersRequest request =
Expand Down Expand Up @@ -399,8 +429,11 @@ public final ListOrdersPagedResponse listOrders(ListOrdersRequest request) {
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* ListOrdersRequest request =
Expand Down Expand Up @@ -431,8 +464,11 @@ public final UnaryCallable<ListOrdersRequest, ListOrdersPagedResponse> listOrder
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* ListOrdersRequest request =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
* <p>For example, to set the total timeout of getOrder to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConsumerProcurementServiceSettings.Builder consumerProcurementServiceSettingsBuilder =
* ConsumerProcurementServiceSettings.newBuilder();
* consumerProcurementServiceSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
* <p>Sample for ConsumerProcurementServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
* ConsumerProcurementServiceClient.create()) {
* GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@
* <p>For example, to set the total timeout of getOrder to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* ConsumerProcurementServiceStubSettings.Builder consumerProcurementServiceSettingsBuilder =
* ConsumerProcurementServiceStubSettings.newBuilder();
* consumerProcurementServiceSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class HttpJsonConsumerProcurementServiceStub extends ConsumerProcurementS
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down

0 comments on commit ef29d2d

Please sign in to comment.