Google Cloud Discovery Engine V1 Client - Class TargetSite (1.5.1)

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

A target site for the SiteSearchEngine.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. The fully qualified resource name of the target site. projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} The target_site_id is system-generated.

↳ provided_uri_patternstring

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

↳ typeint

The type of the target site, e.g., whether the site is to be included or excluded.

↳ exact_matchbool

Immutable. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.

↳ generated_uri_patternstring

Output only. This is system-generated based on the provided_uri_pattern.

↳ root_domain_uristring

Output only. Root domain of the provided_uri_pattern.

↳ site_verification_infoSiteVerificationInfo

Output only. Site ownership and validity verification status.

↳ indexing_statusint

Output only. Indexing status.

↳ update_timeGoogle\Protobuf\Timestamp

Output only. The target site's last updated time.

↳ failure_reasonTargetSite\FailureReason

Output only. Failure reason.

getName

Output only. The fully qualified resource name of the target site.

projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} The target_site_id is system-generated.

Returns
TypeDescription
string

setName

Output only. The fully qualified resource name of the target site.

projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} The target_site_id is system-generated.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getProvidedUriPattern

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

Returns
TypeDescription
string

setProvidedUriPattern

Required. Input only. The user provided URI pattern from which the generated_uri_pattern is generated.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getType

The type of the target site, e.g., whether the site is to be included or excluded.

Returns
TypeDescription
int

setType

The type of the target site, e.g., whether the site is to be included or excluded.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getExactMatch

Immutable. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.

Returns
TypeDescription
bool

setExactMatch

Immutable. If set to false, a uri_pattern is generated to include all pages whose address contains the provided_uri_pattern. If set to true, an uri_pattern is generated to try to be an exact match of the provided_uri_pattern or just the specific page if the provided_uri_pattern is a specific one. provided_uri_pattern is always normalized to generate the URI pattern to be used by the search engine.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getGeneratedUriPattern

Output only. This is system-generated based on the provided_uri_pattern.

Returns
TypeDescription
string

setGeneratedUriPattern

Output only. This is system-generated based on the provided_uri_pattern.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRootDomainUri

Output only. Root domain of the provided_uri_pattern.

Returns
TypeDescription
string

setRootDomainUri

Output only. Root domain of the provided_uri_pattern.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSiteVerificationInfo

Output only. Site ownership and validity verification status.

Returns
TypeDescription
SiteVerificationInfo|null

hasSiteVerificationInfo

clearSiteVerificationInfo

setSiteVerificationInfo

Output only. Site ownership and validity verification status.

Parameter
NameDescription
varSiteVerificationInfo
Returns
TypeDescription
$this

getIndexingStatus

Output only. Indexing status.

Returns
TypeDescription
int

setIndexingStatus

Output only. Indexing status.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getUpdateTime

Output only. The target site's last updated time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The target site's last updated time.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getFailureReason

Output only. Failure reason.

Returns
TypeDescription
TargetSite\FailureReason|null

hasFailureReason

clearFailureReason

setFailureReason

Output only. Failure reason.

Parameter
NameDescription
varTargetSite\FailureReason
Returns
TypeDescription
$this