Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::GuidanceInstruction.
Guidance instruction for the companion agent.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#actions
def actions() -> ::Array<::Google::Cloud::Dialogflow::V2::GuidanceInstruction::Action>
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::GuidanceInstruction::Action>) — Optional. The action items that can be processed.
#actions=
def actions=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::GuidanceInstruction::Action>
Parameter
- value (::Array<::Google::Cloud::Dialogflow::V2::GuidanceInstruction::Action>) — Optional. The action items that can be processed.
Returns
- (::Array<::Google::Cloud::Dialogflow::V2::GuidanceInstruction::Action>) — Optional. The action items that can be processed.
#condition
def condition() -> ::String
Returns
- (::String) — Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.
#condition=
def condition=(value) -> ::String
Parameter
- value (::String) — Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.
Returns
- (::String) — Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty.
#disable_suggested_reply
def disable_suggested_reply() -> ::Boolean
Returns
-
(::Boolean) — Optional. Whether to disable suggested reply generation for this
instruction. When set to
true, guidance generated from this instruction will not include a suggested reply. Default isfalse(suggested reply enabled).
#disable_suggested_reply=
def disable_suggested_reply=(value) -> ::Boolean
Parameter
-
value (::Boolean) — Optional. Whether to disable suggested reply generation for this
instruction. When set to
true, guidance generated from this instruction will not include a suggested reply. Default isfalse(suggested reply enabled).
Returns
-
(::Boolean) — Optional. Whether to disable suggested reply generation for this
instruction. When set to
true, guidance generated from this instruction will not include a suggested reply. Default isfalse(suggested reply enabled).
#display_details
def display_details() -> ::String
Returns
- (::String) — Optional. The detailed description of this instruction.
#display_details=
def display_details=(value) -> ::String
Parameter
- value (::String) — Optional. The detailed description of this instruction.
Returns
- (::String) — Optional. The detailed description of this instruction.
#display_name
def display_name() -> ::String
Returns
- (::String) — Optional. Display name for the instruction. This name should be unique within the companion agent.
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — Optional. Display name for the instruction. This name should be unique within the companion agent.
Returns
- (::String) — Optional. Display name for the instruction. This name should be unique within the companion agent.
#trigger_event
def trigger_event() -> ::Google::Cloud::Dialogflow::V2::CompanionAgent::TriggerEvent
Returns
- (::Google::Cloud::Dialogflow::V2::CompanionAgent::TriggerEvent) — Optional. Event that triggers the guidance instruction. If UNSPECIFIED, the instruction triggering will be the same as the skill's skill_triggering_event.
#trigger_event=
def trigger_event=(value) -> ::Google::Cloud::Dialogflow::V2::CompanionAgent::TriggerEvent
Parameter
- value (::Google::Cloud::Dialogflow::V2::CompanionAgent::TriggerEvent) — Optional. Event that triggers the guidance instruction. If UNSPECIFIED, the instruction triggering will be the same as the skill's skill_triggering_event.
Returns
- (::Google::Cloud::Dialogflow::V2::CompanionAgent::TriggerEvent) — Optional. Event that triggers the guidance instruction. If UNSPECIFIED, the instruction triggering will be the same as the skill's skill_triggering_event.