Struct google_api_proto::google::cloud::discoveryengine::v1alpha::site_search_engine_service_client::SiteSearchEngineServiceClient
source · pub struct SiteSearchEngineServiceClient<T> { /* private fields */ }
Expand description
Service for managing site search related resources.
Implementations§
source§impl<T> SiteSearchEngineServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> SiteSearchEngineServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> SiteSearchEngineServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn get_site_search_engine(
&mut self,
request: impl IntoRequest<GetSiteSearchEngineRequest>,
) -> Result<Response<SiteSearchEngine>, Status>
pub async fn get_site_search_engine( &mut self, request: impl IntoRequest<GetSiteSearchEngineRequest>, ) -> Result<Response<SiteSearchEngine>, Status>
Gets the [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine].
sourcepub async fn create_target_site(
&mut self,
request: impl IntoRequest<CreateTargetSiteRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_target_site( &mut self, request: impl IntoRequest<CreateTargetSiteRequest>, ) -> Result<Response<Operation>, Status>
Creates a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].
sourcepub async fn batch_create_target_sites(
&mut self,
request: impl IntoRequest<BatchCreateTargetSitesRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_create_target_sites( &mut self, request: impl IntoRequest<BatchCreateTargetSitesRequest>, ) -> Result<Response<Operation>, Status>
Creates [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in a batch.
sourcepub async fn get_target_site(
&mut self,
request: impl IntoRequest<GetTargetSiteRequest>,
) -> Result<Response<TargetSite>, Status>
pub async fn get_target_site( &mut self, request: impl IntoRequest<GetTargetSiteRequest>, ) -> Result<Response<TargetSite>, Status>
Gets a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].
sourcepub async fn update_target_site(
&mut self,
request: impl IntoRequest<UpdateTargetSiteRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_target_site( &mut self, request: impl IntoRequest<UpdateTargetSiteRequest>, ) -> Result<Response<Operation>, Status>
Updates a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].
sourcepub async fn delete_target_site(
&mut self,
request: impl IntoRequest<DeleteTargetSiteRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_target_site( &mut self, request: impl IntoRequest<DeleteTargetSiteRequest>, ) -> Result<Response<Operation>, Status>
Deletes a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].
sourcepub async fn list_target_sites(
&mut self,
request: impl IntoRequest<ListTargetSitesRequest>,
) -> Result<Response<ListTargetSitesResponse>, Status>
pub async fn list_target_sites( &mut self, request: impl IntoRequest<ListTargetSitesRequest>, ) -> Result<Response<ListTargetSitesResponse>, Status>
Gets a list of [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite]s.
sourcepub async fn enable_advanced_site_search(
&mut self,
request: impl IntoRequest<EnableAdvancedSiteSearchRequest>,
) -> Result<Response<Operation>, Status>
pub async fn enable_advanced_site_search( &mut self, request: impl IntoRequest<EnableAdvancedSiteSearchRequest>, ) -> Result<Response<Operation>, Status>
Upgrade from basic site search to advanced site search.
sourcepub async fn disable_advanced_site_search(
&mut self,
request: impl IntoRequest<DisableAdvancedSiteSearchRequest>,
) -> Result<Response<Operation>, Status>
pub async fn disable_advanced_site_search( &mut self, request: impl IntoRequest<DisableAdvancedSiteSearchRequest>, ) -> Result<Response<Operation>, Status>
Downgrade from advanced site search to basic site search.
sourcepub async fn recrawl_uris(
&mut self,
request: impl IntoRequest<RecrawlUrisRequest>,
) -> Result<Response<Operation>, Status>
pub async fn recrawl_uris( &mut self, request: impl IntoRequest<RecrawlUrisRequest>, ) -> Result<Response<Operation>, Status>
Request on-demand recrawl for a list of URIs.
sourcepub async fn batch_verify_target_sites(
&mut self,
request: impl IntoRequest<BatchVerifyTargetSitesRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_verify_target_sites( &mut self, request: impl IntoRequest<BatchVerifyTargetSitesRequest>, ) -> Result<Response<Operation>, Status>
Verify target sites’ ownership and validity. This API sends all the target sites under site search engine for verification.
sourcepub async fn fetch_domain_verification_status(
&mut self,
request: impl IntoRequest<FetchDomainVerificationStatusRequest>,
) -> Result<Response<FetchDomainVerificationStatusResponse>, Status>
pub async fn fetch_domain_verification_status( &mut self, request: impl IntoRequest<FetchDomainVerificationStatusRequest>, ) -> Result<Response<FetchDomainVerificationStatusResponse>, Status>
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.
sourcepub async fn set_uri_pattern_document_data(
&mut self,
request: impl IntoRequest<SetUriPatternDocumentDataRequest>,
) -> Result<Response<Operation>, Status>
pub async fn set_uri_pattern_document_data( &mut self, request: impl IntoRequest<SetUriPatternDocumentDataRequest>, ) -> Result<Response<Operation>, Status>
Sets the URI Pattern to Document data mapping for an Advanced Site Search DataStore.
sourcepub async fn get_uri_pattern_document_data(
&mut self,
request: impl IntoRequest<GetUriPatternDocumentDataRequest>,
) -> Result<Response<GetUriPatternDocumentDataResponse>, Status>
pub async fn get_uri_pattern_document_data( &mut self, request: impl IntoRequest<GetUriPatternDocumentDataRequest>, ) -> Result<Response<GetUriPatternDocumentDataResponse>, Status>
Gets the URI Pattern to Document data mapping for an Advanced Site Search DataStore.
Trait Implementations§
source§impl<T: Clone> Clone for SiteSearchEngineServiceClient<T>
impl<T: Clone> Clone for SiteSearchEngineServiceClient<T>
source§fn clone(&self) -> SiteSearchEngineServiceClient<T>
fn clone(&self) -> SiteSearchEngineServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for SiteSearchEngineServiceClient<T>
impl<T> RefUnwindSafe for SiteSearchEngineServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for SiteSearchEngineServiceClient<T>where
T: Send,
impl<T> Sync for SiteSearchEngineServiceClient<T>where
T: Sync,
impl<T> Unpin for SiteSearchEngineServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for SiteSearchEngineServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request