Dialogflow API C++ Client 2.10.1
A C++ Client Library for the Dialogflow API
|
Service for managing EntityTypes. More...
#include <google/cloud/dialogflow_cx/entity_types_client.h>
Public Member Functions | |
EntityTypesClient (std::shared_ptr< EntityTypesConnection > connection, Options opts={}) | |
~EntityTypesClient () | |
StreamRange< google::cloud::dialogflow::cx::v3::EntityType > | ListEntityTypes (std::string const &parent, Options opts={}) |
Returns the list of all entity types in the specified agent. More... | |
StreamRange< google::cloud::dialogflow::cx::v3::EntityType > | ListEntityTypes (google::cloud::dialogflow::cx::v3::ListEntityTypesRequest request, Options opts={}) |
Returns the list of all entity types in the specified agent. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > | GetEntityType (std::string const &name, Options opts={}) |
Retrieves the specified entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > | GetEntityType (google::cloud::dialogflow::cx::v3::GetEntityTypeRequest const &request, Options opts={}) |
Retrieves the specified entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > | CreateEntityType (std::string const &parent, google::cloud::dialogflow::cx::v3::EntityType const &entity_type, Options opts={}) |
Creates an entity type in the specified agent. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > | CreateEntityType (google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest const &request, Options opts={}) |
Creates an entity type in the specified agent. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > | UpdateEntityType (google::cloud::dialogflow::cx::v3::EntityType const &entity_type, google::protobuf::FieldMask const &update_mask, Options opts={}) |
Updates the specified entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > | UpdateEntityType (google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest const &request, Options opts={}) |
Updates the specified entity type. More... | |
Status | DeleteEntityType (std::string const &name, Options opts={}) |
Deletes the specified entity type. More... | |
Status | DeleteEntityType (google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest const &request, Options opts={}) |
Deletes the specified entity type. More... | |
Copy and move support | |
EntityTypesClient (EntityTypesClient const &)=default | |
EntityTypesClient & | operator= (EntityTypesClient const &)=default |
EntityTypesClient (EntityTypesClient &&)=default | |
EntityTypesClient & | operator= (EntityTypesClient &&)=default |
Friends | |
Equality | |
bool | operator== (EntityTypesClient const &a, EntityTypesClient const &b) |
bool | operator!= (EntityTypesClient const &a, EntityTypesClient const &b) |
Service for managing EntityTypes.
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
|
explicit |
google::cloud::dialogflow_cx::EntityTypesClient::~EntityTypesClient | ( | ) |
|
default |
|
default |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::CreateEntityType | ( | google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Creates an entity type in the specified agent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
request | google::cloud::dialogflow::cx::v3::CreateEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::CreateEntityType | ( | std::string const & | parent, |
google::cloud::dialogflow::cx::v3::EntityType const & | entity_type, | ||
Options | opts = {} |
||
) |
Creates an entity type in the specified agent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
parent | Required. The agent to create a entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID> . |
entity_type | Required. The entity type to create. |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
Status google::cloud::dialogflow_cx::EntityTypesClient::DeleteEntityType | ( | google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Deletes the specified entity type.
Note: You should always train a flow prior to sending it queries. See the training documentation.
request | google::cloud::dialogflow::cx::v3::DeleteEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
Status google::cloud::dialogflow_cx::EntityTypesClient::DeleteEntityType | ( | std::string const & | name, |
Options | opts = {} |
||
) |
Deletes the specified entity type.
Note: You should always train a flow prior to sending it queries. See the training documentation.
name | Required. The name of the entity type to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<Entity Type ID> . |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::GetEntityType | ( | google::cloud::dialogflow::cx::v3::GetEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Retrieves the specified entity type.
request | google::cloud::dialogflow::cx::v3::GetEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::GetEntityType | ( | std::string const & | name, |
Options | opts = {} |
||
) |
Retrieves the specified entity type.
name | Required. The name of the entity type. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<Entity Type ID> . |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StreamRange< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::ListEntityTypes | ( | google::cloud::dialogflow::cx::v3::ListEntityTypesRequest | request, |
Options | opts = {} |
||
) |
Returns the list of all entity types in the specified agent.
request | google::cloud::dialogflow::cx::v3::ListEntityTypesRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StreamRange< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::ListEntityTypes | ( | std::string const & | parent, |
Options | opts = {} |
||
) |
Returns the list of all entity types in the specified agent.
parent | Required. The agent to list all entity types for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID> . |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
|
default |
|
default |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::UpdateEntityType | ( | google::cloud::dialogflow::cx::v3::EntityType const & | entity_type, |
google::protobuf::FieldMask const & | update_mask, | ||
Options | opts = {} |
||
) |
Updates the specified entity type.
Note: You should always train a flow prior to sending it queries. See the training documentation.
entity_type | Required. The entity type to update. |
update_mask | The mask to control which fields get updated. |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr< google::cloud::dialogflow::cx::v3::EntityType > google::cloud::dialogflow_cx::EntityTypesClient::UpdateEntityType | ( | google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Updates the specified entity type.
Note: You should always train a flow prior to sending it queries. See the training documentation.
request | google::cloud::dialogflow::cx::v3::UpdateEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
|
friend |
|
friend |