Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2KeyValuePairHint

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

Reserved for future use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2KeyValuePairHint

Returns a new instance of GoogleCloudDocumentaiV1beta2KeyValuePairHint.



6144
6145
6146
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 6144

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

Instance Attribute Details

#keyString

The key text for the hint. Corresponds to the JSON property key

Returns:

  • (String)


6135
6136
6137
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 6135

def key
  @key
end

#value_typesArray<String>

Type of the value. This is case-insensitive, and could be one of: ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will be ignored. Corresponds to the JSON property valueTypes

Returns:

  • (Array<String>)


6142
6143
6144
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 6142

def value_types
  @value_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6149
6150
6151
6152
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 6149

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