1.0.0-beta25 (latest) 1.0.0-beta24

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

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

Promotion proto includes uri and other helping information to display the
promotion.

## Inheritance

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

## Implements

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

### SearchLinkPromotion()

    public SearchLinkPromotion()

### SearchLinkPromotion(SearchLinkPromotion)

    public SearchLinkPromotion(SearchLinkPromotion other)

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

## Properties

### Description

    public string Description { get; set; }

Optional. The Promotion description.
Maximum length: 200 characters.

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

### Document

    public string Document { get; set; }

Optional. The \[Document\]\[google.cloud.discoveryengine.v1beta.Document\] the
user wants to promote. For site search, leave unset and only populate uri.
Can be set along with uri.

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

### DocumentAsDocumentName

    public DocumentName DocumentAsDocumentName { get; set; }

[DocumentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.DocumentName)-typed view over the [Document](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchLinkPromotion#Google_Cloud_DiscoveryEngine_V1Beta_SearchLinkPromotion_Document) resource name property.

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

### Enabled

    public bool Enabled { get; set; }

Optional. The enabled promotion will be returned for any serving configs
associated with the parent of the control this promotion is attached to.

This flag is used for basic site search only.

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

### ImageUri

    public string ImageUri { get; set; }

Optional. The promotion thumbnail image url.

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

### Title

    public string Title { get; set; }

Required. The title of the promotion.
Maximum length: 160 characters.

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

### Uri

    public string Uri { get; set; }

Optional. The URL for the page the user wants to promote. Must be set for
site search. For other verticals, this is optional.

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