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.



10107
10108
10109
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10107

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

Instance Attribute Details

#display_nameString

User defined name for the property. Corresponds to the JSON property displayName

Returns:

  • (String)


10083
10084
10085
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10083

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


10088
10089
10090
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10088

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)


10094
10095
10096
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10094

def occurrence_type
  @occurrence_type
end

#property_metadataGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3PropertyMetadata

Metadata about a property. Corresponds to the JSON property propertyMetadata



10099
10100
10101
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10099

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)


10105
10106
10107
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10105

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10112
10113
10114
10115
10116
10117
10118
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10112

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @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