@@ -151,17 +151,6 @@ public MetricsServiceV2Stub getStub() {
151
151
/**
152
152
* Lists logs-based metrics.
153
153
*
154
- * <p>Sample code:
155
- *
156
- * <pre>{@code
157
- * try (MetricsClient metricsClient = MetricsClient.create()) {
158
- * ProjectName parent = ProjectName.of("[PROJECT]");
159
- * for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
160
- * // doThingsWith(element);
161
- * }
162
- * }
163
- * }</pre>
164
- *
165
154
* @param parent Required. The name of the project containing the metrics:
166
155
* <p>"projects/[PROJECT_ID]"
167
156
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -178,17 +167,6 @@ public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) {
178
167
/**
179
168
* Lists logs-based metrics.
180
169
*
181
- * <p>Sample code:
182
- *
183
- * <pre>{@code
184
- * try (MetricsClient metricsClient = MetricsClient.create()) {
185
- * String parent = ProjectName.of("[PROJECT]").toString();
186
- * for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
187
- * // doThingsWith(element);
188
- * }
189
- * }
190
- * }</pre>
191
- *
192
170
* @param parent Required. The name of the project containing the metrics:
193
171
* <p>"projects/[PROJECT_ID]"
194
172
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -202,22 +180,6 @@ public final ListLogMetricsPagedResponse listLogMetrics(String parent) {
202
180
/**
203
181
* Lists logs-based metrics.
204
182
*
205
- * <p>Sample code:
206
- *
207
- * <pre>{@code
208
- * try (MetricsClient metricsClient = MetricsClient.create()) {
209
- * ListLogMetricsRequest request =
210
- * ListLogMetricsRequest.newBuilder()
211
- * .setParent(ProjectName.of("[PROJECT]").toString())
212
- * .setPageToken("pageToken873572522")
213
- * .setPageSize(883849137)
214
- * .build();
215
- * for (LogMetric element : metricsClient.listLogMetrics(request).iterateAll()) {
216
- * // doThingsWith(element);
217
- * }
218
- * }
219
- * }</pre>
220
- *
221
183
* @param request The request object containing all of the parameters for the API call.
222
184
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
223
185
*/
@@ -276,7 +238,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re
276
238
* }
277
239
* }</pre>
278
240
*
279
- * @param metricName Required. The resource name of the desired metric:
241
+ * @param metric_name Required. The resource name of the desired metric:
280
242
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
281
243
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
282
244
*/
@@ -301,7 +263,7 @@ public final LogMetric getLogMetric(LogMetricName metricName) {
301
263
* }
302
264
* }</pre>
303
265
*
304
- * @param metricName Required. The resource name of the desired metric:
266
+ * @param metric_name Required. The resource name of the desired metric:
305
267
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
306
268
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
307
269
*/
@@ -315,18 +277,6 @@ public final LogMetric getLogMetric(String metricName) {
315
277
/**
316
278
* Gets a logs-based metric.
317
279
*
318
- * <p>Sample code:
319
- *
320
- * <pre>{@code
321
- * try (MetricsClient metricsClient = MetricsClient.create()) {
322
- * GetLogMetricRequest request =
323
- * GetLogMetricRequest.newBuilder()
324
- * .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
325
- * .build();
326
- * LogMetric response = metricsClient.getLogMetric(request);
327
- * }
328
- * }</pre>
329
- *
330
280
* @param request The request object containing all of the parameters for the API call.
331
281
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
332
282
*/
@@ -405,19 +355,6 @@ public final LogMetric createLogMetric(String parent, LogMetric metric) {
405
355
/**
406
356
* Creates a logs-based metric.
407
357
*
408
- * <p>Sample code:
409
- *
410
- * <pre>{@code
411
- * try (MetricsClient metricsClient = MetricsClient.create()) {
412
- * CreateLogMetricRequest request =
413
- * CreateLogMetricRequest.newBuilder()
414
- * .setParent(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
415
- * .setMetric(LogMetric.newBuilder().build())
416
- * .build();
417
- * LogMetric response = metricsClient.createLogMetric(request);
418
- * }
419
- * }</pre>
420
- *
421
358
* @param request The request object containing all of the parameters for the API call.
422
359
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
423
360
*/
@@ -449,7 +386,7 @@ public final UnaryCallable<CreateLogMetricRequest, LogMetric> createLogMetricCal
449
386
* }
450
387
* }</pre>
451
388
*
452
- * @param metricName Required. The resource name of the metric to update:
389
+ * @param metric_name Required. The resource name of the metric to update:
453
390
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
454
391
* <p>The updated metric must be provided in the request and it's `name` field must be the
455
392
* same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is
@@ -480,7 +417,7 @@ public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metri
480
417
* }
481
418
* }</pre>
482
419
*
483
- * @param metricName Required. The resource name of the metric to update:
420
+ * @param metric_name Required. The resource name of the metric to update:
484
421
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
485
422
* <p>The updated metric must be provided in the request and it's `name` field must be the
486
423
* same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is
@@ -498,19 +435,6 @@ public final LogMetric updateLogMetric(String metricName, LogMetric metric) {
498
435
/**
499
436
* Creates or updates a logs-based metric.
500
437
*
501
- * <p>Sample code:
502
- *
503
- * <pre>{@code
504
- * try (MetricsClient metricsClient = MetricsClient.create()) {
505
- * UpdateLogMetricRequest request =
506
- * UpdateLogMetricRequest.newBuilder()
507
- * .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
508
- * .setMetric(LogMetric.newBuilder().build())
509
- * .build();
510
- * LogMetric response = metricsClient.updateLogMetric(request);
511
- * }
512
- * }</pre>
513
- *
514
438
* @param request The request object containing all of the parameters for the API call.
515
439
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
516
440
*/
@@ -541,7 +465,7 @@ public final UnaryCallable<UpdateLogMetricRequest, LogMetric> updateLogMetricCal
541
465
* }
542
466
* }</pre>
543
467
*
544
- * @param metricName Required. The resource name of the metric to delete:
468
+ * @param metric_name Required. The resource name of the metric to delete:
545
469
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
546
470
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
547
471
*/
@@ -566,7 +490,7 @@ public final void deleteLogMetric(LogMetricName metricName) {
566
490
* }
567
491
* }</pre>
568
492
*
569
- * @param metricName Required. The resource name of the metric to delete:
493
+ * @param metric_name Required. The resource name of the metric to delete:
570
494
* <p>"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
571
495
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
572
496
*/
@@ -580,18 +504,6 @@ public final void deleteLogMetric(String metricName) {
580
504
/**
581
505
* Deletes a logs-based metric.
582
506
*
583
- * <p>Sample code:
584
- *
585
- * <pre>{@code
586
- * try (MetricsClient metricsClient = MetricsClient.create()) {
587
- * DeleteLogMetricRequest request =
588
- * DeleteLogMetricRequest.newBuilder()
589
- * .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
590
- * .build();
591
- * metricsClient.deleteLogMetric(request);
592
- * }
593
- * }</pre>
594
- *
595
507
* @param request The request object containing all of the parameters for the API call.
596
508
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
597
509
*/
0 commit comments