Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentSchemaEntityTypeProperty.



7465
7466
7467
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7465

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

Instance Attribute Details

#nameString

The name of the property. Follows the same guidelines as the EntityType name. Corresponds to the JSON property name

Returns:

  • (String)


7451
7452
7453
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7451

def name
  @name
end

#occurrence_typeString

Occurrence type limits the number of instances an entity type appears in the document. Corresponds to the JSON property occurrenceType

Returns:

  • (String)


7457
7458
7459
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7457

def occurrence_type
  @occurrence_type
end

#value_typeString

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

Returns:

  • (String)


7463
7464
7465
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7463

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7470
7471
7472
7473
7474
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7470

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