Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent

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

Overview

Output only. Represents a notification sent to Pub/Sub subscribers for agent assistant events in a specific conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent

Returns a new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent.



21588
21589
21590
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21588

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

Instance Attribute Details

#conversationString

The conversation this notification refers to. Format: projects//conversations/ . Corresponds to the JSON property conversation

Returns:

  • (String)


21571
21572
21573
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21571

def conversation
  @conversation
end

#participantString

The participant that the suggestion is compiled for. And This field is used to call Participants.ListSuggestions API. Format: projects//conversations// participants/. It will not be set in legacy workflow. HumanAgentAssistantConfig.name for more information. Corresponds to the JSON property participant

Returns:

  • (String)


21579
21580
21581
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21579

def participant
  @participant
end

#suggestion_resultsArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestionResult>

The suggestion results payload that this notification refers to. It will only be set when HumanAgentAssistantConfig.SuggestionConfig. group_suggestion_responses sets to true. Corresponds to the JSON property suggestionResults



21586
21587
21588
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21586

def suggestion_results
  @suggestion_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21593
21594
21595
21596
21597
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 21593

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