Struct googapis::google::cloud::dialogflow::v2beta1::entity_types_client::EntityTypesClient [−][src]
pub struct EntityTypesClient<T> { /* fields omitted */ }
Expand description
Service for managing [EntityTypes][google.cloud.dialogflow.v2beta1.EntityType].
Implementations
impl<T> EntityTypesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> EntityTypesClient<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
) -> EntityTypesClient<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_entity_types(
&mut self,
request: impl IntoRequest<ListEntityTypesRequest>
) -> Result<Response<ListEntityTypesResponse>, Status>
pub async fn list_entity_types(
&mut self,
request: impl IntoRequest<ListEntityTypesRequest>
) -> Result<Response<ListEntityTypesResponse>, Status>
Returns the list of all entity types in the specified agent.
pub async fn get_entity_type(
&mut self,
request: impl IntoRequest<GetEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
pub async fn get_entity_type(
&mut self,
request: impl IntoRequest<GetEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
Retrieves the specified entity type.
pub async fn create_entity_type(
&mut self,
request: impl IntoRequest<CreateEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
pub async fn create_entity_type(
&mut self,
request: impl IntoRequest<CreateEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
Creates an entity type in the specified agent.
Note: You should always train an agent prior to sending it queries. See the training documentation.
pub async fn update_entity_type(
&mut self,
request: impl IntoRequest<UpdateEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
pub async fn update_entity_type(
&mut self,
request: impl IntoRequest<UpdateEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
Updates the specified entity type.
Note: You should always train an agent prior to sending it queries. See the training documentation.
pub async fn delete_entity_type(
&mut self,
request: impl IntoRequest<DeleteEntityTypeRequest>
) -> Result<Response<()>, Status>
pub async fn delete_entity_type(
&mut self,
request: impl IntoRequest<DeleteEntityTypeRequest>
) -> Result<Response<()>, Status>
Deletes the specified entity type.
Note: You should always train an agent prior to sending it queries. See the training documentation.
pub async fn batch_update_entity_types(
&mut self,
request: impl IntoRequest<BatchUpdateEntityTypesRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_update_entity_types(
&mut self,
request: impl IntoRequest<BatchUpdateEntityTypesRequest>
) -> Result<Response<Operation>, Status>
Updates/Creates multiple entity types in the specified agent.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: An empty Struct messageresponse
: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]
Note: You should always train an agent prior to sending it queries. See the training documentation.
pub async fn batch_delete_entity_types(
&mut self,
request: impl IntoRequest<BatchDeleteEntityTypesRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_delete_entity_types(
&mut self,
request: impl IntoRequest<BatchDeleteEntityTypesRequest>
) -> Result<Response<Operation>, Status>
Deletes entity types in the specified agent.
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
Note: You should always train an agent prior to sending it queries. See the training documentation.
pub async fn batch_create_entities(
&mut self,
request: impl IntoRequest<BatchCreateEntitiesRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_create_entities(
&mut self,
request: impl IntoRequest<BatchCreateEntitiesRequest>
) -> Result<Response<Operation>, Status>
Creates multiple new entities in the specified entity type.
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
Note: You should always train an agent prior to sending it queries. See the training documentation.
pub async fn batch_update_entities(
&mut self,
request: impl IntoRequest<BatchUpdateEntitiesRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_update_entities(
&mut self,
request: impl IntoRequest<BatchUpdateEntitiesRequest>
) -> Result<Response<Operation>, Status>
Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren’t explicitly specified in the request.
Note: You should always train an agent prior to sending it queries. See the training documentation.
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 batch_delete_entities(
&mut self,
request: impl IntoRequest<BatchDeleteEntitiesRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_delete_entities(
&mut self,
request: impl IntoRequest<BatchDeleteEntitiesRequest>
) -> Result<Response<Operation>, Status>
Deletes entities in the specified entity type.
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
Note: You should always train an agent prior to sending it queries. See the training documentation.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for EntityTypesClient<T> where
T: RefUnwindSafe,
impl<T> Send for EntityTypesClient<T> where
T: Send,
impl<T> Sync for EntityTypesClient<T> where
T: Sync,
impl<T> Unpin for EntityTypesClient<T> where
T: Unpin,
impl<T> UnwindSafe for EntityTypesClient<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