Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams

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

The parameters for the schema generation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams

Returns a new instance of GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequestGenerateSchemaVersionParams.



7907
7908
7909
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7907

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

Instance Attribute Details

#historyGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaGenerationHistory

The history of schema generation iterations. Corresponds to the JSON property history



7900
7901
7902
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7900

def history
  @history
end

#promptString

Optional. The prompt used for the schema generation. Corresponds to the JSON property prompt

Returns:

  • (String)


7905
7906
7907
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7905

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7912
7913
7914
7915
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7912

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