Struct googapis::google::cloud::dialogflow::v2beta1::sessions_client::SessionsClient [−][src]
pub struct SessionsClient<T> { /* fields omitted */ }
Expand description
A service used for session interactions.
For more information, see the API interactions guide.
Implementations
impl<T> SessionsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> SessionsClient<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
) -> SessionsClient<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 detect_intent(
&mut self,
request: impl IntoRequest<DetectIntentRequest>
) -> Result<Response<DetectIntentResponse>, Status>
pub async fn detect_intent(
&mut self,
request: impl IntoRequest<DetectIntentRequest>
) -> Result<Response<DetectIntentResponse>, Status>
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.
If you might use
Agent Assist
or other CCAI products now or in the future, consider using
[AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]
instead of DetectIntent
. AnalyzeContent
has additional
functionality for Agent Assist and other CCAI products.
Note: Always use agent versions for production traffic. See Versions and environments.
pub async fn streaming_detect_intent(
&mut self,
request: impl IntoStreamingRequest<Message = StreamingDetectIntentRequest>
) -> Result<Response<Streaming<StreamingDetectIntentResponse>>, Status>
pub async fn streaming_detect_intent(
&mut self,
request: impl IntoStreamingRequest<Message = StreamingDetectIntentRequest>
) -> Result<Response<Streaming<StreamingDetectIntentResponse>>, Status>
Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST).
If you might use
Agent Assist
or other CCAI products now or in the future, consider using
[StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]
instead of StreamingDetectIntent
. StreamingAnalyzeContent
has
additional functionality for Agent Assist and other CCAI products.
Note: Always use agent versions for production traffic. See Versions and environments.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SessionsClient<T> where
T: RefUnwindSafe,
impl<T> Send for SessionsClient<T> where
T: Send,
impl<T> Sync for SessionsClient<T> where
T: Sync,
impl<T> Unpin for SessionsClient<T> where
T: Unpin,
impl<T> UnwindSafe for SessionsClient<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