Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CreateMessageRequest

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

Overview

The request message to create one Message. Currently it is only used in BatchCreateMessagesRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1CreateMessageRequest

Returns a new instance of GoogleCloudDialogflowV2beta1CreateMessageRequest.



12661
12662
12663
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12661

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

Instance Attribute Details

#messageGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message

Represents a message posted into a conversation. Corresponds to the JSON property message



12653
12654
12655
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12653

def message
  @message
end

#parentString

Required. Resource identifier of the conversation to create message. Format: projects//locations//conversations/. Corresponds to the JSON property parent

Returns:

  • (String)


12659
12660
12661
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12659

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12666
12667
12668
12669
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12666

def update!(**args)
  @message = args[:message] if args.key?(:message)
  @parent = args[:parent] if args.key?(:parent)
end