Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DatasetSchema

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

Dataset Schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3DatasetSchema

Returns a new instance of GoogleCloudDocumentaiV1beta3DatasetSchema.



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

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

Instance Attribute Details

#document_schemaGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema

The schema defines the output of the processed document by a processor. Corresponds to the JSON property documentSchema



6833
6834
6835
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6833

def document_schema
  @document_schema
end

#nameString

Dataset schema resource name. Format: projects/project/locations/location/ processors/processor/dataset/datasetSchema Corresponds to the JSON property name

Returns:

  • (String)


6839
6840
6841
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6839

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6846
6847
6848
6849
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6846

def update!(**args)
  @document_schema = args[:document_schema] if args.key?(:document_schema)
  @name = args[:name] if args.key?(:name)
end