Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent

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

Overview

Represents a notification sent to Cloud Pub/Sub subscribers for 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) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent

Returns a new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent



2742
2743
2744
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2742

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

Instance Attribute Details

#conversationString

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

Returns:

  • (String)


2735
2736
2737
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2735

def conversation
  @conversation
end

#typeString

Required. The type of the event that this notification refers to. Corresponds to the JSON property type

Returns:

  • (String)


2740
2741
2742
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2740

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2747
2748
2749
2750
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2747

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