Google Cloud Discovery Engine V1 Client - Class CreateTargetSiteRequest (1.8.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CreateTargetSiteRequest.

Request message for SiteSearchEngineService.CreateTargetSite method.

Generated from protobuf message google.cloud.discoveryengine.v1.CreateTargetSiteRequest

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

↳ target_site TargetSite

Required. The TargetSite to create.

getParent

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

Returns
Type Description
string

setParent

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetSite

Required. The TargetSite to create.

Returns
Type Description
TargetSite|null

hasTargetSite

clearTargetSite

setTargetSite

Required. The TargetSite to create.

Parameter
Name Description
var TargetSite
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine. Please see SiteSearchEngineServiceClient::siteSearchEngineName() for help formatting this field.

targetSite TargetSite

Required. The TargetSite to create.

Returns
Type Description
CreateTargetSiteRequest

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.