get method
Gets a Product.
Request parameters:
name - Required. Full resource name of Product, such as projects / * /locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id.
If the caller does not have permission to access the Product, regardless
of whether or not it exists, a PERMISSION_DENIED error is returned. If the
requested Product does not exist, a NOT_FOUND error is returned.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/catalogs/\[^/\]+/branches/\[^/\]+/products/.*$.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudRetailV2Product.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleCloudRetailV2Product> get(
  core.String name, {
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };
  final url_ = 'v2/' + core.Uri.encodeFull('$name');
  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleCloudRetailV2Product.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}