Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1ConversationEvent

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

Returns a new instance of GoogleCloudDialogflowV2beta1ConversationEvent.



17535
17536
17537
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17535

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

Instance Attribute Details

#conversationString

Corresponds to the JSON property conversation

Returns:

  • (String)


17513
17514
17515
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17513

def conversation
  @conversation
end

#error_statusGoogle::Apis::DialogflowV3::GoogleRpcStatus

Corresponds to the JSON property errorStatus



17518
17519
17520
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17518

def error_status
  @error_status
end

#new_message_payloadGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1Message

Corresponds to the JSON property newMessagePayload



17523
17524
17525
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17523

def new_message_payload
  @new_message_payload
end

#new_recognition_result_payloadGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1StreamingRecognitionResult

Corresponds to the JSON property newRecognitionResultPayload



17528
17529
17530
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17528

def new_recognition_result_payload
  @new_recognition_result_payload
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


17533
17534
17535
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17533

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17540
17541
17542
17543
17544
17545
17546
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 17540

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