Cloud Vision V1 Client - Class PurgeProductsRequest (1.7.6)

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 \ V1

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

static::build

Parameter
NameDescription
parent string

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

Format is projects/PROJECT_ID/locations/LOC_ID. Please see Google\Cloud\Vision\V1\ProductSearchClient::locationName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Vision\V1\PurgeProductsRequest