Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2HumanAgentAssistantEvent

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

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.



6995
6996
6997
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6995

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)


6982
6983
6984
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6982

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)


6988
6989
6990
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6988

def participant
  @participant
end

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

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



6993
6994
6995
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 6993

def suggestion_results
  @suggestion_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7000
7001
7002
7003
7004
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7000

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