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