Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Annotation.
An annotation is a resource in asset. It represents a key-value mapping of content in asset.
Generated from protobuf message google.cloud.visionai.v1.Annotation
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Resource name of the annotation. Format: |
↳ user_specified_annotation |
UserSpecifiedAnnotation
User provided annotation. |
getName
Resource name of the annotation.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Resource name of the annotation.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUserSpecifiedAnnotation
User provided annotation.
| Returns | |
|---|---|
| Type | Description |
UserSpecifiedAnnotation|null |
|
hasUserSpecifiedAnnotation
clearUserSpecifiedAnnotation
setUserSpecifiedAnnotation
User provided annotation.
| Parameter | |
|---|---|
| Name | Description |
var |
UserSpecifiedAnnotation
|
| Returns | |
|---|---|
| Type | Description |
$this |
|