Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata

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

Metadata for global schema behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentSchemaMetadata.



6852
6853
6854
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6852

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)


6842
6843
6844
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6842

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)


6849
6850
6851
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6849

def document_splitter
  @document_splitter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6857
6858
6859
6860
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6857

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)
end