public sealed class GetProductRequest : IMessage<GetProductRequest>, IEquatable<GetProductRequest>, IDeepCloneable<GetProductRequest>, IBufferMessage, IMessage
Required. Full resource name of [Product][google.cloud.retail.v2.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][google.cloud.retail.v2.Product], regardless of whether or not it
exists, a PERMISSION_DENIED error is returned.
If the requested [Product][google.cloud.retail.v2.Product] does not exist,
a NOT_FOUND error is returned.
Property Value
Type
Description
System.String
ProductName
public ProductName ProductName { get; set; }
ProductName-typed view over the Name resource name property.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `GetProductRequest` class is used to request a specific product in the Google Cloud Retail API, with the latest version being 2.12.0."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, enabling functionalities such as serialization, comparison, and deep cloning."],["The class includes properties `Name` (a string) and `ProductName` that are essential for specifying the target product in a request, and returns a permission error if access is unauthorized or a not found error if the product does not exist."],["There are multiple versions of the `GetProductRequest` class, ranging from 1.0.0 to 2.12.0, listed in the provided content."],["It has two constructors, one default, and one that takes another GetProductRequest as a parameter, to allow copying instances."]]],[]]