Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageFormField

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

A form field detected on the page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentPageFormField

Returns a new instance of GoogleCloudDocumentaiV1DocumentPageFormField.



2137
2138
2139
# File 'lib/google/apis/documentai_v1/classes.rb', line 2137

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

Instance Attribute Details

#corrected_key_textString

Created for Labeling UI to export key text. If corrections were made to the text identified by the field_name.text_anchor, this field will contain the correction. Corresponds to the JSON property correctedKeyText

Returns:

  • (String)


2095
2096
2097
# File 'lib/google/apis/documentai_v1/classes.rb', line 2095

def corrected_key_text
  @corrected_key_text
end

#corrected_value_textString

Created for Labeling UI to export value text. If corrections were made to the text identified by the field_value.text_anchor, this field will contain the correction. Corresponds to the JSON property correctedValueText

Returns:

  • (String)


2102
2103
2104
# File 'lib/google/apis/documentai_v1/classes.rb', line 2102

def corrected_value_text
  @corrected_value_text
end

#field_nameGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout

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



2107
2108
2109
# File 'lib/google/apis/documentai_v1/classes.rb', line 2107

def field_name
  @field_name
end

#field_valueGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout

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



2112
2113
2114
# File 'lib/google/apis/documentai_v1/classes.rb', line 2112

def field_value
  @field_value
end

#name_detected_languagesArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>

A list of detected languages for name together with confidence. Corresponds to the JSON property nameDetectedLanguages



2117
2118
2119
# File 'lib/google/apis/documentai_v1/classes.rb', line 2117

def name_detected_languages
  @name_detected_languages
end

#provenanceGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance

Structure to identify provenance relationships between annotations in different revisions. Corresponds to the JSON property provenance



2123
2124
2125
# File 'lib/google/apis/documentai_v1/classes.rb', line 2123

def provenance
  @provenance
end

#value_detected_languagesArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>

A list of detected languages for value together with confidence. Corresponds to the JSON property valueDetectedLanguages



2128
2129
2130
# File 'lib/google/apis/documentai_v1/classes.rb', line 2128

def value_detected_languages
  @value_detected_languages
end

#value_typeString

If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the field_value is normal text) - " unfilled_checkbox" - "filled_checkbox" Corresponds to the JSON property valueType

Returns:

  • (String)


2135
2136
2137
# File 'lib/google/apis/documentai_v1/classes.rb', line 2135

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
# File 'lib/google/apis/documentai_v1/classes.rb', line 2142

def update!(**args)
  @corrected_key_text = args[:corrected_key_text] if args.key?(:corrected_key_text)
  @corrected_value_text = args[:corrected_value_text] if args.key?(:corrected_value_text)
  @field_name = args[:field_name] if args.key?(:field_name)
  @field_value = args[:field_value] if args.key?(:field_value)
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
  @provenance = args[:provenance] if args.key?(:provenance)
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
  @value_type = args[:value_type] if args.key?(:value_type)
end