Class: Google::Cloud::Dialogflow::CX::V3::PageInfo::FormInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb

Overview

Represents form information.

Defined Under Namespace

Classes: ParameterInfo

Instance Attribute Summary collapse

Instance Attribute Details

#parameter_info::Array<::Google::Cloud::Dialogflow::CX::V3::PageInfo::FormInfo::ParameterInfo>

Returns Optional for both WebhookRequest and WebhookResponse. The parameters contained in the form. Note that the webhook cannot add or remove any form parameter.

Returns:



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb', line 521

class FormInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents parameter information.
  # @!attribute [rw] display_name
  #   @return [::String]
  #     Always present for
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest}.
  #     Required for
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse WebhookResponse}.
  #     The human-readable name of the parameter, unique within the form. This
  #     field cannot be modified by the webhook.
  # @!attribute [rw] required
  #   @return [::Boolean]
  #     Optional for both
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest} and
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse 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.
  # @!attribute [rw] state
  #   @return [::Google::Cloud::Dialogflow::CX::V3::PageInfo::FormInfo::ParameterInfo::ParameterState]
  #     Always present for
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest}.
  #     Required for
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse WebhookResponse}. The
  #     state of the parameter. This field can be set to
  #     {::Google::Cloud::Dialogflow::CX::V3::PageInfo::FormInfo::ParameterInfo::ParameterState::INVALID INVALID}
  #     by the webhook to invalidate the parameter; other values set by the
  #     webhook will be ignored.
  # @!attribute [rw] value
  #   @return [::Google::Protobuf::Value]
  #     Optional for both
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest} and
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse WebhookResponse}. The
  #     value of the parameter. This field can be set by the webhook to change
  #     the parameter value.
  # @!attribute [rw] just_collected
  #   @return [::Boolean]
  #     Optional for
  #     {::Google::Cloud::Dialogflow::CX::V3::WebhookRequest WebhookRequest}. Ignored
  #     for {::Google::Cloud::Dialogflow::CX::V3::WebhookResponse WebhookResponse}.
  #     Indicates if the parameter value was just collected on the last
  #     conversation turn.
  class ParameterInfo
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Represents the state of a parameter.
    module ParameterState
      # Not specified. This value should be never used.
      PARAMETER_STATE_UNSPECIFIED = 0

      # Indicates that the parameter does not have a value.
      EMPTY = 1

      # Indicates that the parameter value is invalid. This field can be used
      # by the webhook to invalidate the parameter and ask the server to
      # collect it from the user again.
      INVALID = 2

      # Indicates that the parameter has a value.
      FILLED = 3
    end
  end
end