Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest

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

Overview

The request message for Conversations.GenerateStatelessSuggestion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest

Returns a new instance of GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest.



15443
15444
15445
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15443

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

Instance Attribute Details

#context_referencesHash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>

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



15410
15411
15412
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15410

def context_references
  @context_references
end

#conversation_contextGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext

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



15415
15416
15417
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15415

def conversation_context
  @conversation_context
end

#generatorGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator

LLM generator. Corresponds to the JSON property generator



15420
15421
15422
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15420

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)


15426
15427
15428
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15426

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)


15435
15436
15437
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15435

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>)


15441
15442
15443
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15441

def trigger_events
  @trigger_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15448
15449
15450
15451
15452
15453
15454
15455
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15448

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