Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageCardButton

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

Returns a new instance of GoogleCloudDialogflowV2IntentMessageCardButton.



14949
14950
14951
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14949

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

Instance Attribute Details

#postbackString

Corresponds to the JSON property postback

Returns:

  • (String)


14942
14943
14944
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14942

def postback
  @postback
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


14947
14948
14949
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14947

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14954
14955
14956
14957
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 14954

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