IntentsClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Optional[Union[str, google.cloud.dialogflow_v2.services.intents.transports.base.IntentsTransport]] = 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 Intents.
Properties
transport
Return the transport used by the client instance.
Returns | |
---|---|
Type | Description |
IntentsTransport | The transport used by the client instance. |
Methods
IntentsClient
IntentsClient(*, credentials: Optional[google.auth.credentials.Credentials] = None, transport: Optional[Union[str, google.cloud.dialogflow_v2.services.intents.transports.base.IntentsTransport]] = 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>)
Instantiate the intents client.
Parameters | |
---|---|
Name | Description |
credentials |
Optional[google.auth.credentials.Credentials]
The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. |
transport |
Union[str,
The transport to use. If set to None, a transport is chosen automatically. |
client_options |
client_options_lib.ClientOptions
Custom options for the client. It won't take effect if a |
client_info |
google.api_core.gapic_v1.client_info.ClientInfo
The client info used to send a user-agent string along with API requests. If |
Exceptions | |
---|---|
Type | Description |
google.auth.exceptions.MutualTLSChannelError | If mutual TLS transport creation failed for any reason. |
batch_delete_intents
batch_delete_intents(request: Optional[google.cloud.dialogflow_v2.types.intent.BatchDeleteIntentsRequest] = None, *, parent: Optional[str] = None, intents: Optional[Sequence[google.cloud.dialogflow_v2.types.intent.Intent]] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes intents in the specified agent.
Operation <response:
google.protobuf.Empty][google.protobuf.Empty]
>
Parameters | |
---|---|
Name | Description |
request |
The request object. The request message for Intents.BatchDeleteIntents. |
parent |
Required. The name of the agent to delete all entities types for. Format: |
intents |
:class:
Required. The collection of intents to delete. Only intent |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
| An object representing a long-running operation. The result type for the operation will be .empty.Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: :: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {} . |
batch_update_intents
batch_update_intents(request: Optional[google.cloud.dialogflow_v2.types.intent.BatchUpdateIntentsRequest] = None, *, parent: Optional[str] = None, intent_batch_uri: Optional[str] = None, intent_batch_inline: Optional[google.cloud.dialogflow_v2.types.intent.IntentBatch] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Updates/Creates multiple intents in the specified agent.
Operation <response: xref_BatchUpdateIntentsResponse>
Parameters | |
---|---|
Name | Description |
request |
The request object. |
parent |
Required. The name of the agent to update or create intents in. Format: |
intent_batch_uri |
The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". This corresponds to the |
intent_batch_inline |
The collection of intents to update or create. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
| An object representing a long-running operation. The result type for the operation will be .intent.BatchUpdateIntentsResponse: The response message for Intents.BatchUpdateIntents. |
common_billing_account_path
common_billing_account_path(billing_account: str)
Return a fully-qualified billing_account string.
common_folder_path
common_folder_path(folder: str)
Return a fully-qualified folder string.
common_location_path
common_location_path(project: str, location: str)
Return a fully-qualified location string.
common_organization_path
common_organization_path(organization: str)
Return a fully-qualified organization string.
common_project_path
common_project_path(project: str)
Return a fully-qualified project string.
context_path
context_path(project: str, session: str, context: str)
Return a fully-qualified context string.
create_intent
create_intent(request: Optional[google.cloud.dialogflow_v2.types.intent.CreateIntentRequest] = None, *, parent: Optional[str] = None, intent: Optional[google.cloud.dialogflow_v2.types.intent.Intent] = None, language_code: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Creates an intent in the specified agent.
Parameters | |
---|---|
Name | Description |
request |
The request object. The request message for Intents.CreateIntent. |
parent |
Required. The agent to create a intent for. Format: |
intent |
Required. The intent to create. This corresponds to the |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
| An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the intent guide __. |
delete_intent
delete_intent(request: Optional[google.cloud.dialogflow_v2.types.intent.DeleteIntentRequest] = None, *, name: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Deletes the specified intent and its direct or indirect followup intents.
Parameters | |
---|---|
Name | Description |
request |
The request object. The request message for Intents.DeleteIntent. |
name |
Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Format: |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
Parameter | |
---|---|
Name | Description |
filename |
str
The path to the service account private key json file. |
Returns | |
---|---|
Type | Description |
{@api.name} | The 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.
Parameter | |
---|---|
Name | Description |
filename |
str
The path to the service account private key json file. |
Returns | |
---|---|
Type | Description |
{@api.name} | The constructed client. |
get_intent
get_intent(request: Optional[google.cloud.dialogflow_v2.types.intent.GetIntentRequest] = None, *, name: Optional[str] = None, language_code: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Retrieves the specified intent.
Parameters | |
---|---|
Name | Description |
request |
The request object. The request message for Intents.GetIntent. |
name |
Required. The name of the intent. Format: |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
| An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the intent guide __. |
intent_path
intent_path(project: str, intent: str)
Return a fully-qualified intent string.
list_intents
list_intents(request: Optional[google.cloud.dialogflow_v2.types.intent.ListIntentsRequest] = None, *, parent: Optional[str] = None, language_code: Optional[str] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Returns the list of all intents in the specified agent.
Parameters | |
---|---|
Name | Description |
request |
The request object. The request message for Intents.ListIntents. |
parent |
Required. The agent to list all intents from. Format: |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
| The response message for Intents.ListIntents. 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.
parse_common_folder_path
parse_common_folder_path(path: str)
Parse a folder path into its component segments.
parse_common_location_path
parse_common_location_path(path: str)
Parse a location path into its component segments.
parse_common_organization_path
parse_common_organization_path(path: str)
Parse a organization path into its component segments.
parse_common_project_path
parse_common_project_path(path: str)
Parse a project path into its component segments.
parse_context_path
parse_context_path(path: str)
Parse a context path into its component segments.
parse_intent_path
parse_intent_path(path: str)
Parse a intent path into its component segments.
update_intent
update_intent(request: Optional[google.cloud.dialogflow_v2.types.intent.UpdateIntentRequest] = None, *, intent: Optional[google.cloud.dialogflow_v2.types.intent.Intent] = None, language_code: Optional[str] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: google.api_core.retry.Retry = <_MethodDefault._DEFAULT_VALUE: <object object>>, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, str]] = ())
Updates the specified intent.
Parameters | |
---|---|
Name | Description |
request |
The request object. The request message for Intents.UpdateIntent. |
intent |
Required. The intent to update. This corresponds to the |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see |
update_mask |
Optional. The mask to control which fields get updated. This corresponds to the |
retry |
google.api_core.retry.Retry
Designation of what errors, if any, should be retried. |
timeout |
float
The timeout for this request. |
metadata |
Sequence[Tuple[str, str]]
Strings which should be sent along with the request as metadata. |
Returns | |
---|---|
Type | Description |
| An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification. For more information, see the intent guide __. |