Vision AI V1 API - Class Google::Cloud::VisionAI::V1::Annotation (v0.1.0)

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

#user_specified_annotation=

def user_specified_annotation=(value) -> ::Google::Cloud::VisionAI::V1::UserSpecifiedAnnotation
Parameter
Returns