pub async fn validate_agent(
            &mut self,
            request: impl tonic::IntoRequest<super::ValidateAgentRequest>,
        ) -> Result<tonic::Response<super::AgentValidationResult>, 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.dialogflow.cx.v3beta1.Agents/ValidateAgent",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
/// Validates the specified agent and creates or updates validation results.
/// The agent in draft version is validated. Please call this API after the
/// training is completed to get the complete validation results.
Validates the specified agent and creates or updates validation results.
The agent in draft version is validated. Please call this API after the
training is completed to get the complete validation results.
Validates the specified agent and creates or updates validation results . The agent in draft version is validated . Please call this API after the training is completed to get the complete validation results .
pub async fn validate_agent(
            &mut self,
            request: impl tonic::IntoRequest<super::ValidateAgentRequest>,
        ) -> Result<tonic::Response<super::AgentValidationResult>, 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.dialogflow.cx.v3beta1.Agents/ValidateAgent",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn validate_agent ( & mut self , request : impl tonic :: IntoRequest < super :: ValidateAgentRequest > , ) -> Result < tonic :: Response < super :: AgentValidationResult > , 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 }
Validates the specified agent and creates or updates validation results.
Validates the specified agent and creates or updates validation results .
&mut self
request
impl tonic::IntoRequest<super::ValidateAgentRequest>
&mut self
request
impl tonic::IntoRequest<super::ValidateAgentRequest>