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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
getProduct
Required. The Product resource which replaces the one on the server.
product.name is immutable.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Vision\V1\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 |