Class: Google::Apis::FirebasedataconnectV1beta::GenerateSchemaRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasedataconnect_v1beta/classes.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb

Overview

Request message for GenerateSchema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateSchemaRequest

Returns a new instance of GenerateSchemaRequest.



503
504
505
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 503

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

Instance Attribute Details

#promptString

Required. The natural language description of the data model to generate. Example: "A blog system with Users, Posts, and Comments. Users can have multiple posts." Corresponds to the JSON property prompt

Returns:

  • (String)


501
502
503
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 501

def prompt
  @prompt
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



508
509
510
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 508

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