Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessageCardButton

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

Returns a new instance of GoogleCloudDialogflowV2IntentMessageCardButton.



12376
12377
12378
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12376

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

Instance Attribute Details

#postbackString

Corresponds to the JSON property postback

Returns:

  • (String)


12369
12370
12371
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12369

def postback
  @postback
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


12374
12375
12376
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12374

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12381
12382
12383
12384
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 12381

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