public sealed class GetTargetSiteRequest : IMessage<GetTargetSiteRequest>, IEquatable<GetTargetSiteRequest>, IDeepCloneable<GetTargetSiteRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class GetTargetSiteRequest.
Request message for
[SiteSearchEngineService.GetTargetSite][google.cloud.discoveryengine.v1.SiteSearchEngineService.GetTargetSite]
method.
Required. Full resource name of
[TargetSite][google.cloud.discoveryengine.v1.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.v1.TargetSite], regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite]
does not exist, a NOT_FOUND error is returned.
[[["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-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetTargetSiteRequest\u003c/code\u003e class is part of the Google Cloud Discovery Engine v1 API, with the latest version being 1.6.0, and it's used for requesting a specific target site resource.\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, providing capabilities for message handling, equality checks, deep cloning, and buffer message interactions.\u003c/p\u003e\n"],["\u003cp\u003eIt includes two constructors, a default one and another that takes an existing \u003ccode\u003eGetTargetSiteRequest\u003c/code\u003e instance for creating copies.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two properties: \u003ccode\u003eName\u003c/code\u003e, a string representing the full resource name of the target site, and \u003ccode\u003eTargetSiteName\u003c/code\u003e, which is a typed view of the \u003ccode\u003eName\u003c/code\u003e property for easier handling of target site names.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetTargetSiteRequest\u003c/code\u003e is used for the \u003ccode\u003eSiteSearchEngineService.GetTargetSite\u003c/code\u003e method and it will return a \u003ccode\u003ePERMISSION_DENIED\u003c/code\u003e error if the caller does not have access, or a \u003ccode\u003eNOT_FOUND\u003c/code\u003e error if the target does not exist.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class GetTargetSiteRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest) \n\n public sealed class GetTargetSiteRequest : IMessage\u003cGetTargetSiteRequest\u003e, IEquatable\u003cGetTargetSiteRequest\u003e, IDeepCloneable\u003cGetTargetSiteRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class GetTargetSiteRequest.\n\nRequest message for\n\\[SiteSearchEngineService.GetTargetSite\\]\\[google.cloud.discoveryengine.v1.SiteSearchEngineService.GetTargetSite\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetTargetSiteRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetTargetSiteRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetTargetSiteRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetTargetSiteRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.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) \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.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### GetTargetSiteRequest()\n\n public GetTargetSiteRequest()\n\n### GetTargetSiteRequest(GetTargetSiteRequest)\n\n public GetTargetSiteRequest(GetTargetSiteRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Full resource name of\n\\[TargetSite\\]\\[google.cloud.discoveryengine.v1.TargetSite\\], such as\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`.\n\nIf the caller does not have permission to access the\n\\[TargetSite\\]\\[google.cloud.discoveryengine.v1.TargetSite\\], regardless of\nwhether or not it exists, a PERMISSION_DENIED error is returned.\n\nIf the requested \\[TargetSite\\]\\[google.cloud.discoveryengine.v1.TargetSite\\]\ndoes not exist, a NOT_FOUND error is returned.\n\n### TargetSiteName\n\n public TargetSiteName TargetSiteName { get; set; }\n\n[TargetSiteName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.TargetSiteName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GetTargetSiteRequest#Google_Cloud_DiscoveryEngine_V1_GetTargetSiteRequest_Name) resource name property."]]