Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2KeyValuePairHint
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2KeyValuePairHint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/documentai_v1beta2/classes.rb,
generated/google/apis/documentai_v1beta2/representations.rb,
generated/google/apis/documentai_v1beta2/representations.rb
Overview
Reserved for future use.
Instance Attribute Summary collapse
-
#key ⇒ String
The key text for the hint.
-
#value_types ⇒ Array<String>
Type of the value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2KeyValuePairHint
constructor
A new instance of GoogleCloudDocumentaiV1beta2KeyValuePairHint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2KeyValuePairHint
Returns a new instance of GoogleCloudDocumentaiV1beta2KeyValuePairHint.
3731 3732 3733 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The key text for the hint.
Corresponds to the JSON property key
3722 3723 3724 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3722 def key @key end |
#value_types ⇒ Array<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
3729 3730 3731 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3729 def value_types @value_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3736 3737 3738 3739 |
# File 'generated/google/apis/documentai_v1beta2/classes.rb', line 3736 def update!(**args) @key = args[:key] if args.key?(:key) @value_types = args[:value_types] if args.key?(:value_types) end |