[][src]Struct gcp_client::google::cloud::dialogflow::v2::sessions_client::SessionsClient

pub struct SessionsClient<T> { /* fields omitted */ }

A session represents an interaction with a user. You retrieve user input and pass it to the [DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] (or [StreamingDetectIntent][google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent]) method to determine user intent and respond.

Implementations

impl<T> SessionsClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn detect_intent<'_>(
    &'_ mut self,
    request: impl IntoRequest<DetectIntentRequest>
) -> Result<Response<DetectIntentResponse>, Status>
[src]

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.

pub async fn streaming_detect_intent<'_>(
    &'_ mut self,
    request: impl IntoStreamingRequest<Message = StreamingDetectIntentRequest>
) -> Result<Response<Streaming<StreamingDetectIntentResponse>>, Status>
[src]

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).

Trait Implementations

impl<T: Clone> Clone for SessionsClient<T>[src]

impl<T> Debug for SessionsClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for SessionsClient<T>

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>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]