Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement

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

Overview

Detected non-text visual elements e.g. checkbox, signature etc. on the page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta1DocumentPageVisualElement

Returns a new instance of GoogleCloudDocumentaiV1beta1DocumentPageVisualElement.



2828
2829
2830
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 2828

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

Instance Attribute Details

#detected_languagesArray<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>

A list of detected languages together with confidence. Corresponds to the JSON property detectedLanguages



2816
2817
2818
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 2816

def detected_languages
  @detected_languages
end

#layoutGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout

Visual element describing a layout unit on a page. Corresponds to the JSON property layout



2821
2822
2823
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 2821

def layout
  @layout
end

#typeString

Type of the VisualElement. Corresponds to the JSON property type

Returns:

  • (String)


2826
2827
2828
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 2826

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2833
2834
2835
2836
2837
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 2833

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