Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
- 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
Defines properties that can be part of the entity type.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the property.
-
#occurrence_type ⇒ String
Occurrence type limits the number of instances an entity type appears in the document.
-
#property_metadata ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata
Metadata about a property.
-
#value_type ⇒ String
A reference to the value type of the property.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
constructor
A new instance of GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty
Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty.
7213 7214 7215 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the property. Follows the same guidelines as the EntityType name.
Corresponds to the JSON property name
7194 7195 7196 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7194 def name @name end |
#occurrence_type ⇒ String
Occurrence type limits the number of instances an entity type appears in the
document.
Corresponds to the JSON property occurrenceType
7200 7201 7202 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7200 def occurrence_type @occurrence_type end |
#property_metadata ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata
Metadata about a property.
Corresponds to the JSON property propertyMetadata
7205 7206 7207 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7205 def @property_metadata end |
#value_type ⇒ String
A reference to the value type of the property. This type is subject to the
same conventions as the Entity.base_types field.
Corresponds to the JSON property valueType
7211 7212 7213 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7211 def value_type @value_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7218 7219 7220 7221 7222 7223 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7218 def update!(**args) @name = args[:name] if args.key?(:name) @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type) @property_metadata = args[:property_metadata] if args.key?(:property_metadata) @value_type = args[:value_type] if args.key?(:value_type) end |