Skip to content

Commit c4dd41f

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#921)
- [ ] 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 f5ccdec commit c4dd41f

23 files changed

+1321
-544
lines changed

java-monitoring/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-monitoring'
5757
If you are using Gradle without BOM, add this to your dependencies:
5858

5959
```Groovy
60-
implementation 'com.google.cloud:google-cloud-monitoring:3.4.1'
60+
implementation 'com.google.cloud:google-cloud-monitoring:3.4.2'
6161
```
6262

6363
If you are using SBT, add this to your dependencies:
6464

6565
```Scala
66-
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.4.1"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.4.2"
6767
```
6868

6969
## Authentication

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceClient.java

Lines changed: 135 additions & 54 deletions
Large diffs are not rendered by default.

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/AlertPolicyServiceSettings.java

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

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceClient.java

Lines changed: 160 additions & 64 deletions
Large diffs are not rendered by default.

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/GroupServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@
6363
* <p>For example, to set the total timeout of getGroup to 30 seconds:
6464
*
6565
* <pre>{@code
66-
* // This snippet has been automatically generated for illustrative purposes only.
67-
* // It may require modifications to work in your environment.
66+
* // This snippet has been automatically generated and should be regarded as a code template only.
67+
* // It will require modifications to work:
68+
* // - It may require correct/in-range values for request initialization.
69+
* // - It may require specifying regional endpoints when creating the service client as shown in
70+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6871
* GroupServiceSettings.Builder groupServiceSettingsBuilder = GroupServiceSettings.newBuilder();
6972
* groupServiceSettingsBuilder
7073
* .getGroupSettings()
7174
* .setRetrySettings(
72-
* groupServiceSettingsBuilder
73-
* .getGroupSettings()
74-
* .getRetrySettings()
75-
* .toBuilder()
75+
* groupServiceSettingsBuilder.getGroupSettings().getRetrySettings().toBuilder()
7676
* .setTotalTimeout(Duration.ofSeconds(30))
7777
* .build());
7878
* GroupServiceSettings groupServiceSettings = groupServiceSettingsBuilder.build();

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceClient.java

Lines changed: 250 additions & 100 deletions
Large diffs are not rendered by default.

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/MetricServiceSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@
6868
* <p>For example, to set the total timeout of getMonitoredResourceDescriptor to 30 seconds:
6969
*
7070
* <pre>{@code
71-
* // This snippet has been automatically generated for illustrative purposes only.
72-
* // It may require modifications to work in your environment.
71+
* // This snippet has been automatically generated and should be regarded as a code template only.
72+
* // It will require modifications to work:
73+
* // - It may require correct/in-range values for request initialization.
74+
* // - It may require specifying regional endpoints when creating the service client as shown in
75+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7376
* MetricServiceSettings.Builder metricServiceSettingsBuilder = MetricServiceSettings.newBuilder();
7477
* metricServiceSettingsBuilder
7578
* .getMonitoredResourceDescriptorSettings()

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceClient.java

Lines changed: 250 additions & 100 deletions
Large diffs are not rendered by default.

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/NotificationChannelServiceSettings.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@
6969
* <p>For example, to set the total timeout of getNotificationChannelDescriptor to 30 seconds:
7070
*
7171
* <pre>{@code
72-
* // This snippet has been automatically generated for illustrative purposes only.
73-
* // It may require modifications to work in your environment.
72+
* // This snippet has been automatically generated and should be regarded as a code template only.
73+
* // It will require modifications to work:
74+
* // - It may require correct/in-range values for request initialization.
75+
* // - It may require specifying regional endpoints when creating the service client as shown in
76+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7477
* NotificationChannelServiceSettings.Builder notificationChannelServiceSettingsBuilder =
7578
* NotificationChannelServiceSettings.newBuilder();
7679
* notificationChannelServiceSettingsBuilder

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceClient.java

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
* calls that map to API methods. Sample code to get started:
4646
*
4747
* <pre>{@code
48-
* // This snippet has been automatically generated for illustrative purposes only.
49-
* // It may require modifications to work in your environment.
48+
* // This snippet has been automatically generated and should be regarded as a code template only.
49+
* // It will require modifications to work:
50+
* // - It may require correct/in-range values for request initialization.
51+
* // - It may require specifying regional endpoints when creating the service client as shown in
52+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5053
* try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
5154
* QueryTimeSeriesRequest request =
5255
* QueryTimeSeriesRequest.newBuilder()
@@ -90,8 +93,11 @@
9093
* <p>To customize credentials:
9194
*
9295
* <pre>{@code
93-
* // This snippet has been automatically generated for illustrative purposes only.
94-
* // It may require modifications to work in your environment.
96+
* // This snippet has been automatically generated and should be regarded as a code template only.
97+
* // It will require modifications to work:
98+
* // - It may require correct/in-range values for request initialization.
99+
* // - It may require specifying regional endpoints when creating the service client as shown in
100+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
95101
* QueryServiceSettings queryServiceSettings =
96102
* QueryServiceSettings.newBuilder()
97103
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -102,8 +108,11 @@
102108
* <p>To customize the endpoint:
103109
*
104110
* <pre>{@code
105-
* // This snippet has been automatically generated for illustrative purposes only.
106-
* // It may require modifications to work in your environment.
111+
* // This snippet has been automatically generated and should be regarded as a code template only.
112+
* // It will require modifications to work:
113+
* // - It may require correct/in-range values for request initialization.
114+
* // - It may require specifying regional endpoints when creating the service client as shown in
115+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
107116
* QueryServiceSettings queryServiceSettings =
108117
* QueryServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
109118
* QueryServiceClient queryServiceClient = QueryServiceClient.create(queryServiceSettings);
@@ -167,8 +176,11 @@ public QueryServiceStub getStub() {
167176
* <p>Sample code:
168177
*
169178
* <pre>{@code
170-
* // This snippet has been automatically generated for illustrative purposes only.
171-
* // It may require modifications to work in your environment.
179+
* // This snippet has been automatically generated and should be regarded as a code template only.
180+
* // It will require modifications to work:
181+
* // - It may require correct/in-range values for request initialization.
182+
* // - It may require specifying regional endpoints when creating the service client as shown in
183+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
172184
* try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
173185
* QueryTimeSeriesRequest request =
174186
* QueryTimeSeriesRequest.newBuilder()
@@ -197,8 +209,11 @@ public final QueryTimeSeriesPagedResponse queryTimeSeries(QueryTimeSeriesRequest
197209
* <p>Sample code:
198210
*
199211
* <pre>{@code
200-
* // This snippet has been automatically generated for illustrative purposes only.
201-
* // It may require modifications to work in your environment.
212+
* // This snippet has been automatically generated and should be regarded as a code template only.
213+
* // It will require modifications to work:
214+
* // - It may require correct/in-range values for request initialization.
215+
* // - It may require specifying regional endpoints when creating the service client as shown in
216+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
202217
* try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
203218
* QueryTimeSeriesRequest request =
204219
* QueryTimeSeriesRequest.newBuilder()
@@ -228,8 +243,11 @@ public final QueryTimeSeriesPagedResponse queryTimeSeries(QueryTimeSeriesRequest
228243
* <p>Sample code:
229244
*
230245
* <pre>{@code
231-
* // This snippet has been automatically generated for illustrative purposes only.
232-
* // It may require modifications to work in your environment.
246+
* // This snippet has been automatically generated and should be regarded as a code template only.
247+
* // It will require modifications to work:
248+
* // - It may require correct/in-range values for request initialization.
249+
* // - It may require specifying regional endpoints when creating the service client as shown in
250+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
233251
* try (QueryServiceClient queryServiceClient = QueryServiceClient.create()) {
234252
* QueryTimeSeriesRequest request =
235253
* QueryTimeSeriesRequest.newBuilder()

java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/QueryServiceSettings.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@
5454
* <p>For example, to set the total timeout of queryTimeSeries 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
* QueryServiceSettings.Builder queryServiceSettingsBuilder = QueryServiceSettings.newBuilder();
6063
* queryServiceSettingsBuilder
6164
* .queryTimeSeriesSettings()
6265
* .setRetrySettings(
63-
* queryServiceSettingsBuilder
64-
* .queryTimeSeriesSettings()
65-
* .getRetrySettings()
66-
* .toBuilder()
66+
* queryServiceSettingsBuilder.queryTimeSeriesSettings().getRetrySettings().toBuilder()
6767
* .setTotalTimeout(Duration.ofSeconds(30))
6868
* .build());
6969
* QueryServiceSettings queryServiceSettings = queryServiceSettingsBuilder.build();

0 commit comments

Comments
 (0)