public sealed class CreateProductRequest : IMessage<CreateProductRequest>, IEquatable<CreateProductRequest>, IDeepCloneable<CreateProductRequest>, IBufferMessage, IMessage
Request message for
[ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct]
method.
Required. The ID to use for the [Product][google.cloud.retail.v2.Product],
which will become the final component of the
[Product.name][google.cloud.retail.v2.Product.name].
If the caller does not have permission to create the
[Product][google.cloud.retail.v2.Product], regardless of whether or not it
exists, a PERMISSION_DENIED error is returned.
This field must be unique among all
[Product][google.cloud.retail.v2.Product]s with the same
[parent][google.cloud.retail.v2.CreateProductRequest.parent]. Otherwise, an
ALREADY_EXISTS error is returned.
This field must be a UTF-8 encoded string with a length limit of 128
characters. Otherwise, an INVALID_ARGUMENT error is returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eCreateProductRequest\u003c/code\u003e class, which is used to send a request to the \u003ccode\u003eProductService.CreateProduct\u003c/code\u003e method within the Google Cloud Retail V2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateProductRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.Retail.V2.dll\u003c/code\u003e assembly, inheriting from \u003ccode\u003eObject\u003c/code\u003e and implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides constructors for creating a new \u003ccode\u003eCreateProductRequest\u003c/code\u003e object, either empty or by copying an existing one, as well as properties like \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsBranchName\u003c/code\u003e, \u003ccode\u003eProduct\u003c/code\u003e, and \u003ccode\u003eProductId\u003c/code\u003e, which are essential parameters for the request.\u003c/p\u003e\n"],["\u003cp\u003eThe page also lists all available versions, going from the latest 2.12.0 to version 1.0.0, with links to the respective documentation of each version, for the \u003ccode\u003eCreateProductRequest\u003c/code\u003e Class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateProductRequest\u003c/code\u003e class requires the \u003ccode\u003eParent\u003c/code\u003e, the \u003ccode\u003eProduct\u003c/code\u003e and the \u003ccode\u003eProductId\u003c/code\u003e to be specified in order to be a valid request, and it is used to create new products within a specific branch catalog.\u003c/p\u003e\n"]]],[],null,[]]