(::String) — Required. The conversation for which the suggestions are generated. Format:
projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has
generators configured in it to be able to get suggestions.
#conversation=
defconversation=(value)->::String
Parameter
value (::String) — Required. The conversation for which the suggestions are generated. Format:
projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has
generators configured in it to be able to get suggestions.
Returns
(::String) — Required. The conversation for which the suggestions are generated. Format:
projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has
generators configured in it to be able to get suggestions.
#latest_message
deflatest_message()->::String
Returns
(::String) — Optional. The name of the latest conversation message for which the request
is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>.
#latest_message=
deflatest_message=(value)->::String
Parameter
value (::String) — Optional. The name of the latest conversation message for which the request
is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>.
Returns
(::String) — Optional. The name of the latest conversation message for which the request
is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>.
(::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>) — Optional. A list of trigger events. Only generators configured in the
conversation_profile whose trigger_event is listed here will be triggered.
value (::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>) — Optional. A list of trigger events. Only generators configured in the
conversation_profile whose trigger_event is listed here will be triggered.
Returns
(::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>) — Optional. A list of trigger events. Only generators configured in the
conversation_profile whose trigger_event is listed here will be triggered.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::GenerateSuggestionsRequest (v1.10.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.1 (latest)](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-GenerateSuggestionsRequest) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::GenerateSuggestionsRequest.\n\nThe request message for\n[Conversations.GenerateSuggestions](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Conversations-Client#Google__Cloud__Dialogflow__V2__Conversations__Client_generate_suggestions_instance_ \"Google::Cloud::Dialogflow::V2::Conversations::Client#generate_suggestions (method)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #conversation\n\n def conversation() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The conversation for which the suggestions are generated. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e`.\n\n\n The conversation must be created with a conversation profile which has\n generators configured in it to be able to get suggestions.\n\n### #conversation=\n\n def conversation=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The conversation for which the suggestions are generated. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e`.\n\n\n The conversation must be created with a conversation profile which has\ngenerators configured in it to be able to get suggestions. \n**Returns**\n\n- (::String) --- Required. The conversation for which the suggestions are generated. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e`.\n\n\n The conversation must be created with a conversation profile which has\n generators configured in it to be able to get suggestions.\n\n### #latest_message\n\n def latest_message() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The name of the latest conversation message for which the request is triggered. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e/messages/\u003cMessage ID\u003e`.\n\n### #latest_message=\n\n def latest_message=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The name of the latest conversation message for which the request is triggered. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/conversations/\u003cConversation ID\u003e/messages/\u003cMessage ID\u003e`. \n**Returns**\n\n- (::String) --- Optional. The name of the latest conversation message for which the request is triggered. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e/messages/\u003cMessage ID\u003e`.\n\n### #trigger_events\n\n def trigger_events() -\u003e ::Array\u003c::Google::Cloud::Dialogflow::V2::TriggerEvent\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Dialogflow::V2::TriggerEvent](./Google-Cloud-Dialogflow-V2-TriggerEvent)\\\u003e) --- Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.\n\n### #trigger_events=\n\n def trigger_events=(value) -\u003e ::Array\u003c::Google::Cloud::Dialogflow::V2::TriggerEvent\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Dialogflow::V2::TriggerEvent](./Google-Cloud-Dialogflow-V2-TriggerEvent)\\\u003e) --- Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Dialogflow::V2::TriggerEvent](./Google-Cloud-Dialogflow-V2-TriggerEvent)\\\u003e) --- Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered."]]