Class DeleteProductRequest (2.2.0)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class DeleteProductRequest : IMessage<DeleteProductRequest>, IEquatable<DeleteProductRequest>, IDeepCloneable<DeleteProductRequest>, IBufferMessage, IMessage

Request message for [ProductService.DeleteProduct][google.cloud.retail.v2.ProductService.DeleteProduct] method.

Inheritance

Object > DeleteProductRequest

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

DeleteProductRequest()

public DeleteProductRequest()

DeleteProductRequest(DeleteProductRequest)

public DeleteProductRequest(DeleteProductRequest other)
Parameter
NameDescription
otherDeleteProductRequest

Properties

Name

public string Name { get; set; }

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 delete the [Product][google.cloud.retail.v2.Product], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the [Product][google.cloud.retail.v2.Product] to delete does not exist, a NOT_FOUND error is returned.

The [Product][google.cloud.retail.v2.Product] to delete can neither be a [Product.Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION] [Product][google.cloud.retail.v2.Product] member nor a [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] [Product][google.cloud.retail.v2.Product] with more than one [variants][google.cloud.retail.v2.Product.Type.VARIANT]. Otherwise, an INVALID_ARGUMENT error is returned.

All inventory information for the named [Product][google.cloud.retail.v2.Product] will be deleted.

Property Value
TypeDescription
String

ProductName

public ProductName ProductName { get; set; }

ProductName-typed view over the Name resource name property.

Property Value
TypeDescription
ProductName