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.



11667
11668
11669
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11667

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

Instance Attribute Details

#context_referencesHash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>

Optional. A section of ingested context information. The key is the name of the context reference and the value contains the contents of the context reference. The key is used to incorporate ingested context references to enhance the generator. Corresponds to the JSON property contextReferences



11634
11635
11636
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11634

def context_references
  @context_references
end

#conversation_contextGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext

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



11639
11640
11641
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11639

def conversation_context
  @conversation_context
end

#generatorGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator

LLM generator. Corresponds to the JSON property generator



11644
11645
11646
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11644

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)


11650
11651
11652
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11650

def generator_name
  @generator_name
end

#security_settingsString

Optional. Name of the CX SecuritySettings which is used to redact generated response. If this field is empty, try to fetch v2 security_settings, which is a project level setting. If this field is empty and no v2 security_settings set up in this project, no redaction will be done. Format: projects// locations//securitySettings/. Corresponds to the JSON property securitySettings

Returns:

  • (String)


11659
11660
11661
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11659

def security_settings
  @security_settings
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>)


11665
11666
11667
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11665

def trigger_events
  @trigger_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11672
11673
11674
11675
11676
11677
11678
11679
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 11672

def update!(**args)
  @context_references = args[:context_references] if args.key?(:context_references)
  @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)
  @security_settings = args[:security_settings] if args.key?(:security_settings)
  @trigger_events = args[:trigger_events] if args.key?(:trigger_events)
end