Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb
Overview
Represents parameter information.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Always present for WebhookRequest.
-
#just_collected ⇒ Boolean
(also: #just_collected?)
Optional for WebhookRequest.
-
#required ⇒ Boolean
(also: #required?)
Optional for both WebhookRequest and WebhookResponse.
-
#state ⇒ String
Always present for WebhookRequest.
-
#value ⇒ Object
Optional for both WebhookRequest and WebhookResponse.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
constructor
A new instance of GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
Returns a new instance of GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo.
3633 3634 3635 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3633 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Always present for WebhookRequest. Required for WebhookResponse. The human-
readable name of the parameter, unique within the form. This field cannot be
modified by the webhook.
Corresponds to the JSON property displayName
3602 3603 3604 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3602 def display_name @display_name end |
#just_collected ⇒ Boolean Also known as: just_collected?
Optional for WebhookRequest. Ignored for WebhookResponse. Indicates if the
parameter value was just collected on the last conversation turn.
Corresponds to the JSON property justCollected
3608 3609 3610 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3608 def just_collected @just_collected end |
#required ⇒ Boolean Also known as: required?
Optional for both WebhookRequest and WebhookResponse. Indicates whether the
parameter is required. Optional parameters will not trigger prompts; however,
they are filled if the user specifies them. Required parameters must be filled
before form filling concludes.
Corresponds to the JSON property required
3617 3618 3619 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3617 def required @required end |
#state ⇒ String
Always present for WebhookRequest. Required for WebhookResponse. The state of
the parameter. This field can be set to INVALID by the webhook to invalidate
the parameter; other values set by the webhook will be ignored.
Corresponds to the JSON property state
3625 3626 3627 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3625 def state @state end |
#value ⇒ Object
Optional for both WebhookRequest and WebhookResponse. The value of the
parameter. This field can be set by the webhook to change the parameter value.
Corresponds to the JSON property value
3631 3632 3633 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3631 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3638 3639 3640 3641 3642 3643 3644 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3638 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @just_collected = args[:just_collected] if args.key?(:just_collected) @required = args[:required] if args.key?(:required) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) end |