Struct googapis::google::cloud::dialogflow::v2beta1::versions_client::VersionsClient [−][src]
pub struct VersionsClient<T> { /* fields omitted */ }
Expand description
Service for managing [Versions][google.cloud.dialogflow.v2beta1.Version].
Implementations
impl<T> VersionsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> VersionsClient<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
) -> VersionsClient<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 list_versions(
&mut self,
request: impl IntoRequest<ListVersionsRequest>
) -> Result<Response<ListVersionsResponse>, Status>
pub async fn list_versions(
&mut self,
request: impl IntoRequest<ListVersionsRequest>
) -> Result<Response<ListVersionsResponse>, Status>
Returns the list of all versions of the specified agent.
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<Version>, Status>
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<Version>, Status>
Retrieves the specified agent version.
pub async fn create_version(
&mut self,
request: impl IntoRequest<CreateVersionRequest>
) -> Result<Response<Version>, Status>
pub async fn create_version(
&mut self,
request: impl IntoRequest<CreateVersionRequest>
) -> Result<Response<Version>, Status>
Creates an agent version.
The new version points to the agent instance in the “default” environment.
pub async fn update_version(
&mut self,
request: impl IntoRequest<UpdateVersionRequest>
) -> Result<Response<Version>, Status>
pub async fn update_version(
&mut self,
request: impl IntoRequest<UpdateVersionRequest>
) -> Result<Response<Version>, Status>
Updates the specified agent version.
Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.
pub async fn delete_version(
&mut self,
request: impl IntoRequest<DeleteVersionRequest>
) -> Result<Response<()>, Status>
pub async fn delete_version(
&mut self,
request: impl IntoRequest<DeleteVersionRequest>
) -> Result<Response<()>, Status>
Delete the specified agent version.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for VersionsClient<T> where
T: RefUnwindSafe,
impl<T> Send for VersionsClient<T> where
T: Send,
impl<T> Sync for VersionsClient<T> where
T: Sync,
impl<T> Unpin for VersionsClient<T> where
T: Unpin,
impl<T> UnwindSafe for VersionsClient<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