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
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ product_set_purge_config
↳ 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.
hasProductSetPurgeConfig
setProductSetPurgeConfig
Specify which ProductSet contains the Products to be deleted.
$this
getDeleteOrphanProducts
If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted.
bool
hasDeleteOrphanProducts
setDeleteOrphanProducts
If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted.
var
bool
$this
getParent
Required. The project and location in which the Products should be deleted.
Format is projects/PROJECT_ID/locations/LOC_ID
.
string
setParent
Required. The project and location in which the Products should be deleted.
Format is projects/PROJECT_ID/locations/LOC_ID
.
var
string
$this
getForce
The default value is false. Override this value to true to actually perform the purge.
bool
setForce
The default value is false. Override this value to true to actually perform the purge.
var
bool
$this
getTarget
string
static::build
parent
string
Required. The project and location in which the Products should be deleted.
Format is projects/PROJECT_ID/locations/LOC_ID
. Please see ProductSearchClient::locationName()
for help formatting this field.

