Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty

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

Defines properties that can be part of the entity type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty

Returns a new instance of GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty.



3013
3014
3015
# File 'lib/google/apis/documentai_v1/classes.rb', line 3013

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)


2994
2995
2996
# File 'lib/google/apis/documentai_v1/classes.rb', line 2994

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)


3000
3001
3002
# File 'lib/google/apis/documentai_v1/classes.rb', line 3000

def occurrence_type
  @occurrence_type
end

#property_metadataGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1PropertyMetadata

Metadata about a property. Corresponds to the JSON property propertyMetadata



3005
3006
3007
# File 'lib/google/apis/documentai_v1/classes.rb', line 3005

def 
  @property_metadata
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)


3011
3012
3013
# File 'lib/google/apis/documentai_v1/classes.rb', line 3011

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3018
3019
3020
3021
3022
3023
# File 'lib/google/apis/documentai_v1/classes.rb', line 3018

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