diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst deleted file mode 100644 index b8d3342a4..000000000 --- a/CONTRIBUTING.rst +++ /dev/null @@ -1,219 +0,0 @@ -############ -Contributing -############ - -#. **Please sign one of the contributor license agreements below.** -#. Fork the repo, develop and test your code changes, add docs. -#. Make sure that your commit messages clearly describe the changes. -#. Send a pull request. (Please Read: `Faster Pull Request Reviews`_) - -.. _Faster Pull Request Reviews: https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#best-practices-for-faster-reviews - -.. contents:: Here are some guidelines for hacking on the Google Cloud Client libraries. - -*************** -Adding Features -*************** - -In order to add a feature: - -- The feature must be documented in both the API and narrative - documentation. - -- The feature must work fully on the following CPython versions: 2.7, - 3.5, 3.6, and 3.7 on both UNIX and Windows. - -- The feature must not add unnecessary dependencies (where - "unnecessary" is of course subjective, but new dependencies should - be discussed). - -**************************** -Using a Development Checkout -**************************** - -You'll have to create a development environment using a Git checkout: - -- While logged into your GitHub account, navigate to the - ``dialogflow-python-client-v2`` `repo`_ on GitHub. - -- Fork and clone the ``dialogflow-python-client-v2`` repository to your GitHub account by - clicking the "Fork" button. - -- Clone your fork of ``dialogflow-python-client-v2`` from your GitHub account to your local - computer, substituting your account username and specifying the destination - as ``hack-on-dialogflow-python-client-v2``. E.g.:: - - $ cd ${HOME} - $ git clone git@github.com:USERNAME/dialogflow-python-client-v2.git hack-on-dialogflow-python-client-v2 - $ cd hack-on-dialogflow-python-client-v2 - # Configure remotes such that you can pull changes from the googleapis/dialogflow-python-client-v2 - # repository into your local repository. - $ git remote add upstream git@github.com:googleapis/dialogflow-python-client-v2.git - # fetch and merge changes from upstream into master - $ git fetch upstream - $ git merge upstream/master - -Now your local repo is set up such that you will push changes to your GitHub -repo, from which you can submit a pull request. - -To work on the codebase and run the tests, we recommend using ``nox``, -but you can also use a ``virtualenv`` of your own creation. - -.. _repo: https://github.com/googleapis/dialogflow-python-client-v2 - -Using ``nox`` -============= - -We use `nox `__ to instrument our tests. - -- To test your changes, run unit tests with ``nox``:: - - $ nox -s unit-2.7 - $ nox -s unit-3.7 - $ ... - - .. note:: - - The unit tests and system tests are described in the - ``noxfile.py`` files in each directory. - -.. nox: https://pypi.org/project/nox/ - -Note on Editable Installs / Develop Mode -======================================== - -- As mentioned previously, using ``setuptools`` in `develop mode`_ - or a ``pip`` `editable install`_ is not possible with this - library. This is because this library uses `namespace packages`_. - For context see `Issue #2316`_ and the relevant `PyPA issue`_. - - Since ``editable`` / ``develop`` mode can't be used, packages - need to be installed directly. Hence your changes to the source - tree don't get incorporated into the **already installed** - package. - -.. _namespace packages: https://www.python.org/dev/peps/pep-0420/ -.. _Issue #2316: https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2316 -.. _PyPA issue: https://github.com/pypa/packaging-problems/issues/12 -.. _develop mode: https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode -.. _editable install: https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs - -***************************************** -I'm getting weird errors... Can you help? -***************************************** - -If the error mentions ``Python.h`` not being found, -install ``python-dev`` and try again. -On Debian/Ubuntu:: - - $ sudo apt-get install python-dev - -************ -Coding Style -************ - -- PEP8 compliance, with exceptions defined in the linter configuration. - If you have ``nox`` installed, you can test that you have not introduced - any non-compliant code via:: - - $ nox -s lint - -- In order to make ``nox -s lint`` run faster, you can set some environment - variables:: - - export GOOGLE_CLOUD_TESTING_REMOTE="upstream" - export GOOGLE_CLOUD_TESTING_BRANCH="master" - - By doing this, you are specifying the location of the most up-to-date - version of ``dialogflow-python-client-v2``. The the suggested remote name ``upstream`` - should point to the official ``googleapis`` checkout and the - the branch should be the main branch on that remote (``master``). - -Exceptions to PEP8: - -- Many unit tests use a helper method, ``_call_fut`` ("FUT" is short for - "Function-Under-Test"), which is PEP8-incompliant, but more readable. - Some also use a local variable, ``MUT`` (short for "Module-Under-Test"). - -************* -Test Coverage -************* - -- The codebase *must* have 100% test statement coverage after each commit. - You can test coverage via ``nox -s cover``. - -****************************************************** -Documentation Coverage and Building HTML Documentation -****************************************************** - -If you fix a bug, and the bug requires an API or behavior modification, all -documentation in this package which references that API or behavior must be -changed to reflect the bug fix, ideally in the same commit that fixes the bug -or adds the feature. - -Build the docs via: - - $ nox -s docs - -******************************************** -Note About ``README`` as it pertains to PyPI -******************************************** - -The `description on PyPI`_ for the project comes directly from the -``README``. Due to the reStructuredText (``rst``) parser used by -PyPI, relative links which will work on GitHub (e.g. ``CONTRIBUTING.rst`` -instead of -``https://github.com/googleapis/dialogflow-python-client-v2/blob/master/CONTRIBUTING.rst``) -may cause problems creating links or rendering the description. - -.. _description on PyPI: https://pypi.org/project/dialogflow - - -************************* -Supported Python Versions -************************* - -We support: - -- `Python 3.5`_ -- `Python 3.6`_ -- `Python 3.7`_ - -.. _Python 3.5: https://docs.python.org/3.5/ -.. _Python 3.6: https://docs.python.org/3.6/ -.. _Python 3.7: https://docs.python.org/3.7/ - - -Supported versions can be found in our ``noxfile.py`` `config`_. - -.. _config: https://github.com/googleapis/dialogflow-python-client-v2/blob/master/noxfile.py - - -********** -Versioning -********** - -This library follows `Semantic Versioning`_. - -.. _Semantic Versioning: http://semver.org/ - -Some packages are currently in major version zero (``0.y.z``), which means that -anything may change at any time and the public API should not be considered -stable. - -****************************** -Contributor License Agreements -****************************** - -Before we can accept your pull requests you'll need to sign a Contributor -License Agreement (CLA): - -- **If you are an individual writing original source code** and **you own the - intellectual property**, then you'll need to sign an - `individual CLA `__. -- **If you work for a company that wants to allow you to contribute your work**, - then you'll need to sign a - `corporate CLA `__. - -You can sign these electronically (just scroll to the bottom). After that, -we'll be able to accept your pull requests. diff --git a/dialogflow_v2/gapic/agents_client.py b/dialogflow_v2/gapic/agents_client.py index adfd04213..319a21355 100644 --- a/dialogflow_v2/gapic/agents_client.py +++ b/dialogflow_v2/gapic/agents_client.py @@ -39,6 +39,7 @@ from dialogflow_v2.gapic.transports import agents_grpc_transport from dialogflow_v2.proto import agent_pb2 from dialogflow_v2.proto import agent_pb2_grpc +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 @@ -932,3 +933,80 @@ def restore_agent( empty_pb2.Empty, metadata_type=struct_pb2.Struct, ) + + def get_validation_result( + self, + parent=None, + language_code=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Gets agent validation result. Agent validation is performed during + training time and is updated automatically when training is completed. + + Example: + >>> import dialogflow_v2 + >>> + >>> client = dialogflow_v2.AgentsClient() + >>> + >>> response = client.get_validation_result() + + Args: + parent (str): Required. The project that the agent is associated with. Format: + ``projects/``. + language_code (str): Optional. The language for which you want a validation result. If not + specified, the agent's default language is used. `Many + languages `__ + are supported. Note: languages must be enabled in the agent before they + can be used. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.dialogflow_v2.types.ValidationResult` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "get_validation_result" not in self._inner_api_calls: + self._inner_api_calls[ + "get_validation_result" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_validation_result, + default_retry=self._method_configs["GetValidationResult"].retry, + default_timeout=self._method_configs["GetValidationResult"].timeout, + client_info=self._client_info, + ) + + request = agent_pb2.GetValidationResultRequest( + parent=parent, language_code=language_code + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["get_validation_result"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) diff --git a/dialogflow_v2/gapic/agents_client_config.py b/dialogflow_v2/gapic/agents_client_config.py index 0d252dfba..425f1066b 100644 --- a/dialogflow_v2/gapic/agents_client_config.py +++ b/dialogflow_v2/gapic/agents_client_config.py @@ -57,6 +57,11 @@ "retry_codes_name": "idempotent", "retry_params_name": "default", }, + "GetValidationResult": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, }, } } diff --git a/dialogflow_v2/gapic/contexts_client.py b/dialogflow_v2/gapic/contexts_client.py index 29a2905eb..c4425f1a1 100644 --- a/dialogflow_v2/gapic/contexts_client.py +++ b/dialogflow_v2/gapic/contexts_client.py @@ -38,6 +38,7 @@ from dialogflow_v2.proto import agent_pb2_grpc from dialogflow_v2.proto import context_pb2 from dialogflow_v2.proto import context_pb2_grpc +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 @@ -260,7 +261,11 @@ def list_contexts( Args: parent (str): Required. The session to list all contexts from. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users//sessions/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -349,7 +354,12 @@ def get_context( Args: name (str): Required. The name of the context. Format: - ``projects//agent/sessions//contexts/``. + ``projects//agent/sessions//contexts/`` + or + ``projects//agent/environments//users//sessions//contexts/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -425,7 +435,11 @@ def create_context( Args: parent (str): Required. The session to create a context for. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users//sessions/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. context (Union[dict, ~google.cloud.dialogflow_v2.types.Context]): Required. The context to create. If a dict is provided, it must be of the same form as the protobuf @@ -579,7 +593,12 @@ def delete_context( Args: name (str): Required. The name of the context to delete. Format: - ``projects//agent/sessions//contexts/``. + ``projects//agent/sessions//contexts/`` + or + ``projects//agent/environments//users//sessions//contexts/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -646,7 +665,11 @@ def delete_all_contexts( Args: parent (str): Required. The name of the session to delete all contexts from. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users//sessions/``. + If ``Environment ID`` is not specified we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. diff --git a/dialogflow_v2/gapic/entity_types_client.py b/dialogflow_v2/gapic/entity_types_client.py index c22bef2f4..4efa3ead2 100644 --- a/dialogflow_v2/gapic/entity_types_client.py +++ b/dialogflow_v2/gapic/entity_types_client.py @@ -43,6 +43,7 @@ from dialogflow_v2.proto import context_pb2_grpc from dialogflow_v2.proto import entity_type_pb2 from dialogflow_v2.proto import entity_type_pb2_grpc +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 diff --git a/dialogflow_v2/gapic/enums.py b/dialogflow_v2/gapic/enums.py index cdf62b4bf..10f193ac9 100644 --- a/dialogflow_v2/gapic/enums.py +++ b/dialogflow_v2/gapic/enums.py @@ -517,3 +517,23 @@ class MessageType(enum.IntEnum): MESSAGE_TYPE_UNSPECIFIED = 0 TRANSCRIPT = 1 END_OF_SINGLE_UTTERANCE = 2 + + +class ValidationError(object): + class Severity(enum.IntEnum): + """ + Represents a level of severity. + + Attributes: + SEVERITY_UNSPECIFIED (int): Not specified. This value should never be used. + INFO (int): The agent doesn't follow Dialogflow best practicies. + WARNING (int): The agent may not behave as expected. + ERROR (int): The agent may experience partial failures. + CRITICAL (int): The agent may completely fail. + """ + + SEVERITY_UNSPECIFIED = 0 + INFO = 1 + WARNING = 2 + ERROR = 3 + CRITICAL = 4 diff --git a/dialogflow_v2/gapic/intents_client.py b/dialogflow_v2/gapic/intents_client.py index 897f1ac96..4f4e092fd 100644 --- a/dialogflow_v2/gapic/intents_client.py +++ b/dialogflow_v2/gapic/intents_client.py @@ -45,6 +45,7 @@ from dialogflow_v2.proto import entity_type_pb2_grpc from dialogflow_v2.proto import intent_pb2 from dialogflow_v2.proto import intent_pb2_grpc +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 diff --git a/dialogflow_v2/gapic/session_entity_types_client.py b/dialogflow_v2/gapic/session_entity_types_client.py index 80c4cdd98..27f21c1fd 100644 --- a/dialogflow_v2/gapic/session_entity_types_client.py +++ b/dialogflow_v2/gapic/session_entity_types_client.py @@ -44,6 +44,7 @@ from dialogflow_v2.proto import intent_pb2_grpc from dialogflow_v2.proto import session_entity_type_pb2 from dialogflow_v2.proto import session_entity_type_pb2_grpc +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 @@ -270,7 +271,11 @@ def list_session_entity_types( Args: parent (str): Required. The session to list all session entity types from. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users// sessions/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -365,7 +370,12 @@ def get_session_entity_type( Args: name (str): Required. The name of the session entity type. Format: - ``projects//agent/sessions//entityTypes/``. + ``projects//agent/sessions//entityTypes/`` + or + ``projects//agent/environments//users//sessions//entityTypes/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -446,7 +456,11 @@ def create_session_entity_type( Args: parent (str): Required. The session to create a session entity type for. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users// sessions/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. session_entity_type (Union[dict, ~google.cloud.dialogflow_v2.types.SessionEntityType]): Required. The session entity type to create. If a dict is provided, it must be of the same form as the protobuf @@ -527,8 +541,7 @@ def update_session_entity_type( >>> response = client.update_session_entity_type(session_entity_type) Args: - session_entity_type (Union[dict, ~google.cloud.dialogflow_v2.types.SessionEntityType]): Required. The entity type to update. Format: - ``projects//agent/sessions//entityTypes/``. + session_entity_type (Union[dict, ~google.cloud.dialogflow_v2.types.SessionEntityType]): Required. The session entity type to update. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2.types.SessionEntityType` @@ -611,7 +624,12 @@ def delete_session_entity_type( Args: name (str): Required. The name of the entity type to delete. Format: - ``projects//agent/sessions//entityTypes/``. + ``projects//agent/sessions//entityTypes/`` + or + ``projects//agent/environments//users//sessions//entityTypes/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume default '-' + user. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. diff --git a/dialogflow_v2/gapic/sessions_client.py b/dialogflow_v2/gapic/sessions_client.py index c834cb23a..c0b62e2ed 100644 --- a/dialogflow_v2/gapic/sessions_client.py +++ b/dialogflow_v2/gapic/sessions_client.py @@ -45,6 +45,7 @@ from dialogflow_v2.proto import session_entity_type_pb2_grpc from dialogflow_v2.proto import session_pb2 from dialogflow_v2.proto import session_pb2_grpc +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 from google.protobuf import field_mask_pb2 @@ -216,6 +217,7 @@ def detect_intent( query_input, query_params=None, output_audio_config=None, + output_audio_config_mask=None, input_audio=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, @@ -241,10 +243,14 @@ def detect_intent( Args: session (str): Required. The name of the session this query is sent to. Format: - ``projects//agent/sessions/``. It's up to the - API caller to choose an appropriate session ID. It can be a random - number or some type of user identifier (preferably hashed). The length - of the session ID must not exceed 36 bytes. + ``projects//agent/sessions/``, or + ``projects//agent/environments//users//sessions/``. + If ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we are using "-". It's up + to the API caller to choose an appropriate ``Session ID`` and + ``User Id``. They can be a random number or some type of user and + session identifiers (preferably hashed). The length of the + ``Session ID`` and ``User ID`` must not exceed 36 characters. query_input (Union[dict, ~google.cloud.dialogflow_v2.types.QueryInput]): Required. The input specification. It can be set to: 1. an audio config @@ -256,19 +262,28 @@ def detect_intent( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2.types.QueryInput` - query_params (Union[dict, ~google.cloud.dialogflow_v2.types.QueryParameters]): Optional. The parameters of this query. + query_params (Union[dict, ~google.cloud.dialogflow_v2.types.QueryParameters]): The parameters of this query. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2.types.QueryParameters` - output_audio_config (Union[dict, ~google.cloud.dialogflow_v2.types.OutputAudioConfig]): Optional. Instructs the speech synthesizer how to generate the output + output_audio_config (Union[dict, ~google.cloud.dialogflow_v2.types.OutputAudioConfig]): Instructs the speech synthesizer how to generate the output audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2.types.OutputAudioConfig` - input_audio (bytes): Optional. The natural language speech audio to be processed. This field - should be populated iff ``query_input`` is set to an input audio config. - A single request can contain up to 1 minute of speech audio data. + output_audio_config_mask (Union[dict, ~google.cloud.dialogflow_v2.types.FieldMask]): Mask for ``output_audio_config`` indicating which settings in this + request-level config should override speech synthesizer settings defined + at agent-level. + + If unspecified or empty, ``output_audio_config`` replaces the + agent-level config in its entirety. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.dialogflow_v2.types.FieldMask` + input_audio (bytes): The natural language speech audio to be processed. This field should be + populated iff ``query_input`` is set to an input audio config. A single + request can contain up to 1 minute of speech audio data. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -304,6 +319,7 @@ def detect_intent( query_input=query_input, query_params=query_params, output_audio_config=output_audio_config, + output_audio_config_mask=output_audio_config_mask, input_audio=input_audio, ) if metadata is None: @@ -335,8 +351,6 @@ def streaming_detect_intent( and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). - EXPERIMENTAL: This method interface might change in the future. - Example: >>> import dialogflow_v2 >>> diff --git a/dialogflow_v2/gapic/transports/agents_grpc_transport.py b/dialogflow_v2/gapic/transports/agents_grpc_transport.py index 6c08c7f1d..c3783f96a 100644 --- a/dialogflow_v2/gapic/transports/agents_grpc_transport.py +++ b/dialogflow_v2/gapic/transports/agents_grpc_transport.py @@ -240,3 +240,17 @@ def restore_agent(self): deserialized response object. """ return self._stubs["agents_stub"].RestoreAgent + + @property + def get_validation_result(self): + """Return the gRPC stub for :meth:`AgentsClient.get_validation_result`. + + Gets agent validation result. Agent validation is performed during + training time and is updated automatically when training is completed. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["agents_stub"].GetValidationResult diff --git a/dialogflow_v2/proto/agent_pb2.py b/dialogflow_v2/proto/agent_pb2.py index 7e6e5ade0..3a79368d6 100644 --- a/dialogflow_v2/proto/agent_pb2.py +++ b/dialogflow_v2/proto/agent_pb2.py @@ -19,6 +19,9 @@ from google.api import client_pb2 as google_dot_api_dot_client__pb2 from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from dialogflow_v2.proto import ( + validation_result_pb2 as google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_validation__result__pb2, +) from google.longrunning import ( operations_pb2 as google_dot_longrunning_dot_operations__pb2, ) @@ -34,13 +37,14 @@ "\n\036com.google.cloud.dialogflow.v2B\nAgentProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2" ), serialized_pb=_b( - '\n,google/cloud/dialogflow_v2/proto/agent.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xf0\x06\n\x05\x41gent\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12"\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18supported_language_codes\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\navatar_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65nable_logging\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\nmatch_mode\x18\t \x01(\x0e\x32+.google.cloud.dialogflow.v2.Agent.MatchModeB\x03\xe0\x41\x01\x12%\n\x18\x63lassification_threshold\x18\n \x01(\x02\x42\x03\xe0\x41\x01\x12\x46\n\x0b\x61pi_version\x18\x0e \x01(\x0e\x32,.google.cloud.dialogflow.v2.Agent.ApiVersionB\x03\xe0\x41\x01\x12\x39\n\x04tier\x18\x0f \x01(\x0e\x32&.google.cloud.dialogflow.v2.Agent.TierB\x03\xe0\x41\x01"V\n\tMatchMode\x12\x1a\n\x16MATCH_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11MATCH_MODE_HYBRID\x10\x01\x12\x16\n\x12MATCH_MODE_ML_ONLY\x10\x02"l\n\nApiVersion\x12\x1b\n\x17\x41PI_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x41PI_VERSION_V1\x10\x01\x12\x12\n\x0e\x41PI_VERSION_V2\x10\x02\x12\x19\n\x15\x41PI_VERSION_V2_BETA_1\x10\x03"^\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x11\n\rTIER_STANDARD\x10\x01\x12\x13\n\x0fTIER_ENTERPRISE\x10\x02\x12\x18\n\x14TIER_ENTERPRISE_PLUS\x10\x03:>\xea\x41;\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x18projects/{project}/agent"V\n\x0fGetAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project"~\n\x0fSetAgentRequest\x12\x35\n\x05\x61gent\x18\x01 \x01(\x0b\x32!.google.cloud.dialogflow.v2.AgentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"Y\n\x12\x44\x65leteAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project"\x86\x01\n\x13SearchAgentsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x03 \x01(\t"b\n\x14SearchAgentsResponse\x12\x31\n\x06\x61gents\x18\x01 \x03(\x0b\x32!.google.cloud.dialogflow.v2.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"X\n\x11TrainAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project"q\n\x12\x45xportAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"\x90\x01\n\x12ImportAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"\x91\x01\n\x13RestoreAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent2\x8f\x0c\n\x06\x41gents\x12\x8a\x01\n\x08GetAgent\x12+.google.cloud.dialogflow.v2.GetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent".\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v2/{parent=projects/*}/agent\xda\x41\x06parent\x12\x96\x01\n\x08SetAgent\x12+.google.cloud.dialogflow.v2.SetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent":\x82\xd3\xe4\x93\x02,"#/v2/{agent.parent=projects/*}/agent:\x05\x61gent\xda\x41\x05\x61gent\x12\x85\x01\n\x0b\x44\x65leteAgent\x12..google.cloud.dialogflow.v2.DeleteAgentRequest\x1a\x16.google.protobuf.Empty".\x82\xd3\xe4\x93\x02\x1f*\x1d/v2/{parent=projects/*}/agent\xda\x41\x06parent\x12\xa8\x01\n\x0cSearchAgents\x12/.google.cloud.dialogflow.v2.SearchAgentsRequest\x1a\x30.google.cloud.dialogflow.v2.SearchAgentsResponse"5\x82\xd3\xe4\x93\x02&\x12$/v2/{parent=projects/*}/agent:search\xda\x41\x06parent\x12\xc5\x01\n\nTrainAgent\x12-.google.cloud.dialogflow.v2.TrainAgentRequest\x1a\x1d.google.longrunning.Operation"i\x82\xd3\xe4\x93\x02("#/v2/{parent=projects/*}/agent:train:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xe2\x01\n\x0b\x45xportAgent\x12..google.cloud.dialogflow.v2.ExportAgentRequest\x1a\x1d.google.longrunning.Operation"\x83\x01\x82\xd3\xe4\x93\x02)"$/v2/{parent=projects/*}/agent:export:\x01*\xda\x41\x06parent\xca\x41H\n.google.cloud.dialogflow.v2.ExportAgentResponse\x12\x16google.protobuf.Struct\x12\xbf\x01\n\x0bImportAgent\x12..google.cloud.dialogflow.v2.ImportAgentRequest\x1a\x1d.google.longrunning.Operation"a\x82\xd3\xe4\x93\x02)"$/v2/{parent=projects/*}/agent:import:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xc2\x01\n\x0cRestoreAgent\x12/.google.cloud.dialogflow.v2.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation"b\x82\xd3\xe4\x93\x02*"%/v2/{parent=projects/*}/agent:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\nAgentProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' + '\n,google/cloud/dialogflow_v2/proto/agent.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/dialogflow_v2/proto/validation_result.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xf0\x06\n\x05\x41gent\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12"\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18supported_language_codes\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\navatar_uri\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65nable_logging\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\x12\x44\n\nmatch_mode\x18\t \x01(\x0e\x32+.google.cloud.dialogflow.v2.Agent.MatchModeB\x03\xe0\x41\x01\x12%\n\x18\x63lassification_threshold\x18\n \x01(\x02\x42\x03\xe0\x41\x01\x12\x46\n\x0b\x61pi_version\x18\x0e \x01(\x0e\x32,.google.cloud.dialogflow.v2.Agent.ApiVersionB\x03\xe0\x41\x01\x12\x39\n\x04tier\x18\x0f \x01(\x0e\x32&.google.cloud.dialogflow.v2.Agent.TierB\x03\xe0\x41\x01"V\n\tMatchMode\x12\x1a\n\x16MATCH_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11MATCH_MODE_HYBRID\x10\x01\x12\x16\n\x12MATCH_MODE_ML_ONLY\x10\x02"l\n\nApiVersion\x12\x1b\n\x17\x41PI_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x41PI_VERSION_V1\x10\x01\x12\x12\n\x0e\x41PI_VERSION_V2\x10\x02\x12\x19\n\x15\x41PI_VERSION_V2_BETA_1\x10\x03"^\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x11\n\rTIER_STANDARD\x10\x01\x12\x13\n\x0fTIER_ENTERPRISE\x10\x02\x12\x18\n\x14TIER_ENTERPRISE_PLUS\x10\x03:>\xea\x41;\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x18projects/{project}/agent"V\n\x0fGetAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project"~\n\x0fSetAgentRequest\x12\x35\n\x05\x61gent\x18\x01 \x01(\x0b\x32!.google.cloud.dialogflow.v2.AgentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"Y\n\x12\x44\x65leteAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project"\x86\x01\n\x13SearchAgentsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x03 \x01(\t"b\n\x14SearchAgentsResponse\x12\x31\n\x06\x61gents\x18\x01 \x03(\x0b\x32!.google.cloud.dialogflow.v2.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"X\n\x11TrainAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project"q\n\x12\x45xportAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x02"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"\x90\x01\n\x12ImportAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"\x91\x01\n\x13RestoreAgentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"}\n\x1aGetValidationResultRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x32\xc5\r\n\x06\x41gents\x12\x8a\x01\n\x08GetAgent\x12+.google.cloud.dialogflow.v2.GetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent".\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v2/{parent=projects/*}/agent\xda\x41\x06parent\x12\x96\x01\n\x08SetAgent\x12+.google.cloud.dialogflow.v2.SetAgentRequest\x1a!.google.cloud.dialogflow.v2.Agent":\x82\xd3\xe4\x93\x02,"#/v2/{agent.parent=projects/*}/agent:\x05\x61gent\xda\x41\x05\x61gent\x12\x85\x01\n\x0b\x44\x65leteAgent\x12..google.cloud.dialogflow.v2.DeleteAgentRequest\x1a\x16.google.protobuf.Empty".\x82\xd3\xe4\x93\x02\x1f*\x1d/v2/{parent=projects/*}/agent\xda\x41\x06parent\x12\xa8\x01\n\x0cSearchAgents\x12/.google.cloud.dialogflow.v2.SearchAgentsRequest\x1a\x30.google.cloud.dialogflow.v2.SearchAgentsResponse"5\x82\xd3\xe4\x93\x02&\x12$/v2/{parent=projects/*}/agent:search\xda\x41\x06parent\x12\xc5\x01\n\nTrainAgent\x12-.google.cloud.dialogflow.v2.TrainAgentRequest\x1a\x1d.google.longrunning.Operation"i\x82\xd3\xe4\x93\x02("#/v2/{parent=projects/*}/agent:train:\x01*\xda\x41\x06parent\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xe2\x01\n\x0b\x45xportAgent\x12..google.cloud.dialogflow.v2.ExportAgentRequest\x1a\x1d.google.longrunning.Operation"\x83\x01\x82\xd3\xe4\x93\x02)"$/v2/{parent=projects/*}/agent:export:\x01*\xda\x41\x06parent\xca\x41H\n.google.cloud.dialogflow.v2.ExportAgentResponse\x12\x16google.protobuf.Struct\x12\xbf\x01\n\x0bImportAgent\x12..google.cloud.dialogflow.v2.ImportAgentRequest\x1a\x1d.google.longrunning.Operation"a\x82\xd3\xe4\x93\x02)"$/v2/{parent=projects/*}/agent:import:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xc2\x01\n\x0cRestoreAgent\x12/.google.cloud.dialogflow.v2.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation"b\x82\xd3\xe4\x93\x02*"%/v2/{parent=projects/*}/agent:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xb3\x01\n\x13GetValidationResult\x12\x36.google.cloud.dialogflow.v2.GetValidationResultRequest\x1a,.google.cloud.dialogflow.v2.ValidationResult"6\x82\xd3\xe4\x93\x02\x30\x12./v2/{parent=projects/*}/agent/validationResult\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x99\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\nAgentProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_validation__result__pb2.DESCRIPTOR, google_dot_longrunning_dot_operations__pb2.DESCRIPTOR, google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, @@ -78,8 +82,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=816, - serialized_end=902, + serialized_start=874, + serialized_end=960, ) _sym_db.RegisterEnumDescriptor(_AGENT_MATCHMODE) @@ -112,8 +116,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=904, - serialized_end=1012, + serialized_start=962, + serialized_end=1070, ) _sym_db.RegisterEnumDescriptor(_AGENT_APIVERSION) @@ -150,8 +154,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1014, - serialized_end=1108, + serialized_start=1072, + serialized_end=1166, ) _sym_db.RegisterEnumDescriptor(_AGENT_TIER) @@ -392,8 +396,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=292, - serialized_end=1172, + serialized_start=350, + serialized_end=1230, ) @@ -433,8 +437,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1174, - serialized_end=1260, + serialized_start=1232, + serialized_end=1318, ) @@ -490,8 +494,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1262, - serialized_end=1388, + serialized_start=1320, + serialized_end=1446, ) @@ -531,8 +535,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1390, - serialized_end=1479, + serialized_start=1448, + serialized_end=1537, ) @@ -608,8 +612,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1482, - serialized_end=1616, + serialized_start=1540, + serialized_end=1674, ) @@ -665,8 +669,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1618, - serialized_end=1716, + serialized_start=1676, + serialized_end=1774, ) @@ -706,8 +710,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1718, - serialized_end=1806, + serialized_start=1776, + serialized_end=1864, ) @@ -765,8 +769,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1808, - serialized_end=1921, + serialized_start=1866, + serialized_end=1979, ) @@ -830,8 +834,8 @@ fields=[], ) ], - serialized_start=1923, - serialized_end=1999, + serialized_start=1981, + serialized_end=2057, ) @@ -915,8 +919,8 @@ fields=[], ) ], - serialized_start=2002, - serialized_end=2146, + serialized_start=2060, + serialized_end=2204, ) @@ -1000,8 +1004,67 @@ fields=[], ) ], - serialized_start=2149, - serialized_end=2294, + serialized_start=2207, + serialized_end=2352, +) + + +_GETVALIDATIONRESULTREQUEST = _descriptor.Descriptor( + name="GetValidationResultRequest", + full_name="google.cloud.dialogflow.v2.GetValidationResultRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.dialogflow.v2.GetValidationResultRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A-\n+cloudresourcemanager.googleapis.com/Project" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="language_code", + full_name="google.cloud.dialogflow.v2.GetValidationResultRequest.language_code", + index=1, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\001"), + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2354, + serialized_end=2479, ) _AGENT.fields_by_name["match_mode"].enum_type = _AGENT_MATCHMODE @@ -1062,6 +1125,9 @@ DESCRIPTOR.message_types_by_name["ExportAgentResponse"] = _EXPORTAGENTRESPONSE DESCRIPTOR.message_types_by_name["ImportAgentRequest"] = _IMPORTAGENTREQUEST DESCRIPTOR.message_types_by_name["RestoreAgentRequest"] = _RESTOREAGENTREQUEST +DESCRIPTOR.message_types_by_name[ + "GetValidationResultRequest" +] = _GETVALIDATIONRESULTREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) Agent = _reflection.GeneratedProtocolMessageType( @@ -1366,6 +1432,32 @@ ) _sym_db.RegisterMessage(RestoreAgentRequest) +GetValidationResultRequest = _reflection.GeneratedProtocolMessageType( + "GetValidationResultRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETVALIDATIONRESULTREQUEST, + __module__="google.cloud.dialogflow_v2.proto.agent_pb2", + __doc__="""The request message for + [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult]. + + + Attributes: + parent: + Required. The project that the agent is associated with. + Format: ``projects/``. + language_code: + Optional. The language for which you want a validation result. + If not specified, the agent's default language is used. `Many + languages `__ are supported. Note: languages must be enabled in + the agent before they can be used. + """, + # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetValidationResultRequest) + ), +) +_sym_db.RegisterMessage(GetValidationResultRequest) + DESCRIPTOR._options = None _AGENT.fields_by_name["parent"]._options = None @@ -1392,6 +1484,8 @@ _EXPORTAGENTREQUEST.fields_by_name["agent_uri"]._options = None _IMPORTAGENTREQUEST.fields_by_name["parent"]._options = None _RESTOREAGENTREQUEST.fields_by_name["parent"]._options = None +_GETVALIDATIONRESULTREQUEST.fields_by_name["parent"]._options = None +_GETVALIDATIONRESULTREQUEST.fields_by_name["language_code"]._options = None _AGENTS = _descriptor.ServiceDescriptor( name="Agents", @@ -1401,8 +1495,8 @@ serialized_options=_b( "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), - serialized_start=2297, - serialized_end=3848, + serialized_start=2482, + serialized_end=4215, methods=[ _descriptor.MethodDescriptor( name="GetAgent", @@ -1492,6 +1586,17 @@ '\202\323\344\223\002*"%/v2/{parent=projects/*}/agent:restore:\001*\312A/\n\025google.protobuf.Empty\022\026google.protobuf.Struct' ), ), + _descriptor.MethodDescriptor( + name="GetValidationResult", + full_name="google.cloud.dialogflow.v2.Agents.GetValidationResult", + index=8, + containing_service=None, + input_type=_GETVALIDATIONRESULTREQUEST, + output_type=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_validation__result__pb2._VALIDATIONRESULT, + serialized_options=_b( + "\202\323\344\223\0020\022./v2/{parent=projects/*}/agent/validationResult" + ), + ), ], ) _sym_db.RegisterServiceDescriptor(_AGENTS) diff --git a/dialogflow_v2/proto/agent_pb2_grpc.py b/dialogflow_v2/proto/agent_pb2_grpc.py index 0192da477..afffcd76f 100644 --- a/dialogflow_v2/proto/agent_pb2_grpc.py +++ b/dialogflow_v2/proto/agent_pb2_grpc.py @@ -4,6 +4,9 @@ from dialogflow_v2.proto import ( agent_pb2 as google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_agent__pb2, ) +from dialogflow_v2.proto import ( + validation_result_pb2 as google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_validation__result__pb2, +) from google.longrunning import ( operations_pb2 as google_dot_longrunning_dot_operations__pb2, ) @@ -87,6 +90,11 @@ def __init__(self, channel): request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_agent__pb2.RestoreAgentRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) + self.GetValidationResult = channel.unary_unary( + "/google.cloud.dialogflow.v2.Agents/GetValidationResult", + request_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_agent__pb2.GetValidationResultRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_validation__result__pb2.ValidationResult.FromString, + ) class AgentsServicer(object): @@ -197,6 +205,14 @@ def RestoreAgent(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def GetValidationResult(self, request, context): + """Gets agent validation result. Agent validation is performed during + training time and is updated automatically when training is completed. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def add_AgentsServicer_to_server(servicer, server): rpc_method_handlers = { @@ -240,6 +256,11 @@ def add_AgentsServicer_to_server(servicer, server): request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_agent__pb2.RestoreAgentRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), + "GetValidationResult": grpc.unary_unary_rpc_method_handler( + servicer.GetValidationResult, + request_deserializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_agent__pb2.GetValidationResultRequest.FromString, + response_serializer=google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_validation__result__pb2.ValidationResult.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( "google.cloud.dialogflow.v2.Agents", rpc_method_handlers diff --git a/dialogflow_v2/proto/audio_config_pb2.py b/dialogflow_v2/proto/audio_config_pb2.py index c0623fb7a..7b3a05634 100644 --- a/dialogflow_v2/proto/audio_config_pb2.py +++ b/dialogflow_v2/proto/audio_config_pb2.py @@ -30,7 +30,7 @@ "\n\036com.google.cloud.dialogflow.v2B\020AudioConfigProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2" ), serialized_pb=_b( - '\n3google/cloud/dialogflow_v2/proto/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto"/\n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\x81\x03\n\x10InputAudioConfig\x12\x41\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x1d\n\x10\x65nable_word_info\x18\r \x01(\x08\x42\x03\xe0\x41\x01\x12\x1b\n\x0cphrase_hints\x18\x04 \x03(\tB\x05\x18\x01\xe0\x41\x01\x12G\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContextB\x03\xe0\x41\x01\x12\x12\n\x05model\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08"f\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGender"\xb3\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12?\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParams"\xcd\x01\n\x11OutputAudioConfig\x12G\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xa4\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x42\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' + '\n3google/cloud/dialogflow_v2/proto/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto"/\n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\xef\x02\n\x10InputAudioConfig\x12\x41\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08"f\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGender"\xb3\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12?\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParams"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xa4\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x42\x9f\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' ), dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, @@ -105,8 +105,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1286, - serialized_end=1537, + serialized_start=1273, + serialized_end=1524, ) _sym_db.RegisterEnumDescriptor(_AUDIOENCODING) @@ -140,8 +140,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1539, - serialized_end=1657, + serialized_start=1526, + serialized_end=1644, ) _sym_db.RegisterEnumDescriptor(_SPEECHMODELVARIANT) @@ -183,8 +183,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1660, - serialized_end=1801, + serialized_start=1647, + serialized_end=1788, ) _sym_db.RegisterEnumDescriptor(_SSMLVOICEGENDER) @@ -226,8 +226,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1804, - serialized_end=1968, + serialized_start=1791, + serialized_end=1955, ) _sym_db.RegisterEnumDescriptor(_OUTPUTAUDIOENCODING) @@ -480,7 +480,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -498,7 +498,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001\340A\001"), + serialized_options=_b("\030\001"), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -516,7 +516,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -534,7 +534,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -583,7 +583,7 @@ extension_ranges=[], oneofs=[], serialized_start=404, - serialized_end=789, + serialized_end=771, ) @@ -639,8 +639,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=791, - serialized_end=893, + serialized_start=773, + serialized_end=875, ) @@ -750,8 +750,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=896, - serialized_end=1075, + serialized_start=878, + serialized_end=1057, ) @@ -777,7 +777,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=_b("\340A\002"), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -825,8 +825,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1078, - serialized_end=1283, + serialized_start=1060, + serialized_end=1270, ) _SPEECHWORDINFO.fields_by_name[ @@ -954,51 +954,49 @@ the same session do not necessarily need to specify the same language. enable_word_info: - Optional. If ``true``, Dialogflow returns + If ``true``, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.v2.SpeechWordInfo] in [StreamingRecognitionResult][google.cloud.dialogflow.v2.Stream ingRecognitionResult] with information about the recognized speech words, e.g. start and end time offsets. If false or unspecified, Speech doesn't return any word-level information. phrase_hints: - Optional. A list of strings containing words and phrases that - the speech recognizer should recognize with higher likelihood. - See `the Cloud Speech documentation - `__ for more details. This field is deprecated. Please - use speech\_contexts instead. If you specify both - phrase\_hints and speech\_contexts, Dialogflow - will treat the phrase\_hints as a single additional - SpeechContext. + A list of strings containing words and phrases that the speech + recognizer should recognize with higher likelihood. See `the + Cloud Speech documentation `__ for more details. This + field is deprecated. Please use `speech\_contexts` + instead. If you specify both `phrase\_hints` and + `speech\_contexts`, Dialogflow will treat the + `phrase\_hints` as a single additional `SpeechContext`. speech_contexts: - Optional. Context information to assist speech recognition. - See `the Cloud Speech documentation - `__ for more details. + Context information to assist speech recognition. See `the + Cloud Speech documentation `__ for more details. model: - Optional. Which Speech model to select for the given request. - Select the model best suited to your domain to get best - results. If a model is not explicitly specified, then we auto- - select a model based on the parameters in the - InputAudioConfig. If enhanced speech model is enabled for the - agent and an enhanced version of the specified model for the - language does not exist, then the speech is recognized using - the standard version of the specified model. Refer to `Cloud - Speech API documentation `__ for more details. + Which Speech model to select for the given request. Select the + model best suited to your domain to get best results. If a + model is not explicitly specified, then we auto-select a model + based on the parameters in the InputAudioConfig. If enhanced + speech model is enabled for the agent and an enhanced version + of the specified model for the language does not exist, then + the speech is recognized using the standard version of the + specified model. Refer to `Cloud Speech API documentation + `__ for more details. model_variant: - Optional. Which variant of the [Speech + Which variant of the [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. single_utterance: - Optional. If ``false`` (default), recognition does not cease - until the client closes the stream. If ``true``, the - recognizer will detect a single spoken utterance in input - audio. Recognition ceases when it detects the audio's voice - has stopped or paused. In this case, once a detected intent is - received, the client should close the stream and start a new - request with a new stream as needed. Note: This setting is - relevant only for streaming methods. Note: When specified, + If ``false`` (default), recognition does not cease until the + client closes the stream. If ``true``, the recognizer will + detect a single spoken utterance in input audio. Recognition + ceases when it detects the audio's voice has stopped or + paused. In this case, once a detected intent is received, the + client should close the stream and start a new request with a + new stream as needed. Note: This setting is relevant only for + streaming methods. Note: When specified, InputAudioConfig.single\_utterance takes precedence over StreamingDetectIntentRequest.single\_utterance. """, @@ -1095,14 +1093,14 @@ audio_encoding: Required. Audio encoding of the synthesized audio content. sample_rate_hertz: - Optional. The synthesis sample rate (in hertz) for this audio. - If not provided, then the synthesizer will use the default - sample rate based on the audio encoding. If this is different - from the voice's natural sample rate, then the synthesizer - will honor this request by converting to the desired sample - rate (which might result in worse audio quality). + The synthesis sample rate (in hertz) for this audio. If not + provided, then the synthesizer will use the default sample + rate based on the audio encoding. If this is different from + the voice's natural sample rate, then the synthesizer will + honor this request by converting to the desired sample rate + (which might result in worse audio quality). synthesize_speech_config: - Optional. Configuration of how speech should be synthesized. + Configuration of how speech should be synthesized. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.OutputAudioConfig) ), @@ -1111,8 +1109,6 @@ DESCRIPTOR._options = None -_INPUTAUDIOCONFIG.fields_by_name["enable_word_info"]._options = None _INPUTAUDIOCONFIG.fields_by_name["phrase_hints"]._options = None -_INPUTAUDIOCONFIG.fields_by_name["speech_contexts"]._options = None -_INPUTAUDIOCONFIG.fields_by_name["model"]._options = None +_OUTPUTAUDIOCONFIG.fields_by_name["audio_encoding"]._options = None # @@protoc_insertion_point(module_scope) diff --git a/dialogflow_v2/proto/context_pb2.py b/dialogflow_v2/proto/context_pb2.py index 07acd75da..bc8e0d8cb 100644 --- a/dialogflow_v2/proto/context_pb2.py +++ b/dialogflow_v2/proto/context_pb2.py @@ -32,7 +32,7 @@ "\n\036com.google.cloud.dialogflow.v2B\014ContextProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2" ), serialized_pb=_b( - '\n.google/cloud/dialogflow_v2/proto/context.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto"\xd3\x01\n\x07\x43ontext\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0elifespan_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x30\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01:f\xea\x41\x63\n!dialogflow.googleapis.com/Context\x12>projects/{project}/agent/sessions/{session}/contexts/{context}"[\n\x13ListContextsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"f\n\x14ListContextsResponse\x12\x35\n\x08\x63ontexts\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"L\n\x11GetContextRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context"f\n\x14\x43reateContextRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x07\x63ontext\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x02"\x87\x01\n\x14UpdateContextRequest\x12\x39\n\x07\x63ontext\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"O\n\x14\x44\x65leteContextRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context"/\n\x18\x44\x65leteAllContextsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x32\xf2\x08\n\x08\x43ontexts\x12\xb5\x01\n\x0cListContexts\x12/.google.cloud.dialogflow.v2.ListContextsRequest\x1a\x30.google.cloud.dialogflow.v2.ListContextsResponse"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{parent=projects/*/agent/sessions/*}/contexts\xda\x41\x06parent\x12\x9b\x01\n\nGetContext\x12-.google.cloud.dialogflow.v2.GetContextRequest\x1a#.google.cloud.dialogflow.v2.Context"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v2/{name=projects/*/agent/sessions/*/contexts/*}\x12\xaa\x01\n\rCreateContext\x12\x30.google.cloud.dialogflow.v2.CreateContextRequest\x1a#.google.cloud.dialogflow.v2.Context"B\x82\xd3\xe4\x93\x02<"1/v2/{parent=projects/*/agent/sessions/*}/contexts:\x07\x63ontext\x12\xb2\x01\n\rUpdateContext\x12\x30.google.cloud.dialogflow.v2.UpdateContextRequest\x1a#.google.cloud.dialogflow.v2.Context"J\x82\xd3\xe4\x93\x02\x44\x32\x39/v2/{context.name=projects/*/agent/sessions/*/contexts/*}:\x07\x63ontext\x12\x94\x01\n\rDeleteContext\x12\x30.google.cloud.dialogflow.v2.DeleteContextRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02\x33*1/v2/{name=projects/*/agent/sessions/*/contexts/*}\x12\x9c\x01\n\x11\x44\x65leteAllContexts\x12\x34.google.cloud.dialogflow.v2.DeleteAllContextsRequest\x1a\x16.google.protobuf.Empty"9\x82\xd3\xe4\x93\x02\x33*1/v2/{parent=projects/*/agent/sessions/*}/contexts\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0c\x43ontextProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' + '\n.google/cloud/dialogflow_v2/proto/context.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto"\xd3\x01\n\x07\x43ontext\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0elifespan_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x30\n\nparameters\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01:f\xea\x41\x63\n!dialogflow.googleapis.com/Context\x12>projects/{project}/agent/sessions/{session}/contexts/{context}"[\n\x13ListContextsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"f\n\x14ListContextsResponse\x12\x35\n\x08\x63ontexts\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"L\n\x11GetContextRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context"\x8c\x01\n\x14\x43reateContextRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Context\x12\x39\n\x07\x63ontext\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x02"\x87\x01\n\x14UpdateContextRequest\x12\x39\n\x07\x63ontext\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"O\n\x14\x44\x65leteContextRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context"U\n\x18\x44\x65leteAllContextsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Context2\x9a\r\n\x08\x43ontexts\x12\x82\x02\n\x0cListContexts\x12/.google.cloud.dialogflow.v2.ListContextsRequest\x1a\x30.google.cloud.dialogflow.v2.ListContextsResponse"\x8e\x01\x82\xd3\xe4\x93\x02\x7f\x12\x31/v2/{parent=projects/*/agent/sessions/*}/contextsZJ\x12H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts\xda\x41\x06parent\x12\xef\x01\n\nGetContext\x12-.google.cloud.dialogflow.v2.GetContextRequest\x1a#.google.cloud.dialogflow.v2.Context"\x8c\x01\x82\xd3\xe4\x93\x02\x7f\x12\x31/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ\x12H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}\xda\x41\x04name\x12\x92\x02\n\rCreateContext\x12\x30.google.cloud.dialogflow.v2.CreateContextRequest\x1a#.google.cloud.dialogflow.v2.Context"\xa9\x01\x82\xd3\xe4\x93\x02\x91\x01"1/v2/{parent=projects/*/agent/sessions/*}/contexts:\x07\x63ontextZS"H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts:\x07\x63ontext\xda\x41\x0eparent,context\x12\xa7\x02\n\rUpdateContext\x12\x30.google.cloud.dialogflow.v2.UpdateContextRequest\x1a#.google.cloud.dialogflow.v2.Context"\xbe\x01\x82\xd3\xe4\x93\x02\xa1\x01\x32\x39/v2/{context.name=projects/*/agent/sessions/*/contexts/*}:\x07\x63ontextZ[2P/v2/{context.name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}:\x07\x63ontext\xda\x41\x13\x63ontext,update_mask\x12\xe8\x01\n\rDeleteContext\x12\x30.google.cloud.dialogflow.v2.DeleteContextRequest\x1a\x16.google.protobuf.Empty"\x8c\x01\x82\xd3\xe4\x93\x02\x7f*1/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ*H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}\xda\x41\x04name\x12\xf2\x01\n\x11\x44\x65leteAllContexts\x12\x34.google.cloud.dialogflow.v2.DeleteAllContextsRequest\x1a\x16.google.protobuf.Empty"\x8e\x01\x82\xd3\xe4\x93\x02\x7f*1/v2/{parent=projects/*/agent/sessions/*}/contextsZJ*H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts\xda\x41\x06parent\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0c\x43ontextProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -318,7 +318,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=_b( + "\340A\002\372A#\022!dialogflow.googleapis.com/Context" + ), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -348,8 +350,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=775, - serialized_end=877, + serialized_start=776, + serialized_end=916, ) @@ -405,8 +407,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=880, - serialized_end=1015, + serialized_start=919, + serialized_end=1054, ) @@ -446,8 +448,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1017, - serialized_end=1096, + serialized_start=1056, + serialized_end=1135, ) @@ -473,7 +475,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=_b( + "\340A\002\372A#\022!dialogflow.googleapis.com/Context" + ), file=DESCRIPTOR, ) ], @@ -485,8 +489,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1098, - serialized_end=1145, + serialized_start=1137, + serialized_end=1222, ) _CONTEXT.fields_by_name[ @@ -521,13 +525,18 @@ name: Required. The unique identifier of the context. Format: ``projects//agent/sessions//contexts/``. The ``Context ID`` is always - converted to lowercase, may only contain characters in - [a-zA-Z0-9\_-%] and may be at most 250 bytes long. The - following context names are reserved for internal use by - Dialogflow. You should not use these contexts or create - contexts with these names: - ``__system_counters__`` - - ``*_id_dialog_context`` - ``*_dialog_params_size`` + ID>/contexts/``, or ``projects//agent/environments//users//sessions//contexts/``. The + ``Context ID`` is always converted to lowercase, may only + contain characters in a-zA-Z0-9\_-% and may be at most 250 + bytes long. If ``Environment ID`` is not specified, we assume + default 'draft' environment. If ``User ID`` is not specified, + we assume default '-' user. The following context names are + reserved for internal use by Dialogflow. You should not use + these contexts or create contexts with these names: - + ``__system_counters__`` - ``*_id_dialog_context`` - + ``*_dialog_params_size`` lifespan_count: Optional. The number of conversational query requests after which the context expires. If set to ``0`` (the default) the @@ -557,7 +566,11 @@ Attributes: parent: Required. The session to list all contexts from. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users//sessions/``. If ``Environment + ID`` is not specified, we assume default 'draft' environment. + If ``User ID`` is not specified, we assume default '-' user. page_size: Optional. The maximum number of items to return in a single page. By default 100 and at most 1000. @@ -606,7 +619,12 @@ Attributes: name: Required. The name of the context. Format: ``projects//agent/sessions//contexts/``. + ID>/agent/sessions//contexts/`` or + ``projects//agent/environments//users//sessions//contexts/``. If ``Environment ID`` is not specified, we assume + default 'draft' environment. If ``User ID`` is not specified, + we assume default '-' user. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetContextRequest) ), @@ -626,7 +644,11 @@ Attributes: parent: Required. The session to create a context for. Format: - ``projects//agent/sessions/``. + ``projects//agent/sessions/`` or + ``projects//agent/environments//users//sessions/``. If ``Environment + ID`` is not specified, we assume default 'draft' environment. + If ``User ID`` is not specified, we assume default '-' user. context: Required. The context to create. """, @@ -670,7 +692,12 @@ name: Required. The name of the context to delete. Format: ``projects//agent/sessions//contexts/``. + ID>/contexts/`` or ``projects//agent/environments//users//sessions//contexts/``. If + ``Environment ID`` is not specified, we assume default 'draft' + environment. If ``User ID`` is not specified, we assume + default '-' user. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteContextRequest) ), @@ -690,7 +717,11 @@ Attributes: parent: Required. The name of the session to delete all contexts from. - Format: ``projects//agent/sessions/``. + Format: ``projects//agent/sessions/`` + or ``projects//agent/environments//users//sessions/``. If ``Environment + ID`` is not specified we assume default 'draft' environment. + If ``User ID`` is not specified, we assume default '-' user. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteAllContextsRequest) ), @@ -722,8 +753,8 @@ serialized_options=_b( "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), - serialized_start=1148, - serialized_end=2286, + serialized_start=1225, + serialized_end=2915, methods=[ _descriptor.MethodDescriptor( name="ListContexts", @@ -733,7 +764,7 @@ input_type=_LISTCONTEXTSREQUEST, output_type=_LISTCONTEXTSRESPONSE, serialized_options=_b( - "\202\323\344\223\0023\0221/v2/{parent=projects/*/agent/sessions/*}/contexts\332A\006parent" + "\202\323\344\223\002\177\0221/v2/{parent=projects/*/agent/sessions/*}/contextsZJ\022H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts\332A\006parent" ), ), _descriptor.MethodDescriptor( @@ -744,7 +775,7 @@ input_type=_GETCONTEXTREQUEST, output_type=_CONTEXT, serialized_options=_b( - "\202\323\344\223\0023\0221/v2/{name=projects/*/agent/sessions/*/contexts/*}" + "\202\323\344\223\002\177\0221/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ\022H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}\332A\004name" ), ), _descriptor.MethodDescriptor( @@ -755,7 +786,7 @@ input_type=_CREATECONTEXTREQUEST, output_type=_CONTEXT, serialized_options=_b( - '\202\323\344\223\002<"1/v2/{parent=projects/*/agent/sessions/*}/contexts:\007context' + '\202\323\344\223\002\221\001"1/v2/{parent=projects/*/agent/sessions/*}/contexts:\007contextZS"H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts:\007context\332A\016parent,context' ), ), _descriptor.MethodDescriptor( @@ -766,7 +797,7 @@ input_type=_UPDATECONTEXTREQUEST, output_type=_CONTEXT, serialized_options=_b( - "\202\323\344\223\002D29/v2/{context.name=projects/*/agent/sessions/*/contexts/*}:\007context" + "\202\323\344\223\002\241\00129/v2/{context.name=projects/*/agent/sessions/*/contexts/*}:\007contextZ[2P/v2/{context.name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}:\007context\332A\023context,update_mask" ), ), _descriptor.MethodDescriptor( @@ -777,7 +808,7 @@ input_type=_DELETECONTEXTREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=_b( - "\202\323\344\223\0023*1/v2/{name=projects/*/agent/sessions/*/contexts/*}" + "\202\323\344\223\002\177*1/v2/{name=projects/*/agent/sessions/*/contexts/*}ZJ*H/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}\332A\004name" ), ), _descriptor.MethodDescriptor( @@ -788,7 +819,7 @@ input_type=_DELETEALLCONTEXTSREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=_b( - "\202\323\344\223\0023*1/v2/{parent=projects/*/agent/sessions/*}/contexts" + "\202\323\344\223\002\177*1/v2/{parent=projects/*/agent/sessions/*}/contextsZJ*H/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts\332A\006parent" ), ), ], diff --git a/dialogflow_v2/proto/entity_type_pb2.py b/dialogflow_v2/proto/entity_type_pb2.py index 193c4983c..cf5462e84 100644 --- a/dialogflow_v2/proto/entity_type_pb2.py +++ b/dialogflow_v2/proto/entity_type_pb2.py @@ -34,7 +34,7 @@ "\n\036com.google.cloud.dialogflow.v2B\017EntityTypeProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2" ), serialized_pb=_b( - '\n2google/cloud/dialogflow_v2/proto/entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xf8\x04\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x04kind\x18\x03 \x01(\x0e\x32+.google.cloud.dialogflow.v2.EntityType.KindB\x03\xe0\x41\x02\x12Z\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32\x38.google.cloud.dialogflow.v2.EntityType.AutoExpansionModeB\x03\xe0\x41\x01\x12\x44\n\x08\x65ntities\x18\x06 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x01\x12$\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x33\n\x06\x45ntity\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x02"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:]\xea\x41Z\n$dialogflow.googleapis.com/EntityType\x12\x32projects/{project}/agent/entityTypes/{entity_type}"\x9e\x01\n\x16ListEntityTypesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01"p\n\x17ListEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"n\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01"\xb0\x01\n\x17\x43reateEntityTypeRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12@\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01"\xad\x01\n\x17UpdateEntityTypeRequest\x12@\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"U\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType"\xb1\x02\n\x1d\x42\x61tchUpdateEntityTypesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x1f\n\x15\x65ntity_type_batch_uri\x18\x02 \x01(\tH\x00\x12O\n\x18\x65ntity_type_batch_inline\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.EntityTypeBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x13\n\x11\x65ntity_type_batch"^\n\x1e\x42\x61tchUpdateEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType"x\n\x1d\x42\x61tchDeleteEntityTypesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x1e\n\x11\x65ntity_type_names\x18\x02 \x03(\tB\x03\xe0\x41\x02"\xbc\x01\n\x1a\x42\x61tchCreateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01"\xf2\x01\n\x1a\x42\x61tchUpdateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"\x92\x01\n\x1a\x42\x61tchDeleteEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rentity_values\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01"O\n\x0f\x45ntityTypeBatch\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType2\xe4\x13\n\x0b\x45ntityTypes\x12\xcd\x01\n\x0fListEntityTypes\x12\x32.google.cloud.dialogflow.v2.ListEntityTypesRequest\x1a\x33.google.cloud.dialogflow.v2.ListEntityTypesResponse"Q\x82\xd3\xe4\x93\x02+\x12)/v2/{parent=projects/*/agent}/entityTypes\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xb8\x01\n\rGetEntityType\x12\x30.google.cloud.dialogflow.v2.GetEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType"M\x82\xd3\xe4\x93\x02+\x12)/v2/{name=projects/*/agent/entityTypes/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\xe7\x01\n\x10\x43reateEntityType\x12\x33.google.cloud.dialogflow.v2.CreateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType"v\x82\xd3\xe4\x93\x02\x38")/v2/{parent=projects/*/agent}/entityTypes:\x0b\x65ntity_type\xda\x41\x12parent,entity_type\xda\x41 parent,entity_type,language_code\x12\xe5\x01\n\x10UpdateEntityType\x12\x33.google.cloud.dialogflow.v2.UpdateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType"t\x82\xd3\xe4\x93\x02\x44\x32\x35/v2/{entity_type.name=projects/*/agent/entityTypes/*}:\x0b\x65ntity_type\xda\x41\x0b\x65ntity_type\xda\x41\x19\x65ntity_type,language_code\x12\x99\x01\n\x10\x44\x65leteEntityType\x12\x33.google.cloud.dialogflow.v2.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty"8\x82\xd3\xe4\x93\x02+*)/v2/{name=projects/*/agent/entityTypes/*}\xda\x41\x04name\x12\x8b\x02\n\x16\x42\x61tchUpdateEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest\x1a\x1d.google.longrunning.Operation"\x96\x01\x82\xd3\xe4\x93\x02:"5/v2/{parent=projects/*/agent}/entityTypes:batchUpdate:\x01*\xca\x41S\n9google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse\x12\x16google.protobuf.Struct\x12\xe6\x01\n\x16\x42\x61tchDeleteEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest\x1a\x1d.google.longrunning.Operation"r\x82\xd3\xe4\x93\x02:"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\x9e\x02\n\x13\x42\x61tchCreateEntities\x12\x36.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest\x1a\x1d.google.longrunning.Operation"\xaf\x01\x82\xd3\xe4\x93\x02\x45"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\x9e\x02\n\x13\x42\x61tchUpdateEntities\x12\x36.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest\x1a\x1d.google.longrunning.Operation"\xaf\x01\x82\xd3\xe4\x93\x02\x45"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xa8\x02\n\x13\x42\x61tchDeleteEntities\x12\x36.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest\x1a\x1d.google.longrunning.Operation"\xb9\x01\x82\xd3\xe4\x93\x02\x45"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete:\x01*\xda\x41\x14parent,entity_values\xda\x41"parent,entity_values,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9e\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0f\x45ntityTypeProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' + '\n2google/cloud/dialogflow_v2/proto/entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xf8\x04\n\nEntityType\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x04kind\x18\x03 \x01(\x0e\x32+.google.cloud.dialogflow.v2.EntityType.KindB\x03\xe0\x41\x02\x12Z\n\x13\x61uto_expansion_mode\x18\x04 \x01(\x0e\x32\x38.google.cloud.dialogflow.v2.EntityType.AutoExpansionModeB\x03\xe0\x41\x01\x12\x44\n\x08\x65ntities\x18\x06 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x01\x12$\n\x17\x65nable_fuzzy_extraction\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x33\n\x06\x45ntity\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08synonyms\x18\x02 \x03(\tB\x03\xe0\x41\x02"J\n\x04Kind\x12\x14\n\x10KIND_UNSPECIFIED\x10\x00\x12\x0c\n\x08KIND_MAP\x10\x01\x12\r\n\tKIND_LIST\x10\x02\x12\x0f\n\x0bKIND_REGEXP\x10\x03"Y\n\x11\x41utoExpansionMode\x12#\n\x1f\x41UTO_EXPANSION_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41UTO_EXPANSION_MODE_DEFAULT\x10\x01:]\xea\x41Z\n$dialogflow.googleapis.com/EntityType\x12\x32projects/{project}/agent/entityTypes/{entity_type}"\x9e\x01\n\x16ListEntityTypesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01"p\n\x17ListEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"n\n\x14GetEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01"\xb0\x01\n\x17\x43reateEntityTypeRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12@\n\x0b\x65ntity_type\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01"\xad\x01\n\x17UpdateEntityTypeRequest\x12@\n\x0b\x65ntity_type\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EntityTypeB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"U\n\x17\x44\x65leteEntityTypeRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType"\xb1\x02\n\x1d\x42\x61tchUpdateEntityTypesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x1f\n\x15\x65ntity_type_batch_uri\x18\x02 \x01(\tH\x00\x12O\n\x18\x65ntity_type_batch_inline\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2.EntityTypeBatchH\x00\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x42\x13\n\x11\x65ntity_type_batch"^\n\x1e\x42\x61tchUpdateEntityTypesResponse\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType"x\n\x1d\x42\x61tchDeleteEntityTypesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x1e\n\x11\x65ntity_type_names\x18\x02 \x03(\tB\x03\xe0\x41\x02"\xbc\x01\n\x1a\x42\x61tchCreateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01"\xf2\x01\n\x1a\x42\x61tchUpdateEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x44\n\x08\x65ntities\x18\x02 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"\x92\x01\n\x1a\x42\x61tchDeleteEntitiesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x1a\n\rentity_values\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01"O\n\x0f\x45ntityTypeBatch\x12<\n\x0c\x65ntity_types\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2.EntityType2\x80\x14\n\x0b\x45ntityTypes\x12\xcd\x01\n\x0fListEntityTypes\x12\x32.google.cloud.dialogflow.v2.ListEntityTypesRequest\x1a\x33.google.cloud.dialogflow.v2.ListEntityTypesResponse"Q\x82\xd3\xe4\x93\x02+\x12)/v2/{parent=projects/*/agent}/entityTypes\xda\x41\x06parent\xda\x41\x14parent,language_code\x12\xb8\x01\n\rGetEntityType\x12\x30.google.cloud.dialogflow.v2.GetEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType"M\x82\xd3\xe4\x93\x02+\x12)/v2/{name=projects/*/agent/entityTypes/*}\xda\x41\x04name\xda\x41\x12name,language_code\x12\xe7\x01\n\x10\x43reateEntityType\x12\x33.google.cloud.dialogflow.v2.CreateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType"v\x82\xd3\xe4\x93\x02\x38")/v2/{parent=projects/*/agent}/entityTypes:\x0b\x65ntity_type\xda\x41\x12parent,entity_type\xda\x41 parent,entity_type,language_code\x12\xe5\x01\n\x10UpdateEntityType\x12\x33.google.cloud.dialogflow.v2.UpdateEntityTypeRequest\x1a&.google.cloud.dialogflow.v2.EntityType"t\x82\xd3\xe4\x93\x02\x44\x32\x35/v2/{entity_type.name=projects/*/agent/entityTypes/*}:\x0b\x65ntity_type\xda\x41\x0b\x65ntity_type\xda\x41\x19\x65ntity_type,language_code\x12\x99\x01\n\x10\x44\x65leteEntityType\x12\x33.google.cloud.dialogflow.v2.DeleteEntityTypeRequest\x1a\x16.google.protobuf.Empty"8\x82\xd3\xe4\x93\x02+*)/v2/{name=projects/*/agent/entityTypes/*}\xda\x41\x04name\x12\x8b\x02\n\x16\x42\x61tchUpdateEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchUpdateEntityTypesRequest\x1a\x1d.google.longrunning.Operation"\x96\x01\x82\xd3\xe4\x93\x02:"5/v2/{parent=projects/*/agent}/entityTypes:batchUpdate:\x01*\xca\x41S\n9google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse\x12\x16google.protobuf.Struct\x12\x82\x02\n\x16\x42\x61tchDeleteEntityTypes\x12\x39.google.cloud.dialogflow.v2.BatchDeleteEntityTypesRequest\x1a\x1d.google.longrunning.Operation"\x8d\x01\x82\xd3\xe4\x93\x02:"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\x01*\xda\x41\x18parent,entity_type_names\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\x9e\x02\n\x13\x42\x61tchCreateEntities\x12\x36.google.cloud.dialogflow.v2.BatchCreateEntitiesRequest\x1a\x1d.google.longrunning.Operation"\xaf\x01\x82\xd3\xe4\x93\x02\x45"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\x9e\x02\n\x13\x42\x61tchUpdateEntities\x12\x36.google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest\x1a\x1d.google.longrunning.Operation"\xaf\x01\x82\xd3\xe4\x93\x02\x45"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate:\x01*\xda\x41\x0fparent,entities\xda\x41\x1dparent,entities,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xa8\x02\n\x13\x42\x61tchDeleteEntities\x12\x36.google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest\x1a\x1d.google.longrunning.Operation"\xb9\x01\x82\xd3\xe4\x93\x02\x45"@/v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete:\x01*\xda\x41\x14parent,entity_values\xda\x41"parent,entity_values,language_code\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9e\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x0f\x45ntityTypeProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -1738,7 +1738,7 @@ "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), serialized_start=2954, - serialized_end=5486, + serialized_end=5514, methods=[ _descriptor.MethodDescriptor( name="ListEntityTypes", @@ -1814,7 +1814,7 @@ input_type=_BATCHDELETEENTITYTYPESREQUEST, output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=_b( - '\202\323\344\223\002:"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\001*\312A/\n\025google.protobuf.Empty\022\026google.protobuf.Struct' + '\202\323\344\223\002:"5/v2/{parent=projects/*/agent}/entityTypes:batchDelete:\001*\332A\030parent,entity_type_names\312A/\n\025google.protobuf.Empty\022\026google.protobuf.Struct' ), ), _descriptor.MethodDescriptor( diff --git a/dialogflow_v2/proto/intent_pb2.py b/dialogflow_v2/proto/intent_pb2.py index 8fa27b5f6..ea0d72d55 100644 --- a/dialogflow_v2/proto/intent_pb2.py +++ b/dialogflow_v2/proto/intent_pb2.py @@ -5031,7 +5031,8 @@ Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for - an event to trigger this intent. + an event to trigger this intent. Event names are limited to + 150 characters. training_phrases: Optional. The collection of examples that the agent is trained on. diff --git a/dialogflow_v2/proto/session_entity_type_pb2.py b/dialogflow_v2/proto/session_entity_type_pb2.py index 98d2b0180..9fdf48c69 100644 --- a/dialogflow_v2/proto/session_entity_type_pb2.py +++ b/dialogflow_v2/proto/session_entity_type_pb2.py @@ -34,7 +34,7 @@ "\n\036com.google.cloud.dialogflow.v2B\026SessionEntityTypeProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2" ), serialized_pb=_b( - '\n:google/cloud/dialogflow_v2/proto/session_entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/dialogflow_v2/proto/entity_type.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xcf\x03\n\x11SessionEntityType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x14\x65ntity_override_mode\x18\x02 \x01(\x0e\x32@.google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideModeB\x03\xe0\x41\x02\x12\x44\n\x08\x65ntities\x18\x03 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02"\x82\x01\n\x12\x45ntityOverrideMode\x12$\n ENTITY_OVERRIDE_MODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x45NTITY_OVERRIDE_MODE_OVERRIDE\x10\x01\x12#\n\x1f\x45NTITY_OVERRIDE_MODE_SUPPLEMENT\x10\x02:w\xea\x41t\n+dialogflow.googleapis.com/SessionEntityType\x12\x45projects/{project}/agent/sessions/{session}/entityTypes/{entity_type}"e\n\x1dListSessionEntityTypesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"\x86\x01\n\x1eListSessionEntityTypesResponse\x12K\n\x14session_entity_types\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"`\n\x1bGetSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType"\x86\x01\n\x1e\x43reateSessionEntityTypeRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x13session_entity_type\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x02"\xa7\x01\n\x1eUpdateSessionEntityTypeRequest\x12O\n\x13session_entity_type\x18\x01 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"Y\n\x1e\x44\x65leteSessionEntityTypeRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context2\xd6\t\n\x12SessionEntityTypes\x12\xd6\x01\n\x16ListSessionEntityTypes\x12\x39.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest\x1a:.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v2/{parent=projects/*/agent/sessions/*}/entityTypes\xda\x41\x06parent\x12\xbc\x01\n\x14GetSessionEntityType\x12\x37.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v2/{name=projects/*/agent/sessions/*/entityTypes/*}\x12\xf4\x01\n\x17\x43reateSessionEntityType\x12:.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType"n\x82\xd3\xe4\x93\x02K"4/v2/{parent=projects/*/agent/sessions/*}/entityTypes:\x13session_entity_type\xda\x41\x1aparent,session_entity_type\x12\x81\x02\n\x17UpdateSessionEntityType\x12:.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType"{\x82\xd3\xe4\x93\x02_2H/v2/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}:\x13session_entity_type\xda\x41\x13session_entity_type\x12\xb2\x01\n\x17\x44\x65leteSessionEntityType\x12:.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest\x1a\x16.google.protobuf.Empty"C\x82\xd3\xe4\x93\x02\x36*4/v2/{name=projects/*/agent/sessions/*/entityTypes/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa5\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16SessionEntityTypeProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' + '\n:google/cloud/dialogflow_v2/proto/session_entity_type.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/dialogflow_v2/proto/entity_type.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\xcf\x03\n\x11SessionEntityType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x14\x65ntity_override_mode\x18\x02 \x01(\x0e\x32@.google.cloud.dialogflow.v2.SessionEntityType.EntityOverrideModeB\x03\xe0\x41\x02\x12\x44\n\x08\x65ntities\x18\x03 \x03(\x0b\x32-.google.cloud.dialogflow.v2.EntityType.EntityB\x03\xe0\x41\x02"\x82\x01\n\x12\x45ntityOverrideMode\x12$\n ENTITY_OVERRIDE_MODE_UNSPECIFIED\x10\x00\x12!\n\x1d\x45NTITY_OVERRIDE_MODE_OVERRIDE\x10\x01\x12#\n\x1f\x45NTITY_OVERRIDE_MODE_SUPPLEMENT\x10\x02:w\xea\x41t\n+dialogflow.googleapis.com/SessionEntityType\x12\x45projects/{project}/agent/sessions/{session}/entityTypes/{entity_type}"e\n\x1dListSessionEntityTypesRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"\x86\x01\n\x1eListSessionEntityTypesResponse\x12K\n\x14session_entity_types\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"`\n\x1bGetSessionEntityTypeRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+dialogflow.googleapis.com/SessionEntityType"\x86\x01\n\x1e\x43reateSessionEntityTypeRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x13session_entity_type\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x02"\xa7\x01\n\x1eUpdateSessionEntityTypeRequest\x12O\n\x13session_entity_type\x18\x01 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"Y\n\x1e\x44\x65leteSessionEntityTypeRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Context2\xbc\r\n\x12SessionEntityTypes\x12\xa7\x02\n\x16ListSessionEntityTypes\x12\x39.google.cloud.dialogflow.v2.ListSessionEntityTypesRequest\x1a:.google.cloud.dialogflow.v2.ListSessionEntityTypesResponse"\x95\x01\x82\xd3\xe4\x93\x02\x85\x01\x12\x34/v2/{parent=projects/*/agent/sessions/*}/entityTypesZM\x12K/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/entityTypes\xda\x41\x06parent\x12\x94\x02\n\x14GetSessionEntityType\x12\x37.google.cloud.dialogflow.v2.GetSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType"\x93\x01\x82\xd3\xe4\x93\x02\x85\x01\x12\x34/v2/{name=projects/*/agent/sessions/*/entityTypes/*}ZM\x12K/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}\xda\x41\x04name\x12\xda\x02\n\x17\x43reateSessionEntityType\x12:.google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType"\xd3\x01\x82\xd3\xe4\x93\x02\xaf\x01"4/v2/{parent=projects/*/agent/sessions/*}/entityTypes:\x13session_entity_typeZb"K/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/entityTypes:\x13session_entity_type\xda\x41\x1aparent,session_entity_type\x12\x87\x03\n\x17UpdateSessionEntityType\x12:.google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest\x1a-.google.cloud.dialogflow.v2.SessionEntityType"\x80\x02\x82\xd3\xe4\x93\x02\xd7\x01\x32H/v2/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}:\x13session_entity_typeZv2_/v2/{session_entity_type.name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}:\x13session_entity_type\xda\x41\x1fsession_entity_type,update_mask\x12\x83\x02\n\x17\x44\x65leteSessionEntityType\x12:.google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest\x1a\x16.google.protobuf.Empty"\x93\x01\x82\xd3\xe4\x93\x02\x85\x01*4/v2/{name=projects/*/agent/sessions/*/entityTypes/*}ZM*K/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa5\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16SessionEntityTypeProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -550,10 +550,14 @@ name: Required. The unique identifier of this session entity type. Format: ``projects//agent/sessions//entityTypes/``. ```` must be the display name of an existing entity - type in the same agent that will be overridden or - supplemented. + ID>/entityTypes/``, or + ``projects//agent/environments//users//sessions//entityTypes/``. If ``Environment ID`` is not specified, + we assume default 'draft' environment. If ``User ID`` is not + specified, we assume default '-' user. ```` must be the display name of an existing entity type in + the same agent that will be overridden or supplemented. entity_override_mode: Required. Indicates whether the additional data should override or supplement the custom entity type definition. @@ -579,7 +583,11 @@ Attributes: parent: Required. The session to list all session entity types from. - Format: ``projects//agent/sessions/``. + Format: ``projects//agent/sessions/`` + or ``projects//agent/environments//users// sessions/``. If ``Environment + ID`` is not specified, we assume default 'draft' environment. + If ``User ID`` is not specified, we assume default '-' user. page_size: Optional. The maximum number of items to return in a single page. By default 100 and at most 1000. @@ -630,7 +638,12 @@ name: Required. The name of the session entity type. Format: ``projects//agent/sessions//entityTypes/``. + ID>/entityTypes/`` or + ``projects//agent/environments//users//sessions//entityTypes/``. If ``Environment ID`` is not specified, + we assume default 'draft' environment. If ``User ID`` is not + specified, we assume default '-' user. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.GetSessionEntityTypeRequest) ), @@ -650,7 +663,11 @@ Attributes: parent: Required. The session to create a session entity type for. - Format: ``projects//agent/sessions/``. + Format: ``projects//agent/sessions/`` + or ``projects//agent/environments//users// sessions/``. If ``Environment + ID`` is not specified, we assume default 'draft' environment. + If ``User ID`` is not specified, we assume default '-' user. session_entity_type: Required. The session entity type to create. """, @@ -671,9 +688,7 @@ Attributes: session_entity_type: - Required. The entity type to update. Format: - ``projects//agent/sessions//entityTypes/``. + Required. The session entity type to update. update_mask: Optional. The mask to control which fields get updated. """, @@ -696,7 +711,12 @@ name: Required. The name of the entity type to delete. Format: ``projects//agent/sessions//entityTypes/``. + ID>/entityTypes/`` or + ``projects//agent/environments//users//sessions//entityTypes/``. If ``Environment ID`` is not specified, + we assume default 'draft' environment. If ``User ID`` is not + specified, we assume default '-' user. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest) ), @@ -728,7 +748,7 @@ "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), serialized_start=1523, - serialized_end=2761, + serialized_end=3247, methods=[ _descriptor.MethodDescriptor( name="ListSessionEntityTypes", @@ -738,7 +758,7 @@ input_type=_LISTSESSIONENTITYTYPESREQUEST, output_type=_LISTSESSIONENTITYTYPESRESPONSE, serialized_options=_b( - "\202\323\344\223\0026\0224/v2/{parent=projects/*/agent/sessions/*}/entityTypes\332A\006parent" + "\202\323\344\223\002\205\001\0224/v2/{parent=projects/*/agent/sessions/*}/entityTypesZM\022K/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/entityTypes\332A\006parent" ), ), _descriptor.MethodDescriptor( @@ -749,7 +769,7 @@ input_type=_GETSESSIONENTITYTYPEREQUEST, output_type=_SESSIONENTITYTYPE, serialized_options=_b( - "\202\323\344\223\0026\0224/v2/{name=projects/*/agent/sessions/*/entityTypes/*}" + "\202\323\344\223\002\205\001\0224/v2/{name=projects/*/agent/sessions/*/entityTypes/*}ZM\022K/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}\332A\004name" ), ), _descriptor.MethodDescriptor( @@ -760,7 +780,7 @@ input_type=_CREATESESSIONENTITYTYPEREQUEST, output_type=_SESSIONENTITYTYPE, serialized_options=_b( - '\202\323\344\223\002K"4/v2/{parent=projects/*/agent/sessions/*}/entityTypes:\023session_entity_type\332A\032parent,session_entity_type' + '\202\323\344\223\002\257\001"4/v2/{parent=projects/*/agent/sessions/*}/entityTypes:\023session_entity_typeZb"K/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/entityTypes:\023session_entity_type\332A\032parent,session_entity_type' ), ), _descriptor.MethodDescriptor( @@ -771,7 +791,7 @@ input_type=_UPDATESESSIONENTITYTYPEREQUEST, output_type=_SESSIONENTITYTYPE, serialized_options=_b( - "\202\323\344\223\002_2H/v2/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}:\023session_entity_type\332A\023session_entity_type" + "\202\323\344\223\002\327\0012H/v2/{session_entity_type.name=projects/*/agent/sessions/*/entityTypes/*}:\023session_entity_typeZv2_/v2/{session_entity_type.name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}:\023session_entity_type\332A\037session_entity_type,update_mask" ), ), _descriptor.MethodDescriptor( @@ -782,7 +802,7 @@ input_type=_DELETESESSIONENTITYTYPEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=_b( - "\202\323\344\223\0026*4/v2/{name=projects/*/agent/sessions/*/entityTypes/*}\332A\004name" + "\202\323\344\223\002\205\001*4/v2/{name=projects/*/agent/sessions/*/entityTypes/*}ZM*K/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/entityTypes/*}\332A\004name" ), ), ], diff --git a/dialogflow_v2/proto/session_pb2.py b/dialogflow_v2/proto/session_pb2.py index 28cd51d29..ae703d050 100644 --- a/dialogflow_v2/proto/session_pb2.py +++ b/dialogflow_v2/proto/session_pb2.py @@ -33,6 +33,7 @@ session_entity_type_pb2 as google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_session__entity__type__pb2, ) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 from google.type import latlng_pb2 as google_dot_type_dot_latlng__pb2 @@ -46,7 +47,7 @@ "\n\036com.google.cloud.dialogflow.v2B\014SessionProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\222\001\n!dialogflow.googleapis.com/Session\022@projects/{project}/locations/{location}/agent/sessions/{session}\022+projects/{project}/agent/sessions/{session}" ), serialized_pb=_b( - '\n.google/cloud/dialogflow_v2/proto/session.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dialogflow_v2/proto/audio_config.proto\x1a.google/cloud/dialogflow_v2/proto/context.proto\x1a-google/cloud/dialogflow_v2/proto/intent.proto\x1a:google/cloud/dialogflow_v2/proto/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto"\xc6\x02\n\x13\x44\x65tectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x46\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParametersB\x03\xe0\x41\x01\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12O\n\x13output_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfigB\x03\xe0\x41\x01\x12\x18\n\x0binput_audio\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x01"\xf8\x01\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12=\n\x0cquery_result\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig"\x9f\x03\n\x0fQueryParameters\x12\x16\n\ttime_zone\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12.\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x01\x12:\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32#.google.cloud.dialogflow.v2.ContextB\x03\xe0\x41\x01\x12\x1b\n\x0ereset_contexts\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12P\n\x14session_entity_types\x18\x05 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityTypeB\x03\xe0\x41\x01\x12-\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12j\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32:.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfigB\x03\xe0\x41\x01"\xcb\x01\n\nQueryInput\x12\x44\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x35\n\x04text\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12\x37\n\x05\x65vent\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x42\x07\n\x05input"\x90\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12H\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12<\n\x0foutput_contexts\x18\n \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x32\n\x06intent\x18\x0b \x01(\x0b\x32".google.cloud.dialogflow.v2.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12V\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResult"\xca\x02\n\x1cStreamingDetectIntentRequest\x12\x14\n\x07session\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParametersB\x03\xe0\x41\x01\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12\x1f\n\x10single_utterance\x18\x04 \x01(\x08\x42\x05\x18\x01\xe0\x41\x01\x12O\n\x13output_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfigB\x03\xe0\x41\x01\x12\x18\n\x0binput_audio\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x01"\xd5\x02\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12R\n\x12recognition_result\x18\x02 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12=\n\x0cquery_result\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig"\x86\x03\n\x1aStreamingRecognitionResult\x12X\n\x0cmessage_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x44\n\x10speech_word_info\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02":\n\tTextInput\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02"m\n\nEventInput\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02"K\n\x1eSentimentAnalysisRequestConfig\x12)\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01"^\n\x17SentimentAnalysisResult\x12\x43\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.Sentiment"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xe6\x03\n\x08Sessions\x12\xca\x01\n\x0c\x44\x65tectIntent\x12/.google.cloud.dialogflow.v2.DetectIntentRequest\x1a\x30.google.cloud.dialogflow.v2.DetectIntentResponse"W\x82\xd3\xe4\x93\x02;"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\x01*\xda\x41\x13session,query_input\x12\x92\x01\n\x15StreamingDetectIntent\x12\x38.google.cloud.dialogflow.v2.StreamingDetectIntentRequest\x1a\x39.google.cloud.dialogflow.v2.StreamingDetectIntentResponse"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cSessionProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41\x92\x01\n!dialogflow.googleapis.com/Session\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12+projects/{project}/agent/sessions/{session}b\x06proto3' + '\n.google/cloud/dialogflow_v2/proto/session.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dialogflow_v2/proto/audio_config.proto\x1a.google/cloud/dialogflow_v2/proto/context.proto\x1a-google/cloud/dialogflow_v2/proto/intent.proto\x1a:google/cloud/dialogflow_v2/proto/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto"\xf5\x02\n\x13\x44\x65tectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12J\n\x13output_audio_config\x18\x04 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x05 \x01(\x0c"\xf8\x01\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12=\n\x0cquery_result\x18\x02 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig"\xfc\x02\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12\x35\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x16\n\x0ereset_contexts\x18\x04 \x01(\x08\x12K\n\x14session_entity_types\x18\x05 \x03(\x0b\x32-.google.cloud.dialogflow.v2.SessionEntityType\x12(\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x65\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32:.google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig"\xcb\x01\n\nQueryInput\x12\x44\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32,.google.cloud.dialogflow.v2.InputAudioConfigH\x00\x12\x35\n\x04text\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.v2.TextInputH\x00\x12\x37\n\x05\x65vent\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.EventInputH\x00\x42\x07\n\x05input"\x90\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12H\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12<\n\x0foutput_contexts\x18\n \x03(\x0b\x32#.google.cloud.dialogflow.v2.Context\x12\x32\n\x06intent\x18\x0b \x01(\x0b\x32".google.cloud.dialogflow.v2.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12V\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SentimentAnalysisResult"\x9c\x03\n\x1cStreamingDetectIntentRequest\x12:\n\x07session\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x41\n\x0cquery_params\x18\x02 \x01(\x0b\x32+.google.cloud.dialogflow.v2.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32&.google.cloud.dialogflow.v2.QueryInputB\x03\xe0\x41\x02\x12\x1c\n\x10single_utterance\x18\x04 \x01(\x08\x42\x02\x18\x01\x12J\n\x13output_audio_config\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x06 \x01(\x0c"\xd5\x02\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12R\n\x12recognition_result\x18\x02 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResult\x12=\n\x0cquery_result\x18\x03 \x01(\x0b\x32\'.google.cloud.dialogflow.v2.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12J\n\x13output_audio_config\x18\x06 \x01(\x0b\x32-.google.cloud.dialogflow.v2.OutputAudioConfig"\x86\x03\n\x1aStreamingRecognitionResult\x12X\n\x0cmessage_type\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x44\n\x10speech_word_info\x18\x07 \x03(\x0b\x32*.google.cloud.dialogflow.v2.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02":\n\tTextInput\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02"h\n\nEventInput\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02"F\n\x1eSentimentAnalysisRequestConfig\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08"^\n\x17SentimentAnalysisResult\x12\x43\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.v2.Sentiment"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xbc\x04\n\x08Sessions\x12\xa0\x02\n\x0c\x44\x65tectIntent\x12/.google.cloud.dialogflow.v2.DetectIntentRequest\x1a\x30.google.cloud.dialogflow.v2.DetectIntentResponse"\xac\x01\x82\xd3\xe4\x93\x02\x8f\x01"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\x01*ZR"M/v2/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*\xda\x41\x13session,query_input\x12\x92\x01\n\x15StreamingDetectIntent\x12\x38.google.cloud.dialogflow.v2.StreamingDetectIntentRequest\x1a\x39.google.cloud.dialogflow.v2.StreamingDetectIntentResponse"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x0cSessionProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41\x92\x01\n!dialogflow.googleapis.com/Session\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12+projects/{project}/agent/sessions/{session}b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -58,6 +59,7 @@ google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_intent__pb2.DESCRIPTOR, google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_session__entity__type__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, google_dot_rpc_dot_status__pb2.DESCRIPTOR, google_dot_type_dot_latlng__pb2.DESCRIPTOR, @@ -91,8 +93,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3357, - serialized_end=3445, + serialized_start=3485, + serialized_end=3573, ) _sym_db.RegisterEnumDescriptor(_STREAMINGRECOGNITIONRESULT_MESSAGETYPE) @@ -139,7 +141,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -175,13 +177,31 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_audio_config_mask", + full_name="google.cloud.dialogflow.v2.DetectIntentRequest.output_audio_config_mask", + index=4, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( name="input_audio", full_name="google.cloud.dialogflow.v2.DetectIntentRequest.input_audio", - index=4, + index=5, number=5, type=12, cpp_type=9, @@ -193,7 +213,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), ], @@ -205,8 +225,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=515, - serialized_end=841, + serialized_start=549, + serialized_end=922, ) @@ -316,8 +336,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=844, - serialized_end=1092, + serialized_start=925, + serialized_end=1173, ) @@ -343,7 +363,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -361,7 +381,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -379,7 +399,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -397,7 +417,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -415,7 +435,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -433,7 +453,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -451,7 +471,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), ], @@ -463,8 +483,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1095, - serialized_end=1510, + serialized_start=1176, + serialized_end=1556, ) @@ -546,8 +566,8 @@ fields=[], ) ], - serialized_start=1513, - serialized_end=1716, + serialized_start=1559, + serialized_end=1762, ) @@ -837,8 +857,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1719, - serialized_end=2375, + serialized_start=1765, + serialized_end=2421, ) @@ -864,7 +884,9 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=_b( + "\340A\002\372A#\n!dialogflow.googleapis.com/Session" + ), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -882,7 +904,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -918,7 +940,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\030\001\340A\001"), + serialized_options=_b("\030\001"), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -936,13 +958,31 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="output_audio_config_mask", + full_name="google.cloud.dialogflow.v2.StreamingDetectIntentRequest.output_audio_config_mask", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( name="input_audio", full_name="google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio", - index=5, + index=6, number=6, type=12, cpp_type=9, @@ -954,7 +994,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), ], @@ -966,8 +1006,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2378, - serialized_end=2708, + serialized_start=2424, + serialized_end=2836, ) @@ -1095,8 +1135,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2711, - serialized_end=3052, + serialized_start=2839, + serialized_end=3180, ) @@ -1224,8 +1264,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3055, - serialized_end=3445, + serialized_start=3183, + serialized_end=3573, ) @@ -1281,8 +1321,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3447, - serialized_end=3505, + serialized_start=3575, + serialized_end=3633, ) @@ -1326,7 +1366,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1356,8 +1396,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3507, - serialized_end=3616, + serialized_start=3635, + serialized_end=3739, ) @@ -1383,7 +1423,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=None, file=DESCRIPTOR, ) ], @@ -1395,8 +1435,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3618, - serialized_end=3693, + serialized_start=3741, + serialized_end=3811, ) @@ -1434,8 +1474,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3695, - serialized_end=3789, + serialized_start=3813, + serialized_end=3907, ) @@ -1491,8 +1531,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3791, - serialized_end=3836, + serialized_start=3909, + serialized_end=3954, ) _DETECTINTENTREQUEST.fields_by_name["query_params"].message_type = _QUERYPARAMETERS @@ -1502,6 +1542,9 @@ ].message_type = ( google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_audio__config__pb2._OUTPUTAUDIOCONFIG ) +_DETECTINTENTREQUEST.fields_by_name[ + "output_audio_config_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _DETECTINTENTRESPONSE.fields_by_name["query_result"].message_type = _QUERYRESULT _DETECTINTENTRESPONSE.fields_by_name[ "webhook_status" @@ -1581,6 +1624,9 @@ ].message_type = ( google_dot_cloud_dot_dialogflow__v2_dot_proto_dot_audio__config__pb2._OUTPUTAUDIOCONFIG ) +_STREAMINGDETECTINTENTREQUEST.fields_by_name[ + "output_audio_config_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _STREAMINGDETECTINTENTRESPONSE.fields_by_name[ "recognition_result" ].message_type = _STREAMINGRECOGNITIONRESULT @@ -1650,13 +1696,17 @@ Attributes: session: Required. The name of the session this query is sent to. - Format: ``projects//agent/sessions/``. - It's up to the API caller to choose an appropriate session ID. - It can be a random number or some type of user identifier - (preferably hashed). The length of the session ID must not - exceed 36 bytes. + Format: ``projects//agent/sessions/``, + or ``projects//agent/environments//users//sessions/``. If ``Environment + ID`` is not specified, we assume default 'draft' environment. + If ``User ID`` is not specified, we are using "-". It's up to + the API caller to choose an appropriate ``Session ID`` and + ``User Id``. They can be a random number or some type of user + and session identifiers (preferably hashed). The length of the + ``Session ID`` and ``User ID`` must not exceed 36 characters. query_params: - Optional. The parameters of this query. + The parameters of this query. query_input: Required. The input specification. It can be set to: 1. an audio config which instructs the speech recognizer how to @@ -1664,14 +1714,22 @@ form of text, or 3. an event that specifies which intent to trigger. output_audio_config: - Optional. Instructs the speech synthesizer how to generate the - output audio. If this field is not set and agent-level speech + Instructs the speech synthesizer how to generate the output + audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. + output_audio_config_mask: + Mask for [output\_audio\_config][google.cloud.dialogflow.v2.De + tectIntentRequest.output\_audio\_config] indicating which + settings in this request-level config should override speech + synthesizer settings defined at agent-level. If unspecified + or empty, [output\_audio\_config][google.cloud.dialogflow.v2.D + etectIntentRequest.output\_audio\_config] replaces the agent- + level config in its entirety. input_audio: - Optional. The natural language speech audio to be processed. - This field should be populated iff ``query_input`` is set to - an input audio config. A single request can contain up to 1 - minute of speech audio data. + The natural language speech audio to be processed. This field + should be populated iff ``query_input`` is set to an input + audio config. A single request can contain up to 1 minute of + speech audio data. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.DetectIntentRequest) ), @@ -1726,29 +1784,29 @@ Attributes: time_zone: - Optional. The time zone of this conversational query from the - `time zone database `__, - e.g., America/New\_York, Europe/Paris. If not provided, the - time zone specified in agent settings is used. + The time zone of this conversational query from the `time zone + database `__, e.g., + America/New\_York, Europe/Paris. If not provided, the time + zone specified in agent settings is used. geo_location: - Optional. The geo location of this conversational query. + The geo location of this conversational query. contexts: - Optional. The collection of contexts to be activated before - this query is executed. + The collection of contexts to be activated before this query + is executed. reset_contexts: - Optional. Specifies whether to delete all contexts in the - current session before the new ones are activated. + Specifies whether to delete all contexts in the current + session before the new ones are activated. session_entity_types: - Optional. Additional session entity types to replace or extend - developer entity types with. The entity synonyms apply to all - languages and persist for the session of this query. + Additional session entity types to replace or extend developer + entity types with. The entity synonyms apply to all languages + and persist for the session of this query. payload: - Optional. This field can be used to pass custom data into the - webhook associated with the agent. Arbitrary JSON objects are + This field can be used to pass custom data into the webhook + associated with the agent. Arbitrary JSON objects are supported. sentiment_analysis_request_config: - Optional. Configures the type of sentiment analysis to - perform. If not provided, sentiment analysis is not performed. + Configures the type of sentiment analysis to perform. If not + provided, sentiment analysis is not performed. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.QueryParameters) ), @@ -1929,12 +1987,17 @@ session: Required. The name of the session the query is sent to. Format of the session name: ``projects//agent/sessions/``. It's up to the API caller - to choose an appropriate ``Session ID``. It can be a random - number or some type of user identifier (preferably hashed). - The length of the session ID must not exceed 36 characters. + ID>/agent/sessions/``, or ``projects//agent/environments//users//sessions/``. If ``Environment ID`` is not + specified, we assume default 'draft' environment. If ``User + ID`` is not specified, we are using "-". It's up to the API + caller to choose an appropriate ``Session ID`` and ``User + Id``. They can be a random number or some type of user and + session identifiers (preferably hashed). The length of the + ``Session ID`` and ``User ID`` must not exceed 36 characters. query_params: - Optional. The parameters of this query. + The parameters of this query. query_input: Required. The input specification. It can be set to: 1. an audio config which instructs the speech recognizer how to @@ -1942,25 +2005,33 @@ form of text, or 3. an event that specifies which intent to trigger. single_utterance: - Optional. Please use [InputAudioConfig.single\_utterance][goog - le.cloud.dialogflow.v2.InputAudioConfig.single\_utterance] - instead. If ``false`` (default), recognition does not cease - until the client closes the stream. If ``true``, the - recognizer will detect a single spoken utterance in input - audio. Recognition ceases when it detects the audio's voice - has stopped or paused. In this case, once a detected intent is - received, the client should close the stream and start a new - request with a new stream as needed. This setting is ignored - when ``query_input`` is a piece of text or an event. + Please use [InputAudioConfig.single\_utterance][google.cloud.d + ialogflow.v2.InputAudioConfig.single\_utterance] instead. If + ``false`` (default), recognition does not cease until the + client closes the stream. If ``true``, the recognizer will + detect a single spoken utterance in input audio. Recognition + ceases when it detects the audio's voice has stopped or + paused. In this case, once a detected intent is received, the + client should close the stream and start a new request with a + new stream as needed. This setting is ignored when + ``query_input`` is a piece of text or an event. output_audio_config: - Optional. Instructs the speech synthesizer how to generate the - output audio. If this field is not set and agent-level speech + Instructs the speech synthesizer how to generate the output + audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. + output_audio_config_mask: + Mask for [output\_audio\_config][google.cloud.dialogflow.v2.St + reamingDetectIntentRequest.output\_audio\_config] indicating + which settings in this request-level config should override + speech synthesizer settings defined at agent-level. If + unspecified or empty, [output\_audio\_config][google.cloud.dia + logflow.v2.StreamingDetectIntentRequest.output\_audio\_config] + replaces the agent-level config in its entirety. input_audio: - Optional. The input audio content to be recognized. Must be - sent if ``query_input`` was set to a streaming input audio - config. The complete audio over all streaming messages must - not exceed 1 minute. + The input audio content to be recognized. Must be sent if + ``query_input`` was set to a streaming input audio config. The + complete audio over all streaming messages must not exceed 1 + minute. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.StreamingDetectIntentRequest) ), @@ -2133,8 +2204,7 @@ name: Required. The unique identifier of the event. parameters: - Optional. The collection of parameters associated with the - event. + The collection of parameters associated with the event. language_code: Required. The language of this query. See `Language Support `__ @@ -2158,8 +2228,8 @@ Attributes: analyze_query_text_sentiment: - Optional. Instructs the service to perform sentiment analysis - on ``query_text``. If not provided, sentiment analysis is not + Instructs the service to perform sentiment analysis on + ``query_text``. If not provided, sentiment analysis is not performed on ``query_text``. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SentimentAnalysisRequestConfig) @@ -2213,31 +2283,14 @@ DESCRIPTOR._options = None _DETECTINTENTREQUEST.fields_by_name["session"]._options = None -_DETECTINTENTREQUEST.fields_by_name["query_params"]._options = None _DETECTINTENTREQUEST.fields_by_name["query_input"]._options = None -_DETECTINTENTREQUEST.fields_by_name["output_audio_config"]._options = None -_DETECTINTENTREQUEST.fields_by_name["input_audio"]._options = None -_QUERYPARAMETERS.fields_by_name["time_zone"]._options = None -_QUERYPARAMETERS.fields_by_name["geo_location"]._options = None -_QUERYPARAMETERS.fields_by_name["contexts"]._options = None -_QUERYPARAMETERS.fields_by_name["reset_contexts"]._options = None -_QUERYPARAMETERS.fields_by_name["session_entity_types"]._options = None -_QUERYPARAMETERS.fields_by_name["payload"]._options = None -_QUERYPARAMETERS.fields_by_name["sentiment_analysis_request_config"]._options = None _STREAMINGDETECTINTENTREQUEST.fields_by_name["session"]._options = None -_STREAMINGDETECTINTENTREQUEST.fields_by_name["query_params"]._options = None _STREAMINGDETECTINTENTREQUEST.fields_by_name["query_input"]._options = None _STREAMINGDETECTINTENTREQUEST.fields_by_name["single_utterance"]._options = None -_STREAMINGDETECTINTENTREQUEST.fields_by_name["output_audio_config"]._options = None -_STREAMINGDETECTINTENTREQUEST.fields_by_name["input_audio"]._options = None _TEXTINPUT.fields_by_name["text"]._options = None _TEXTINPUT.fields_by_name["language_code"]._options = None _EVENTINPUT.fields_by_name["name"]._options = None -_EVENTINPUT.fields_by_name["parameters"]._options = None _EVENTINPUT.fields_by_name["language_code"]._options = None -_SENTIMENTANALYSISREQUESTCONFIG.fields_by_name[ - "analyze_query_text_sentiment" -]._options = None _SESSIONS = _descriptor.ServiceDescriptor( name="Sessions", @@ -2247,8 +2300,8 @@ serialized_options=_b( "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), - serialized_start=3839, - serialized_end=4325, + serialized_start=3957, + serialized_end=4529, methods=[ _descriptor.MethodDescriptor( name="DetectIntent", @@ -2258,7 +2311,7 @@ input_type=_DETECTINTENTREQUEST, output_type=_DETECTINTENTRESPONSE, serialized_options=_b( - '\202\323\344\223\002;"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\001*\332A\023session,query_input' + '\202\323\344\223\002\217\001"6/v2/{session=projects/*/agent/sessions/*}:detectIntent:\001*ZR"M/v2/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\001*\332A\023session,query_input' ), ), _descriptor.MethodDescriptor( diff --git a/dialogflow_v2/proto/validation_result_pb2.py b/dialogflow_v2/proto/validation_result_pb2.py new file mode 100644 index 000000000..a5af3edf6 --- /dev/null +++ b/dialogflow_v2/proto/validation_result_pb2.py @@ -0,0 +1,240 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/dialogflow_v2/proto/validation_result.proto + +import sys + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name="google/cloud/dialogflow_v2/proto/validation_result.proto", + package="google.cloud.dialogflow.v2", + syntax="proto3", + serialized_options=_b( + "\n\036com.google.cloud.dialogflow.v2B\025ValidationResultProtoP\001ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2" + ), + serialized_pb=_b( + '\n8google/cloud/dialogflow_v2/proto/validation_result.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto"\xd7\x01\n\x0fValidationError\x12\x46\n\x08severity\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2.ValidationError.Severity\x12\x0f\n\x07\x65ntries\x18\x03 \x03(\t\x12\x15\n\rerror_message\x18\x04 \x01(\t"T\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\x0c\n\x08\x43RITICAL\x10\x04"Z\n\x10ValidationResult\x12\x46\n\x11validation_errors\x18\x01 \x03(\x0b\x32+.google.cloud.dialogflow.v2.ValidationErrorB\xa4\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x15ValidationResultProtoP\x01ZDgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3' + ), + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR], +) + + +_VALIDATIONERROR_SEVERITY = _descriptor.EnumDescriptor( + name="Severity", + full_name="google.cloud.dialogflow.v2.ValidationError.Severity", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="SEVERITY_UNSPECIFIED", + index=0, + number=0, + serialized_options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="INFO", index=1, number=1, serialized_options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="WARNING", index=2, number=2, serialized_options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="ERROR", index=3, number=3, serialized_options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CRITICAL", index=4, number=4, serialized_options=None, type=None + ), + ], + containing_type=None, + serialized_options=None, + serialized_start=250, + serialized_end=334, +) +_sym_db.RegisterEnumDescriptor(_VALIDATIONERROR_SEVERITY) + + +_VALIDATIONERROR = _descriptor.Descriptor( + name="ValidationError", + full_name="google.cloud.dialogflow.v2.ValidationError", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="severity", + full_name="google.cloud.dialogflow.v2.ValidationError.severity", + index=0, + number=1, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="entries", + full_name="google.cloud.dialogflow.v2.ValidationError.entries", + index=1, + number=3, + type=9, + cpp_type=9, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="error_message", + full_name="google.cloud.dialogflow.v2.ValidationError.error_message", + index=2, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[_VALIDATIONERROR_SEVERITY], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=119, + serialized_end=334, +) + + +_VALIDATIONRESULT = _descriptor.Descriptor( + name="ValidationResult", + full_name="google.cloud.dialogflow.v2.ValidationResult", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="validation_errors", + full_name="google.cloud.dialogflow.v2.ValidationResult.validation_errors", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=336, + serialized_end=426, +) + +_VALIDATIONERROR.fields_by_name["severity"].enum_type = _VALIDATIONERROR_SEVERITY +_VALIDATIONERROR_SEVERITY.containing_type = _VALIDATIONERROR +_VALIDATIONRESULT.fields_by_name["validation_errors"].message_type = _VALIDATIONERROR +DESCRIPTOR.message_types_by_name["ValidationError"] = _VALIDATIONERROR +DESCRIPTOR.message_types_by_name["ValidationResult"] = _VALIDATIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ValidationError = _reflection.GeneratedProtocolMessageType( + "ValidationError", + (_message.Message,), + dict( + DESCRIPTOR=_VALIDATIONERROR, + __module__="google.cloud.dialogflow_v2.proto.validation_result_pb2", + __doc__="""Represents a single validation error. + + + Attributes: + severity: + The severity of the error. + entries: + The names of the entries that the error is associated with. + Format: - "projects//agent", if the error is associated with + the entire agent. - "projects//agent/intents/", if the error + is associated with certain intents. - + "projects//agent/intents//trainingPhrases/", if the error is + associated with certain intent training phrases. - + "projects//agent/intents//parameters/", if the error is + associated with certain intent parameters. - + "projects//agent/entities/", if the error is associated with + certain entities. + error_message: + The detailed error messsage. + """, + # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ValidationError) + ), +) +_sym_db.RegisterMessage(ValidationError) + +ValidationResult = _reflection.GeneratedProtocolMessageType( + "ValidationResult", + (_message.Message,), + dict( + DESCRIPTOR=_VALIDATIONRESULT, + __module__="google.cloud.dialogflow_v2.proto.validation_result_pb2", + __doc__="""Represents the output of agent validation. + + + Attributes: + validation_errors: + Contains all validation errors. + """, + # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.ValidationResult) + ), +) +_sym_db.RegisterMessage(ValidationResult) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/dialogflow_v2/proto/validation_result_pb2_grpc.py b/dialogflow_v2/proto/validation_result_pb2_grpc.py new file mode 100644 index 000000000..07cb78fe0 --- /dev/null +++ b/dialogflow_v2/proto/validation_result_pb2_grpc.py @@ -0,0 +1,2 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc diff --git a/dialogflow_v2/types.py b/dialogflow_v2/types.py index 9110491d4..d38315c9e 100644 --- a/dialogflow_v2/types.py +++ b/dialogflow_v2/types.py @@ -27,6 +27,7 @@ from dialogflow_v2.proto import intent_pb2 from dialogflow_v2.proto import session_entity_type_pb2 from dialogflow_v2.proto import session_pb2 +from dialogflow_v2.proto import validation_result_pb2 from dialogflow_v2.proto import webhook_pb2 from google.longrunning import operations_pb2 from google.protobuf import any_pb2 @@ -57,6 +58,7 @@ intent_pb2, session_entity_type_pb2, session_pb2, + validation_result_pb2, webhook_pb2, ] diff --git a/dialogflow_v2beta1/gapic/sessions_client.py b/dialogflow_v2beta1/gapic/sessions_client.py index 7c88c74e4..72d59e5fc 100644 --- a/dialogflow_v2beta1/gapic/sessions_client.py +++ b/dialogflow_v2beta1/gapic/sessions_client.py @@ -233,6 +233,7 @@ def detect_intent( query_input, query_params=None, output_audio_config=None, + output_audio_config_mask=None, input_audio=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, @@ -277,19 +278,28 @@ def detect_intent( If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2beta1.types.QueryInput` - query_params (Union[dict, ~google.cloud.dialogflow_v2beta1.types.QueryParameters]): Optional. The parameters of this query. + query_params (Union[dict, ~google.cloud.dialogflow_v2beta1.types.QueryParameters]): The parameters of this query. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2beta1.types.QueryParameters` - output_audio_config (Union[dict, ~google.cloud.dialogflow_v2beta1.types.OutputAudioConfig]): Optional. Instructs the speech synthesizer how to generate the output + output_audio_config (Union[dict, ~google.cloud.dialogflow_v2beta1.types.OutputAudioConfig]): Instructs the speech synthesizer how to generate the output audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.dialogflow_v2beta1.types.OutputAudioConfig` - input_audio (bytes): Optional. The natural language speech audio to be processed. This field - should be populated iff ``query_input`` is set to an input audio config. - A single request can contain up to 1 minute of speech audio data. + output_audio_config_mask (Union[dict, ~google.cloud.dialogflow_v2beta1.types.FieldMask]): Mask for ``output_audio_config`` indicating which settings in this + request-level config should override speech synthesizer settings defined + at agent-level. + + If unspecified or empty, ``output_audio_config`` replaces the + agent-level config in its entirety. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.dialogflow_v2beta1.types.FieldMask` + input_audio (bytes): The natural language speech audio to be processed. This field should be + populated iff ``query_input`` is set to an input audio config. A single + request can contain up to 1 minute of speech audio data. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -325,6 +335,7 @@ def detect_intent( query_input=query_input, query_params=query_params, output_audio_config=output_audio_config, + output_audio_config_mask=output_audio_config_mask, input_audio=input_audio, ) if metadata is None: @@ -356,8 +367,6 @@ def streaming_detect_intent( and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). - EXPERIMENTAL: This method interface might change in the future. - Example: >>> import dialogflow_v2beta1 >>> diff --git a/dialogflow_v2beta1/proto/agent_pb2.py b/dialogflow_v2beta1/proto/agent_pb2.py index 23dde162e..188bcdbec 100644 --- a/dialogflow_v2beta1/proto/agent_pb2.py +++ b/dialogflow_v2beta1/proto/agent_pb2.py @@ -37,7 +37,7 @@ "\n#com.google.cloud.dialogflow.v2beta1B\nAgentProtoP\001ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1" ), serialized_pb=_b( - '\n1google/cloud/dialogflow_v2beta1/proto/agent.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a=google/cloud/dialogflow_v2beta1/proto/validation_result.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/api/client.proto"\xc2\x06\n\x05\x41gent\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x1d\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\t\x12 \n\x18supported_language_codes\x18\x04 \x03(\t\x12\x11\n\ttime_zone\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\navatar_uri\x18\x07 \x01(\t\x12\x16\n\x0e\x65nable_logging\x18\x08 \x01(\x08\x12\x44\n\nmatch_mode\x18\t \x01(\x0e\x32\x30.google.cloud.dialogflow.v2beta1.Agent.MatchMode\x12 \n\x18\x63lassification_threshold\x18\n \x01(\x02\x12\x46\n\x0b\x61pi_version\x18\x0e \x01(\x0e\x32\x31.google.cloud.dialogflow.v2beta1.Agent.ApiVersion\x12\x39\n\x04tier\x18\x0f \x01(\x0e\x32+.google.cloud.dialogflow.v2beta1.Agent.Tier"V\n\tMatchMode\x12\x1a\n\x16MATCH_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11MATCH_MODE_HYBRID\x10\x01\x12\x16\n\x12MATCH_MODE_ML_ONLY\x10\x02"l\n\nApiVersion\x12\x1b\n\x17\x41PI_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x41PI_VERSION_V1\x10\x01\x12\x12\n\x0e\x41PI_VERSION_V2\x10\x02\x12\x19\n\x15\x41PI_VERSION_V2_BETA_1\x10\x03"^\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x11\n\rTIER_STANDARD\x10\x01\x12\x13\n\x0fTIER_ENTERPRISE\x10\x02\x12\x18\n\x14TIER_ENTERPRISE_PLUS\x10\x03:m\xea\x41j\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x18projects/{project}/agent\x12-projects/{project}/locations/{location}/agent"!\n\x0fGetAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"y\n\x0fSetAgentRequest\x12\x35\n\x05\x61gent\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2beta1.Agent\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"$\n\x12\x44\x65leteAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"L\n\x13SearchAgentsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"g\n\x14SearchAgentsResponse\x12\x36\n\x06\x61gents\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2beta1.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"#\n\x11TrainAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"7\n\x12\x45xportAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tagent_uri\x18\x02 \x01(\t"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"[\n\x12ImportAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"\\\n\x13RestoreAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"C\n\x1aGetValidationResultRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t2\xaf\x0f\n\x06\x41gents\x12\xc2\x01\n\x08GetAgent\x12\x30.google.cloud.dialogflow.v2beta1.GetAgentRequest\x1a&.google.cloud.dialogflow.v2beta1.Agent"\\\x82\xd3\xe4\x93\x02V\x12"/v2beta1/{parent=projects/*}/agentZ0\x12./v2beta1/{parent=projects/*/locations/*}/agent\x12\xdc\x01\n\x08SetAgent\x12\x30.google.cloud.dialogflow.v2beta1.SetAgentRequest\x1a&.google.cloud.dialogflow.v2beta1.Agent"v\x82\xd3\xe4\x93\x02p"(/v2beta1/{agent.parent=projects/*}/agent:\x05\x61gentZ="4/v2beta1/{agent.parent=projects/*/locations/*}/agent:\x05\x61gent\x12\xb8\x01\n\x0b\x44\x65leteAgent\x12\x33.google.cloud.dialogflow.v2beta1.DeleteAgentRequest\x1a\x16.google.protobuf.Empty"\\\x82\xd3\xe4\x93\x02V*"/v2beta1/{parent=projects/*}/agentZ0*./v2beta1/{parent=projects/*/locations/*}/agent\x12\xae\x01\n\x0cSearchAgents\x12\x34.google.cloud.dialogflow.v2beta1.SearchAgentsRequest\x1a\x35.google.cloud.dialogflow.v2beta1.SearchAgentsResponse"1\x82\xd3\xe4\x93\x02+\x12)/v2beta1/{parent=projects/*}/agent:search\x12\xcf\x01\n\nTrainAgent\x12\x32.google.cloud.dialogflow.v2beta1.TrainAgentRequest\x1a\x1d.google.longrunning.Operation"n\x82\xd3\xe4\x93\x02h"(/v2beta1/{parent=projects/*}/agent:train:\x01*Z9"4/v2beta1/{parent=projects/*/locations/*}/agent:train:\x01*\x12\xd3\x01\n\x0b\x45xportAgent\x12\x33.google.cloud.dialogflow.v2beta1.ExportAgentRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02j")/v2beta1/{parent=projects/*}/agent:export:\x01*Z:"5/v2beta1/{parent=projects/*/locations/*}/agent:export:\x01*\x12\xd3\x01\n\x0bImportAgent\x12\x33.google.cloud.dialogflow.v2beta1.ImportAgentRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02j")/v2beta1/{parent=projects/*}/agent:import:\x01*Z:"5/v2beta1/{parent=projects/*/locations/*}/agent:import:\x01*\x12\xd7\x01\n\x0cRestoreAgent\x12\x34.google.cloud.dialogflow.v2beta1.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation"r\x82\xd3\xe4\x93\x02l"*/v2beta1/{parent=projects/*}/agent:restore:\x01*Z;"6/v2beta1/{parent=projects/*/locations/*}/agent:restore:\x01*\x12\xc2\x01\n\x13GetValidationResult\x12;.google.cloud.dialogflow.v2beta1.GetValidationResultRequest\x1a\x31.google.cloud.dialogflow.v2beta1.ValidationResult";\x82\xd3\xe4\x93\x02\x35\x12\x33/v2beta1/{parent=projects/*}/agent/validationResult\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa8\x01\n#com.google.cloud.dialogflow.v2beta1B\nAgentProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2beta1b\x06proto3' + '\n1google/cloud/dialogflow_v2beta1/proto/agent.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a=google/cloud/dialogflow_v2beta1/proto/validation_result.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/api/client.proto"\xc2\x06\n\x05\x41gent\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x1d\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\t\x12 \n\x18supported_language_codes\x18\x04 \x03(\t\x12\x11\n\ttime_zone\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\navatar_uri\x18\x07 \x01(\t\x12\x16\n\x0e\x65nable_logging\x18\x08 \x01(\x08\x12\x44\n\nmatch_mode\x18\t \x01(\x0e\x32\x30.google.cloud.dialogflow.v2beta1.Agent.MatchMode\x12 \n\x18\x63lassification_threshold\x18\n \x01(\x02\x12\x46\n\x0b\x61pi_version\x18\x0e \x01(\x0e\x32\x31.google.cloud.dialogflow.v2beta1.Agent.ApiVersion\x12\x39\n\x04tier\x18\x0f \x01(\x0e\x32+.google.cloud.dialogflow.v2beta1.Agent.Tier"V\n\tMatchMode\x12\x1a\n\x16MATCH_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11MATCH_MODE_HYBRID\x10\x01\x12\x16\n\x12MATCH_MODE_ML_ONLY\x10\x02"l\n\nApiVersion\x12\x1b\n\x17\x41PI_VERSION_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x41PI_VERSION_V1\x10\x01\x12\x12\n\x0e\x41PI_VERSION_V2\x10\x02\x12\x19\n\x15\x41PI_VERSION_V2_BETA_1\x10\x03"^\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x11\n\rTIER_STANDARD\x10\x01\x12\x13\n\x0fTIER_ENTERPRISE\x10\x02\x12\x18\n\x14TIER_ENTERPRISE_PLUS\x10\x03:m\xea\x41j\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x18projects/{project}/agent\x12-projects/{project}/locations/{location}/agent"!\n\x0fGetAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"y\n\x0fSetAgentRequest\x12\x35\n\x05\x61gent\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.v2beta1.Agent\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"$\n\x12\x44\x65leteAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"0\n\x08SubAgent\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\x13\n\x0b\x65nvironment\x18\x02 \x01(\t"L\n\x13SearchAgentsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"g\n\x14SearchAgentsResponse\x12\x36\n\x06\x61gents\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.v2beta1.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"#\n\x11TrainAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t"7\n\x12\x45xportAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tagent_uri\x18\x02 \x01(\t"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"[\n\x12ImportAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"\\\n\x13RestoreAgentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x42\x07\n\x05\x61gent"M\n\x1aGetValidationResultRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x01\x32\xaf\x0f\n\x06\x41gents\x12\xc2\x01\n\x08GetAgent\x12\x30.google.cloud.dialogflow.v2beta1.GetAgentRequest\x1a&.google.cloud.dialogflow.v2beta1.Agent"\\\x82\xd3\xe4\x93\x02V\x12"/v2beta1/{parent=projects/*}/agentZ0\x12./v2beta1/{parent=projects/*/locations/*}/agent\x12\xdc\x01\n\x08SetAgent\x12\x30.google.cloud.dialogflow.v2beta1.SetAgentRequest\x1a&.google.cloud.dialogflow.v2beta1.Agent"v\x82\xd3\xe4\x93\x02p"(/v2beta1/{agent.parent=projects/*}/agent:\x05\x61gentZ="4/v2beta1/{agent.parent=projects/*/locations/*}/agent:\x05\x61gent\x12\xb8\x01\n\x0b\x44\x65leteAgent\x12\x33.google.cloud.dialogflow.v2beta1.DeleteAgentRequest\x1a\x16.google.protobuf.Empty"\\\x82\xd3\xe4\x93\x02V*"/v2beta1/{parent=projects/*}/agentZ0*./v2beta1/{parent=projects/*/locations/*}/agent\x12\xae\x01\n\x0cSearchAgents\x12\x34.google.cloud.dialogflow.v2beta1.SearchAgentsRequest\x1a\x35.google.cloud.dialogflow.v2beta1.SearchAgentsResponse"1\x82\xd3\xe4\x93\x02+\x12)/v2beta1/{parent=projects/*}/agent:search\x12\xcf\x01\n\nTrainAgent\x12\x32.google.cloud.dialogflow.v2beta1.TrainAgentRequest\x1a\x1d.google.longrunning.Operation"n\x82\xd3\xe4\x93\x02h"(/v2beta1/{parent=projects/*}/agent:train:\x01*Z9"4/v2beta1/{parent=projects/*/locations/*}/agent:train:\x01*\x12\xd3\x01\n\x0b\x45xportAgent\x12\x33.google.cloud.dialogflow.v2beta1.ExportAgentRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02j")/v2beta1/{parent=projects/*}/agent:export:\x01*Z:"5/v2beta1/{parent=projects/*/locations/*}/agent:export:\x01*\x12\xd3\x01\n\x0bImportAgent\x12\x33.google.cloud.dialogflow.v2beta1.ImportAgentRequest\x1a\x1d.google.longrunning.Operation"p\x82\xd3\xe4\x93\x02j")/v2beta1/{parent=projects/*}/agent:import:\x01*Z:"5/v2beta1/{parent=projects/*/locations/*}/agent:import:\x01*\x12\xd7\x01\n\x0cRestoreAgent\x12\x34.google.cloud.dialogflow.v2beta1.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation"r\x82\xd3\xe4\x93\x02l"*/v2beta1/{parent=projects/*}/agent:restore:\x01*Z;"6/v2beta1/{parent=projects/*/locations/*}/agent:restore:\x01*\x12\xc2\x01\n\x13GetValidationResult\x12;.google.cloud.dialogflow.v2beta1.GetValidationResultRequest\x1a\x31.google.cloud.dialogflow.v2beta1.ValidationResult";\x82\xd3\xe4\x93\x02\x35\x12\x33/v2beta1/{parent=projects/*}/agent/validationResult\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xa8\x01\n#com.google.cloud.dialogflow.v2beta1B\nAgentProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2beta1b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -534,6 +534,63 @@ ) +_SUBAGENT = _descriptor.Descriptor( + name="SubAgent", + full_name="google.cloud.dialogflow.v2beta1.SubAgent", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="project", + full_name="google.cloud.dialogflow.v2beta1.SubAgent.project", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="environment", + full_name="google.cloud.dialogflow.v2beta1.SubAgent.environment", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1397, + serialized_end=1445, +) + + _SEARCHAGENTSREQUEST = _descriptor.Descriptor( name="SearchAgentsRequest", full_name="google.cloud.dialogflow.v2beta1.SearchAgentsRequest", @@ -604,8 +661,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1397, - serialized_end=1473, + serialized_start=1447, + serialized_end=1523, ) @@ -661,8 +718,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1475, - serialized_end=1578, + serialized_start=1525, + serialized_end=1628, ) @@ -700,8 +757,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1580, - serialized_end=1615, + serialized_start=1630, + serialized_end=1665, ) @@ -757,8 +814,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1617, - serialized_end=1672, + serialized_start=1667, + serialized_end=1722, ) @@ -822,8 +879,8 @@ fields=[], ) ], - serialized_start=1674, - serialized_end=1750, + serialized_start=1724, + serialized_end=1800, ) @@ -905,8 +962,8 @@ fields=[], ) ], - serialized_start=1752, - serialized_end=1843, + serialized_start=1802, + serialized_end=1893, ) @@ -988,8 +1045,8 @@ fields=[], ) ], - serialized_start=1845, - serialized_end=1937, + serialized_start=1895, + serialized_end=1987, ) @@ -1015,7 +1072,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=_b("\340A\002"), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -1033,7 +1090,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=_b("\340A\001"), file=DESCRIPTOR, ), ], @@ -1045,8 +1102,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1939, - serialized_end=2006, + serialized_start=1989, + serialized_end=2066, ) _AGENT.fields_by_name["match_mode"].enum_type = _AGENT_MATCHMODE @@ -1100,6 +1157,7 @@ DESCRIPTOR.message_types_by_name["GetAgentRequest"] = _GETAGENTREQUEST DESCRIPTOR.message_types_by_name["SetAgentRequest"] = _SETAGENTREQUEST DESCRIPTOR.message_types_by_name["DeleteAgentRequest"] = _DELETEAGENTREQUEST +DESCRIPTOR.message_types_by_name["SubAgent"] = _SUBAGENT DESCRIPTOR.message_types_by_name["SearchAgentsRequest"] = _SEARCHAGENTSREQUEST DESCRIPTOR.message_types_by_name["SearchAgentsResponse"] = _SEARCHAGENTSRESPONSE DESCRIPTOR.message_types_by_name["TrainAgentRequest"] = _TRAINAGENTREQUEST @@ -1240,6 +1298,29 @@ ) _sym_db.RegisterMessage(DeleteAgentRequest) +SubAgent = _reflection.GeneratedProtocolMessageType( + "SubAgent", + (_message.Message,), + dict( + DESCRIPTOR=_SUBAGENT, + __module__="google.cloud.dialogflow_v2beta1.proto.agent_pb2", + __doc__="""Contains basic configuration for a sub-agent. + + + Attributes: + project: + Required. The project of this agent. Format: + ``projects/``. + environment: + Optional. The unique identifier (``environment name`` in + dialogflow console) of this sub-agent environment. Assumes + draft environment if ``environment`` is not set. + """, + # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SubAgent) + ), +) +_sym_db.RegisterMessage(SubAgent) + SearchAgentsRequest = _reflection.GeneratedProtocolMessageType( "SearchAgentsRequest", (_message.Message,), @@ -1443,6 +1524,8 @@ DESCRIPTOR._options = None _AGENT._options = None +_GETVALIDATIONRESULTREQUEST.fields_by_name["parent"]._options = None +_GETVALIDATIONRESULTREQUEST.fields_by_name["language_code"]._options = None _AGENTS = _descriptor.ServiceDescriptor( name="Agents", @@ -1452,8 +1535,8 @@ serialized_options=_b( "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), - serialized_start=2009, - serialized_end=3976, + serialized_start=2069, + serialized_end=4036, methods=[ _descriptor.MethodDescriptor( name="GetAgent", diff --git a/dialogflow_v2beta1/proto/audio_config_pb2.py b/dialogflow_v2beta1/proto/audio_config_pb2.py index a4fd3729e..ef3db6c7a 100644 --- a/dialogflow_v2beta1/proto/audio_config_pb2.py +++ b/dialogflow_v2beta1/proto/audio_config_pb2.py @@ -19,6 +19,7 @@ from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 @@ -30,12 +31,13 @@ "\n#com.google.cloud.dialogflow.v2beta1B\020AudioConfigProtoP\001ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1" ), serialized_pb=_b( - '\n8google/cloud/dialogflow_v2beta1/proto/audio_config.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/api/annotations.proto"/\n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\x81\x03\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2beta1.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x1b\n\x0cphrase_hints\x18\x04 \x03(\tB\x05\x18\x01\xe0\x41\x01\x12G\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32..google.cloud.dialogflow.v2beta1.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12J\n\rmodel_variant\x18\n \x01(\x0e\x32\x33.google.cloud.dialogflow.v2beta1.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08"k\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32\x30.google.cloud.dialogflow.v2beta1.SsmlVoiceGender"\xb8\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2beta1.VoiceSelectionParams"\xd7\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2beta1.OutputAudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12Y\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xa4\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x42\xae\x01\n#com.google.cloud.dialogflow.v2beta1B\x10\x41udioConfigProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2beta1b\x06proto3' + '\n8google/cloud/dialogflow_v2beta1/proto/audio_config.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/api/annotations.proto"/\n\rSpeechContext\x12\x0f\n\x07phrases\x18\x01 \x03(\t\x12\r\n\x05\x62oost\x18\x02 \x01(\x02"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02"\x81\x03\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2beta1.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x1b\n\x0cphrase_hints\x18\x04 \x03(\tB\x05\x18\x01\xe0\x41\x01\x12G\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32..google.cloud.dialogflow.v2beta1.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12J\n\rmodel_variant\x18\n \x01(\x0e\x32\x33.google.cloud.dialogflow.v2beta1.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08"k\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32\x30.google.cloud.dialogflow.v2beta1.SsmlVoiceGender"\xb8\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x35.google.cloud.dialogflow.v2beta1.VoiceSelectionParams"\xdc\x01\n\x11OutputAudioConfig\x12Q\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12Y\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xa4\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x42\xae\x01\n#com.google.cloud.dialogflow.v2beta1B\x10\x41udioConfigProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2beta1b\x06proto3' ), dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, google_dot_api_dot_annotations__pb2.DESCRIPTOR, ], ) @@ -105,8 +107,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1316, - serialized_end=1567, + serialized_start=1355, + serialized_end=1606, ) _sym_db.RegisterEnumDescriptor(_AUDIOENCODING) @@ -140,8 +142,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1569, - serialized_end=1687, + serialized_start=1608, + serialized_end=1726, ) _sym_db.RegisterEnumDescriptor(_SPEECHMODELVARIANT) @@ -183,8 +185,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1690, - serialized_end=1831, + serialized_start=1729, + serialized_end=1870, ) _sym_db.RegisterEnumDescriptor(_SSMLVOICEGENDER) @@ -226,8 +228,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1834, - serialized_end=1998, + serialized_start=1873, + serialized_end=2037, ) _sym_db.RegisterEnumDescriptor(_OUTPUTAUDIOENCODING) @@ -306,8 +308,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=215, - serialized_end=262, + serialized_start=249, + serialized_end=296, ) @@ -399,8 +401,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=265, - serialized_end=411, + serialized_start=299, + serialized_end=445, ) @@ -582,8 +584,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=414, - serialized_end=799, + serialized_start=448, + serialized_end=833, ) @@ -639,8 +641,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=801, - serialized_end=908, + serialized_start=835, + serialized_end=942, ) @@ -750,8 +752,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=911, - serialized_end=1095, + serialized_start=945, + serialized_end=1129, ) @@ -777,7 +779,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=None, + serialized_options=_b("\340A\002"), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -825,8 +827,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1098, - serialized_end=1313, + serialized_start=1132, + serialized_end=1352, ) _SPEECHWORDINFO.fields_by_name[ @@ -966,10 +968,10 @@ See `the Cloud Speech documentation `__ for more details. This field is deprecated. Please - use speech\_contexts instead. If you specify both - phrase\_hints and speech\_contexts, Dialogflow - will treat the phrase\_hints as a single additional - SpeechContext. + use `speech\_contexts` instead. If you specify both + `phrase\_hints` and `speech\_contexts`, Dialogflow + will treat the `phrase\_hints` as a single additional + `SpeechContext`. speech_contexts: Optional. Context information to assist speech recognition. See `the Cloud Speech documentation @@ -1094,14 +1096,14 @@ audio_encoding: Required. Audio encoding of the synthesized audio content. sample_rate_hertz: - Optional. The synthesis sample rate (in hertz) for this audio. - If not provided, then the synthesizer will use the default - sample rate based on the audio encoding. If this is different - from the voice's natural sample rate, then the synthesizer - will honor this request by converting to the desired sample - rate (which might result in worse audio quality). + The synthesis sample rate (in hertz) for this audio. If not + provided, then the synthesizer will use the default sample + rate based on the audio encoding. If this is different from + the voice's natural sample rate, then the synthesizer will + honor this request by converting to the desired sample rate + (which might result in worse audio quality). synthesize_speech_config: - Optional. Configuration of how speech should be synthesized. + Configuration of how speech should be synthesized. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.OutputAudioConfig) ), @@ -1111,4 +1113,5 @@ DESCRIPTOR._options = None _INPUTAUDIOCONFIG.fields_by_name["phrase_hints"]._options = None +_OUTPUTAUDIOCONFIG.fields_by_name["audio_encoding"]._options = None # @@protoc_insertion_point(module_scope) diff --git a/dialogflow_v2beta1/proto/document_pb2.py b/dialogflow_v2beta1/proto/document_pb2.py index 9416207c1..de27fcd11 100644 --- a/dialogflow_v2beta1/proto/document_pb2.py +++ b/dialogflow_v2beta1/proto/document_pb2.py @@ -938,8 +938,7 @@ dict( DESCRIPTOR=_KNOWLEDGEOPERATIONMETADATA, __module__="google.cloud.dialogflow_v2beta1.proto.document_pb2", - __doc__="""Metadata in google::longrunning::Operation for Knowledge - operations. + __doc__="""Metadata in google::longrunning::Operation for Knowledge operations. Attributes: diff --git a/dialogflow_v2beta1/proto/session_pb2.py b/dialogflow_v2beta1/proto/session_pb2.py index ef9e6dad8..c622eb788 100644 --- a/dialogflow_v2beta1/proto/session_pb2.py +++ b/dialogflow_v2beta1/proto/session_pb2.py @@ -35,6 +35,7 @@ session_entity_type_pb2 as google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_session__entity__type__pb2, ) from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 from google.type import latlng_pb2 as google_dot_type_dot_latlng__pb2 @@ -49,7 +50,7 @@ "\n#com.google.cloud.dialogflow.v2beta1B\014SessionProtoP\001ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\370\001\001\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2beta1\352A\222\001\n!dialogflow.googleapis.com/Session\022@projects/{project}/locations/{location}/agent/sessions/{session}\022+projects/{project}/agent/sessions/{session}" ), serialized_pb=_b( - '\n3google/cloud/dialogflow_v2beta1/proto/session.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/dialogflow_v2beta1/proto/agent.proto\x1a\x38google/cloud/dialogflow_v2beta1/proto/audio_config.proto\x1a\x33google/cloud/dialogflow_v2beta1/proto/context.proto\x1a\x32google/cloud/dialogflow_v2beta1/proto/intent.proto\x1a?google/cloud/dialogflow_v2beta1/proto/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto\x1a\x17google/api/client.proto"\xbe\x02\n\x13\x44\x65tectIntentRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x46\n\x0cquery_params\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2beta1.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2beta1.QueryInput\x12O\n\x13output_audio_config\x18\x04 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig\x12\x13\n\x0binput_audio\x18\x05 \x01(\x0c"\xd3\x02\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12\x42\n\x0cquery_result\x18\x02 \x01(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12O\n\x19\x61lternative_query_results\x18\x05 \x03(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12O\n\x13output_audio_config\x18\x06 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig"\xbf\x04\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12:\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32(.google.cloud.dialogflow.v2beta1.Context\x12\x16\n\x0ereset_contexts\x18\x04 \x01(\x08\x12P\n\x14session_entity_types\x18\x05 \x03(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.SessionEntityType\x12(\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1c\n\x14knowledge_base_names\x18\x0c \x03(\t\x12j\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32?.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig\x12]\n\x0fwebhook_headers\x18\x0e \x03(\x0b\x32\x44.google.cloud.dialogflow.v2beta1.QueryParameters.WebhookHeadersEntry\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xda\x01\n\nQueryInput\x12I\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2beta1.InputAudioConfigH\x00\x12:\n\x04text\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2beta1.TextInputH\x00\x12<\n\x05\x65vent\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2beta1.EventInputH\x00\x42\x07\n\x05input"\xf2\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12M\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32/.google.cloud.dialogflow.v2beta1.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x41\n\x0foutput_contexts\x18\n \x03(\x0b\x32(.google.cloud.dialogflow.v2beta1.Context\x12\x37\n\x06intent\x18\x0b \x01(\x0b\x32\'.google.cloud.dialogflow.v2beta1.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12[\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x38.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult\x12L\n\x11knowledge_answers\x18\x12 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2beta1.KnowledgeAnswers"\xaf\x03\n\x10KnowledgeAnswers\x12I\n\x07\x61nswers\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer\x1a\xcf\x02\n\x06\x41nswer\x12\x37\n\x06source\x18\x01 \x01(\tB\'\xfa\x41$\n"dialogflow.googleapis.com/Document\x12\x14\n\x0c\x66\x61q_question\x18\x02 \x01(\t\x12\x0e\n\x06\x61nswer\x18\x03 \x01(\t\x12m\n\x16match_confidence_level\x18\x04 \x01(\x0e\x32M.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel\x12\x18\n\x10match_confidence\x18\x05 \x01(\x02"]\n\x14MatchConfidenceLevel\x12&\n"MATCH_CONFIDENCE_LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03LOW\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x08\n\x04HIGH\x10\x03"\xb9\x02\n\x1cStreamingDetectIntentRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x46\n\x0cquery_params\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2beta1.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2beta1.QueryInput\x12\x18\n\x10single_utterance\x18\x04 \x01(\x08\x12O\n\x13output_audio_config\x18\x05 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig\x12\x13\n\x0binput_audio\x18\x06 \x01(\x0c"\xb5\x03\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12W\n\x12recognition_result\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult\x12\x42\n\x0cquery_result\x18\x03 \x01(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12O\n\x19\x61lternative_query_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12O\n\x13output_audio_config\x18\x06 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig"\xa3\x03\n\x1aStreamingRecognitionResult\x12]\n\x0cmessage_type\x18\x01 \x01(\x0e\x32G.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x11\n\tstability\x18\x06 \x01(\x02\x12I\n\x10speech_word_info\x18\x07 \x03(\x0b\x32/.google.cloud.dialogflow.v2beta1.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02"0\n\tTextInput\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t"^\n\nEventInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\rlanguage_code\x18\x03 \x01(\t"F\n\x1eSentimentAnalysisRequestConfig\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08"c\n\x17SentimentAnalysisResult\x12H\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.v2beta1.Sentiment"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xf7\x05\n\x08Sessions\x12\xd1\x03\n\x0c\x44\x65tectIntent\x12\x34.google.cloud.dialogflow.v2beta1.DetectIntentRequest\x1a\x35.google.cloud.dialogflow.v2beta1.DetectIntentResponse"\xd3\x02\x82\xd3\xe4\x93\x02\xcc\x02";/v2beta1/{session=projects/*/agent/sessions/*}:detectIntent:\x01*ZW"R/v2beta1/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*ZL"G/v2beta1/{session=projects/*/locations/*/agent/sessions/*}:detectIntent:\x01*Zc"^/v2beta1/{session=projects/*/locations/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*\x12\x9c\x01\n\x15StreamingDetectIntent\x12=.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest\x1a>.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xc0\x02\n#com.google.cloud.dialogflow.v2beta1B\x0cSessionProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2beta1\xea\x41\x92\x01\n!dialogflow.googleapis.com/Session\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12+projects/{project}/agent/sessions/{session}b\x06proto3' + '\n3google/cloud/dialogflow_v2beta1/proto/session.proto\x12\x1fgoogle.cloud.dialogflow.v2beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x31google/cloud/dialogflow_v2beta1/proto/agent.proto\x1a\x38google/cloud/dialogflow_v2beta1/proto/audio_config.proto\x1a\x33google/cloud/dialogflow_v2beta1/proto/context.proto\x1a\x32google/cloud/dialogflow_v2beta1/proto/intent.proto\x1a?google/cloud/dialogflow_v2beta1/proto/session_entity_type.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17google/rpc/status.proto\x1a\x18google/type/latlng.proto\x1a\x17google/api/client.proto"\xfc\x02\n\x13\x44\x65tectIntentRequest\x12\x37\n\x07session\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Session\x12\x46\n\x0cquery_params\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2beta1.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2beta1.QueryInput\x12O\n\x13output_audio_config\x18\x04 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x05 \x01(\x0c"\xd3\x02\n\x14\x44\x65tectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12\x42\n\x0cquery_result\x18\x02 \x01(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12O\n\x19\x61lternative_query_results\x18\x05 \x03(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12*\n\x0ewebhook_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x04 \x01(\x0c\x12O\n\x13output_audio_config\x18\x06 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig"\xfe\x04\n\x0fQueryParameters\x12\x11\n\ttime_zone\x18\x01 \x01(\t\x12)\n\x0cgeo_location\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\x12:\n\x08\x63ontexts\x18\x03 \x03(\x0b\x32(.google.cloud.dialogflow.v2beta1.Context\x12\x16\n\x0ereset_contexts\x18\x04 \x01(\x08\x12P\n\x14session_entity_types\x18\x05 \x03(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.SessionEntityType\x12(\n\x07payload\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x1c\n\x14knowledge_base_names\x18\x0c \x03(\t\x12j\n!sentiment_analysis_request_config\x18\n \x01(\x0b\x32?.google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig\x12=\n\nsub_agents\x18\r \x03(\x0b\x32).google.cloud.dialogflow.v2beta1.SubAgent\x12]\n\x0fwebhook_headers\x18\x0e \x03(\x0b\x32\x44.google.cloud.dialogflow.v2beta1.QueryParameters.WebhookHeadersEntry\x1a\x35\n\x13WebhookHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xda\x01\n\nQueryInput\x12I\n\x0c\x61udio_config\x18\x01 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2beta1.InputAudioConfigH\x00\x12:\n\x04text\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2beta1.TextInputH\x00\x12<\n\x05\x65vent\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2beta1.EventInputH\x00\x42\x07\n\x05input"\xf2\x05\n\x0bQueryResult\x12\x12\n\nquery_text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x0f \x01(\t\x12%\n\x1dspeech_recognition_confidence\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tion\x18\x03 \x01(\t\x12+\n\nparameters\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12#\n\x1b\x61ll_required_params_present\x18\x05 \x01(\x08\x12\x18\n\x10\x66ulfillment_text\x18\x06 \x01(\t\x12M\n\x14\x66ulfillment_messages\x18\x07 \x03(\x0b\x32/.google.cloud.dialogflow.v2beta1.Intent.Message\x12\x16\n\x0ewebhook_source\x18\x08 \x01(\t\x12\x30\n\x0fwebhook_payload\x18\t \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x41\n\x0foutput_contexts\x18\n \x03(\x0b\x32(.google.cloud.dialogflow.v2beta1.Context\x12\x37\n\x06intent\x18\x0b \x01(\x0b\x32\'.google.cloud.dialogflow.v2beta1.Intent\x12#\n\x1bintent_detection_confidence\x18\x0c \x01(\x02\x12\x30\n\x0f\x64iagnostic_info\x18\x0e \x01(\x0b\x32\x17.google.protobuf.Struct\x12[\n\x19sentiment_analysis_result\x18\x11 \x01(\x0b\x32\x38.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult\x12L\n\x11knowledge_answers\x18\x12 \x01(\x0b\x32\x31.google.cloud.dialogflow.v2beta1.KnowledgeAnswers"\xaf\x03\n\x10KnowledgeAnswers\x12I\n\x07\x61nswers\x18\x01 \x03(\x0b\x32\x38.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer\x1a\xcf\x02\n\x06\x41nswer\x12\x37\n\x06source\x18\x01 \x01(\tB\'\xfa\x41$\n"dialogflow.googleapis.com/Document\x12\x14\n\x0c\x66\x61q_question\x18\x02 \x01(\t\x12\x0e\n\x06\x61nswer\x18\x03 \x01(\t\x12m\n\x16match_confidence_level\x18\x04 \x01(\x0e\x32M.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel\x12\x18\n\x10match_confidence\x18\x05 \x01(\x02"]\n\x14MatchConfidenceLevel\x12&\n"MATCH_CONFIDENCE_LEVEL_UNSPECIFIED\x10\x00\x12\x07\n\x03LOW\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x08\n\x04HIGH\x10\x03"\xf7\x02\n\x1cStreamingDetectIntentRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x46\n\x0cquery_params\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2beta1.QueryParameters\x12@\n\x0bquery_input\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.v2beta1.QueryInput\x12\x18\n\x10single_utterance\x18\x04 \x01(\x08\x12O\n\x13output_audio_config\x18\x05 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig\x12<\n\x18output_audio_config_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x13\n\x0binput_audio\x18\x06 \x01(\x0c"\xb5\x03\n\x1dStreamingDetectIntentResponse\x12\x13\n\x0bresponse_id\x18\x01 \x01(\t\x12W\n\x12recognition_result\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult\x12\x42\n\x0cquery_result\x18\x03 \x01(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12O\n\x19\x61lternative_query_results\x18\x07 \x03(\x0b\x32,.google.cloud.dialogflow.v2beta1.QueryResult\x12*\n\x0ewebhook_status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12\x14\n\x0coutput_audio\x18\x05 \x01(\x0c\x12O\n\x13output_audio_config\x18\x06 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2beta1.OutputAudioConfig"\xa3\x03\n\x1aStreamingRecognitionResult\x12]\n\x0cmessage_type\x18\x01 \x01(\x0e\x32G.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.MessageType\x12\x12\n\ntranscript\x18\x02 \x01(\t\x12\x10\n\x08is_final\x18\x03 \x01(\x08\x12\x12\n\nconfidence\x18\x04 \x01(\x02\x12\x11\n\tstability\x18\x06 \x01(\x02\x12I\n\x10speech_word_info\x18\x07 \x03(\x0b\x32/.google.cloud.dialogflow.v2beta1.SpeechWordInfo\x12\x34\n\x11speech_end_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration"X\n\x0bMessageType\x12\x1c\n\x18MESSAGE_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nTRANSCRIPT\x10\x01\x12\x1b\n\x17\x45ND_OF_SINGLE_UTTERANCE\x10\x02"0\n\tTextInput\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t"^\n\nEventInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\nparameters\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\rlanguage_code\x18\x03 \x01(\t"F\n\x1eSentimentAnalysisRequestConfig\x12$\n\x1c\x61nalyze_query_text_sentiment\x18\x01 \x01(\x08"c\n\x17SentimentAnalysisResult\x12H\n\x14query_text_sentiment\x18\x01 \x01(\x0b\x32*.google.cloud.dialogflow.v2beta1.Sentiment"-\n\tSentiment\x12\r\n\x05score\x18\x01 \x01(\x02\x12\x11\n\tmagnitude\x18\x02 \x01(\x02\x32\xf7\x05\n\x08Sessions\x12\xd1\x03\n\x0c\x44\x65tectIntent\x12\x34.google.cloud.dialogflow.v2beta1.DetectIntentRequest\x1a\x35.google.cloud.dialogflow.v2beta1.DetectIntentResponse"\xd3\x02\x82\xd3\xe4\x93\x02\xcc\x02";/v2beta1/{session=projects/*/agent/sessions/*}:detectIntent:\x01*ZW"R/v2beta1/{session=projects/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*ZL"G/v2beta1/{session=projects/*/locations/*/agent/sessions/*}:detectIntent:\x01*Zc"^/v2beta1/{session=projects/*/locations/*/agent/environments/*/users/*/sessions/*}:detectIntent:\x01*\x12\x9c\x01\n\x15StreamingDetectIntent\x12=.google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest\x1a>.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse"\x00(\x01\x30\x01\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xc0\x02\n#com.google.cloud.dialogflow.v2beta1B\x0cSessionProtoP\x01ZIgoogle.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1fGoogle.Cloud.Dialogflow.V2beta1\xea\x41\x92\x01\n!dialogflow.googleapis.com/Session\x12@projects/{project}/locations/{location}/agent/sessions/{session}\x12+projects/{project}/agent/sessions/{session}b\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, @@ -61,6 +62,7 @@ google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_intent__pb2.DESCRIPTOR, google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_session__entity__type__pb2.DESCRIPTOR, google_dot_protobuf_dot_duration__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, google_dot_rpc_dot_status__pb2.DESCRIPTOR, google_dot_type_dot_latlng__pb2.DESCRIPTOR, @@ -94,8 +96,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3153, - serialized_end=3246, + serialized_start=3312, + serialized_end=3405, ) _sym_db.RegisterEnumDescriptor(_KNOWLEDGEANSWERS_ANSWER_MATCHCONFIDENCELEVEL) @@ -125,8 +127,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=4336, - serialized_end=4424, + serialized_start=4557, + serialized_end=4645, ) _sym_db.RegisterEnumDescriptor(_STREAMINGRECOGNITIONRESULT_MESSAGETYPE) @@ -210,10 +212,28 @@ serialized_options=None, file=DESCRIPTOR, ), + _descriptor.FieldDescriptor( + name="output_audio_config_mask", + full_name="google.cloud.dialogflow.v2beta1.DetectIntentRequest.output_audio_config_mask", + index=4, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), _descriptor.FieldDescriptor( name="input_audio", full_name="google.cloud.dialogflow.v2beta1.DetectIntentRequest.input_audio", - index=4, + index=5, number=5, type=12, cpp_type=9, @@ -237,8 +257,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=596, - serialized_end=914, + serialized_start=630, + serialized_end=1010, ) @@ -366,8 +386,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=917, - serialized_end=1256, + serialized_start=1013, + serialized_end=1352, ) @@ -423,8 +443,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1781, - serialized_end=1834, + serialized_start=1940, + serialized_end=1993, ) _QUERYPARAMETERS = _descriptor.Descriptor( @@ -578,10 +598,28 @@ serialized_options=None, file=DESCRIPTOR, ), + _descriptor.FieldDescriptor( + name="sub_agents", + full_name="google.cloud.dialogflow.v2beta1.QueryParameters.sub_agents", + index=8, + number=13, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), _descriptor.FieldDescriptor( name="webhook_headers", full_name="google.cloud.dialogflow.v2beta1.QueryParameters.webhook_headers", - index=8, + index=9, number=14, type=11, cpp_type=10, @@ -605,8 +643,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1259, - serialized_end=1834, + serialized_start=1355, + serialized_end=1993, ) @@ -688,8 +726,8 @@ fields=[], ) ], - serialized_start=1837, - serialized_end=2055, + serialized_start=1996, + serialized_end=2214, ) @@ -997,8 +1035,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2058, - serialized_end=2812, + serialized_start=2217, + serialized_end=2971, ) @@ -1108,8 +1146,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2911, - serialized_end=3246, + serialized_start=3070, + serialized_end=3405, ) _KNOWLEDGEANSWERS = _descriptor.Descriptor( @@ -1146,8 +1184,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2815, - serialized_end=3246, + serialized_start=2974, + serialized_end=3405, ) @@ -1248,10 +1286,28 @@ serialized_options=None, file=DESCRIPTOR, ), + _descriptor.FieldDescriptor( + name="output_audio_config_mask", + full_name="google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.output_audio_config_mask", + index=5, + number=7, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), _descriptor.FieldDescriptor( name="input_audio", full_name="google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest.input_audio", - index=5, + index=6, number=6, type=12, cpp_type=9, @@ -1275,8 +1331,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3249, - serialized_end=3562, + serialized_start=3408, + serialized_end=3783, ) @@ -1422,8 +1478,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3565, - serialized_end=4002, + serialized_start=3786, + serialized_end=4223, ) @@ -1569,8 +1625,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4005, - serialized_end=4424, + serialized_start=4226, + serialized_end=4645, ) @@ -1626,8 +1682,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4426, - serialized_end=4474, + serialized_start=4647, + serialized_end=4695, ) @@ -1701,8 +1757,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4476, - serialized_end=4570, + serialized_start=4697, + serialized_end=4791, ) @@ -1740,8 +1796,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4572, - serialized_end=4642, + serialized_start=4793, + serialized_end=4863, ) @@ -1779,8 +1835,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4644, - serialized_end=4743, + serialized_start=4865, + serialized_end=4964, ) @@ -1836,8 +1892,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4745, - serialized_end=4790, + serialized_start=4966, + serialized_end=5011, ) _DETECTINTENTREQUEST.fields_by_name["query_params"].message_type = _QUERYPARAMETERS @@ -1847,6 +1903,9 @@ ].message_type = ( google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_audio__config__pb2._OUTPUTAUDIOCONFIG ) +_DETECTINTENTREQUEST.fields_by_name[ + "output_audio_config_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _DETECTINTENTRESPONSE.fields_by_name["query_result"].message_type = _QUERYRESULT _DETECTINTENTRESPONSE.fields_by_name[ "alternative_query_results" @@ -1879,6 +1938,11 @@ _QUERYPARAMETERS.fields_by_name[ "sentiment_analysis_request_config" ].message_type = _SENTIMENTANALYSISREQUESTCONFIG +_QUERYPARAMETERS.fields_by_name[ + "sub_agents" +].message_type = ( + google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_agent__pb2._SUBAGENT +) _QUERYPARAMETERS.fields_by_name[ "webhook_headers" ].message_type = _QUERYPARAMETERS_WEBHOOKHEADERSENTRY @@ -1946,6 +2010,9 @@ ].message_type = ( google_dot_cloud_dot_dialogflow__v2beta1_dot_proto_dot_audio__config__pb2._OUTPUTAUDIOCONFIG ) +_STREAMINGDETECTINTENTREQUEST.fields_by_name[ + "output_audio_config_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _STREAMINGDETECTINTENTRESPONSE.fields_by_name[ "recognition_result" ].message_type = _STREAMINGRECOGNITIONRESULT @@ -2029,7 +2096,7 @@ and session identifiers (preferably hashed). The length of the ``Session ID`` and ``User ID`` must not exceed 36 characters. query_params: - Optional. The parameters of this query. + The parameters of this query. query_input: Required. The input specification. It can be set to: 1. an audio config which instructs the speech recognizer how to @@ -2037,14 +2104,22 @@ form of text, or 3. an event that specifies which intent to trigger. output_audio_config: - Optional. Instructs the speech synthesizer how to generate the - output audio. If this field is not set and agent-level speech + Instructs the speech synthesizer how to generate the output + audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. + output_audio_config_mask: + Mask for [output\_audio\_config][google.cloud.dialogflow.v2bet + a1.DetectIntentRequest.output\_audio\_config] indicating which + settings in this request-level config should override speech + synthesizer settings defined at agent-level. If unspecified + or empty, [output\_audio\_config][google.cloud.dialogflow.v2be + ta1.DetectIntentRequest.output\_audio\_config] replaces the + agent-level config in its entirety. input_audio: - Optional. The natural language speech audio to be processed. - This field should be populated iff ``query_input`` is set to - an input audio config. A single request can contain up to 1 - minute of speech audio data. + The natural language speech audio to be processed. This field + should be populated iff ``query_input`` is set to an input + audio config. A single request can contain up to 1 minute of + speech audio data. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.DetectIntentRequest) ), @@ -2117,40 +2192,46 @@ Attributes: time_zone: - Optional. The time zone of this conversational query from the - `time zone database `__, - e.g., America/New\_York, Europe/Paris. If not provided, the - time zone specified in agent settings is used. + The time zone of this conversational query from the `time zone + database `__, e.g., + America/New\_York, Europe/Paris. If not provided, the time + zone specified in agent settings is used. geo_location: - Optional. The geo location of this conversational query. + The geo location of this conversational query. contexts: - Optional. The collection of contexts to be activated before - this query is executed. + The collection of contexts to be activated before this query + is executed. reset_contexts: - Optional. Specifies whether to delete all contexts in the - current session before the new ones are activated. + Specifies whether to delete all contexts in the current + session before the new ones are activated. session_entity_types: - Optional. Additional session entity types to replace or extend - developer entity types with. The entity synonyms apply to all - languages and persist for the session of this query. + Additional session entity types to replace or extend developer + entity types with. The entity synonyms apply to all languages + and persist for the session of this query. payload: - Optional. This field can be used to pass custom data into the - webhook associated with the agent. Arbitrary JSON objects are + This field can be used to pass custom data into the webhook + associated with the agent. Arbitrary JSON objects are supported. knowledge_base_names: - Optional. KnowledgeBases to get alternative results from. If - not set, the KnowledgeBases enabled in the agent (through UI) - will be used. Format: ``projects//knowledgeBases/``. sentiment_analysis_request_config: - Optional. Configures the type of sentiment analysis to - perform. If not provided, sentiment analysis is not performed. - Note: Sentiment Analysis is only currently available for - Enterprise Edition agents. + Configures the type of sentiment analysis to perform. If not + provided, sentiment analysis is not performed. Note: Sentiment + Analysis is only currently available for Enterprise Edition + agents. + sub_agents: + For mega agent query, directly specify which sub agents to + query. If any specified sub agent is not linked to the mega + agent, an error will be returned. If empty, Dialogflow will + decide which sub agents to query. If specified for a non-mega- + agent query, will be silently ignored. webhook_headers: - Optional. This field can be used to pass HTTP headers for a - webhook call. These headers will be sent to webhook alone with - the headers that have been configured through Dialogflow web + This field can be used to pass HTTP headers for a webhook + call. These headers will be sent to webhook alone with the + headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google's @@ -2413,7 +2494,7 @@ session identifiers (preferably hashed). The length of the ``Session ID`` and ``User ID`` must not exceed 36 characters. query_params: - Optional. The parameters of this query. + The parameters of this query. query_input: Required. The input specification. It can be set to: 1. an audio config which instructs the speech recognizer how to @@ -2423,24 +2504,31 @@ single_utterance: DEPRECATED. Please use [InputAudioConfig.single\_utterance][go ogle.cloud.dialogflow.v2beta1.InputAudioConfig.single\_utteran - ce] instead. Optional. If ``false`` (default), recognition - does not cease until the client closes the stream. If - ``true``, the recognizer will detect a single spoken utterance - in input audio. Recognition ceases when it detects the audio's - voice has stopped or paused. In this case, once a detected - intent is received, the client should close the stream and - start a new request with a new stream as needed. This setting - is ignored when ``query_input`` is a piece of text or an - event. + ce] instead. If ``false`` (default), recognition does not + cease until the client closes the stream. If ``true``, the + recognizer will detect a single spoken utterance in input + audio. Recognition ceases when it detects the audio's voice + has stopped or paused. In this case, once a detected intent is + received, the client should close the stream and start a new + request with a new stream as needed. This setting is ignored + when ``query_input`` is a piece of text or an event. output_audio_config: - Optional. Instructs the speech synthesizer how to generate the - output audio. If this field is not set and agent-level speech + Instructs the speech synthesizer how to generate the output + audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. + output_audio_config_mask: + Mask for [output\_audio\_config][google.cloud.dialogflow.v2bet + a1.StreamingDetectIntentRequest.output\_audio\_config] + indicating which settings in this request-level config should + override speech synthesizer settings defined at agent-level. + If unspecified or empty, [output\_audio\_config][google.cloud. + dialogflow.v2beta1.StreamingDetectIntentRequest.output\_audio\ + _config] replaces the agent-level config in its entirety. input_audio: - Optional. The input audio content to be recognized. Must be - sent if ``query_input`` was set to a streaming input audio - config. The complete audio over all streaming messages must - not exceed 1 minute. + The input audio content to be recognized. Must be sent if + ``query_input`` was set to a streaming input audio config. The + complete audio over all streaming messages must not exceed 1 + minute. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest) ), @@ -2637,8 +2725,7 @@ name: Required. The unique identifier of the event. parameters: - Optional. The collection of parameters associated with the - event. + The collection of parameters associated with the event. language_code: Required. The language of this query. See `Language Support `__ @@ -2662,8 +2749,8 @@ Attributes: analyze_query_text_sentiment: - Optional. Instructs the service to perform sentiment analysis - on ``query_text``. If not provided, sentiment analysis is not + Instructs the service to perform sentiment analysis on + ``query_text``. If not provided, sentiment analysis is not performed on ``query_text``. """, # @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig) @@ -2728,8 +2815,8 @@ serialized_options=_b( "\312A\031dialogflow.googleapis.com\322AYhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" ), - serialized_start=4793, - serialized_end=5552, + serialized_start=5014, + serialized_end=5773, methods=[ _descriptor.MethodDescriptor( name="DetectIntent", diff --git a/synth.metadata b/synth.metadata index 6bce94e26..e6096044a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2020-01-28T00:20:53.799892Z", + "updateTime": "2020-03-26T18:20:13.139271Z", "sources": [ { "generator": { "name": "artman", - "version": "0.43.0", - "dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20" + "version": "1.1.1", + "dockerImage": "googleapis/artman@sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b" } }, { "git": { - "name": "googleapis", - "remote": "git@github.com:googleapis/googleapis.git", - "sha": "8e981acfd9b97ea2f312f11bbaa7b6c16e412dea", - "internalRef": "291821782" + "name": ".", + "remote": "git@github.com:googleapis/dialogflow-python-client-v2.git", + "sha": "1c25409d4ee04503840a23d86adf31e3d3ec02ff" } }, { - "template": { - "name": "python_library", - "origin": "synthtool.gcp", - "version": "2019.10.17" + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "65816afa71e588252b7119dc723592abe51ea106", + "internalRef": "303150338" } } ], @@ -45,364 +45,5 @@ "config": "google/cloud/dialogflow/v2/artman_dialogflow_v2.yaml" } } - ], - "newFiles": [ - { - "path": "MANIFEST.in" - }, - { - "path": ".flake8" - }, - { - "path": ".coveragerc" - }, - { - "path": "setup.cfg" - }, - { - "path": "LICENSE" - }, - { - "path": "dialogflow_v2/types.py" - }, - { - "path": "dialogflow_v2/__init__.py" - }, - { - "path": "dialogflow_v2/gapic/entity_types_client_config.py" - }, - { - "path": "dialogflow_v2/gapic/session_entity_types_client_config.py" - }, - { - "path": "dialogflow_v2/gapic/__init__.py" - }, - { - "path": "dialogflow_v2/gapic/session_entity_types_client.py" - }, - { - "path": "dialogflow_v2/gapic/agents_client_config.py" - }, - { - "path": "dialogflow_v2/gapic/agents_client.py" - }, - { - "path": "dialogflow_v2/gapic/enums.py" - }, - { - "path": "dialogflow_v2/gapic/contexts_client_config.py" - }, - { - "path": "dialogflow_v2/gapic/sessions_client_config.py" - }, - { - "path": "dialogflow_v2/gapic/intents_client_config.py" - }, - { - "path": "dialogflow_v2/gapic/contexts_client.py" - }, - { - "path": "dialogflow_v2/gapic/intents_client.py" - }, - { - "path": "dialogflow_v2/gapic/sessions_client.py" - }, - { - "path": "dialogflow_v2/gapic/entity_types_client.py" - }, - { - "path": "dialogflow_v2/gapic/transports/intents_grpc_transport.py" - }, - { - "path": "dialogflow_v2/gapic/transports/__init__.py" - }, - { - "path": "dialogflow_v2/gapic/transports/sessions_grpc_transport.py" - }, - { - "path": "dialogflow_v2/gapic/transports/contexts_grpc_transport.py" - }, - { - "path": "dialogflow_v2/gapic/transports/agents_grpc_transport.py" - }, - { - "path": "dialogflow_v2/gapic/transports/entity_types_grpc_transport.py" - }, - { - "path": "dialogflow_v2/gapic/transports/session_entity_types_grpc_transport.py" - }, - { - "path": "dialogflow_v2/proto/intent_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/entity_type_pb2.py" - }, - { - "path": "dialogflow_v2/proto/__init__.py" - }, - { - "path": "dialogflow_v2/proto/audio_config_pb2.py" - }, - { - "path": "dialogflow_v2/proto/session_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/session_entity_type_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/agent_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/context_pb2.py" - }, - { - "path": "dialogflow_v2/proto/audio_config_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/webhook_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/intent_pb2.py" - }, - { - "path": "dialogflow_v2/proto/entity_type_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/webhook_pb2.py" - }, - { - "path": "dialogflow_v2/proto/session_entity_type_pb2.py" - }, - { - "path": "dialogflow_v2/proto/agent_pb2.py" - }, - { - "path": "dialogflow_v2/proto/context_pb2_grpc.py" - }, - { - "path": "dialogflow_v2/proto/session_pb2.py" - }, - { - "path": "docs/_static/custom.css" - }, - { - "path": "docs/gapic/v2/api.rst" - }, - { - "path": "docs/gapic/v2/types.rst" - }, - { - "path": "docs/gapic/v2beta1/api.rst" - }, - { - "path": "docs/gapic/v2beta1/types.rst" - }, - { - "path": "docs/_templates/layout.html" - }, - { - "path": "tests/unit/gapic/v2/test_sessions_client_v2.py" - }, - { - "path": "tests/unit/gapic/v2/test_intents_client_v2.py" - }, - { - "path": "tests/unit/gapic/v2/test_contexts_client_v2.py" - }, - { - "path": "tests/unit/gapic/v2/test_session_entity_types_client_v2.py" - }, - { - "path": "tests/unit/gapic/v2/test_entity_types_client_v2.py" - }, - { - "path": "tests/unit/gapic/v2/test_agents_client_v2.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_contexts_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_session_entity_types_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_agents_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_intents_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_sessions_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_entity_types_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_documents_client_v2beta1.py" - }, - { - "path": "tests/unit/gapic/v2beta1/test_knowledge_bases_client_v2beta1.py" - }, - { - "path": "dialogflow_v2beta1/types.py" - }, - { - "path": "dialogflow_v2beta1/__init__.py" - }, - { - "path": "dialogflow_v2beta1/gapic/entity_types_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/session_entity_types_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/__init__.py" - }, - { - "path": "dialogflow_v2beta1/gapic/session_entity_types_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/knowledge_bases_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/agents_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/documents_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/agents_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/enums.py" - }, - { - "path": "dialogflow_v2beta1/gapic/contexts_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/sessions_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/intents_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/contexts_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/documents_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/knowledge_bases_client_config.py" - }, - { - "path": "dialogflow_v2beta1/gapic/intents_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/sessions_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/entity_types_client.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/intents_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/__init__.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/sessions_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/contexts_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/documents_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/knowledge_bases_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/agents_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/entity_types_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/gapic/transports/session_entity_types_grpc_transport.py" - }, - { - "path": "dialogflow_v2beta1/proto/intent_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/gcs_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/knowledge_base_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/entity_type_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/__init__.py" - }, - { - "path": "dialogflow_v2beta1/proto/audio_config_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/session_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/knowledge_base_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/session_entity_type_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/agent_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/document_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/context_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/audio_config_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/webhook_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/intent_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/entity_type_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/document_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/webhook_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/validation_result_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/session_entity_type_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/gcs_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/validation_result_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/agent_pb2.py" - }, - { - "path": "dialogflow_v2beta1/proto/context_pb2_grpc.py" - }, - { - "path": "dialogflow_v2beta1/proto/session_pb2.py" - } ] } \ No newline at end of file diff --git a/synth.py b/synth.py index f8bde278c..f8c9ce0ec 100644 --- a/synth.py +++ b/synth.py @@ -18,18 +18,12 @@ from synthtool import gcp gapic = gcp.GAPICGenerator() -common = gcp.CommonTemplates() versions = ["v2beta1", "v2"] for version in versions: - library = gapic.py_library( - "dialogflow", - version, - config_path=version + "/artman_dialogflow_" + version + ".yaml", - include_protos=True, - ) + library = gapic.py_library("dialogflow", version, config_path=version + '/artman_dialogflow_' + version + '.yaml', include_protos=True) s.move( library, @@ -101,19 +95,29 @@ ) # Docstring has '-----' which is interpreted as RST section title -s.replace("dialogflow_v2beta1/proto/intent_pb2.py", "\s+-----------", "") +s.replace( + "dialogflow_v2beta1/proto/intent_pb2.py", + "\s+-----------", + "" +) -s.replace("dialogflow_v2/proto/agent_pb2.py", ":math:", "") -s.replace("dialogflow_v2/proto/agent_pb2.py", ":raw-latex:", "") +s.replace( + "dialogflow_*/proto/session_pb2.py", + "============================================================================", + "" +) -# Docstring has links with no target -s.replace("dialogflow_v*/proto/audio_config_pb2.py", "`(.+?) \<\>`__", "\g<1>") -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library(coverage=96) -s.move(templated_files, excludes=['noxfile.py']) +# Replace bad hyperlink references +s.replace( + "dialogflow_*/proto/audio_config_pb2.py", + "\s*\<\>`__", + "`" +) +s.replace('dialogflow_v2/proto/agent_pb2.py', ':math:', '') +s.replace('dialogflow_v2/proto/agent_pb2.py', ':raw-latex:', '') + s.shell.run(["nox", "-s", "blacken"], hide_output=False) + diff --git a/tests/unit/gapic/v2/test_agents_client_v2.py b/tests/unit/gapic/v2/test_agents_client_v2.py index 441792f70..fafab4613 100644 --- a/tests/unit/gapic/v2/test_agents_client_v2.py +++ b/tests/unit/gapic/v2/test_agents_client_v2.py @@ -23,6 +23,7 @@ import dialogflow_v2 from dialogflow_v2.proto import agent_pb2 +from dialogflow_v2.proto import validation_result_pb2 from google.longrunning import operations_pb2 from google.protobuf import empty_pb2 @@ -446,3 +447,34 @@ def test_restore_agent_exception(self): response = client.restore_agent(parent) exception = response.exception() assert exception.errors[0] == error + + def test_get_validation_result(self): + # Setup Expected Response + expected_response = {} + expected_response = validation_result_pb2.ValidationResult(**expected_response) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = dialogflow_v2.AgentsClient() + + response = client.get_validation_result() + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = agent_pb2.GetValidationResultRequest() + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_get_validation_result_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = dialogflow_v2.AgentsClient() + + with pytest.raises(CustomException): + client.get_validation_result()