# Discovery Engine v1beta API - Class CompletionSuggestion (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    public sealed class CompletionSuggestion : IMessage<CompletionSuggestion>, IEquatable<CompletionSuggestion>, IDeepCloneable<CompletionSuggestion>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1beta API class CompletionSuggestion.

Autocomplete suggestions that are imported from Customer.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### CompletionSuggestion()

    public CompletionSuggestion()

### CompletionSuggestion(CompletionSuggestion)

    public CompletionSuggestion(CompletionSuggestion other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CompletionSuggestion` |

## Properties

### AlternativePhrases

    public RepeatedField<string> AlternativePhrases { get; }

Alternative matching phrases for this suggestion.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Frequency

    public long Frequency { get; set; }

Frequency of this suggestion. Will be used to rank suggestions when score
is not available.

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

### GlobalScore

    public double GlobalScore { get; set; }

Global score of this suggestion. Control how this suggestion would be
scored / ranked.

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

### GroupId

    public string GroupId { get; set; }

If two suggestions have the same groupId, they will not be
returned together. Instead the one ranked higher will be returned. This can
be used to deduplicate semantically identical suggestions.

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

### GroupScore

    public double GroupScore { get; set; }

The score of this suggestion within its group.

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

### HasFrequency

    public bool HasFrequency { get; }

Gets whether the "frequency" field is set

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

### HasGlobalScore

    public bool HasGlobalScore { get; }

Gets whether the "global_score" field is set

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

### LanguageCode

    public string LanguageCode { get; set; }

BCP-47 language code of this suggestion.

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

### RankingInfoCase

    public CompletionSuggestion.RankingInfoOneofCase RankingInfoCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CompletionSuggestionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CompletionSuggestion.RankingInfoOneofCase` |   |

### Suggestion

    public string Suggestion { get; set; }

Required. The suggestion text.

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