Reference documentation and code samples for the Cloud Vision V1 Client class CreateReferenceImageRequest.
Request message for the CreateReferenceImage
method.
Generated from protobuf message google.cloud.vision.v1.CreateReferenceImageRequest
Namespace
Google \ Cloud \ Vision \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Resource name of the product in which to create the reference image. Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
↳ reference_image
↳ reference_image_id
string
A user-supplied resource id for the ReferenceImage to be added. 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. Resource name of the product in which to create the reference image.
Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
string
setParent
Required. Resource name of the product in which to create the reference image.
Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
.
var
string
$this
getReferenceImage
Required. The reference image to create.
If an image ID is specified, it is ignored.
hasReferenceImage
clearReferenceImage
setReferenceImage
Required. The reference image to create.
If an image ID is specified, it is ignored.
$this
getReferenceImageId
A user-supplied resource id for the ReferenceImage to be added. 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 /
.
string
setReferenceImageId
A user-supplied resource id for the ReferenceImage to be added. 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 /
.
var
string
$this
static::build
parent
string
Required. Resource name of the product in which to create the reference image.
Format is projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID
. Please see ProductSearchClient::productName()
for help formatting this field.
referenceImage
referenceImageId
string
A user-supplied resource id for the ReferenceImage to be added. 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 /
.

