public sealed class CreateProductRequest : IMessage<CreateProductRequest>, IEquatable<CreateProductRequest>, IDeepCloneable<CreateProductRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class CreateProductRequest.
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 provides reference documentation for the \u003ccode\u003eCreateProductRequest\u003c/code\u003e class within the Google Cloud Retail v2 API, specifically version 2.10.0, and how it is used for the \u003ccode\u003eProductService.CreateProduct\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateProductRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsBranchName\u003c/code\u003e, \u003ccode\u003eProduct\u003c/code\u003e, and \u003ccode\u003eProductId\u003c/code\u003e, each with descriptions of their function.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists different versions of the \u003ccode\u003eCreateProductRequest\u003c/code\u003e class, ranging from version 1.0.0 to 2.12.0, with 2.12.0 being the most recent.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateProductRequest\u003c/code\u003e class inherits from the .NET object class and implements the \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eIt details the constructors for \u003ccode\u003eCreateProductRequest\u003c/code\u003e, \u003ccode\u003eCreateProductRequest()\u003c/code\u003e and \u003ccode\u003eCreateProductRequest(CreateProductRequest)\u003c/code\u003e, explaining their parameters and functions.\u003c/p\u003e\n"]]],[],null,[]]