Cloud Vision V1 Client - Class UpdateProductRequest (1.8.0)

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

Request message for the UpdateProduct method.

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

Namespace

Google \ Cloud \ Vision \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ product Google\Cloud\Vision\V1\Product

Required. The Product resource which replaces the one on the server. product.name is immutable.

↳ 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 paths include product_labels, display_name, and description.

getProduct

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

product.name is immutable.

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

hasProduct

clearProduct

setProduct

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

product.name is immutable.

Parameter
NameDescription
var Google\Cloud\Vision\V1\Product
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 paths include product_labels, display_name, and description.

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 paths include product_labels, display_name, and description.

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

static::build

Parameters
NameDescription
product Google\Cloud\Vision\V1\Product

Required. The Product resource which replaces the one on the server. product.name is immutable.

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 paths include product_labels, display_name, and description.

Returns
TypeDescription
Google\Cloud\Vision\V1\UpdateProductRequest