public sealed class SuggestSmartRepliesRequest : IMessage<SuggestSmartRepliesRequest>, IEquatable<SuggestSmartRepliesRequest>, IDeepCloneable<SuggestSmartRepliesRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class SuggestSmartRepliesRequest.
The request message for
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
Optional. 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.
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.
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-09-03 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSuggestSmartRepliesRequest\u003c/code\u003e class is a request message used in the Google Cloud Dialogflow v2beta1 API for suggesting smart replies within a conversation, specifically for the \u003ccode\u003eParticipants.SuggestSmartReplies\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eContextSize\u003c/code\u003e (to define the number of prior messages used for context), \u003ccode\u003eCurrentTextInput\u003c/code\u003e (to enable getting smart reply suggestions without sending a text message), and \u003ccode\u003eLatestMessage\u003c/code\u003e (the name of the latest message in the conversation).\u003c/p\u003e\n"],["\u003cp\u003eThe class also requires the \u003ccode\u003eParent\u003c/code\u003e property, which specifies the participant's name in the conversation, and provides \u003ccode\u003eLatestMessageAsMessageName\u003c/code\u003e and \u003ccode\u003eParentAsParticipantName\u003c/code\u003e as typed views over the resource name properties for the \u003ccode\u003eLatestMessage\u003c/code\u003e and \u003ccode\u003eParent\u003c/code\u003e, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSuggestSmartRepliesRequest\u003c/code\u003e class can be constructed either empty or by using another \u003ccode\u003eSuggestSmartRepliesRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2beta1 API - Class SuggestSmartRepliesRequest (1.0.0-beta23)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta23 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest)\n- [1.0.0-beta22](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/1.0.0-beta22/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest) \n\n public sealed class SuggestSmartRepliesRequest : IMessage\u003cSuggestSmartRepliesRequest\u003e, IEquatable\u003cSuggestSmartRepliesRequest\u003e, IDeepCloneable\u003cSuggestSmartRepliesRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class SuggestSmartRepliesRequest.\n\nThe request message for\n\\[Participants.SuggestSmartReplies\\]\\[google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SuggestSmartRepliesRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SuggestSmartRepliesRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SuggestSmartRepliesRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SuggestSmartRepliesRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.V2Beta1](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2Beta1.dll\n\nConstructors\n------------\n\n### SuggestSmartRepliesRequest()\n\n public SuggestSmartRepliesRequest()\n\n### SuggestSmartRepliesRequest(SuggestSmartRepliesRequest)\n\n public SuggestSmartRepliesRequest(SuggestSmartRepliesRequest other)\n\nProperties\n----------\n\n### ContextSize\n\n public int ContextSize { get; set; }\n\nOptional. Max number of messages prior to and including\n\\[latest_message\\] to use as context when compiling the\nsuggestion. By default 20 and at most 50.\n\n### CurrentTextInput\n\n public TextInput CurrentTextInput { get; set; }\n\nThe current natural language text segment to compile suggestion\nfor. This provides a way for user to get follow up smart reply suggestion\nafter a smart reply selection, without sending a text message.\n\n### LatestMessage\n\n public string LatestMessage { get; set; }\n\nThe name of the latest conversation message to compile suggestion\nfor. If empty, it will be the latest message of the conversation.\n\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/conversations/\u003cConversation ID\u003e/messages/\u003cMessage ID\u003e`.\n\n### LatestMessageAsMessageName\n\n public MessageName LatestMessageAsMessageName { get; set; }\n\n[MessageName](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.MessageName)-typed view over the [LatestMessage](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest#Google_Cloud_Dialogflow_V2Beta1_SuggestSmartRepliesRequest_LatestMessage) resource name property.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The name of the participant to fetch suggestion for.\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/conversations/\u003cConversation ID\u003e/participants/\u003cParticipant ID\u003e`.\n\n### ParentAsParticipantName\n\n public ParticipantName ParentAsParticipantName { get; set; }\n\n[ParticipantName](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ParticipantName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SuggestSmartRepliesRequest#Google_Cloud_Dialogflow_V2Beta1_SuggestSmartRepliesRequest_Parent) resource name property."]]