Service for managing site search related resources.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
SiteSearchEngineServiceClient(SiteSearchEngineServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SiteSearchEngineServiceClient const &
|
SiteSearchEngineServiceClient(SiteSearchEngineServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SiteSearchEngineServiceClient &&
|
SiteSearchEngineServiceClient(std::shared_ptr< SiteSearchEngineServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< SiteSearchEngineServiceConnection >
|
opts |
Options
|
Operators
operator=(SiteSearchEngineServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SiteSearchEngineServiceClient const &
|
Returns | |
---|---|
Type | Description |
SiteSearchEngineServiceClient & |
operator=(SiteSearchEngineServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
SiteSearchEngineServiceClient &&
|
Returns | |
---|---|
Type | Description |
SiteSearchEngineServiceClient & |
Functions
GetSiteSearchEngine(std::string const &, Options)
Gets the SiteSearchEngine.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Resource name of SiteSearchEngine, such as |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::discoveryengine::v1::SiteSearchEngine > |
the result of the RPC. The response message type (google.cloud.discoveryengine.v1.SiteSearchEngine) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSiteSearchEngine(google::cloud::discoveryengine::v1::GetSiteSearchEngineRequest const &, Options)
Gets the SiteSearchEngine.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::GetSiteSearchEngineRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::discoveryengine::v1::SiteSearchEngine > |
the result of the RPC. The response message type (google.cloud.discoveryengine.v1.SiteSearchEngine) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateTargetSite(std::string const &, google::cloud::discoveryengine::v1::TargetSite const &, Options)
Creates a TargetSite.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. Parent resource name of TargetSite, such as |
target_site |
google::cloud::discoveryengine::v1::TargetSite const &
Required. The TargetSite to create. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::TargetSite > > |
A |
CreateTargetSite(ExperimentalTag, NoAwaitTag, std::string const &, google::cloud::discoveryengine::v1::TargetSite const &, Options)
Creates a TargetSite.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
parent |
std::string const &
|
target_site |
google::cloud::discoveryengine::v1::TargetSite const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateTargetSite(google::cloud::discoveryengine::v1::CreateTargetSiteRequest const &, Options)
Creates a TargetSite.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::CreateTargetSiteRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::TargetSite > > |
A |
CreateTargetSite(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::CreateTargetSiteRequest const &, Options)
Creates a TargetSite.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::CreateTargetSiteRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateTargetSite(ExperimentalTag, google::longrunning::Operation const &, Options)
Creates a TargetSite.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::TargetSite > > |
BatchCreateTargetSites(google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const &, Options)
Creates TargetSite in a batch.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::BatchCreateTargetSitesResponse > > |
A |
BatchCreateTargetSites(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const &, Options)
Creates TargetSite in a batch.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::BatchCreateTargetSitesRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
BatchCreateTargetSites(ExperimentalTag, google::longrunning::Operation const &, Options)
Creates TargetSite in a batch.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::BatchCreateTargetSitesResponse > > |
GetTargetSite(std::string const &, Options)
Gets a TargetSite.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Full resource name of TargetSite, such as |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::discoveryengine::v1::TargetSite > |
the result of the RPC. The response message type (google.cloud.discoveryengine.v1.TargetSite) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTargetSite(google::cloud::discoveryengine::v1::GetTargetSiteRequest const &, Options)
Gets a TargetSite.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::GetTargetSiteRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::discoveryengine::v1::TargetSite > |
the result of the RPC. The response message type (google.cloud.discoveryengine.v1.TargetSite) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateTargetSite(google::cloud::discoveryengine::v1::TargetSite const &, Options)
Updates a TargetSite.
Parameters | |
---|---|
Name | Description |
target_site |
google::cloud::discoveryengine::v1::TargetSite const &
Required. The target site to update. If the caller does not have permission to update the TargetSite, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::TargetSite > > |
A |
UpdateTargetSite(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::TargetSite const &, Options)
Updates a TargetSite.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
target_site |
google::cloud::discoveryengine::v1::TargetSite const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateTargetSite(google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const &, Options)
Updates a TargetSite.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::TargetSite > > |
A |
UpdateTargetSite(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const &, Options)
Updates a TargetSite.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::UpdateTargetSiteRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateTargetSite(ExperimentalTag, google::longrunning::Operation const &, Options)
Updates a TargetSite.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::TargetSite > > |
DeleteTargetSite(std::string const &, Options)
Deletes a TargetSite.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Full resource name of TargetSite, such as |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::DeleteTargetSiteMetadata > > |
A |
DeleteTargetSite(ExperimentalTag, NoAwaitTag, std::string const &, Options)
Deletes a TargetSite.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteTargetSite(google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const &, Options)
Deletes a TargetSite.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::DeleteTargetSiteMetadata > > |
A |
DeleteTargetSite(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const &, Options)
Deletes a TargetSite.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::DeleteTargetSiteRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteTargetSite(ExperimentalTag, google::longrunning::Operation const &, Options)
Deletes a TargetSite.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::DeleteTargetSiteMetadata > > |
ListTargetSites(std::string const &, Options)
Gets a list of TargetSites.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent site search engine resource name, such as |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::discoveryengine::v1::TargetSite > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTargetSites(google::cloud::discoveryengine::v1::ListTargetSitesRequest, Options)
Gets a list of TargetSites.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::ListTargetSitesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::discoveryengine::v1::TargetSite > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
EnableAdvancedSiteSearch(google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const &, Options)
Upgrade from basic site search to advanced site search.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchResponse > > |
A |
EnableAdvancedSiteSearch(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const &, Options)
Upgrade from basic site search to advanced site search.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
EnableAdvancedSiteSearch(ExperimentalTag, google::longrunning::Operation const &, Options)
Upgrade from basic site search to advanced site search.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::EnableAdvancedSiteSearchResponse > > |
DisableAdvancedSiteSearch(google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const &, Options)
Downgrade from advanced site search to basic site search.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchResponse > > |
A |
DisableAdvancedSiteSearch(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const &, Options)
Downgrade from advanced site search to basic site search.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DisableAdvancedSiteSearch(ExperimentalTag, google::longrunning::Operation const &, Options)
Downgrade from advanced site search to basic site search.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::DisableAdvancedSiteSearchResponse > > |
RecrawlUris(google::cloud::discoveryengine::v1::RecrawlUrisRequest const &, Options)
Request on-demand recrawl for a list of URIs.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::RecrawlUrisRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::RecrawlUrisResponse > > |
A |
RecrawlUris(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::RecrawlUrisRequest const &, Options)
Request on-demand recrawl for a list of URIs.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::RecrawlUrisRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
RecrawlUris(ExperimentalTag, google::longrunning::Operation const &, Options)
Request on-demand recrawl for a list of URIs.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::RecrawlUrisResponse > > |
BatchVerifyTargetSites(google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const &, Options)
Verify target sites' ownership and validity.
This API sends all the target sites under site search engine for verification.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::BatchVerifyTargetSitesResponse > > |
A |
BatchVerifyTargetSites(ExperimentalTag, NoAwaitTag, google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const &, Options)
Verify target sites' ownership and validity.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
|
NoAwaitTag
|
request |
google::cloud::discoveryengine::v1::BatchVerifyTargetSitesRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
BatchVerifyTargetSites(ExperimentalTag, google::longrunning::Operation const &, Options)
Verify target sites' ownership and validity.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
|
ExperimentalTag
|
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::discoveryengine::v1::BatchVerifyTargetSitesResponse > > |
FetchDomainVerificationStatus(google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest, Options)
Returns list of target sites with its domain verification status.
This method can only be called under data store with BASIC_SITE_SEARCH state at the moment.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::discoveryengine::v1::FetchDomainVerificationStatusRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::discoveryengine::v1::TargetSite > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |