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.



4413
4414
4415
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4413

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)


4411
4412
4413
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4411

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4418
4419
4420
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 4418

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