Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::Annotation.
An annotation is a resource in asset. It represents a key-value mapping of content in asset.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#name
def name() -> ::String
Returns
-
(::String) — Resource name of the annotation.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Resource name of the annotation.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}
Returns
-
(::String) — Resource name of the annotation.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}
#user_specified_annotation
def user_specified_annotation() -> ::Google::Cloud::VisionAI::V1::UserSpecifiedAnnotation
Returns
- (::Google::Cloud::VisionAI::V1::UserSpecifiedAnnotation) — User provided annotation.
#user_specified_annotation=
def user_specified_annotation=(value) -> ::Google::Cloud::VisionAI::V1::UserSpecifiedAnnotation
Parameter
- value (::Google::Cloud::VisionAI::V1::UserSpecifiedAnnotation) — User provided annotation.
Returns
- (::Google::Cloud::VisionAI::V1::UserSpecifiedAnnotation) — User provided annotation.