Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams

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

The parameters for the schema generation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams

Returns a new instance of GoogleCloudDocumentaiV1GenerateSchemaVersionRequestGenerateSchemaVersionParams.



6506
6507
6508
# File 'lib/google/apis/documentai_v1/classes.rb', line 6506

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

Instance Attribute Details

#historyGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaGenerationHistory

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



6499
6500
6501
# File 'lib/google/apis/documentai_v1/classes.rb', line 6499

def history
  @history
end

#promptString

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

Returns:

  • (String)


6504
6505
6506
# File 'lib/google/apis/documentai_v1/classes.rb', line 6504

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6511
6512
6513
6514
# File 'lib/google/apis/documentai_v1/classes.rb', line 6511

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