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(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 |
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 |
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(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 |
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(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 |
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 |
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 |
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 |
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 |
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 |