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.



7874
7875
7876
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7874

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



7867
7868
7869
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7867

def history
  @history
end

#promptString

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

Returns:

  • (String)


7872
7873
7874
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7872

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7879
7880
7881
7882
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 7879

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