streamingReadFeatureValues method

Stream<ReadFeatureValuesResponse> streamingReadFeatureValues(
  1. StreamingReadFeatureValuesRequest request
)

Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.

Throws a http.ClientException if there were problems communicating with the API service. Throws a StatusException if the API failed with a Status message. Throws a ServiceException for any other failure.

Implementation

Stream<ReadFeatureValuesResponse> streamingReadFeatureValues(
  StreamingReadFeatureValuesRequest request,
) {
  final url = Uri.https(
    _host,
    '/v1beta1/${request.entityType}:streamingReadFeatureValues',
  );
  return _client
      .postStreaming(url, body: request)
      .map(ReadFeatureValuesResponse.fromJson);
}