Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ConversationEvent

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) ⇒ GoogleCloudDialogflowV2beta1ConversationEvent

Returns a new instance of GoogleCloudDialogflowV2beta1ConversationEvent.



18272
18273
18274
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18272

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

Instance Attribute Details

#conversationString

Corresponds to the JSON property conversation

Returns:

  • (String)


18250
18251
18252
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18250

def conversation
  @conversation
end

#error_statusGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property errorStatus



18255
18256
18257
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18255

def error_status
  @error_status
end

#new_message_payloadGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Message

Corresponds to the JSON property newMessagePayload



18260
18261
18262
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18260

def new_message_payload
  @new_message_payload
end

#new_recognition_result_payloadGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1StreamingRecognitionResult

Corresponds to the JSON property newRecognitionResultPayload



18265
18266
18267
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18265

def new_recognition_result_payload
  @new_recognition_result_payload
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


18270
18271
18272
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18270

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18277
18278
18279
18280
18281
18282
18283
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18277

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