Struct googapis::google::cloud::speech::v1p1beta1::adaptation_client::AdaptationClient [−][src]
pub struct AdaptationClient<T> { /* fields omitted */ }
Expand description
Service that implements Google Cloud Speech Adaptation API.
Implementations
impl<T> AdaptationClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> AdaptationClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> AdaptationClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn create_phrase_set(
&mut self,
request: impl IntoRequest<CreatePhraseSetRequest>
) -> Result<Response<PhraseSet>, Status>
pub async fn create_phrase_set(
&mut self,
request: impl IntoRequest<CreatePhraseSetRequest>
) -> Result<Response<PhraseSet>, Status>
Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.
pub async fn get_phrase_set(
&mut self,
request: impl IntoRequest<GetPhraseSetRequest>
) -> Result<Response<PhraseSet>, Status>
pub async fn get_phrase_set(
&mut self,
request: impl IntoRequest<GetPhraseSetRequest>
) -> Result<Response<PhraseSet>, Status>
Get a phrase set.
pub async fn list_phrase_set(
&mut self,
request: impl IntoRequest<ListPhraseSetRequest>
) -> Result<Response<ListPhraseSetResponse>, Status>
pub async fn list_phrase_set(
&mut self,
request: impl IntoRequest<ListPhraseSetRequest>
) -> Result<Response<ListPhraseSetResponse>, Status>
List phrase sets.
pub async fn update_phrase_set(
&mut self,
request: impl IntoRequest<UpdatePhraseSetRequest>
) -> Result<Response<PhraseSet>, Status>
pub async fn update_phrase_set(
&mut self,
request: impl IntoRequest<UpdatePhraseSetRequest>
) -> Result<Response<PhraseSet>, Status>
Update a phrase set.
pub async fn delete_phrase_set(
&mut self,
request: impl IntoRequest<DeletePhraseSetRequest>
) -> Result<Response<()>, Status>
pub async fn delete_phrase_set(
&mut self,
request: impl IntoRequest<DeletePhraseSetRequest>
) -> Result<Response<()>, Status>
Delete a phrase set.
pub async fn create_custom_class(
&mut self,
request: impl IntoRequest<CreateCustomClassRequest>
) -> Result<Response<CustomClass>, Status>
pub async fn create_custom_class(
&mut self,
request: impl IntoRequest<CreateCustomClassRequest>
) -> Result<Response<CustomClass>, Status>
Create a custom class.
pub async fn get_custom_class(
&mut self,
request: impl IntoRequest<GetCustomClassRequest>
) -> Result<Response<CustomClass>, Status>
pub async fn get_custom_class(
&mut self,
request: impl IntoRequest<GetCustomClassRequest>
) -> Result<Response<CustomClass>, Status>
Get a custom class.
pub async fn list_custom_classes(
&mut self,
request: impl IntoRequest<ListCustomClassesRequest>
) -> Result<Response<ListCustomClassesResponse>, Status>
pub async fn list_custom_classes(
&mut self,
request: impl IntoRequest<ListCustomClassesRequest>
) -> Result<Response<ListCustomClassesResponse>, Status>
List custom classes.
pub async fn update_custom_class(
&mut self,
request: impl IntoRequest<UpdateCustomClassRequest>
) -> Result<Response<CustomClass>, Status>
pub async fn update_custom_class(
&mut self,
request: impl IntoRequest<UpdateCustomClassRequest>
) -> Result<Response<CustomClass>, Status>
Update a custom class.
pub async fn delete_custom_class(
&mut self,
request: impl IntoRequest<DeleteCustomClassRequest>
) -> Result<Response<()>, Status>
pub async fn delete_custom_class(
&mut self,
request: impl IntoRequest<DeleteCustomClassRequest>
) -> Result<Response<()>, Status>
Delete a custom class.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for AdaptationClient<T> where
T: RefUnwindSafe,
impl<T> Send for AdaptationClient<T> where
T: Send,
impl<T> Sync for AdaptationClient<T> where
T: Sync,
impl<T> Unpin for AdaptationClient<T> where
T: Unpin,
impl<T> UnwindSafe for AdaptationClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more