Struct gapi_grpc::google::cloud::dialogflow::v2beta1::knowledge_bases_client::KnowledgeBasesClient[][src]

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

Service for managing [KnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBase].

Implementations

impl KnowledgeBasesClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> KnowledgeBasesClient<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 list_knowledge_bases(
    &mut self,
    request: impl IntoRequest<ListKnowledgeBasesRequest>
) -> Result<Response<ListKnowledgeBasesResponse>, Status>
[src]

Returns the list of all knowledge bases of the specified agent.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

pub async fn get_knowledge_base(
    &mut self,
    request: impl IntoRequest<GetKnowledgeBaseRequest>
) -> Result<Response<KnowledgeBase>, Status>
[src]

Retrieves the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

pub async fn create_knowledge_base(
    &mut self,
    request: impl IntoRequest<CreateKnowledgeBaseRequest>
) -> Result<Response<KnowledgeBase>, Status>
[src]

Creates a knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

pub async fn delete_knowledge_base(
    &mut self,
    request: impl IntoRequest<DeleteKnowledgeBaseRequest>
) -> Result<Response<()>, Status>
[src]

Deletes the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

pub async fn update_knowledge_base(
    &mut self,
    request: impl IntoRequest<UpdateKnowledgeBaseRequest>
) -> Result<Response<KnowledgeBase>, Status>
[src]

Updates the specified knowledge base.

Note: The projects.agent.knowledgeBases resource is deprecated; only use projects.knowledgeBases.

Trait Implementations

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

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

Auto Trait Implementations

impl<T> !RefUnwindSafe for KnowledgeBasesClient<T>

impl<T> Send for KnowledgeBasesClient<T> where
    T: Send

impl<T> Sync for KnowledgeBasesClient<T> where
    T: Sync

impl<T> Unpin for KnowledgeBasesClient<T> where
    T: Unpin

impl<T> !UnwindSafe for KnowledgeBasesClient<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> 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>, 
[src]

impl<T> WithSubscriber for T[src]