code: public final ListLogMetricsPagedResponse listLogMetrics(ParentName parent) {
      ListLogMetricsRequest request =
          ListLogMetricsRequest.newBuilder()
              .setParent(parent == null ? null : parent.toString())
              .build();
      return listLogMetrics(request);
    }
docs: Lists logs-based metrics.
  
  <p>Sample code:
  
  <pre><code>
  try (MetricsClient metricsClient = MetricsClient.create()) {
  ParentName parent = ProjectName.of("[PROJECT]");
  for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param parent Required. The name of the project containing the metrics:
  <p>"projects/[PROJECT_ID]"
  @throws com.google.api.gax.rpc.ApiException if the remote call fails