upsertDatapoints method

  1. @override
Future<UpsertDatapointsResponse> upsertDatapoints(
  1. UpsertDatapointsRequest request
)
override

Add/update Datapoints into an Index.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<UpsertDatapointsResponse> upsertDatapoints(
  UpsertDatapointsRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_upsertDatapoints case final upsertDatapoints?) {
    return upsertDatapoints(request);
  }
  throw UnsupportedError('upsertDatapoints');
}