Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentAnnotations

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb

Overview

Represents the annotation of a block or a chunk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentAnnotations

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentAnnotations.



4394
4395
4396
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4394

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

The description of the content with this annotation. Corresponds to the JSON property description

Returns:

  • (String)


4392
4393
4394
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4392

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4399
4400
4401
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4399

def update!(**args)
  @description = args[:description] if args.key?(:description)
end