Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationEvent

Returns a new instance of GoogleCloudDialogflowV2ConversationEvent.



8474
8475
8476
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8474

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

Instance Attribute Details

#conversationString

Corresponds to the JSON property conversation

Returns:

  • (String)


8452
8453
8454
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8452

def conversation
  @conversation
end

#error_statusGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property errorStatus



8457
8458
8459
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8457

def error_status
  @error_status
end

#new_message_payloadGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2Message

Corresponds to the JSON property newMessagePayload



8462
8463
8464
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8462

def new_message_payload
  @new_message_payload
end

#new_recognition_result_payloadGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2StreamingRecognitionResult

Corresponds to the JSON property newRecognitionResultPayload



8467
8468
8469
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8467

def new_recognition_result_payload
  @new_recognition_result_payload
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


8472
8473
8474
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8472

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8479
8480
8481
8482
8483
8484
8485
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8479

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