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

1.0.0-beta23 (latest) 1.0.0-beta22

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

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

Request message for
\[SiteSearchEngineService.GetTargetSite\]\[google.cloud.discoveryengine.v1beta.SiteSearchEngineService.GetTargetSite\]
method.

## Inheritance

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

## Implements

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

### GetTargetSiteRequest()

    public GetTargetSiteRequest()

### GetTargetSiteRequest(GetTargetSiteRequest)

    public GetTargetSiteRequest(GetTargetSiteRequest other)

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

## Properties

### Name

    public string Name { get; set; }

Required. Full resource name of
\[TargetSite\]\[google.cloud.discoveryengine.v1beta.TargetSite\], such as
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`.

If the caller does not have permission to access the
\[TargetSite\]\[google.cloud.discoveryengine.v1beta.TargetSite\], regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.

If the requested
\[TargetSite\]\[google.cloud.discoveryengine.v1beta.TargetSite\] does not
exist, a NOT_FOUND error is returned.

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

### TargetSiteName

    public TargetSiteName TargetSiteName { get; set; }

[TargetSiteName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.TargetSiteName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GetTargetSiteRequest#Google_Cloud_DiscoveryEngine_V1Beta_GetTargetSiteRequest_Name) resource name property.

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