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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 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,[]]