Google Cloud Vision v1 API - Class PurgeProductsRequest (3.6.0)

public sealed class PurgeProductsRequest : IMessage<PurgeProductsRequest>, IEquatable<PurgeProductsRequest>, IDeepCloneable<PurgeProductsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Vision v1 API class PurgeProductsRequest.

Request message for the PurgeProducts method.

Inheritance

object > PurgeProductsRequest

Namespace

Google.Cloud.Vision.V1

Assembly

Google.Cloud.Vision.V1.dll

Constructors

PurgeProductsRequest()

public PurgeProductsRequest()

PurgeProductsRequest(PurgeProductsRequest)

public PurgeProductsRequest(PurgeProductsRequest other)
Parameter
NameDescription
otherPurgeProductsRequest

Properties

DeleteOrphanProducts

public bool DeleteOrphanProducts { get; set; }

If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted.

Property Value
TypeDescription
bool

Force

public bool Force { get; set; }

The default value is false. Override this value to true to actually perform the purge.

Property Value
TypeDescription
bool

HasDeleteOrphanProducts

public bool HasDeleteOrphanProducts { get; }

Gets whether the "delete_orphan_products" field is set

Property Value
TypeDescription
bool

Parent

public string Parent { get; set; }

Required. The project and location in which the Products should be deleted.

Format is projects/PROJECT_ID/locations/LOC_ID.

Property Value
TypeDescription
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
TypeDescription
LocationName

ProductSetPurgeConfig

public ProductSetPurgeConfig ProductSetPurgeConfig { get; set; }

Specify which ProductSet contains the Products to be deleted.

Property Value
TypeDescription
ProductSetPurgeConfig

TargetCase

public PurgeProductsRequest.TargetOneofCase TargetCase { get; }
Property Value
TypeDescription
PurgeProductsRequestTargetOneofCase