# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::BatchCreateTargetSitesRequest (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::BatchCreateTargetSitesRequest.

Request message for
[SiteSearchEngineService.BatchCreateTargetSites](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SiteSearchEngineService-Client#Google__Cloud__DiscoveryEngine__V1__SiteSearchEngineService__Client_batch_create_target_sites_instance_ "Google::Cloud::DiscoveryEngine::V1::SiteSearchEngineService::Client#batch_create_target_sites (method)")
method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- 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.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #requests

    def requests() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest>

**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CreateTargetSiteRequest)\>) --- Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

### #requests=

    def requests=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CreateTargetSiteRequest)\>) --- Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.
**Returns**

- (::Array\<[::Google::Cloud::DiscoveryEngine::V1::CreateTargetSiteRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-CreateTargetSiteRequest)\>) --- Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.