Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityType
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityType
- 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
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_types ⇒ Array<String>
The entity type that this type is derived from.
-
#display_name ⇒ String
User defined name for the type.
-
#entity_type_metadata ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata
Metadata about an entity type.
-
#enum_values ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
Defines the a list of enum values.
-
#name ⇒ String
Name of the type.
-
#properties ⇒ Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty>
Describing the nested structure, or composition of an entity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentSchemaEntityType
constructor
A new instance of GoogleCloudDocumentaiV1DocumentSchemaEntityType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentSchemaEntityType
Returns a new instance of GoogleCloudDocumentaiV1DocumentSchemaEntityType.
2782 2783 2784 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2782 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_types ⇒ Array<String>
The entity type that this type is derived from. For now, one and only one
should be set.
Corresponds to the JSON property baseTypes
2748 2749 2750 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2748 def base_types @base_types end |
#display_name ⇒ String
User defined name for the type.
Corresponds to the JSON property displayName
2753 2754 2755 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2753 def display_name @display_name end |
#entity_type_metadata ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EntityTypeMetadata
Metadata about an entity type.
Corresponds to the JSON property entityTypeMetadata
2758 2759 2760 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2758 def @entity_type_metadata end |
#enum_values ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
Defines the a list of enum values.
Corresponds to the JSON property enumValues
2763 2764 2765 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2763 def enum_values @enum_values end |
#name ⇒ String
Name of the type. It must be unique within the schema file and cannot be a '
Common Type'. Besides that we use the following naming conventions: - use
snake_casing - name matching is case-insensitive - Maximum 64 characters. -
Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]
. (
For backward compatibility internal infrastructure and tooling can handle any
ascii character) - The '/' is sometimes used to denote a property of a type.
For example line_item/amount. This convention is deprecated, but will still be
honored for backward compatibility.
Corresponds to the JSON property name
2775 2776 2777 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2775 def name @name end |
#properties ⇒ Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty>
Describing the nested structure, or composition of an entity.
Corresponds to the JSON property properties
2780 2781 2782 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2780 def properties @properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2787 2788 2789 2790 2791 2792 2793 2794 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 2787 def update!(**args) @base_types = args[:base_types] if args.key?(:base_types) @display_name = args[:display_name] if args.key?(:display_name) @entity_type_metadata = args[:entity_type_metadata] if args.key?(:entity_type_metadata) @enum_values = args[:enum_values] if args.key?(:enum_values) @name = args[:name] if args.key?(:name) @properties = args[:properties] if args.key?(:properties) end |