code: public final void createTimeSeries(String name, List<TimeSeries> timeSeries) {
  
      CreateTimeSeriesRequest request =
          CreateTimeSeriesRequest.newBuilder().setName(name).addAllTimeSeries(timeSeries).build();
      createTimeSeries(request);
    }
docs: Creates or adds data to one or more time series. The response is empty if all time series in
  the request were written. If any time series could not be written, a corresponding failure
  message is included in the error response.
  
  <p>Sample code:
  
  <pre><code>
  try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
  ProjectName name = ProjectName.of("[PROJECT]");
  List&lt;TimeSeries&gt; timeSeries = new ArrayList&lt;&gt;();
  metricServiceClient.createTimeSeries(name.toString(), timeSeries);
  }
  </code></pre>
  
  @param name The project on which to execute the request. The format is
  `"projects/{project_id_or_number}"`.
  @param timeSeries The new data to be added to a list of time series. Adds at most one data
  point to each of several time series. The new data point must be more recent than any other
  point in its time series. Each `TimeSeries` value must fully specify a unique time series
  by supplying all label values for the metric and the monitored resource.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails