Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ConversationEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationEvent

Returns a new instance of GoogleCloudDialogflowV2ConversationEvent.



13593
13594
13595
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13593

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

Instance Attribute Details

#conversationString

Corresponds to the JSON property conversation

Returns:

  • (String)


13571
13572
13573
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13571

def conversation
  @conversation
end

#error_statusGoogle::Apis::DialogflowV3::GoogleRpcStatus

Corresponds to the JSON property errorStatus



13576
13577
13578
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13576

def error_status
  @error_status
end

#new_message_payloadGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2Message

Corresponds to the JSON property newMessagePayload



13581
13582
13583
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13581

def new_message_payload
  @new_message_payload
end

#new_recognition_result_payloadGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2StreamingRecognitionResult

Corresponds to the JSON property newRecognitionResultPayload



13586
13587
13588
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13586

def new_recognition_result_payload
  @new_recognition_result_payload
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


13591
13592
13593
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13591

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13598
13599
13600
13601
13602
13603
13604
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13598

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