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 (#111)

- [ ] 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] authored Sep 9, 2022
1 parent faf9a30 commit aff18d1
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,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 (PublisherClient publisherClient = PublisherClient.create()) {
* PublishChannelConnectionEventsRequest request =
* PublishChannelConnectionEventsRequest.newBuilder()
Expand Down Expand Up @@ -94,8 +97,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
* PublisherSettings publisherSettings =
* PublisherSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -106,8 +112,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
* PublisherSettings publisherSettings =
* PublisherSettings.newBuilder().setEndpoint(myEndpoint).build();
* PublisherClient publisherClient = PublisherClient.create(publisherSettings);
Expand All @@ -117,8 +126,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
* PublisherSettings publisherSettings =
* PublisherSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -184,8 +196,11 @@ public PublisherStub getStub() {
* <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 (PublisherClient publisherClient = PublisherClient.create()) {
* PublishChannelConnectionEventsRequest request =
* PublishChannelConnectionEventsRequest.newBuilder()
Expand All @@ -212,8 +227,11 @@ public final PublishChannelConnectionEventsResponse publishChannelConnectionEven
* <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 (PublisherClient publisherClient = PublisherClient.create()) {
* PublishChannelConnectionEventsRequest request =
* PublishChannelConnectionEventsRequest.newBuilder()
Expand All @@ -240,8 +258,11 @@ public final PublishChannelConnectionEventsResponse publishChannelConnectionEven
* <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 (PublisherClient publisherClient = PublisherClient.create()) {
* PublishEventsRequest request =
* PublishEventsRequest.newBuilder()
Expand All @@ -266,8 +287,11 @@ public final PublishEventsResponse publishEvents(PublishEventsRequest 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 (PublisherClient publisherClient = PublisherClient.create()) {
* PublishEventsRequest request =
* PublishEventsRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@
* <p>For example, to set the total timeout of publishChannelConnectionEvents 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
* PublisherSettings.Builder publisherSettingsBuilder = PublisherSettings.newBuilder();
* publisherSettingsBuilder
* .publishChannelConnectionEventsSettings()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@
* <p>Sample for PublisherClient:
*
* <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 (PublisherClient publisherClient = PublisherClient.create()) {
* PublishChannelConnectionEventsRequest request =
* PublishChannelConnectionEventsRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public class HttpJsonPublisherStub extends PublisherStub {
request ->
ProtoRestSerializer.create()
.toBody(
"*", request.toBuilder().clearChannelConnection().build()))
"*",
request.toBuilder().clearChannelConnection().build(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<PublishChannelConnectionEventsResponse>newBuilder()
Expand Down Expand Up @@ -122,7 +124,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearChannel().build()))
.toBody("*", request.toBuilder().clearChannel().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<PublishEventsResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@
* <p>For example, to set the total timeout of publishChannelConnectionEvents 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
* PublisherStubSettings.Builder publisherSettingsBuilder = PublisherStubSettings.newBuilder();
* publisherSettingsBuilder
* .publishChannelConnectionEventsSettings()
Expand Down

0 comments on commit aff18d1

Please sign in to comment.