public sealed class BatchCreateTargetSitesRequest : IMessage<BatchCreateTargetSitesRequest>, IEquatable<BatchCreateTargetSitesRequest>, IDeepCloneable<BatchCreateTargetSitesRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class BatchCreateTargetSitesRequest.
Request message for
[SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1.SiteSearchEngineService.BatchCreateTargetSites]
method.
Required. The parent resource shared by all TargetSites being created.
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.
The parent field in the CreateBookRequest messages must either be empty or
match this field.
[[["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 latest version of the \u003ccode\u003eBatchCreateTargetSitesRequest\u003c/code\u003e class is 1.6.0, which is part of the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used as a request message for the \u003ccode\u003eSiteSearchEngineService.BatchCreateTargetSites\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatchCreateTargetSitesRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eParent\u003c/code\u003e, which specifies the shared parent resource, and \u003ccode\u003eRequests\u003c/code\u003e, which allows for the creation of up to 20 \u003ccode\u003eTargetSites\u003c/code\u003e in a single batch request.\u003c/p\u003e\n"],["\u003cp\u003eThere are different versions of the \u003ccode\u003eBatchCreateTargetSitesRequest\u003c/code\u003e class that are documented, ranging from the latest (1.6.0) down to 1.0.0-beta06, which can be browsed through for reference.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class BatchCreateTargetSitesRequest (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.BatchCreateTargetSitesRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest) \n\n public sealed class BatchCreateTargetSitesRequest : IMessage\u003cBatchCreateTargetSitesRequest\u003e, IEquatable\u003cBatchCreateTargetSitesRequest\u003e, IDeepCloneable\u003cBatchCreateTargetSitesRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class BatchCreateTargetSitesRequest.\n\nRequest message for\n\\[SiteSearchEngineService.BatchCreateTargetSites\\]\\[google.cloud.discoveryengine.v1.SiteSearchEngineService.BatchCreateTargetSites\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchCreateTargetSitesRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchCreateTargetSitesRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchCreateTargetSitesRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchCreateTargetSitesRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest), [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### BatchCreateTargetSitesRequest()\n\n public BatchCreateTargetSitesRequest()\n\n### BatchCreateTargetSitesRequest(BatchCreateTargetSitesRequest)\n\n public BatchCreateTargetSitesRequest(BatchCreateTargetSitesRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource shared by all TargetSites being created.\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`.\nThe parent field in the CreateBookRequest messages must either be empty or\nmatch this field.\n\n### ParentAsSiteSearchEngineName\n\n public SiteSearchEngineName ParentAsSiteSearchEngineName { get; set; }\n\n[SiteSearchEngineName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SiteSearchEngineName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.BatchCreateTargetSitesRequest#Google_Cloud_DiscoveryEngine_V1_BatchCreateTargetSitesRequest_Parent) resource name property.\n\n### Requests\n\n public RepeatedField\u003cCreateTargetSiteRequest\u003e Requests { get; }\n\nRequired. The request message specifying the resources to create.\nA maximum of 20 TargetSites can be created in a batch."]]