@@ -152,17 +152,6 @@ public MetricsServiceV2Stub getStub() {
152
152
/**
153
153
* Lists logs-based metrics.
154
154
*
155
- * <p>Sample code:
156
- *
157
- * <pre>{@code
158
- * try (MetricsClient metricsClient = MetricsClient.create()) {
159
- * ProjectName parent = ProjectName.of("[PROJECT]");
160
- * for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
161
- * // doThingsWith(element);
162
- * }
163
- * }
164
- * }</pre>
165
- *
166
155
* @param parent Required. The name of the project containing the metrics:
167
156
* <p>"projects/[PROJECT_ID]"
168
157
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -179,17 +168,6 @@ public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) {
179
168
/**
180
169
* Lists logs-based metrics.
181
170
*
182
- * <p>Sample code:
183
- *
184
- * <pre>{@code
185
- * try (MetricsClient metricsClient = MetricsClient.create()) {
186
- * String parent = ProjectName.of("[PROJECT]").toString();
187
- * for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
188
- * // doThingsWith(element);
189
- * }
190
- * }
191
- * }</pre>
192
- *
193
171
* @param parent Required. The name of the project containing the metrics:
194
172
* <p>"projects/[PROJECT_ID]"
195
173
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -203,22 +181,6 @@ public final ListLogMetricsPagedResponse listLogMetrics(String parent) {
203
181
/**
204
182
* Lists logs-based metrics.
205
183
*
206
- * <p>Sample code:
207
- *
208
- * <pre>{@code
209
- * try (MetricsClient metricsClient = MetricsClient.create()) {
210
- * ListLogMetricsRequest request =
211
- * ListLogMetricsRequest.newBuilder()
212
- * .setParent(ProjectName.of("[PROJECT]").toString())
213
- * .setPageToken("pageToken873572522")
214
- * .setPageSize(883849137)
215
- * .build();
216
- * for (LogMetric element : metricsClient.listLogMetrics(request).iterateAll()) {
217
- * // doThingsWith(element);
218
- * }
219
- * }
220
- * }</pre>
221
- *
222
184
* @param request The request object containing all of the parameters for the API call.
223
185
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
224
186
*/
@@ -261,7 +223,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
261
223
* }
262
224
* }</pre>
263
225
*
264
- * @param metricName Required. The resource name of the desired metric:
226
+ * @param metric_name Required. The resource name of the desired metric:
265
227
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
266
228
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
267
229
*/
@@ -286,7 +248,7 @@ public final LogMetric getLogMetric(LogMetricName metricName) {
286
248
* }
287
249
* }</pre>
288
250
*
289
- * @param metricName Required. The resource name of the desired metric:
251
+ * @param metric_name Required. The resource name of the desired metric:
290
252
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
291
253
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
292
254
*/
@@ -300,18 +262,6 @@ public final LogMetric getLogMetric(String metricName) {
300
262
/**
301
263
* Gets a logs-based metric.
302
264
*
303
- * <p>Sample code:
304
- *
305
- * <pre>{@code
306
- * try (MetricsClient metricsClient = MetricsClient.create()) {
307
- * GetLogMetricRequest request =
308
- * GetLogMetricRequest.newBuilder()
309
- * .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
310
- * .build();
311
- * LogMetric response = metricsClient.getLogMetric(request);
312
- * }
313
- * }</pre>
314
- *
315
265
* @param request The request object containing all of the parameters for the API call.
316
266
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
317
267
*/
@@ -390,19 +340,6 @@ public final LogMetric createLogMetric(String parent, LogMetric metric) {
390
340
/**
391
341
* Creates a logs-based metric.
392
342
*
393
- * <p>Sample code:
394
- *
395
- * <pre>{@code
396
- * try (MetricsClient metricsClient = MetricsClient.create()) {
397
- * CreateLogMetricRequest request =
398
- * CreateLogMetricRequest.newBuilder()
399
- * .setParent(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
400
- * .setMetric(LogMetric.newBuilder().build())
401
- * .build();
402
- * LogMetric response = metricsClient.createLogMetric(request);
403
- * }
404
- * }</pre>
405
- *
406
343
* @param request The request object containing all of the parameters for the API call.
407
344
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
408
345
*/
@@ -434,7 +371,7 @@ public final UnaryCallable<CreateLogMetricRequest, LogMetric> createLogMetricCal
434
371
* }
435
372
* }</pre>
436
373
*
437
- * @param metricName Required. The resource name of the metric to update:
374
+ * @param metric_name Required. The resource name of the metric to update:
438
375
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
439
376
* <p>The updated metric must be provided in the request and it's `name` field must be the
440
377
* same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is
@@ -465,7 +402,7 @@ public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metri
465
402
* }
466
403
* }</pre>
467
404
*
468
- * @param metricName Required. The resource name of the metric to update:
405
+ * @param metric_name Required. The resource name of the metric to update:
469
406
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
470
407
* <p>The updated metric must be provided in the request and it's `name` field must be the
471
408
* same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is
@@ -483,19 +420,6 @@ public final LogMetric updateLogMetric(String metricName, LogMetric metric) {
483
420
/**
484
421
* Creates or updates a logs-based metric.
485
422
*
486
- * <p>Sample code:
487
- *
488
- * <pre>{@code
489
- * try (MetricsClient metricsClient = MetricsClient.create()) {
490
- * UpdateLogMetricRequest request =
491
- * UpdateLogMetricRequest.newBuilder()
492
- * .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
493
- * .setMetric(LogMetric.newBuilder().build())
494
- * .build();
495
- * LogMetric response = metricsClient.updateLogMetric(request);
496
- * }
497
- * }</pre>
498
- *
499
423
* @param request The request object containing all of the parameters for the API call.
500
424
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
501
425
*/
@@ -526,7 +450,7 @@ public final UnaryCallable<UpdateLogMetricRequest, LogMetric> updateLogMetricCal
526
450
* }
527
451
* }</pre>
528
452
*
529
- * @param metricName Required. The resource name of the metric to delete:
453
+ * @param metric_name Required. The resource name of the metric to delete:
530
454
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
531
455
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
532
456
*/
@@ -551,7 +475,7 @@ public final void deleteLogMetric(LogMetricName metricName) {
551
475
* }
552
476
* }</pre>
553
477
*
554
- * @param metricName Required. The resource name of the metric to delete:
478
+ * @param metric_name Required. The resource name of the metric to delete:
555
479
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
556
480
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
557
481
*/
@@ -565,18 +489,6 @@ public final void deleteLogMetric(String metricName) {
565
489
/**
566
490
* Deletes a logs-based metric.
567
491
*
568
- * <p>Sample code:
569
- *
570
- * <pre>{@code
571
- * try (MetricsClient metricsClient = MetricsClient.create()) {
572
- * DeleteLogMetricRequest request =
573
- * DeleteLogMetricRequest.newBuilder()
574
- * .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
575
- * .build();
576
- * metricsClient.deleteLogMetric(request);
577
- * }
578
- * }</pre>
579
- *
580
492
* @param request The request object containing all of the parameters for the API call.
581
493
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
582
494
*/
0 commit comments