Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateAnnotationRequest.
Request message for CreateAnnotation.
Generated from protobuf message google.cloud.visionai.v1.CreateAnnotationRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource where this annotation will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
↳ annotation
↳ annotation_id
string
Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
getParent
Required. The parent resource where this annotation will be created.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string
setParent
Required. The parent resource where this annotation will be created.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
var
string
$this
getAnnotation
Required. The annotation to create.
hasAnnotation
clearAnnotation
setAnnotation
Required. The annotation to create.
$this
getAnnotationId
Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify.
Otherwise, annotation id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string
hasAnnotationId
clearAnnotationId
setAnnotationId
Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify.
Otherwise, annotation id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
var
string
$this
static::build
parent
string
Required. The parent resource where this annotation will be created.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Please see WarehouseClient::assetName()
for help formatting this field.
annotation
annotationId
string
Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation id will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

