Cloud Vision V1 Client - Class CreateProductSetRequest (1.10.2)

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

Request message for the CreateProductSet method.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project in which the ProductSet should be created. Format is projects/PROJECT_ID/locations/LOC_ID.

↳ product_set ProductSet

Required. The ProductSet to create.

↳ product_set_id string

A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.

getParent

Required. The project in which the ProductSet should be created.

Format is projects/PROJECT_ID/locations/LOC_ID.

Returns
Type Description
string

setParent

Required. The project in which the ProductSet should be created.

Format is projects/PROJECT_ID/locations/LOC_ID.

Parameter
Name Description
var string
Returns
Type Description
$this

getProductSet

Required. The ProductSet to create.

Returns
Type Description
ProductSet|null

hasProductSet

clearProductSet

setProductSet

Required. The ProductSet to create.

Parameter
Name Description
var ProductSet
Returns
Type Description
$this

getProductSetId

A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.

Returns
Type Description
string

setProductSetId

A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The project in which the ProductSet should be created.

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

productSet ProductSet

Required. The ProductSet to create.

productSetId string

A user-supplied resource id for this ProductSet. If set, the server will attempt to use this value as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must be at most 128 characters long. It cannot contain the character /.

Returns
Type Description
CreateProductSetRequest