Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaMetadata

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

Metadata for global schema behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentSchemaMetadata

Returns a new instance of GoogleCloudDocumentaiV1DocumentSchemaMetadata.



2786
2787
2788
# File 'lib/google/apis/documentai_v1/classes.rb', line 2786

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

Instance Attribute Details

#document_allow_multiple_labelsBoolean Also known as: document_allow_multiple_labels?

If true, on a given page, there can be multiple document annotations covering it. Corresponds to the JSON property documentAllowMultipleLabels

Returns:

  • (Boolean)


2770
2771
2772
# File 'lib/google/apis/documentai_v1/classes.rb', line 2770

def document_allow_multiple_labels
  @document_allow_multiple_labels
end

#document_splitterBoolean Also known as: document_splitter?

If true, a document entity type can be applied to subdocument ( splitting). Otherwise, it can only be applied to the entire document (classification). Corresponds to the JSON property documentSplitter

Returns:

  • (Boolean)


2777
2778
2779
# File 'lib/google/apis/documentai_v1/classes.rb', line 2777

def document_splitter
  @document_splitter
end

#prefixed_naming_on_propertiesBoolean Also known as: prefixed_naming_on_properties?

If set, all the nested entities must be prefixed with the parents. Corresponds to the JSON property prefixedNamingOnProperties

Returns:

  • (Boolean)


2783
2784
2785
# File 'lib/google/apis/documentai_v1/classes.rb', line 2783

def prefixed_naming_on_properties
  @prefixed_naming_on_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2791
2792
2793
2794
2795
# File 'lib/google/apis/documentai_v1/classes.rb', line 2791

def update!(**args)
  @document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
  @document_splitter = args[:document_splitter] if args.key?(:document_splitter)
  @prefixed_naming_on_properties = args[:prefixed_naming_on_properties] if args.key?(:prefixed_naming_on_properties)
end