Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType
- 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
EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.
Instance Attribute Summary collapse
-
#base_type ⇒ String
Type of the entity.
-
#description ⇒ String
Description of the entity type.
-
#enum_values ⇒ Array<String>
If specified, lists all the possible values for this entity.
-
#occurrence_type ⇒ String
Occurrence type limits the number of times an entity type appears in the document.
-
#properties ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>
Describing the nested structure of an entity.
-
#source ⇒ String
Source of this entity type.
-
#type ⇒ String
Name of the type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3SchemaEntityType
constructor
A new instance of GoogleCloudDocumentaiV1beta3SchemaEntityType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3SchemaEntityType
Returns a new instance of GoogleCloudDocumentaiV1beta3SchemaEntityType.
6524 6525 6526 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6524 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_type ⇒ String
Type of the entity. It must be one of the following: document - the entity
represents a classification of a logical document. object - if the entity
has properties it is likely an object (or or a document.) datetime - the
entity is a date or time value. money - the entity represents a money value
amount. number - the entity is a number - integer or floating point. string
- the entity is a string value.
boolean- the entity is a boolean value.address- the entity is a location address. Corresponds to the JSON propertybaseType
6487 6488 6489 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6487 def base_type @base_type end |
#description ⇒ String
Description of the entity type.
Corresponds to the JSON property description
6492 6493 6494 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6492 def description @description end |
#enum_values ⇒ Array<String>
If specified, lists all the possible values for this entity.
Corresponds to the JSON property enumValues
6497 6498 6499 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6497 def enum_values @enum_values end |
#occurrence_type ⇒ String
Occurrence type limits the number of times an entity type appears in the
document.
Corresponds to the JSON property occurrenceType
6503 6504 6505 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6503 def occurrence_type @occurrence_type end |
#properties ⇒ Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>
Describing the nested structure of an entity. An EntityType may consist of
several other EntityTypes. For example, in a document there can be an
EntityType 'ID', which consists of EntityType 'name' and 'address', with
corresponding attributes, such as TEXT for both types and ONCE for occurrence
types.
Corresponds to the JSON property properties
6512 6513 6514 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6512 def properties @properties end |
#source ⇒ String
Source of this entity type.
Corresponds to the JSON property source
6517 6518 6519 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6517 def source @source end |
#type ⇒ String
Name of the type. It must be unique within the set of same level types.
Corresponds to the JSON property type
6522 6523 6524 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6522 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6529 6530 6531 6532 6533 6534 6535 6536 6537 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6529 def update!(**args) @base_type = args[:base_type] if args.key?(:base_type) @description = args[:description] if args.key?(:description) @enum_values = args[:enum_values] if args.key?(:enum_values) @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type) @properties = args[:properties] if args.key?(:properties) @source = args[:source] if args.key?(:source) @type = args[:type] if args.key?(:type) end |