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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2HumanAgentAssistantEvent

Returns a new instance of GoogleCloudDialogflowV2HumanAgentAssistantEvent



397
398
399
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 397

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

Instance Attribute Details

#conversationString

The conversation this notification refers to. Format: projects/<Project ID>/conversations/<Conversation ID>. Corresponds to the JSON property conversation

Returns:

  • (String)


379
380
381
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 379

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/<Project ID>/conversations/<Conversation ID>/participants/<Participant ID>. It will not be set in legacy workflow. HumanAgentAssistantConfig.name for more information. Corresponds to the JSON property participant

Returns:

  • (String)


390
391
392
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 390

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



395
396
397
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 395

def suggestion_results
  @suggestion_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



402
403
404
405
406
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 402

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