Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentMetadata

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 about a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DocumentMetadata

Returns a new instance of GoogleCloudDocumentaiV1beta3DocumentMetadata.



7845
7846
7847
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7845

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

Instance Attribute Details

#dataset_typeString

Type of the dataset split to which the document belongs. Corresponds to the JSON property datasetType

Returns:

  • (String)


7823
7824
7825
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7823

def dataset_type
  @dataset_type
end

#display_nameString

The display name of the document. Corresponds to the JSON property displayName

Returns:

  • (String)


7828
7829
7830
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7828

def display_name
  @display_name
end

#document_idGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentId

Document Identifier. Corresponds to the JSON property documentId



7833
7834
7835
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7833

def document_id
  @document_id
end

#labeling_stateString

Labeling state of the document. Corresponds to the JSON property labelingState

Returns:

  • (String)


7838
7839
7840
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7838

def labeling_state
  @labeling_state
end

#page_countFixnum

Number of pages in the document. Corresponds to the JSON property pageCount

Returns:

  • (Fixnum)


7843
7844
7845
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7843

def page_count
  @page_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7850
7851
7852
7853
7854
7855
7856
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7850

def update!(**args)
  @dataset_type = args[:dataset_type] if args.key?(:dataset_type)
  @display_name = args[:display_name] if args.key?(:display_name)
  @document_id = args[:document_id] if args.key?(:document_id)
  @labeling_state = args[:labeling_state] if args.key?(:labeling_state)
  @page_count = args[:page_count] if args.key?(:page_count)
end