Implements a client for the Discovery Engine API.
Example
# tokio_test::block_on(async {
# use google_cloud_discoveryengine_v1::client::SiteSearchEngineService;
let client = SiteSearchEngineService::builder().build().await?;
// use `client` to make requests to the Discovery Engine API.
# gax::client_builder::Result::<()>::Ok(()) });
Service Description
Service for managing site search related resources.
Configuration
To configure SiteSearchEngineService use the with_* methods in the type returned
by [builder()][SiteSearchEngineService::builder]. The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://discoveryengine.googleapis.com). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
Pooling and Cloning
SiteSearchEngineService holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap SiteSearchEngineService in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations
builder
fn builder() -> super::builder::site_search_engine_service::ClientBuilder
Returns a builder for [SiteSearchEngineService].
# tokio_test::block_on(async {
# use google_cloud_discoveryengine_v1::client::SiteSearchEngineService;
let client = SiteSearchEngineService::builder().build().await?;
# gax::client_builder::Result::<()>::Ok(()) });
from_stub
fn from_stub<T>(stub: T) -> Self
where
T: super::stub::SiteSearchEngineService + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client's behavior.
get_site_search_engine
fn get_site_search_engine(self: &Self) -> super::builder::site_search_engine_service::GetSiteSearchEngine
Gets the SiteSearchEngine.
create_target_site
fn create_target_site(self: &Self) -> super::builder::site_search_engine_service::CreateTargetSite
Creates a TargetSite.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
batch_create_target_sites
fn batch_create_target_sites(self: &Self) -> super::builder::site_search_engine_service::BatchCreateTargetSites
Creates TargetSite in a batch.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
get_target_site
fn get_target_site(self: &Self) -> super::builder::site_search_engine_service::GetTargetSite
Gets a TargetSite.
update_target_site
fn update_target_site(self: &Self) -> super::builder::site_search_engine_service::UpdateTargetSite
Updates a TargetSite.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
delete_target_site
fn delete_target_site(self: &Self) -> super::builder::site_search_engine_service::DeleteTargetSite
Deletes a TargetSite.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
list_target_sites
fn list_target_sites(self: &Self) -> super::builder::site_search_engine_service::ListTargetSites
Gets a list of TargetSites.
create_sitemap
fn create_sitemap(self: &Self) -> super::builder::site_search_engine_service::CreateSitemap
Creates a Sitemap.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
delete_sitemap
fn delete_sitemap(self: &Self) -> super::builder::site_search_engine_service::DeleteSitemap
Deletes a Sitemap.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
fetch_sitemaps
fn fetch_sitemaps(self: &Self) -> super::builder::site_search_engine_service::FetchSitemaps
enable_advanced_site_search
fn enable_advanced_site_search(self: &Self) -> super::builder::site_search_engine_service::EnableAdvancedSiteSearch
Upgrade from basic site search to advanced site search.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
disable_advanced_site_search
fn disable_advanced_site_search(self: &Self) -> super::builder::site_search_engine_service::DisableAdvancedSiteSearch
Downgrade from advanced site search to basic site search.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
recrawl_uris
fn recrawl_uris(self: &Self) -> super::builder::site_search_engine_service::RecrawlUris
Request on-demand recrawl for a list of URIs.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
batch_verify_target_sites
fn batch_verify_target_sites(self: &Self) -> super::builder::site_search_engine_service::BatchVerifyTargetSites
Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.
Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
fetch_domain_verification_status
fn fetch_domain_verification_status(self: &Self) -> super::builder::site_search_engine_service::FetchDomainVerificationStatus
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.
list_operations
fn list_operations(self: &Self) -> super::builder::site_search_engine_service::ListOperations
Provides the Operations service functionality in this service.
get_operation
fn get_operation(self: &Self) -> super::builder::site_search_engine_service::GetOperation
Provides the Operations service functionality in this service.
cancel_operation
fn cancel_operation(self: &Self) -> super::builder::site_search_engine_service::CancelOperation
Provides the Operations service functionality in this service.