Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentAnnotations

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

Overview

Represents the annotation of a block or a chunk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentAnnotations

Returns a new instance of GoogleCloudDocumentaiV1DocumentAnnotations.



3456
3457
3458
# File 'lib/google/apis/documentai_v1/classes.rb', line 3456

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)


3454
3455
3456
# File 'lib/google/apis/documentai_v1/classes.rb', line 3454

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3461
3462
3463
# File 'lib/google/apis/documentai_v1/classes.rb', line 3461

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