Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ConversationEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationEvent

Returns a new instance of GoogleCloudDialogflowV2ConversationEvent.



7286
7287
7288
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7286

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

Instance Attribute Details

#conversationString

Corresponds to the JSON property conversation

Returns:

  • (String)


7264
7265
7266
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7264

def conversation
  @conversation
end

#error_statusGoogle::Apis::DialogflowV2beta1::GoogleRpcStatus

Corresponds to the JSON property errorStatus



7269
7270
7271
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7269

def error_status
  @error_status
end

#new_message_payloadGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Message

Corresponds to the JSON property newMessagePayload



7274
7275
7276
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7274

def new_message_payload
  @new_message_payload
end

#new_recognition_result_payloadGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2StreamingRecognitionResult

Corresponds to the JSON property newRecognitionResultPayload



7279
7280
7281
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7279

def new_recognition_result_payload
  @new_recognition_result_payload
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


7284
7285
7286
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7284

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7291
7292
7293
7294
7295
7296
7297
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7291

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