# Google Cloud Dialogflow v2beta1 API - Class CompileSuggestionRequest (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    [Obsolete]
    public sealed class CompileSuggestionRequest : IMessage<CompileSuggestionRequest>, IEquatable<CompileSuggestionRequest>, IDeepCloneable<CompileSuggestionRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class CompileSuggestionRequest.

The request message for
\[Participants.CompileSuggestion\]\[google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CompileSuggestionRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CompileSuggestionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CompileSuggestionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CompileSuggestionRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Constructors

### CompileSuggestionRequest()

    public CompileSuggestionRequest()

### CompileSuggestionRequest(CompileSuggestionRequest)

    public CompileSuggestionRequest(CompileSuggestionRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.CompileSuggestionRequest` |

## Properties

### ContextSize

    public int ContextSize { get; set; }

Optional. Max number of messages prior to and including
\[latest_message\] to use as context when compiling the
suggestion. If zero or less than zero, 20 is used.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### LatestMessage

    public string LatestMessage { get; set; }

Optional. The name of the latest conversation message to compile suggestion
for. If empty, it will be the latest message of the conversation.

Format: `projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Parent

    public string Parent { get; set; }

Required. The name of the participant to fetch suggestion for.
Format: `projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/participants/<Participant ID>`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |