Dialogflow API C++ Client  2.4.0
A C++ Client Library for the Dialogflow API
Public Member Functions | Friends | List of all members
google::cloud::dialogflow_es::EntityTypesClient Class Reference

Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType]. More...

#include <google/cloud/dialogflow_es/entity_types_client.h>

Public Member Functions

 EntityTypesClient (std::shared_ptr< EntityTypesConnection > connection, Options opts={})
 
 ~EntityTypesClient ()
 
 EntityTypesClient (EntityTypesClient const &)=default
 
EntityTypesClientoperator= (EntityTypesClient const &)=default
 
 EntityTypesClient (EntityTypesClient &&)=default
 
EntityTypesClientoperator= (EntityTypesClient &&)=default
 
StreamRange< google::cloud::dialogflow::v2::EntityType > ListEntityTypes (std::string const &parent, Options opts={})
 Returns the list of all entity types in the specified agent. More...
 
StreamRange< google::cloud::dialogflow::v2::EntityType > ListEntityTypes (std::string const &parent, std::string const &language_code, Options opts={})
 Returns the list of all entity types in the specified agent. More...
 
StreamRange< google::cloud::dialogflow::v2::EntityType > ListEntityTypes (google::cloud::dialogflow::v2::ListEntityTypesRequest request, Options opts={})
 Returns the list of all entity types in the specified agent. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > GetEntityType (std::string const &name, Options opts={})
 Retrieves the specified entity type. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > GetEntityType (std::string const &name, std::string const &language_code, Options opts={})
 Retrieves the specified entity type. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > GetEntityType (google::cloud::dialogflow::v2::GetEntityTypeRequest const &request, Options opts={})
 Retrieves the specified entity type. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > CreateEntityType (std::string const &parent, google::cloud::dialogflow::v2::EntityType const &entity_type, Options opts={})
 Creates an entity type in the specified agent. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > CreateEntityType (std::string const &parent, google::cloud::dialogflow::v2::EntityType const &entity_type, std::string const &language_code, Options opts={})
 Creates an entity type in the specified agent. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > CreateEntityType (google::cloud::dialogflow::v2::CreateEntityTypeRequest const &request, Options opts={})
 Creates an entity type in the specified agent. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > UpdateEntityType (google::cloud::dialogflow::v2::EntityType const &entity_type, Options opts={})
 Updates the specified entity type. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > UpdateEntityType (google::cloud::dialogflow::v2::EntityType const &entity_type, std::string const &language_code, Options opts={})
 Updates the specified entity type. More...
 
StatusOr< google::cloud::dialogflow::v2::EntityType > UpdateEntityType (google::cloud::dialogflow::v2::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::v2::DeleteEntityTypeRequest const &request, Options opts={})
 Deletes the specified entity type. More...
 
future< StatusOr< google::cloud::dialogflow::v2::BatchUpdateEntityTypesResponse > > BatchUpdateEntityTypes (google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const &request, Options opts={})
 Updates/Creates multiple entity types in the specified agent. More...
 
future< StatusOr< google::protobuf::Struct > > BatchDeleteEntityTypes (std::string const &parent, std::vector< std::string > const &entity_type_names, Options opts={})
 Deletes entity types in the specified agent. More...
 
future< StatusOr< google::protobuf::Struct > > BatchDeleteEntityTypes (google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const &request, Options opts={})
 Deletes entity types in the specified agent. More...
 
future< StatusOr< google::protobuf::Struct > > BatchCreateEntities (std::string const &parent, std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &entities, Options opts={})
 Creates multiple new entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchCreateEntities (std::string const &parent, std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &entities, std::string const &language_code, Options opts={})
 Creates multiple new entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchCreateEntities (google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const &request, Options opts={})
 Creates multiple new entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchUpdateEntities (std::string const &parent, std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &entities, Options opts={})
 Updates or creates multiple entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchUpdateEntities (std::string const &parent, std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &entities, std::string const &language_code, Options opts={})
 Updates or creates multiple entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchUpdateEntities (google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const &request, Options opts={})
 Updates or creates multiple entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchDeleteEntities (std::string const &parent, std::vector< std::string > const &entity_values, Options opts={})
 Deletes entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchDeleteEntities (std::string const &parent, std::vector< std::string > const &entity_values, std::string const &language_code, Options opts={})
 Deletes entities in the specified entity type. More...
 
future< StatusOr< google::protobuf::Struct > > BatchDeleteEntities (google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const &request, Options opts={})
 Deletes entities in the specified entity type. More...
 

Friends

bool operator== (EntityTypesClient const &a, EntityTypesClient const &b)
 
bool operator!= (EntityTypesClient const &a, EntityTypesClient const &b)
 

Detailed Description

Service for managing [EntityTypes][google.cloud.dialogflow.v2.EntityType].

Equality

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.

Performance

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.

Thread Safety

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.

Definition at line 62 of file entity_types_client.h.

Constructor & Destructor Documentation

◆ EntityTypesClient() [1/3]

google::cloud::dialogflow_es::EntityTypesClient::EntityTypesClient ( std::shared_ptr< EntityTypesConnection connection,
Options  opts = {} 
)
explicit

◆ ~EntityTypesClient()

google::cloud::dialogflow_es::EntityTypesClient::~EntityTypesClient ( )

◆ EntityTypesClient() [2/3]

google::cloud::dialogflow_es::EntityTypesClient::EntityTypesClient ( EntityTypesClient const &  )
default

◆ EntityTypesClient() [3/3]

google::cloud::dialogflow_es::EntityTypesClient::EntityTypesClient ( EntityTypesClient &&  )
default

Member Function Documentation

◆ BatchCreateEntities() [1/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchCreateEntities ( google::cloud::dialogflow::v2::BatchCreateEntitiesRequest const &  request,
Options  opts = {} 
)

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:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::BatchCreateEntitiesRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchCreateEntities() [2/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchCreateEntities ( std::string const &  parent,
std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &  entities,
Options  opts = {} 
)

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:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the entity type to create entities in. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entitiesRequired. The entities to create.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchCreateEntities() [3/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchCreateEntities ( std::string const &  parent,
std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &  entities,
std::string const &  language_code,
Options  opts = {} 
)

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:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the entity type to create entities in. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entitiesRequired. The entities to create.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchDeleteEntities() [1/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchDeleteEntities ( google::cloud::dialogflow::v2::BatchDeleteEntitiesRequest const &  request,
Options  opts = {} 
)

Deletes entities in the specified entity type.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::BatchDeleteEntitiesRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchDeleteEntities() [2/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchDeleteEntities ( std::string const &  parent,
std::vector< std::string > const &  entity_values,
Options  opts = {} 
)

Deletes entities in the specified entity type.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the entity type to delete entries for. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entity_valuesRequired. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchDeleteEntities() [3/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchDeleteEntities ( std::string const &  parent,
std::vector< std::string > const &  entity_values,
std::string const &  language_code,
Options  opts = {} 
)

Deletes entities in the specified entity type.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the entity type to delete entries for. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entity_valuesRequired. The reference values of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with projects/<Project ID>.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchDeleteEntityTypes() [1/2]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchDeleteEntityTypes ( google::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest const &  request,
Options  opts = {} 
)

Deletes entity types in the specified agent.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::BatchDeleteEntityTypesRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchDeleteEntityTypes() [2/2]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchDeleteEntityTypes ( std::string const &  parent,
std::vector< std::string > const &  entity_type_names,
Options  opts = {} 
)

Deletes entity types in the specified agent.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the agent to delete all entities types for. Format: projects/<Project ID>/agent.
entity_type_namesRequired. The names entity types to delete. All names must point to the same agent as parent.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchUpdateEntities() [1/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchUpdateEntities ( google::cloud::dialogflow::v2::BatchUpdateEntitiesRequest const &  request,
Options  opts = {} 
)

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.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::BatchUpdateEntitiesRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchUpdateEntities() [2/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchUpdateEntities ( std::string const &  parent,
std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &  entities,
Options  opts = {} 
)

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.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the entity type to update or create entities in. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entitiesRequired. The entities to update or create.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchUpdateEntities() [3/3]

future<StatusOr<google::protobuf::Struct> > google::cloud::dialogflow_es::EntityTypesClient::BatchUpdateEntities ( std::string const &  parent,
std::vector< google::cloud::dialogflow::v2::EntityType::Entity > const &  entities,
std::string const &  language_code,
Options  opts = {} 
)

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.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The name of the entity type to update or create entities in. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.
entitiesRequired. The entities to update or create.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::protobuf::Struct

◆ BatchUpdateEntityTypes()

future< StatusOr<google::cloud::dialogflow::v2::BatchUpdateEntityTypesResponse> > google::cloud::dialogflow_es::EntityTypesClient::BatchUpdateEntityTypes ( google::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest const &  request,
Options  opts = {} 
)

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:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::BatchUpdateEntityTypesRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::BatchUpdateEntityTypesResponse

◆ CreateEntityType() [1/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::CreateEntityType ( google::cloud::dialogflow::v2::CreateEntityTypeRequest const &  request,
Options  opts = {} 
)

Creates an entity type in the specified agent.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::CreateEntityTypeRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ CreateEntityType() [2/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::CreateEntityType ( std::string const &  parent,
google::cloud::dialogflow::v2::EntityType const &  entity_type,
Options  opts = {} 
)

Creates an entity type in the specified agent.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The agent to create a entity type for. Format: projects/<Project ID>/agent.
entity_typeRequired. The entity type to create.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ CreateEntityType() [3/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::CreateEntityType ( std::string const &  parent,
google::cloud::dialogflow::v2::EntityType const &  entity_type,
std::string const &  language_code,
Options  opts = {} 
)

Creates an entity type in the specified agent.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
parentRequired. The agent to create a entity type for. Format: projects/<Project ID>/agent.
entity_typeRequired. The entity type to create.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ DeleteEntityType() [1/2]

Status google::cloud::dialogflow_es::EntityTypesClient::DeleteEntityType ( google::cloud::dialogflow::v2::DeleteEntityTypeRequest const &  request,
Options  opts = {} 
)

Deletes the specified entity type.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::DeleteEntityTypeRequest
optsOptional. Override the class-level options, such as retry and backoff policies.

◆ DeleteEntityType() [2/2]

Status google::cloud::dialogflow_es::EntityTypesClient::DeleteEntityType ( std::string const &  name,
Options  opts = {} 
)

Deletes the specified entity type.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
nameRequired. The name of the entity type to delete. Format: projects/<Project ID>/agent/entityTypes/<EntityType ID>.
optsOptional. Override the class-level options, such as retry and backoff policies.

◆ GetEntityType() [1/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::GetEntityType ( google::cloud::dialogflow::v2::GetEntityTypeRequest const &  request,
Options  opts = {} 
)

Retrieves the specified entity type.

Parameters
requestgoogle::cloud::dialogflow::v2::GetEntityTypeRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ GetEntityType() [2/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::GetEntityType ( std::string const &  name,
Options  opts = {} 
)

Retrieves the specified entity type.

Parameters
nameRequired. The name of the entity type. Format: projects/<Project ID>/agent/entityTypes/<EntityType ID>.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ GetEntityType() [3/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::GetEntityType ( std::string const &  name,
std::string const &  language_code,
Options  opts = {} 
)

Retrieves the specified entity type.

Parameters
nameRequired. The name of the entity type. Format: projects/<Project ID>/agent/entityTypes/<EntityType ID>.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ ListEntityTypes() [1/3]

StreamRange<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::ListEntityTypes ( google::cloud::dialogflow::v2::ListEntityTypesRequest  request,
Options  opts = {} 
)

Returns the list of all entity types in the specified agent.

Parameters
requestgoogle::cloud::dialogflow::v2::ListEntityTypesRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ ListEntityTypes() [2/3]

StreamRange<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::ListEntityTypes ( std::string const &  parent,
Options  opts = {} 
)

Returns the list of all entity types in the specified agent.

Parameters
parentRequired. The agent to list all entity types from. Format: projects/<Project ID>/agent.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ ListEntityTypes() [3/3]

StreamRange<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::ListEntityTypes ( std::string const &  parent,
std::string const &  language_code,
Options  opts = {} 
)

Returns the list of all entity types in the specified agent.

Parameters
parentRequired. The agent to list all entity types from. Format: projects/<Project ID>/agent.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ operator=() [1/2]

EntityTypesClient& google::cloud::dialogflow_es::EntityTypesClient::operator= ( EntityTypesClient &&  )
default

◆ operator=() [2/2]

EntityTypesClient& google::cloud::dialogflow_es::EntityTypesClient::operator= ( EntityTypesClient const &  )
default

◆ UpdateEntityType() [1/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::UpdateEntityType ( google::cloud::dialogflow::v2::EntityType const &  entity_type,
Options  opts = {} 
)

Updates the specified entity type.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
entity_typeRequired. The entity type to update.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ UpdateEntityType() [2/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::UpdateEntityType ( google::cloud::dialogflow::v2::EntityType const &  entity_type,
std::string const &  language_code,
Options  opts = {} 
)

Updates the specified entity type.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
entity_typeRequired. The entity type to update.
language_codeOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

◆ UpdateEntityType() [3/3]

StatusOr<google::cloud::dialogflow::v2::EntityType> google::cloud::dialogflow_es::EntityTypesClient::UpdateEntityType ( google::cloud::dialogflow::v2::UpdateEntityTypeRequest const &  request,
Options  opts = {} 
)

Updates the specified entity type.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
requestgoogle::cloud::dialogflow::v2::UpdateEntityTypeRequest
optsOptional. Override the class-level options, such as retry and backoff policies.
Returns
google::cloud::dialogflow::v2::EntityType

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( EntityTypesClient const &  a,
EntityTypesClient const &  b 
)
friend

Definition at line 82 of file entity_types_client.h.

◆ operator==

bool operator== ( EntityTypesClient const &  a,
EntityTypesClient const &  b 
)
friend

Definition at line 78 of file entity_types_client.h.