Cloud Vision V1 Client - Class AddProductToProductSetRequest (1.9.2)

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

Request message for the AddProductToProductSet method.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name for the ProductSet to modify. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

↳ product string

Required. The resource name for the Product to be added to this ProductSet. Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID

getName

Required. The resource name for the ProductSet to modify.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

Returns
Type Description
string

setName

Required. The resource name for the ProductSet to modify.

Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

Parameter
Name Description
var string
Returns
Type Description
$this

getProduct

Required. The resource name for the Product to be added to this ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID

Returns
Type Description
string

setProduct

Required. The resource name for the Product to be added to this ProductSet.

Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
name string

Required. The resource name for the ProductSet to modify.

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

product string

Required. The resource name for the Product to be added to this ProductSet.

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

Returns
Type Description
Google\Cloud\Vision\V1\AddProductToProductSetRequest