Dialogflow API C++ Client
2.6.0
A C++ Client Library for the Dialogflow API
|
Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType]. More...
#include <google/cloud/dialogflow_cx/session_entity_types_client.h>
Public Member Functions | |
SessionEntityTypesClient (std::shared_ptr< SessionEntityTypesConnection > connection, Options opts={}) | |
~SessionEntityTypesClient () | |
StreamRange< google::cloud::dialogflow::cx::v3::SessionEntityType > | ListSessionEntityTypes (std::string const &parent, Options opts={}) |
Returns the list of all session entity types in the specified session. More... | |
StreamRange< google::cloud::dialogflow::cx::v3::SessionEntityType > | ListSessionEntityTypes (google::cloud::dialogflow::cx::v3::ListSessionEntityTypesRequest request, Options opts={}) |
Returns the list of all session entity types in the specified session. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::SessionEntityType > | GetSessionEntityType (std::string const &name, Options opts={}) |
Retrieves the specified session entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::SessionEntityType > | GetSessionEntityType (google::cloud::dialogflow::cx::v3::GetSessionEntityTypeRequest const &request, Options opts={}) |
Retrieves the specified session entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::SessionEntityType > | CreateSessionEntityType (std::string const &parent, google::cloud::dialogflow::cx::v3::SessionEntityType const &session_entity_type, Options opts={}) |
Creates a session entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::SessionEntityType > | CreateSessionEntityType (google::cloud::dialogflow::cx::v3::CreateSessionEntityTypeRequest const &request, Options opts={}) |
Creates a session entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::SessionEntityType > | UpdateSessionEntityType (google::cloud::dialogflow::cx::v3::SessionEntityType const &session_entity_type, google::protobuf::FieldMask const &update_mask, Options opts={}) |
Updates the specified session entity type. More... | |
StatusOr< google::cloud::dialogflow::cx::v3::SessionEntityType > | UpdateSessionEntityType (google::cloud::dialogflow::cx::v3::UpdateSessionEntityTypeRequest const &request, Options opts={}) |
Updates the specified session entity type. More... | |
Status | DeleteSessionEntityType (std::string const &name, Options opts={}) |
Deletes the specified session entity type. More... | |
Status | DeleteSessionEntityType (google::cloud::dialogflow::cx::v3::DeleteSessionEntityTypeRequest const &request, Options opts={}) |
Deletes the specified session entity type. More... | |
SessionEntityTypesClient (SessionEntityTypesClient const &)=default | |
SessionEntityTypesClient & | operator= (SessionEntityTypesClient const &)=default |
SessionEntityTypesClient (SessionEntityTypesClient &&)=default | |
SessionEntityTypesClient & | operator= (SessionEntityTypesClient &&)=default |
Friends | |
bool | operator== (SessionEntityTypesClient const &a, SessionEntityTypesClient const &b) |
bool | operator!= (SessionEntityTypesClient const &a, SessionEntityTypesClient const &b) |
Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
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.
Definition at line 62 of file session_entity_types_client.h.
|
explicit |
google::cloud::dialogflow_cx::SessionEntityTypesClient::~SessionEntityTypesClient | ( | ) |
|
default |
|
default |
StatusOr<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::CreateSessionEntityType | ( | google::cloud::dialogflow::cx::v3::CreateSessionEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Creates a session entity type.
request | google::cloud::dialogflow::cx::v3::CreateSessionEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::CreateSessionEntityType | ( | std::string const & | parent, |
google::cloud::dialogflow::cx::v3::SessionEntityType const & | session_entity_type, | ||
Options | opts = {} |
||
) |
Creates a session entity type.
parent | Required. The session to create a session entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>
projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/environments/<Environment ID>/sessions/<Session ID>
Environment ID is not specified, we assume default 'draft' environment. |
session_entity_type | Required. The session entity type to create. |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
Status google::cloud::dialogflow_cx::SessionEntityTypesClient::DeleteSessionEntityType | ( | google::cloud::dialogflow::cx::v3::DeleteSessionEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Deletes the specified session entity type.
request | google::cloud::dialogflow::cx::v3::DeleteSessionEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
Status google::cloud::dialogflow_cx::SessionEntityTypesClient::DeleteSessionEntityType | ( | std::string const & | name, |
Options | opts = {} |
||
) |
Deletes the specified session entity type.
name | Required. The name of the session entity type to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>
projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/environments/<Environment ID>/sessions/<Session
ID>/entityTypes/<Entity Type ID>
Environment ID is not specified, we assume the default 'draft' environment. |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::GetSessionEntityType | ( | google::cloud::dialogflow::cx::v3::GetSessionEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Retrieves the specified session entity type.
request | google::cloud::dialogflow::cx::v3::GetSessionEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StatusOr<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::GetSessionEntityType | ( | std::string const & | name, |
Options | opts = {} |
||
) |
Retrieves the specified session entity type.
name | Required. The name of the session entity type. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>
projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/environments/<Environment ID>/sessions/<Session
ID>/entityTypes/<Entity Type ID>
Environment ID is not specified, we assume the default 'draft' environment. |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StreamRange<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::ListSessionEntityTypes | ( | google::cloud::dialogflow::cx::v3::ListSessionEntityTypesRequest | request, |
Options | opts = {} |
||
) |
Returns the list of all session entity types in the specified session.
request | google::cloud::dialogflow::cx::v3::ListSessionEntityTypesRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
StreamRange<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::ListSessionEntityTypes | ( | std::string const & | parent, |
Options | opts = {} |
||
) |
Returns the list of all session entity types in the specified session.
parent | Required. The session to list all session entity types from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>
projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/environments/<Environment ID>/sessions/<Session ID>
Environment ID is not specified, we assume default 'draft' environment. |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
|
default |
|
default |
StatusOr<google::cloud::dialogflow::cx::v3::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::UpdateSessionEntityType | ( | google::cloud::dialogflow::cx::v3::SessionEntityType const & | session_entity_type, |
google::protobuf::FieldMask const & | update_mask, | ||
Options | opts = {} |
||
) |
Updates the specified session entity type.
session_entity_type | Required. The session entity type to update. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>
projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/environments/<Environment ID>/sessions/<Session
ID>/entityTypes/<Entity Type ID>
Environment ID is not specified, we assume the default 'draft' environment. |
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::SessionEntityType> google::cloud::dialogflow_cx::SessionEntityTypesClient::UpdateSessionEntityType | ( | google::cloud::dialogflow::cx::v3::UpdateSessionEntityTypeRequest const & | request, |
Options | opts = {} |
||
) |
Updates the specified session entity type.
request | google::cloud::dialogflow::cx::v3::UpdateSessionEntityTypeRequest |
opts | Optional. Override the class-level options, such as retry and backoff policies. |
|
friend |
Definition at line 84 of file session_entity_types_client.h.
|
friend |
Definition at line 80 of file session_entity_types_client.h.