code: public final ListTimeSeriesPagedResponse listTimeSeries(
        ProjectName name,
        String filter,
        TimeInterval interval,
        ListTimeSeriesRequest.TimeSeriesView view) {
      ListTimeSeriesRequest request =
          ListTimeSeriesRequest.newBuilder()
              .setName(name == null ? null : name.toString())
              .setFilter(filter)
              .setInterval(interval)
              .setView(view)
              .build();
      return listTimeSeries(request);
    }
docs: Lists time series that match a filter. This method does not require a Stackdriver account.
  
  <p>Sample code:
  
  <pre><code>
  try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
  ProjectName name = ProjectName.of("[PROJECT]");
  String filter = "";
  TimeInterval interval = TimeInterval.newBuilder().build();
  ListTimeSeriesRequest.TimeSeriesView view = ListTimeSeriesRequest.TimeSeriesView.FULL;
  for (TimeSeries element : metricServiceClient.listTimeSeries(name, filter, interval, view).iterateAll()) {
  // doThingsWith(element);
  }
  }
  </code></pre>
  
  @param name The project on which to execute the request. The format is
  "projects/{project_id_or_number}".
  @param filter A [monitoring filter](/monitoring/api/v3/filters) that specifies which time
  series should be returned. The filter must specify a single metric type, and can
  additionally specify metric labels and other information. For example:
  <p>metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
  metric.label.instance_name = "my-instance-name"
  @param interval The time interval for which results should be returned. Only time series that
  contain data points in the specified interval are included in the response.
  @param view Specifies which information is returned about the time series.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails