Skip to content

Commit

Permalink
chore: [google-cloud-dialogflow-cx] Update gapic-generator-python to …
Browse files Browse the repository at this point in the history
…v1.18.3 (#12918)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 656040068

Source-Link:
googleapis/googleapis@3f4e29a

Source-Link:
googleapis/googleapis-gen@b8feb21
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImI4ZmViMjEwOWRkZTdiMDkzOGMyMmM5OTNkMDAyMjUxYWM2NzE0ZGMifQ==

BEGIN_NESTED_COMMIT
chore: [google-cloud-dialogflow-cx] Update gapic-generator-python to
v1.18.3
PiperOrigin-RevId: 655567917

Source-Link:
googleapis/googleapis@43aa65e

Source-Link:
googleapis/googleapis-gen@0e38378
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6IjBlMzgzNzg3NTMwNzRjMGY2NmZmNjMzNDhkNjg2NDkyOWUxMDRkNWMifQ==
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [google-cloud-dialogflow-cx] exposed DataStoreConnectionSignals
BEGIN_COMMIT_OVERRIDE
feat: [google-cloud-dialogflow-cx] exposed DataStoreConnectionSignals
feat: added support for lock flow
feat: added support for multi language settings in flow
feat: added support for service directory in tools
feat: added support for oauth and service agent auth for webhook.
feat: expose store tts option in security settings
feat: expose PersonalizationSettings & SpeechSettings in v3 API.
docs: clarified wording around enable_stackdriver_logging &
enable_interaction_logging
docs: clarified wording around start point of test config.
docs: clarified wording around audio redaction
END_COMMIT_OVERRIDE

PiperOrigin-RevId: 654775620

Source-Link:
googleapis/googleapis@d44c300

Source-Link:
googleapis/googleapis-gen@f4bd9f8
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImY0YmQ5ZjhjYmZhNzVhNTMxZDU3MWJlMTBlNjhmMWQ1MWNjMWYzZWEifQ==
END_NESTED_COMMIT

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
  • Loading branch information
3 people authored Jul 29, 2024
1 parent 25624f2 commit fbe3394
Show file tree
Hide file tree
Showing 25 changed files with 893 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
)
from google.cloud.dialogflowcx_v3.types.data_store_connection import (
DataStoreConnection,
DataStoreConnectionSignals,
DataStoreType,
)
from google.cloud.dialogflowcx_v3.types.deployment import (
Expand Down Expand Up @@ -361,6 +362,7 @@
CreateWebhookRequest,
DeleteWebhookRequest,
GetWebhookRequest,
LanguageInfo,
ListWebhooksRequest,
ListWebhooksResponse,
PageInfo,
Expand Down Expand Up @@ -439,6 +441,7 @@
"ListChangelogsRequest",
"ListChangelogsResponse",
"DataStoreConnection",
"DataStoreConnectionSignals",
"DataStoreType",
"Deployment",
"GetDeploymentRequest",
Expand Down Expand Up @@ -643,6 +646,7 @@
"CreateWebhookRequest",
"DeleteWebhookRequest",
"GetWebhookRequest",
"LanguageInfo",
"ListWebhooksRequest",
"ListWebhooksResponse",
"PageInfo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.34.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@
ListChangelogsRequest,
ListChangelogsResponse,
)
from .types.data_store_connection import DataStoreConnection, DataStoreType
from .types.data_store_connection import (
DataStoreConnection,
DataStoreConnectionSignals,
DataStoreType,
)
from .types.deployment import (
Deployment,
GetDeploymentRequest,
Expand Down Expand Up @@ -313,6 +317,7 @@
CreateWebhookRequest,
DeleteWebhookRequest,
GetWebhookRequest,
LanguageInfo,
ListWebhooksRequest,
ListWebhooksResponse,
PageInfo,
Expand Down Expand Up @@ -380,6 +385,7 @@
"CreateVersionRequest",
"CreateWebhookRequest",
"DataStoreConnection",
"DataStoreConnectionSignals",
"DataStoreType",
"DeleteAgentRequest",
"DeleteEntityTypeRequest",
Expand Down Expand Up @@ -477,6 +483,7 @@
"IntentView",
"IntentsClient",
"KnowledgeConnectorSettings",
"LanguageInfo",
"ListAgentsRequest",
"ListAgentsResponse",
"ListChangelogsRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.34.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@
ListChangelogsRequest,
ListChangelogsResponse,
)
from .data_store_connection import DataStoreConnection, DataStoreType
from .data_store_connection import (
DataStoreConnection,
DataStoreConnectionSignals,
DataStoreType,
)
from .deployment import (
Deployment,
GetDeploymentRequest,
Expand Down Expand Up @@ -282,6 +286,7 @@
CreateWebhookRequest,
DeleteWebhookRequest,
GetWebhookRequest,
LanguageInfo,
ListWebhooksRequest,
ListWebhooksResponse,
PageInfo,
Expand Down Expand Up @@ -326,6 +331,7 @@
"ListChangelogsRequest",
"ListChangelogsResponse",
"DataStoreConnection",
"DataStoreConnectionSignals",
"DataStoreType",
"Deployment",
"GetDeploymentRequest",
Expand Down Expand Up @@ -530,6 +536,7 @@
"CreateWebhookRequest",
"DeleteWebhookRequest",
"GetWebhookRequest",
"LanguageInfo",
"ListWebhooksRequest",
"ListWebhooksResponse",
"PageInfo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from typing import MutableMapping, MutableSequence

from google.protobuf import duration_pb2 # type: ignore
import proto # type: ignore

from google.cloud.dialogflowcx_v3.types import gcs
Expand Down Expand Up @@ -52,6 +53,14 @@ class AdvancedSettings(proto.Message):
- Agent level
- Flow level
speech_settings (google.cloud.dialogflowcx_v3.types.AdvancedSettings.SpeechSettings):
Settings for speech to text detection.
Exposed at the following levels:
- Agent level
- Flow level
- Page level
- Parameter level
dtmf_settings (google.cloud.dialogflowcx_v3.types.AdvancedSettings.DtmfSettings):
Settings for DTMF.
Exposed at the following levels:
Expand All @@ -69,6 +78,45 @@ class AdvancedSettings(proto.Message):
- Agent level.
"""

class SpeechSettings(proto.Message):
r"""Define behaviors of speech to text detection.
Attributes:
endpointer_sensitivity (int):
Sensitivity of the speech model that detects
the end of speech. Scale from 0 to 100.
no_speech_timeout (google.protobuf.duration_pb2.Duration):
Timeout before detecting no speech.
use_timeout_based_endpointing (bool):
Use timeout based endpointing, interpreting
endpointer sensitivy as seconds of timeout
value.
models (MutableMapping[str, str]):
Mapping from language to Speech-to-Text model. The mapped
Speech-to-Text model will be selected for requests from its
corresponding language. For more information, see `Speech
models <https://cloud.google.com/dialogflow/cx/docs/concept/speech-models>`__.
"""

endpointer_sensitivity: int = proto.Field(
proto.INT32,
number=1,
)
no_speech_timeout: duration_pb2.Duration = proto.Field(
proto.MESSAGE,
number=2,
message=duration_pb2.Duration,
)
use_timeout_based_endpointing: bool = proto.Field(
proto.BOOL,
number=3,
)
models: MutableMapping[str, str] = proto.MapField(
proto.STRING,
proto.STRING,
number=5,
)

class DtmfSettings(proto.Message):
r"""Define behaviors for DTMF (dual tone multi frequency).
Expand All @@ -87,6 +135,12 @@ class DtmfSettings(proto.Message):
finish_digit (str):
The digit that terminates a DTMF digit
sequence.
interdigit_timeout_duration (google.protobuf.duration_pb2.Duration):
Interdigit timeout setting for matching dtmf
input to regex.
endpointing_timeout_duration (google.protobuf.duration_pb2.Duration):
Endpoint timeout setting for matching dtmf
input to regex.
"""

enabled: bool = proto.Field(
Expand All @@ -101,17 +155,30 @@ class DtmfSettings(proto.Message):
proto.STRING,
number=3,
)
interdigit_timeout_duration: duration_pb2.Duration = proto.Field(
proto.MESSAGE,
number=6,
message=duration_pb2.Duration,
)
endpointing_timeout_duration: duration_pb2.Duration = proto.Field(
proto.MESSAGE,
number=7,
message=duration_pb2.Duration,
)

class LoggingSettings(proto.Message):
r"""Define behaviors on logging.
Attributes:
enable_stackdriver_logging (bool):
If true, StackDriver logging is currently
enabled.
Enables StackDriver logging.
enable_interaction_logging (bool):
If true, DF Interaction logging is currently
enabled.
Enables DF Interaction logging.
enable_consent_based_redaction (bool):
Enables consent-based end-user input redaction, if true, a
pre-defined session parameter
``$session.params.conversation-redaction`` will be used to
determine if the utterance should be redacted.
"""

enable_stackdriver_logging: bool = proto.Field(
Expand All @@ -122,12 +189,21 @@ class LoggingSettings(proto.Message):
proto.BOOL,
number=3,
)
enable_consent_based_redaction: bool = proto.Field(
proto.BOOL,
number=4,
)

audio_export_gcs_destination: gcs.GcsDestination = proto.Field(
proto.MESSAGE,
number=2,
message=gcs.GcsDestination,
)
speech_settings: SpeechSettings = proto.Field(
proto.MESSAGE,
number=3,
message=SpeechSettings,
)
dtmf_settings: DtmfSettings = proto.Field(
proto.MESSAGE,
number=5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from typing import MutableMapping, MutableSequence

from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import struct_pb2 # type: ignore
import proto # type: ignore

from google.cloud.dialogflowcx_v3.types import (
Expand Down Expand Up @@ -127,8 +128,6 @@ class Agent(proto.Message):
created, and can only be deleted by deleting the agent.
Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>``.
Currently only the default start flow with id
"00000000-0000-0000-0000-000000000000" is allowed.
security_settings (str):
Name of the
[SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
Expand All @@ -142,6 +141,11 @@ class Agent(proto.Message):
enable_spell_correction (bool):
Indicates if automatic spell correction is
enabled in detect intent requests.
enable_multi_language_training (bool):
Optional. Enable training multi-lingual
models for this agent. These models will be
trained on all the languages supported by the
agent.
locked (bool):
Indicates whether the agent is locked for changes. If the
agent is locked, modifications to the agent will be rejected
Expand All @@ -164,6 +168,9 @@ class Agent(proto.Message):
answer_feedback_settings (google.cloud.dialogflowcx_v3.types.Agent.AnswerFeedbackSettings):
Optional. Answer feedback collection
settings.
personalization_settings (google.cloud.dialogflowcx_v3.types.Agent.PersonalizationSettings):
Optional. Settings for end user
personalization.
"""

class GitIntegrationSettings(proto.Message):
Expand Down Expand Up @@ -259,6 +266,27 @@ class AnswerFeedbackSettings(proto.Message):
number=1,
)

class PersonalizationSettings(proto.Message):
r"""Settings for end user personalization.
Attributes:
default_end_user_metadata (google.protobuf.struct_pb2.Struct):
Optional. Default end user metadata, used when processing
DetectIntent requests. Recommended to be filled as a
template instead of hard-coded value, for example { "age":
"$session.params.age" }. The data will be merged with the
[QueryParameters.end_user_metadata][google.cloud.dialogflow.cx.v3.QueryParameters.end_user_metadata]
in
[DetectIntentRequest.query_params][google.cloud.dialogflow.cx.v3.DetectIntentRequest.query_params]
during query processing.
"""

default_end_user_metadata: struct_pb2.Struct = proto.Field(
proto.MESSAGE,
number=1,
message=struct_pb2.Struct,
)

name: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -308,6 +336,10 @@ class AnswerFeedbackSettings(proto.Message):
proto.BOOL,
number=20,
)
enable_multi_language_training: bool = proto.Field(
proto.BOOL,
number=40,
)
locked: bool = proto.Field(
proto.BOOL,
number=27,
Expand Down Expand Up @@ -338,6 +370,11 @@ class AnswerFeedbackSettings(proto.Message):
number=38,
message=AnswerFeedbackSettings,
)
personalization_settings: PersonalizationSettings = proto.Field(
proto.MESSAGE,
number=42,
message=PersonalizationSettings,
)


class ListAgentsRequest(proto.Message):
Expand Down
Loading

0 comments on commit fbe3394

Please sign in to comment.