Struct googapis::google::cloud::dialogflow::cx::v3beta1::versions_client::VersionsClient [−][src]
pub struct VersionsClient<T> { /* fields omitted */ }
Expand description
Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.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 in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
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 [Version][google.cloud.dialogflow.cx.v3beta1.Version].
pub async fn create_version(
&mut self,
request: impl IntoRequest<CreateVersionRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_version(
&mut self,
request: impl IntoRequest<CreateVersionRequest>
) -> Result<Response<Operation>, Status>
Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata]response
: [Version][google.cloud.dialogflow.cx.v3beta1.Version]
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 [Version][google.cloud.dialogflow.cx.v3beta1.Version].
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>
Deletes the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].
pub async fn load_version(
&mut self,
request: impl IntoRequest<LoadVersionRequest>
) -> Result<Response<Operation>, Status>
pub async fn load_version(
&mut self,
request: impl IntoRequest<LoadVersionRequest>
) -> Result<Response<Operation>, Status>
Loads resources in the specified version to the draft flow.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: An Empty message
pub async fn compare_versions(
&mut self,
request: impl IntoRequest<CompareVersionsRequest>
) -> Result<Response<CompareVersionsResponse>, Status>
pub async fn compare_versions(
&mut self,
request: impl IntoRequest<CompareVersionsRequest>
) -> Result<Response<CompareVersionsResponse>, Status>
Compares the specified base version with target 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