Class CreateProductRequest
Request message for [CreateProduct][] method.
Inheritance
Inherited Members
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class CreateProductRequest : IMessage<CreateProductRequest>, IEquatable<CreateProductRequest>, IDeepCloneable<CreateProductRequest>, IBufferMessage, IMessage
Constructors
CreateProductRequest()
Declaration
public CreateProductRequest()
CreateProductRequest(CreateProductRequest)
Declaration
public CreateProductRequest(CreateProductRequest other)
Parameters
Type | Name | Description |
---|---|---|
CreateProductRequest | other |
Properties
Parent
Required. The parent catalog resource name, such as "projects/*/locations/global/catalogs/default_catalog/branches/default_branch".
Declaration
public string Parent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentAsBranchName
BranchName-typed view over the Parent resource name property.
Declaration
public BranchName ParentAsBranchName { get; set; }
Property Value
Type | Description |
---|---|
BranchName |
Product
Required. The [Product][google.cloud.retail.v2.Product] to create.
Declaration
public Product Product { get; set; }
Property Value
Type | Description |
---|---|
Product |
ProductId
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.
Declaration
public string ProductId { get; set; }
Property Value
Type | Description |
---|---|
System.String |