pub async fn complete_query(
            &mut self,
            request: impl tonic::IntoRequest<super::CompleteQueryRequest>,
        ) -> Result<tonic::Response<super::CompleteQueryResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.retail.v2beta.CompletionService/CompleteQuery",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// Completes the specified prefix with keyword suggestions.
///
/// This feature is only available for users who have Retail Search enabled.
/// Please enable Retail Search on Cloud Console before using this feature.
Completes the specified prefix with keyword suggestions.
This feature is only available for users who have Retail Search enabled.
Please enable Retail Search on Cloud Console before using this feature.
Completes the specified prefix with keyword suggestions . This feature is only available for users who have Retail Search enabled . Please enable Retail Search on Cloud Console before using this feature .
pub async fn complete_query(
            &mut self,
            request: impl tonic::IntoRequest<super::CompleteQueryRequest>,
        ) -> Result<tonic::Response<super::CompleteQueryResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.retail.v2beta.CompletionService/CompleteQuery",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn complete_query ( & mut self , request : impl tonic :: IntoRequest < super :: CompleteQueryRequest > , ) -> Result < tonic :: Response < super :: CompleteQueryResponse > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Completes the specified prefix with keyword suggestions.
Completes the specified prefix with keyword suggestions .
&mut self
request
impl tonic::IntoRequest<super::CompleteQueryRequest>
&mut self
request
impl tonic::IntoRequest<super::CompleteQueryRequest>