Cloud Vision V1 Client - Class PurgeProductsRequest (1.6.8)

Reference documentation and code samples for the Cloud Vision V1 Client class PurgeProductsRequest.

Request message for the PurgeProducts method.

Generated from protobuf message google.cloud.vision.v1.PurgeProductsRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ product_set_purge_config Google\Cloud\Vision\V1\ProductSetPurgeConfig

Specify which ProductSet contains the Products to be deleted.

↳ delete_orphan_products bool

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

↳ parent string

Required. The project and location in which the Products should be deleted. Format is projects/PROJECT_ID/locations/LOC_ID.

↳ force bool

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

getProductSetPurgeConfig

Specify which ProductSet contains the Products to be deleted.

Returns
TypeDescription
Google\Cloud\Vision\V1\ProductSetPurgeConfig|null

hasProductSetPurgeConfig

setProductSetPurgeConfig

Specify which ProductSet contains the Products to be deleted.

Parameter
NameDescription
var Google\Cloud\Vision\V1\ProductSetPurgeConfig
Returns
TypeDescription
$this

getDeleteOrphanProducts

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

Returns
TypeDescription
bool

hasDeleteOrphanProducts

setDeleteOrphanProducts

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getParent

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

Format is projects/PROJECT_ID/locations/LOC_ID.

Returns
TypeDescription
string

setParent

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

Format is projects/PROJECT_ID/locations/LOC_ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getForce

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

Returns
TypeDescription
bool

setForce

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTarget

Returns
TypeDescription
string