Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2HumanAgentAssistantEvent

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2HumanAgentAssistantEvent

Returns a new instance of GoogleCloudDialogflowV2HumanAgentAssistantEvent.



12974
12975
12976
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12974

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)


12961
12962
12963
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12961

def conversation
  @conversation
end

#participantString

The participant that the suggestion is compiled for. Format: projects// conversations//participants/. It will not be set in legacy workflow. Corresponds to the JSON property participant

Returns:

  • (String)


12967
12968
12969
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12967

def participant
  @participant
end

#suggestion_resultsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SuggestionResult>

The suggestion results payload that this notification refers to. Corresponds to the JSON property suggestionResults



12972
12973
12974
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12972

def suggestion_results
  @suggestion_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12979
12980
12981
12982
12983
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 12979

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