Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest

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

Overview

The request message for Conversations.GenerateStatelessSuggestion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest

Returns a new instance of GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest.



10738
10739
10740
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10738

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

Instance Attribute Details

#conversation_contextGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext

Context of the conversation, including transcripts. Corresponds to the JSON property conversationContext



10719
10720
10721
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10719

def conversation_context
  @conversation_context
end

#generatorGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator

LLM generator. Corresponds to the JSON property generator



10724
10725
10726
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10724

def generator
  @generator
end

#generator_nameString

The resource name of the existing created generator. Format: projects// locations//generators/ Corresponds to the JSON property generatorName

Returns:

  • (String)


10730
10731
10732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10730

def generator_name
  @generator_name
end

#trigger_eventsArray<String>

Optional. A list of trigger events. Generator will be triggered only if it's trigger event is included here. Corresponds to the JSON property triggerEvents

Returns:

  • (Array<String>)


10736
10737
10738
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10736

def trigger_events
  @trigger_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10743
10744
10745
10746
10747
10748
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 10743

def update!(**args)
  @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
  @generator = args[:generator] if args.key?(:generator)
  @generator_name = args[:generator_name] if args.key?(:generator_name)
  @trigger_events = args[:trigger_events] if args.key?(:trigger_events)
end