(::Integer) — Max number of messages prior to and including
[latest_message] to use as context when compiling the
suggestion. By default 20 and at most 50.
#context_size=
defcontext_size=(value)->::Integer
Parameter
value (::Integer) — Max number of messages prior to and including
[latest_message] to use as context when compiling the
suggestion. By default 20 and at most 50.
Returns
(::Integer) — Max number of messages prior to and including
[latest_message] to use as context when compiling the
suggestion. By default 20 and at most 50.
(::Google::Cloud::Dialogflow::V2::TextInput) — The current natural language text segment to compile suggestion
for. This provides a way for user to get follow up smart reply suggestion
after a smart reply selection, without sending a text message.
value (::Google::Cloud::Dialogflow::V2::TextInput) — The current natural language text segment to compile suggestion
for. This provides a way for user to get follow up smart reply suggestion
after a smart reply selection, without sending a text message.
Returns
(::Google::Cloud::Dialogflow::V2::TextInput) — The current natural language text segment to compile suggestion
for. This provides a way for user to get follow up smart reply suggestion
after a smart reply selection, without sending a text message.
#latest_message
deflatest_message()->::String
Returns
(::String) — The name of the latest conversation message to compile suggestion
for. If empty, it will be the latest message of the conversation.
(::String) — Required. The name of the participant to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/participants/<Participant ID>.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The name of the participant to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/participants/<Participant ID>.
Returns
(::String) — Required. The name of the participant to fetch suggestion for.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/participants/<Participant ID>.
[[["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-08-07 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest (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-SuggestSmartRepliesRequest)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-SuggestSmartRepliesRequest) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest.\n\nThe request message for\n[Participants.SuggestSmartReplies](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-Participants-Client#Google__Cloud__Dialogflow__V2__Participants__Client_suggest_smart_replies_instance_ \"Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies (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### #context_size\n\n def context_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Max number of messages prior to and including \\[latest_message\\] to use as context when compiling the suggestion. By default 20 and at most 50.\n\n### #context_size=\n\n def context_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Max number of messages prior to and including \\[latest_message\\] to use as context when compiling the suggestion. By default 20 and at most 50. \n**Returns**\n\n- (::Integer) --- Max number of messages prior to and including \\[latest_message\\] to use as context when compiling the suggestion. By default 20 and at most 50.\n\n### #current_text_input\n\n def current_text_input() -\u003e ::Google::Cloud::Dialogflow::V2::TextInput\n\n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::TextInput](./Google-Cloud-Dialogflow-V2-TextInput)) --- The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.\n\n### #current_text_input=\n\n def current_text_input=(value) -\u003e ::Google::Cloud::Dialogflow::V2::TextInput\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Dialogflow::V2::TextInput](./Google-Cloud-Dialogflow-V2-TextInput)) --- The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message. \n**Returns**\n\n- ([::Google::Cloud::Dialogflow::V2::TextInput](./Google-Cloud-Dialogflow-V2-TextInput)) --- The current natural language text segment to compile suggestion for. This provides a way for user to get follow up smart reply suggestion after a smart reply selection, without sending a text message.\n\n### #latest_message\n\n def latest_message() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.\n\n 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) --- The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.\n\n\n Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/conversations/\u003cConversation ID\u003e/messages/\u003cMessage ID\u003e`. \n**Returns**\n\n- (::String) --- The name of the latest conversation message to compile suggestion for. If empty, it will be the latest message of the conversation.\n\n Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e/messages/\u003cMessage ID\u003e`.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the participant to fetch suggestion for. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e/participants/\u003cParticipant ID\u003e`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the participant to fetch suggestion for. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/conversations/\u003cConversation ID\u003e/participants/\u003cParticipant ID\u003e`. \n**Returns**\n\n- (::String) --- Required. The name of the participant to fetch suggestion for. Format: `projects/\u003cProject ID\u003e/locations/\u003cLocation\n ID\u003e/conversations/\u003cConversation ID\u003e/participants/\u003cParticipant ID\u003e`."]]