Class: Google::Apis::ContentV2_1::BuiltInUserInputAction
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::BuiltInUserInputAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Action that is implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the merchant. They can start the action only when they provided all required inputs. The application will request processing of the action by calling the triggeraction method.
Instance Attribute Summary collapse
-
#action_context ⇒ String
Internal details.
-
#flows ⇒ Array<Google::Apis::ContentV2_1::ActionFlow>
Actions may provide multiple different flows.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuiltInUserInputAction
constructor
A new instance of BuiltInUserInputAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BuiltInUserInputAction
Returns a new instance of BuiltInUserInputAction.
2693 2694 2695 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2693 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_context ⇒ String
Internal details. Not for display but need to be sent back when triggering the
action.
Corresponds to the JSON property actionContext
2683 2684 2685 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2683 def action_context @action_context end |
#flows ⇒ Array<Google::Apis::ContentV2_1::ActionFlow>
Actions may provide multiple different flows. Merchant selects one that fits
best to their intent. Selecting the flow is the first step in user's
interaction with the action. It affects what input fields will be available
and required and also how the request will be processed.
Corresponds to the JSON property flows
2691 2692 2693 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2691 def flows @flows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2698 2699 2700 2701 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2698 def update!(**args) @action_context = args[:action_context] if args.key?(:action_context) @flows = args[:flows] if args.key?(:flows) end |