Cloud Vision V1 Client - Class UpdateProductRequest (1.10.1)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ product 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
Type Description
Product|null

hasProduct

clearProduct

setProduct

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

product.name is immutable.

Parameter
Name Description
var Product
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
product 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
Type Description
UpdateProductRequest