Skip to content

Commit 870d663

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_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
1 parent 658203e commit 870d663

File tree

21 files changed

+177
-79
lines changed

21 files changed

+177
-79
lines changed

java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/ResourceSettingsServiceClient.java

Lines changed: 75 additions & 30 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 (ResourceSettingsServiceClient resourceSettingsServiceClient =
5760
* ResourceSettingsServiceClient.create()) {
5861
* SettingName name =
@@ -91,8 +94,11 @@
9194
* <p>To customize credentials:
9295
*
9396
* <pre>{@code
94-
* // This snippet has been automatically generated for illustrative purposes only.
95-
* // It may require modifications to work in your environment.
97+
* // This snippet has been automatically generated and should be regarded as a code template only.
98+
* // It will require modifications to work:
99+
* // - It may require correct/in-range values for request initialization.
100+
* // - It may require specifying regional endpoints when creating the service client as shown in
101+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
96102
* ResourceSettingsServiceSettings resourceSettingsServiceSettings =
97103
* ResourceSettingsServiceSettings.newBuilder()
98104
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -104,8 +110,11 @@
104110
* <p>To customize the endpoint:
105111
*
106112
* <pre>{@code
107-
* // This snippet has been automatically generated for illustrative purposes only.
108-
* // It may require modifications to work in your environment.
113+
* // This snippet has been automatically generated and should be regarded as a code template only.
114+
* // It will require modifications to work:
115+
* // - It may require correct/in-range values for request initialization.
116+
* // - It may require specifying regional endpoints when creating the service client as shown in
117+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
109118
* ResourceSettingsServiceSettings resourceSettingsServiceSettings =
110119
* ResourceSettingsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
111120
* ResourceSettingsServiceClient resourceSettingsServiceClient =
@@ -116,8 +125,11 @@
116125
* the wire:
117126
*
118127
* <pre>{@code
119-
* // This snippet has been automatically generated for illustrative purposes only.
120-
* // It may require modifications to work in your environment.
128+
* // This snippet has been automatically generated and should be regarded as a code template only.
129+
* // It will require modifications to work:
130+
* // - It may require correct/in-range values for request initialization.
131+
* // - It may require specifying regional endpoints when creating the service client as shown in
132+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
121133
* ResourceSettingsServiceSettings resourceSettingsServiceSettings =
122134
* ResourceSettingsServiceSettings.newBuilder()
123135
* .setTransportChannelProvider(
@@ -187,8 +199,11 @@ public ResourceSettingsServiceStub getStub() {
187199
* <p>Sample code:
188200
*
189201
* <pre>{@code
190-
* // This snippet has been automatically generated for illustrative purposes only.
191-
* // It may require modifications to work in your environment.
202+
* // This snippet has been automatically generated and should be regarded as a code template only.
203+
* // It will require modifications to work:
204+
* // - It may require correct/in-range values for request initialization.
205+
* // - It may require specifying regional endpoints when creating the service client as shown in
206+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
192207
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
193208
* ResourceSettingsServiceClient.create()) {
194209
* ResourceName parent =
@@ -242,8 +257,11 @@ public final ListSettingsPagedResponse listSettings(ResourceName parent) {
242257
* <p>Sample code:
243258
*
244259
* <pre>{@code
245-
* // This snippet has been automatically generated for illustrative purposes only.
246-
* // It may require modifications to work in your environment.
260+
* // This snippet has been automatically generated and should be regarded as a code template only.
261+
* // It will require modifications to work:
262+
* // - It may require correct/in-range values for request initialization.
263+
* // - It may require specifying regional endpoints when creating the service client as shown in
264+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
247265
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
248266
* ResourceSettingsServiceClient.create()) {
249267
* String parent =
@@ -278,8 +296,11 @@ public final ListSettingsPagedResponse listSettings(String parent) {
278296
* <p>Sample code:
279297
*
280298
* <pre>{@code
281-
* // This snippet has been automatically generated for illustrative purposes only.
282-
* // It may require modifications to work in your environment.
299+
* // This snippet has been automatically generated and should be regarded as a code template only.
300+
* // It will require modifications to work:
301+
* // - It may require correct/in-range values for request initialization.
302+
* // - It may require specifying regional endpoints when creating the service client as shown in
303+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
283304
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
284305
* ResourceSettingsServiceClient.create()) {
285306
* ListSettingsRequest request =
@@ -309,8 +330,11 @@ public final ListSettingsPagedResponse listSettings(ListSettingsRequest request)
309330
* <p>Sample code:
310331
*
311332
* <pre>{@code
312-
* // This snippet has been automatically generated for illustrative purposes only.
313-
* // It may require modifications to work in your environment.
333+
* // This snippet has been automatically generated and should be regarded as a code template only.
334+
* // It will require modifications to work:
335+
* // - It may require correct/in-range values for request initialization.
336+
* // - It may require specifying regional endpoints when creating the service client as shown in
337+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
314338
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
315339
* ResourceSettingsServiceClient.create()) {
316340
* ListSettingsRequest request =
@@ -341,8 +365,11 @@ public final ListSettingsPagedResponse listSettings(ListSettingsRequest request)
341365
* <p>Sample code:
342366
*
343367
* <pre>{@code
344-
* // This snippet has been automatically generated for illustrative purposes only.
345-
* // It may require modifications to work in your environment.
368+
* // This snippet has been automatically generated and should be regarded as a code template only.
369+
* // It will require modifications to work:
370+
* // - It may require correct/in-range values for request initialization.
371+
* // - It may require specifying regional endpoints when creating the service client as shown in
372+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
346373
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
347374
* ResourceSettingsServiceClient.create()) {
348375
* ListSettingsRequest request =
@@ -382,8 +409,11 @@ public final UnaryCallable<ListSettingsRequest, ListSettingsResponse> listSettin
382409
* <p>Sample code:
383410
*
384411
* <pre>{@code
385-
* // This snippet has been automatically generated for illustrative purposes only.
386-
* // It may require modifications to work in your environment.
412+
* // This snippet has been automatically generated and should be regarded as a code template only.
413+
* // It will require modifications to work:
414+
* // - It may require correct/in-range values for request initialization.
415+
* // - It may require specifying regional endpoints when creating the service client as shown in
416+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
387417
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
388418
* ResourceSettingsServiceClient.create()) {
389419
* SettingName name =
@@ -412,8 +442,11 @@ public final Setting getSetting(SettingName name) {
412442
* <p>Sample code:
413443
*
414444
* <pre>{@code
415-
* // This snippet has been automatically generated for illustrative purposes only.
416-
* // It may require modifications to work in your environment.
445+
* // This snippet has been automatically generated and should be regarded as a code template only.
446+
* // It will require modifications to work:
447+
* // - It may require correct/in-range values for request initialization.
448+
* // - It may require specifying regional endpoints when creating the service client as shown in
449+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
417450
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
418451
* ResourceSettingsServiceClient.create()) {
419452
* String name =
@@ -442,8 +475,11 @@ public final Setting getSetting(String name) {
442475
* <p>Sample code:
443476
*
444477
* <pre>{@code
445-
* // This snippet has been automatically generated for illustrative purposes only.
446-
* // It may require modifications to work in your environment.
478+
* // This snippet has been automatically generated and should be regarded as a code template only.
479+
* // It will require modifications to work:
480+
* // - It may require correct/in-range values for request initialization.
481+
* // - It may require specifying regional endpoints when creating the service client as shown in
482+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
447483
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
448484
* ResourceSettingsServiceClient.create()) {
449485
* GetSettingRequest request =
@@ -474,8 +510,11 @@ public final Setting getSetting(GetSettingRequest request) {
474510
* <p>Sample code:
475511
*
476512
* <pre>{@code
477-
* // This snippet has been automatically generated for illustrative purposes only.
478-
* // It may require modifications to work in your environment.
513+
* // This snippet has been automatically generated and should be regarded as a code template only.
514+
* // It will require modifications to work:
515+
* // - It may require correct/in-range values for request initialization.
516+
* // - It may require specifying regional endpoints when creating the service client as shown in
517+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
479518
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
480519
* ResourceSettingsServiceClient.create()) {
481520
* GetSettingRequest request =
@@ -513,8 +552,11 @@ public final UnaryCallable<GetSettingRequest, Setting> getSettingCallable() {
513552
* <p>Sample code:
514553
*
515554
* <pre>{@code
516-
* // This snippet has been automatically generated for illustrative purposes only.
517-
* // It may require modifications to work in your environment.
555+
* // This snippet has been automatically generated and should be regarded as a code template only.
556+
* // It will require modifications to work:
557+
* // - It may require correct/in-range values for request initialization.
558+
* // - It may require specifying regional endpoints when creating the service client as shown in
559+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
518560
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
519561
* ResourceSettingsServiceClient.create()) {
520562
* UpdateSettingRequest request =
@@ -547,8 +589,11 @@ public final Setting updateSetting(UpdateSettingRequest request) {
547589
* <p>Sample code:
548590
*
549591
* <pre>{@code
550-
* // This snippet has been automatically generated for illustrative purposes only.
551-
* // It may require modifications to work in your environment.
592+
* // This snippet has been automatically generated and should be regarded as a code template only.
593+
* // It will require modifications to work:
594+
* // - It may require correct/in-range values for request initialization.
595+
* // - It may require specifying regional endpoints when creating the service client as shown in
596+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
552597
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
553598
* ResourceSettingsServiceClient.create()) {
554599
* UpdateSettingRequest request =

java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/ResourceSettingsServiceSettings.java

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

java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/package-info.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@
3434
* <p>Sample for ResourceSettingsServiceClient:
3535
*
3636
* <pre>{@code
37-
* // This snippet has been automatically generated for illustrative purposes only.
38-
* // It may require modifications to work in your environment.
37+
* // This snippet has been automatically generated and should be regarded as a code template only.
38+
* // It will require modifications to work:
39+
* // - It may require correct/in-range values for request initialization.
40+
* // - It may require specifying regional endpoints when creating the service client as shown in
41+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3942
* try (ResourceSettingsServiceClient resourceSettingsServiceClient =
4043
* ResourceSettingsServiceClient.create()) {
4144
* SettingName name =

java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/stub/HttpJsonResourceSettingsServiceStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ public class HttpJsonResourceSettingsServiceStub extends ResourceSettingsService
160160
})
161161
.setRequestBodyExtractor(
162162
request ->
163-
ProtoRestSerializer.create().toBody("setting", request.getSetting()))
163+
ProtoRestSerializer.create()
164+
.toBody("setting", request.getSetting(), false))
164165
.build())
165166
.setResponseParser(
166167
ProtoMessageResponseParser.<Setting>newBuilder()

java-resource-settings/google-cloud-resource-settings/src/main/java/com/google/cloud/resourcesettings/v1/stub/ResourceSettingsServiceStubSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@
7676
* <p>For example, to set the total timeout of getSetting to 30 seconds:
7777
*
7878
* <pre>{@code
79-
* // This snippet has been automatically generated for illustrative purposes only.
80-
* // It may require modifications to work in your environment.
79+
* // This snippet has been automatically generated and should be regarded as a code template only.
80+
* // It will require modifications to work:
81+
* // - It may require correct/in-range values for request initialization.
82+
* // - It may require specifying regional endpoints when creating the service client as shown in
83+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8184
* ResourceSettingsServiceStubSettings.Builder resourceSettingsServiceSettingsBuilder =
8285
* ResourceSettingsServiceStubSettings.newBuilder();
8386
* resourceSettingsServiceSettingsBuilder

java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsserviceclient/create/SyncCreateSetCredentialsProvider.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

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

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

3231
public static void syncCreateSetCredentialsProvider() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// 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
3537
ResourceSettingsServiceSettings resourceSettingsServiceSettings =
3638
ResourceSettingsServiceSettings.newBuilder()
3739
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -40,5 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
4042
ResourceSettingsServiceClient.create(resourceSettingsServiceSettings);
4143
}
4244
}
43-
// [END
44-
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider_sync]
45+
// [END resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider_sync]

java-resource-settings/samples/snippets/generated/com/google/cloud/resourcesettings/v1/resourcesettingsserviceclient/create/SyncCreateSetCredentialsProvider1.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

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

19-
// [START
20-
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
19+
// [START resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
2120
import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceClient;
2221
import com.google.cloud.resourcesettings.v1.ResourceSettingsServiceSettings;
2322

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

3029
public static void syncCreateSetCredentialsProvider1() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// 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
3335
ResourceSettingsServiceSettings resourceSettingsServiceSettings =
3436
ResourceSettingsServiceSettings.newBuilder()
3537
.setTransportChannelProvider(
@@ -39,5 +41,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
3941
ResourceSettingsServiceClient.create(resourceSettingsServiceSettings);
4042
}
4143
}
42-
// [END
43-
// resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]
44+
// [END resourcesettings_v1_generated_resourcesettingsserviceclient_create_setcredentialsprovider1_sync]

0 commit comments

Comments
 (0)