Class SessionEntityTypesClient (0.8.0)

SessionEntityTypesClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Optional[Union[str, google.cloud.dialogflowcx_v3.services.session_entity_types.transports.base.SessionEntityTypesTransport]] = None, client_options: Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)

Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].

Inheritance

builtins.object > SessionEntityTypesClient

Properties

transport

Returns the transport used by the client instance.

Returns
TypeDescription
SessionEntityTypesTransportThe transport used by the client instance.

Methods

common_billing_account_path

common_billing_account_path(billing_account: str)

Returns a fully-qualified billing_account string.

Parameter
NameDescription
billing_account

common_folder_path

common_folder_path(folder: str)

Returns a fully-qualified folder string.

Parameter
NameDescription
folder

common_location_path

common_location_path(project: str, location: str)

Returns a fully-qualified location string.

Parameters
NameDescription
project
location

common_organization_path

common_organization_path(organization: str)

Returns a fully-qualified organization string.

Parameter
NameDescription
organization

common_project_path

common_project_path(project: str)

Returns a fully-qualified project string.

Parameter
NameDescription
project

create_session_entity_type

create_session_entity_type(request: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.CreateSessionEntityTypeRequest] = None, *, parent: Optional[str] = None, session_entity_type: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.SessionEntityType] = None, retry: google.api_core.retry.Retry = <object object>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())

Creates a session entity type.

Parameter
NameDescription
request google.cloud.dialogflowcx_v3.types.CreateSessionEntityTypeRequest

The request object. The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType].

Returns
TypeDescription
google.cloud.dialogflowcx_v3.types.SessionEntityTypeSession entity types are referred to as **User** entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on. You can redefine a session entity type at the session level to extend or replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we refer to the entity types defined at the agent level as "custom entity types"). Note: session entity types apply to all queries, regardless of the language. For more information about entity types, see the [Dialogflow documentation](\ https://cloud.google.com/dialogflow/docs/entities-overview).

delete_session_entity_type

delete_session_entity_type(request: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.DeleteSessionEntityTypeRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <object object>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())

Deletes the specified session entity type.

Parameter
NameDescription
request google.cloud.dialogflowcx_v3.types.DeleteSessionEntityTypeRequest

The request object. The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType].

from_service_account_file

from_service_account_file(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials file.

Parameters
NameDescription
filename str

The path to the service account private key json file.

args

Additional arguments to pass to the constructor.

kwargs

Additional arguments to pass to the constructor.

Returns
TypeDescription
SessionEntityTypesClientThe constructed client.

from_service_account_info

from_service_account_info(info: dict, *args, **kwargs)

Creates an instance of this client using the provided credentials info.

Parameters
NameDescription
info dict

The service account private key info.

args

Additional arguments to pass to the constructor.

kwargs

Additional arguments to pass to the constructor.

Returns
TypeDescription
SessionEntityTypesClientThe constructed client.

from_service_account_json

from_service_account_json(filename: str, *args, **kwargs)

Creates an instance of this client using the provided credentials file.

Parameters
NameDescription
filename str

The path to the service account private key json file.

args

Additional arguments to pass to the constructor.

kwargs

Additional arguments to pass to the constructor.

Returns
TypeDescription
SessionEntityTypesClientThe constructed client.

get_session_entity_type

get_session_entity_type(request: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.GetSessionEntityTypeRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <object object>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())

Retrieves the specified session entity type.

Parameter
NameDescription
request google.cloud.dialogflowcx_v3.types.GetSessionEntityTypeRequest

The request object. The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].

Returns
TypeDescription
google.cloud.dialogflowcx_v3.types.SessionEntityTypeSession entity types are referred to as **User** entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on. You can redefine a session entity type at the session level to extend or replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we refer to the entity types defined at the agent level as "custom entity types"). Note: session entity types apply to all queries, regardless of the language. For more information about entity types, see the [Dialogflow documentation](\ https://cloud.google.com/dialogflow/docs/entities-overview).

list_session_entity_types

list_session_entity_types(request: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.ListSessionEntityTypesRequest] = None, *, parent: Optional[str] = None, retry: google.api_core.retry.Retry = <object object>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())

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

Parameter
NameDescription
request google.cloud.dialogflowcx_v3.types.ListSessionEntityTypesRequest

The request object. The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].

Returns
TypeDescription
google.cloud.dialogflowcx_v3.services.session_entity_types.pagers.ListSessionEntityTypesPagerThe response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. Iterating over this object will yield results and resolve additional pages automatically.

parse_common_billing_account_path

parse_common_billing_account_path(path: str)

Parse a billing_account path into its component segments.

Parameter
NameDescription
path

parse_common_folder_path

parse_common_folder_path(path: str)

Parse a folder path into its component segments.

Parameter
NameDescription
path

parse_common_location_path

parse_common_location_path(path: str)

Parse a location path into its component segments.

Parameter
NameDescription
path

parse_common_organization_path

parse_common_organization_path(path: str)

Parse a organization path into its component segments.

Parameter
NameDescription
path

parse_common_project_path

parse_common_project_path(path: str)

Parse a project path into its component segments.

Parameter
NameDescription
path

parse_session_entity_type_path

parse_session_entity_type_path(path: str)

Parses a session_entity_type path into its component segments.

Parameter
NameDescription
path

session_entity_type_path

session_entity_type_path(project: str, location: str, agent: str, session: str, entity_type: str)

Returns a fully-qualified session_entity_type string.

Parameters
NameDescription
project
location
agent
session
entity_type

update_session_entity_type

update_session_entity_type(request: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.UpdateSessionEntityTypeRequest] = None, *, session_entity_type: Optional[google.cloud.dialogflowcx_v3.types.session_entity_type.SessionEntityType] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: google.api_core.retry.Retry = <object object>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())

Updates the specified session entity type.

Parameter
NameDescription
request google.cloud.dialogflowcx_v3.types.UpdateSessionEntityTypeRequest

The request object. The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].

Returns
TypeDescription
google.cloud.dialogflowcx_v3.types.SessionEntityTypeSession entity types are referred to as **User** entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on. You can redefine a session entity type at the session level to extend or replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we refer to the entity types defined at the agent level as "custom entity types"). Note: session entity types apply to all queries, regardless of the language. For more information about entity types, see the [Dialogflow documentation](\ https://cloud.google.com/dialogflow/docs/entities-overview).