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

- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Sep 9, 2022
1 parent 658203e commit 870d663
Show file tree
Hide file tree
Showing 21 changed files with 177 additions and 79 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* SettingName name =
Expand Down Expand Up @@ -91,8 +94,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
* ResourceSettingsServiceSettings resourceSettingsServiceSettings =
* ResourceSettingsServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -104,8 +110,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
* ResourceSettingsServiceSettings resourceSettingsServiceSettings =
* ResourceSettingsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* ResourceSettingsServiceClient resourceSettingsServiceClient =
Expand All @@ -116,8 +125,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
* ResourceSettingsServiceSettings resourceSettingsServiceSettings =
* ResourceSettingsServiceSettings.newBuilder()
* .setTransportChannelProvider(
Expand Down Expand Up @@ -187,8 +199,11 @@ public ResourceSettingsServiceStub 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* ResourceName parent =
Expand Down Expand Up @@ -242,8 +257,11 @@ public final ListSettingsPagedResponse listSettings(ResourceName parent) {
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* String parent =
Expand Down Expand Up @@ -278,8 +296,11 @@ public final ListSettingsPagedResponse listSettings(String parent) {
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* ListSettingsRequest request =
Expand Down Expand Up @@ -309,8 +330,11 @@ public final ListSettingsPagedResponse listSettings(ListSettingsRequest 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* ListSettingsRequest request =
Expand Down Expand Up @@ -341,8 +365,11 @@ public final ListSettingsPagedResponse listSettings(ListSettingsRequest 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* ListSettingsRequest request =
Expand Down Expand Up @@ -382,8 +409,11 @@ public final UnaryCallable<ListSettingsRequest, ListSettingsResponse> listSettin
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* SettingName name =
Expand Down Expand Up @@ -412,8 +442,11 @@ public final Setting getSetting(SettingName name) {
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* String name =
Expand Down Expand Up @@ -442,8 +475,11 @@ public final Setting getSetting(String name) {
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* GetSettingRequest request =
Expand Down Expand Up @@ -474,8 +510,11 @@ public final Setting getSetting(GetSettingRequest 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* GetSettingRequest request =
Expand Down Expand Up @@ -513,8 +552,11 @@ public final UnaryCallable<GetSettingRequest, Setting> getSettingCallable() {
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* UpdateSettingRequest request =
Expand Down Expand Up @@ -547,8 +589,11 @@ public final Setting updateSetting(UpdateSettingRequest 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* UpdateSettingRequest request =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@
* <p>For example, to set the total timeout of getSetting 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
* ResourceSettingsServiceSettings.Builder resourceSettingsServiceSettingsBuilder =
* ResourceSettingsServiceSettings.newBuilder();
* resourceSettingsServiceSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
* <p>Sample for ResourceSettingsServiceClient:
*
* <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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
* ResourceSettingsServiceClient.create()) {
* SettingName name =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public class HttpJsonResourceSettingsServiceStub extends ResourceSettingsService
})
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create().toBody("setting", request.getSetting()))
ProtoRestSerializer.create()
.toBody("setting", request.getSetting(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Setting>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,11 @@
* <p>For example, to set the total timeout of getSetting 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
* ResourceSettingsServiceStubSettings.Builder resourceSettingsServiceSettingsBuilder =
* ResourceSettingsServiceStubSettings.newBuilder();
* resourceSettingsServiceSettingsBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.resourcesettings.v1.samples;

// [START
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider_sync]
// [START resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceClient;
import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceSettings;
Expand All @@ -30,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// 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
ResourceSettingsServiceSettings resourceSettingsServiceSettings =
ResourceSettingsServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand All @@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
ResourceSettingsServiceClient.create(resourceSettingsServiceSettings);
}
}
// [END
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider_sync]
// [END resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.resourcesettings.v1.samples;

// [START
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
// [START resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceClient;
import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceSettings;

Expand All @@ -28,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider1() throws Exception {
// 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
ResourceSettingsServiceSettings resourceSettingsServiceSettings =
ResourceSettingsServiceSettings.newBuilder()
.setTransportChannelProvider(
Expand All @@ -39,5 +41,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
ResourceSettingsServiceClient.create(resourceSettingsServiceSettings);
}
}
// [END
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
// [END resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
Loading

0 comments on commit 870d663

Please sign in to comment.