Cloud Vision V1 Client - Class UpdateProductSetRequest (1.8.0)

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

Request message for the UpdateProductSet method.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ product_set Google\Cloud\Vision\V1\ProductSet

Required. The ProductSet resource which replaces the one on the server.

↳ update_mask Google\Protobuf\FieldMask

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask path is display_name.

getProductSet

Required. The ProductSet resource which replaces the one on the server.

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

hasProductSet

clearProductSet

setProductSet

Required. The ProductSet resource which replaces the one on the server.

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

getUpdateMask

The FieldMask that specifies which fields to update.

If update_mask isn't specified, all mutable fields are to be updated. Valid mask path is display_name.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The FieldMask that specifies which fields to update.

If update_mask isn't specified, all mutable fields are to be updated. Valid mask path is display_name.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
productSet Google\Cloud\Vision\V1\ProductSet

Required. The ProductSet resource which replaces the one on the server.

updateMask Google\Protobuf\FieldMask

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask path is display_name.

Returns
TypeDescription
Google\Cloud\Vision\V1\UpdateProductSetRequest