Skip to content

Commit dd2fdce

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#637)
- [ ] 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 26ab1ac commit dd2fdce

File tree

5 files changed

+92
-38
lines changed

5 files changed

+92
-38
lines changed

java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceClient.java

+75-30
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@
4949
* calls that map to API methods. Sample code to get started:
5050
*
5151
* <pre>{@code
52-
* // This snippet has been automatically generated for illustrative purposes only.
53-
* // It may require modifications to work in your environment.
52+
* // This snippet has been automatically generated and should be regarded as a code template only.
53+
* // It will require modifications to work:
54+
* // - It may require correct/in-range values for request initialization.
55+
* // - It may require specifying regional endpoints when creating the service client as shown in
56+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5457
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
5558
* CreateDashboardRequest request =
5659
* CreateDashboardRequest.newBuilder()
@@ -92,8 +95,11 @@
9295
* <p>To customize credentials:
9396
*
9497
* <pre>{@code
95-
* // This snippet has been automatically generated for illustrative purposes only.
96-
* // It may require modifications to work in your environment.
98+
* // This snippet has been automatically generated and should be regarded as a code template only.
99+
* // It will require modifications to work:
100+
* // - It may require correct/in-range values for request initialization.
101+
* // - It may require specifying regional endpoints when creating the service client as shown in
102+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
97103
* DashboardsServiceSettings dashboardsServiceSettings =
98104
* DashboardsServiceSettings.newBuilder()
99105
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -105,8 +111,11 @@
105111
* <p>To customize the endpoint:
106112
*
107113
* <pre>{@code
108-
* // This snippet has been automatically generated for illustrative purposes only.
109-
* // It may require modifications to work in your environment.
114+
* // This snippet has been automatically generated and should be regarded as a code template only.
115+
* // It will require modifications to work:
116+
* // - It may require correct/in-range values for request initialization.
117+
* // - It may require specifying regional endpoints when creating the service client as shown in
118+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
110119
* DashboardsServiceSettings dashboardsServiceSettings =
111120
* DashboardsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
112121
* DashboardsServiceClient dashboardsServiceClient =
@@ -117,8 +126,11 @@
117126
* the wire:
118127
*
119128
* <pre>{@code
120-
* // This snippet has been automatically generated for illustrative purposes only.
121-
* // It may require modifications to work in your environment.
129+
* // This snippet has been automatically generated and should be regarded as a code template only.
130+
* // It will require modifications to work:
131+
* // - It may require correct/in-range values for request initialization.
132+
* // - It may require specifying regional endpoints when creating the service client as shown in
133+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
122134
* DashboardsServiceSettings dashboardsServiceSettings =
123135
* DashboardsServiceSettings.newBuilder()
124136
* .setTransportChannelProvider(
@@ -191,8 +203,11 @@ public DashboardsServiceStub getStub() {
191203
* <p>Sample code:
192204
*
193205
* <pre>{@code
194-
* // This snippet has been automatically generated for illustrative purposes only.
195-
* // It may require modifications to work in your environment.
206+
* // This snippet has been automatically generated and should be regarded as a code template only.
207+
* // It will require modifications to work:
208+
* // - It may require correct/in-range values for request initialization.
209+
* // - It may require specifying regional endpoints when creating the service client as shown in
210+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
196211
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
197212
* CreateDashboardRequest request =
198213
* CreateDashboardRequest.newBuilder()
@@ -222,8 +237,11 @@ public final Dashboard createDashboard(CreateDashboardRequest request) {
222237
* <p>Sample code:
223238
*
224239
* <pre>{@code
225-
* // This snippet has been automatically generated for illustrative purposes only.
226-
* // It may require modifications to work in your environment.
240+
* // This snippet has been automatically generated and should be regarded as a code template only.
241+
* // It will require modifications to work:
242+
* // - It may require correct/in-range values for request initialization.
243+
* // - It may require specifying regional endpoints when creating the service client as shown in
244+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
227245
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
228246
* CreateDashboardRequest request =
229247
* CreateDashboardRequest.newBuilder()
@@ -252,8 +270,11 @@ public final UnaryCallable<CreateDashboardRequest, Dashboard> createDashboardCal
252270
* <p>Sample code:
253271
*
254272
* <pre>{@code
255-
* // This snippet has been automatically generated for illustrative purposes only.
256-
* // It may require modifications to work in your environment.
273+
* // This snippet has been automatically generated and should be regarded as a code template only.
274+
* // It will require modifications to work:
275+
* // - It may require correct/in-range values for request initialization.
276+
* // - It may require specifying regional endpoints when creating the service client as shown in
277+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
257278
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
258279
* ListDashboardsRequest request =
259280
* ListDashboardsRequest.newBuilder()
@@ -284,8 +305,11 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re
284305
* <p>Sample code:
285306
*
286307
* <pre>{@code
287-
* // This snippet has been automatically generated for illustrative purposes only.
288-
* // It may require modifications to work in your environment.
308+
* // This snippet has been automatically generated and should be regarded as a code template only.
309+
* // It will require modifications to work:
310+
* // - It may require correct/in-range values for request initialization.
311+
* // - It may require specifying regional endpoints when creating the service client as shown in
312+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
289313
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
290314
* ListDashboardsRequest request =
291315
* ListDashboardsRequest.newBuilder()
@@ -317,8 +341,11 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re
317341
* <p>Sample code:
318342
*
319343
* <pre>{@code
320-
* // This snippet has been automatically generated for illustrative purposes only.
321-
* // It may require modifications to work in your environment.
344+
* // This snippet has been automatically generated and should be regarded as a code template only.
345+
* // It will require modifications to work:
346+
* // - It may require correct/in-range values for request initialization.
347+
* // - It may require specifying regional endpoints when creating the service client as shown in
348+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
322349
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
323350
* ListDashboardsRequest request =
324351
* ListDashboardsRequest.newBuilder()
@@ -357,8 +384,11 @@ public final ListDashboardsPagedResponse listDashboards(ListDashboardsRequest re
357384
* <p>Sample code:
358385
*
359386
* <pre>{@code
360-
* // This snippet has been automatically generated for illustrative purposes only.
361-
* // It may require modifications to work in your environment.
387+
* // This snippet has been automatically generated and should be regarded as a code template only.
388+
* // It will require modifications to work:
389+
* // - It may require correct/in-range values for request initialization.
390+
* // - It may require specifying regional endpoints when creating the service client as shown in
391+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
362392
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
363393
* GetDashboardRequest request =
364394
* GetDashboardRequest.newBuilder()
@@ -385,8 +415,11 @@ public final Dashboard getDashboard(GetDashboardRequest request) {
385415
* <p>Sample code:
386416
*
387417
* <pre>{@code
388-
* // This snippet has been automatically generated for illustrative purposes only.
389-
* // It may require modifications to work in your environment.
418+
* // This snippet has been automatically generated and should be regarded as a code template only.
419+
* // It will require modifications to work:
420+
* // - It may require correct/in-range values for request initialization.
421+
* // - It may require specifying regional endpoints when creating the service client as shown in
422+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
390423
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
391424
* GetDashboardRequest request =
392425
* GetDashboardRequest.newBuilder()
@@ -414,8 +447,11 @@ public final UnaryCallable<GetDashboardRequest, Dashboard> getDashboardCallable(
414447
* <p>Sample code:
415448
*
416449
* <pre>{@code
417-
* // This snippet has been automatically generated for illustrative purposes only.
418-
* // It may require modifications to work in your environment.
450+
* // This snippet has been automatically generated and should be regarded as a code template only.
451+
* // It will require modifications to work:
452+
* // - It may require correct/in-range values for request initialization.
453+
* // - It may require specifying regional endpoints when creating the service client as shown in
454+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
419455
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
420456
* DeleteDashboardRequest request =
421457
* DeleteDashboardRequest.newBuilder()
@@ -443,8 +479,11 @@ public final void deleteDashboard(DeleteDashboardRequest request) {
443479
* <p>Sample code:
444480
*
445481
* <pre>{@code
446-
* // This snippet has been automatically generated for illustrative purposes only.
447-
* // It may require modifications to work in your environment.
482+
* // This snippet has been automatically generated and should be regarded as a code template only.
483+
* // It will require modifications to work:
484+
* // - It may require correct/in-range values for request initialization.
485+
* // - It may require specifying regional endpoints when creating the service client as shown in
486+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
448487
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
449488
* DeleteDashboardRequest request =
450489
* DeleteDashboardRequest.newBuilder()
@@ -472,8 +511,11 @@ public final UnaryCallable<DeleteDashboardRequest, Empty> deleteDashboardCallabl
472511
* <p>Sample code:
473512
*
474513
* <pre>{@code
475-
* // This snippet has been automatically generated for illustrative purposes only.
476-
* // It may require modifications to work in your environment.
514+
* // This snippet has been automatically generated and should be regarded as a code template only.
515+
* // It will require modifications to work:
516+
* // - It may require correct/in-range values for request initialization.
517+
* // - It may require specifying regional endpoints when creating the service client as shown in
518+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
477519
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
478520
* UpdateDashboardRequest request =
479521
* UpdateDashboardRequest.newBuilder()
@@ -502,8 +544,11 @@ public final Dashboard updateDashboard(UpdateDashboardRequest request) {
502544
* <p>Sample code:
503545
*
504546
* <pre>{@code
505-
* // This snippet has been automatically generated for illustrative purposes only.
506-
* // It may require modifications to work in your environment.
547+
* // This snippet has been automatically generated and should be regarded as a code template only.
548+
* // It will require modifications to work:
549+
* // - It may require correct/in-range values for request initialization.
550+
* // - It may require specifying regional endpoints when creating the service client as shown in
551+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
507552
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
508553
* UpdateDashboardRequest request =
509554
* UpdateDashboardRequest.newBuilder()

java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/DashboardsServiceSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@
6161
* <p>For example, to set the total timeout of createDashboard to 30 seconds:
6262
*
6363
* <pre>{@code
64-
* // This snippet has been automatically generated for illustrative purposes only.
65-
* // It may require modifications to work in your environment.
64+
* // This snippet has been automatically generated and should be regarded as a code template only.
65+
* // It will require modifications to work:
66+
* // - It may require correct/in-range values for request initialization.
67+
* // - It may require specifying regional endpoints when creating the service client as shown in
68+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6669
* DashboardsServiceSettings.Builder dashboardsServiceSettingsBuilder =
6770
* DashboardsServiceSettings.newBuilder();
6871
* dashboardsServiceSettingsBuilder

java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
* <p>Sample for DashboardsServiceClient:
2828
*
2929
* <pre>{@code
30-
* // This snippet has been automatically generated for illustrative purposes only.
31-
* // 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
3235
* try (DashboardsServiceClient dashboardsServiceClient = DashboardsServiceClient.create()) {
3336
* CreateDashboardRequest request =
3437
* CreateDashboardRequest.newBuilder()

java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/DashboardsServiceStubSettings.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@
7878
* <p>For example, to set the total timeout of createDashboard to 30 seconds:
7979
*
8080
* <pre>{@code
81-
* // This snippet has been automatically generated for illustrative purposes only.
82-
* // It may require modifications to work in your environment.
81+
* // This snippet has been automatically generated and should be regarded as a code template only.
82+
* // It will require modifications to work:
83+
* // - It may require correct/in-range values for request initialization.
84+
* // - It may require specifying regional endpoints when creating the service client as shown in
85+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8386
* DashboardsServiceStubSettings.Builder dashboardsServiceSettingsBuilder =
8487
* DashboardsServiceStubSettings.newBuilder();
8588
* dashboardsServiceSettingsBuilder

java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/HttpJsonDashboardsServiceStub.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class HttpJsonDashboardsServiceStub extends DashboardsServiceStub {
8787
.setRequestBodyExtractor(
8888
request ->
8989
ProtoRestSerializer.create()
90-
.toBody("dashboard", request.getDashboard()))
90+
.toBody("dashboard", request.getDashboard(), false))
9191
.build())
9292
.setResponseParser(
9393
ProtoMessageResponseParser.<Dashboard>newBuilder()
@@ -227,7 +227,7 @@ public class HttpJsonDashboardsServiceStub extends DashboardsServiceStub {
227227
.setRequestBodyExtractor(
228228
request ->
229229
ProtoRestSerializer.create()
230-
.toBody("dashboard", request.getDashboard()))
230+
.toBody("dashboard", request.getDashboard(), false))
231231
.build())
232232
.setResponseParser(
233233
ProtoMessageResponseParser.<Dashboard>newBuilder()

0 commit comments

Comments
 (0)