Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Jul 10, 2023
1 parent cd3b346 commit fbcba78
Show file tree
Hide file tree
Showing 854 changed files with 185 additions and 424,698 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,9 @@ async def list_test_case_results(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListTestCaseResultsAsyncPager:
r"""Fetches a list of results for a given test case.
r"""Fetches the list of run results for the given test
case. A maximum of 100 results are kept for each test
case.
.. code-block:: python
Expand Down
4 changes: 3 additions & 1 deletion google/cloud/dialogflowcx_v3/services/test_cases/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,9 @@ def list_test_case_results(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, str]] = (),
) -> pagers.ListTestCaseResultsPager:
r"""Fetches a list of results for a given test case.
r"""Fetches the list of run results for the given test
case. A maximum of 100 results are kept for each test
case.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,9 @@ def list_test_case_results(
]:
r"""Return a callable for the list test case results method over gRPC.
Fetches a list of results for a given test case.
Fetches the list of run results for the given test
case. A maximum of 100 results are kept for each test
case.
Returns:
Callable[[~.ListTestCaseResultsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@ def list_test_case_results(
]:
r"""Return a callable for the list test case results method over gRPC.
Fetches a list of results for a given test case.
Fetches the list of run results for the given test
case. A maximum of 100 results are kept for each test
case.
Returns:
Callable[[~.ListTestCaseResultsRequest],
Expand Down
134 changes: 133 additions & 1 deletion google/cloud/dialogflowcx_v3/types/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,75 @@ class Agent(proto.Message):
agent. The settings exposed at the lower level
overrides the settings exposed at the higher
level.
git_integration_settings (google.cloud.dialogflowcx_v3.types.Agent.GitIntegrationSettings):
Git integration settings for this agent.
text_to_speech_settings (google.cloud.dialogflowcx_v3.types.TextToSpeechSettings):
Settings on instructing the speech
synthesizer on how to generate the output audio
content.
"""

class GitIntegrationSettings(proto.Message):
r"""Settings for connecting to Git repository for an agent.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes:
github_settings (google.cloud.dialogflowcx_v3.types.Agent.GitIntegrationSettings.GithubSettings):
GitHub settings.
This field is a member of `oneof`_ ``git_settings``.
"""

class GithubSettings(proto.Message):
r"""Settings of integration with GitHub.
Attributes:
display_name (str):
The unique repository display name for the
GitHub repository.
repository_uri (str):
The GitHub repository URI related to the
agent.
tracking_branch (str):
The branch of GitHub repository tracked for
this agent.
access_token (str):
The access token used to authenticate the
access to the GitHub repository.
branches (MutableSequence[str]):
A list of branches configured to be used from
Dialogflow.
"""

display_name: str = proto.Field(
proto.STRING,
number=1,
)
repository_uri: str = proto.Field(
proto.STRING,
number=2,
)
tracking_branch: str = proto.Field(
proto.STRING,
number=3,
)
access_token: str = proto.Field(
proto.STRING,
number=4,
)
branches: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=5,
)

github_settings: "Agent.GitIntegrationSettings.GithubSettings" = proto.Field(
proto.MESSAGE,
number=1,
oneof="git_settings",
message="Agent.GitIntegrationSettings.GithubSettings",
)

name: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -206,6 +269,11 @@ class Agent(proto.Message):
number=22,
message=gcdc_advanced_settings.AdvancedSettings,
)
git_integration_settings: GitIntegrationSettings = proto.Field(
proto.MESSAGE,
number=30,
message=GitIntegrationSettings,
)
text_to_speech_settings: audio_config.TextToSpeechSettings = proto.Field(
proto.MESSAGE,
number=31,
Expand Down Expand Up @@ -379,6 +447,9 @@ class ExportAgentRequest(proto.Message):
Optional. Environment name. If not set, draft environment is
assumed. Format:
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>``.
git_destination (google.cloud.dialogflowcx_v3.types.ExportAgentRequest.GitDestination):
Optional. The Git branch to export the agent
to.
include_bigquery_export_settings (bool):
Optional. Whether to include BigQuery Export
setting.
Expand All @@ -400,6 +471,25 @@ class DataFormat(proto.Enum):
BLOB = 1
JSON_PACKAGE = 4

class GitDestination(proto.Message):
r"""Settings for exporting to a git branch.
Attributes:
tracking_branch (str):
Tracking branch for the git push.
commit_message (str):
Commit message for the git push.
"""

tracking_branch: str = proto.Field(
proto.STRING,
number=1,
)
commit_message: str = proto.Field(
proto.STRING,
number=2,
)

name: str = proto.Field(
proto.STRING,
number=1,
Expand All @@ -417,6 +507,11 @@ class DataFormat(proto.Enum):
proto.STRING,
number=5,
)
git_destination: GitDestination = proto.Field(
proto.MESSAGE,
number=6,
message=GitDestination,
)
include_bigquery_export_settings: bool = proto.Field(
proto.BOOL,
number=7,
Expand All @@ -442,7 +537,16 @@ class ExportAgentResponse(proto.Message):
This field is a member of `oneof`_ ``agent``.
agent_content (bytes):
Uncompressed raw byte content for agent.
Uncompressed raw byte content for agent. This field is
populated if none of ``agent_uri`` and ``git_destination``
are specified in
[ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
This field is a member of `oneof`_ ``agent``.
commit_sha (str):
Commit SHA of the git push. This field is populated if
``git_destination`` are specified in
[ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
This field is a member of `oneof`_ ``agent``.
"""
Expand All @@ -457,6 +561,11 @@ class ExportAgentResponse(proto.Message):
number=2,
oneof="agent",
)
commit_sha: str = proto.Field(
proto.STRING,
number=3,
oneof="agent",
)


class RestoreAgentRequest(proto.Message):
Expand Down Expand Up @@ -490,6 +599,10 @@ class RestoreAgentRequest(proto.Message):
agent_content (bytes):
Uncompressed raw byte content for agent.
This field is a member of `oneof`_ ``agent``.
git_source (google.cloud.dialogflowcx_v3.types.RestoreAgentRequest.GitSource):
Setting for restoring from a git branch
This field is a member of `oneof`_ ``agent``.
restore_option (google.cloud.dialogflowcx_v3.types.RestoreAgentRequest.RestoreOption):
Agent restore mode. If not specified, ``KEEP`` is assumed.
Expand All @@ -514,6 +627,19 @@ class RestoreOption(proto.Enum):
KEEP = 1
FALLBACK = 2

class GitSource(proto.Message):
r"""Settings for restoring from a git branch
Attributes:
tracking_branch (str):
tracking branch for the git pull
"""

tracking_branch: str = proto.Field(
proto.STRING,
number=1,
)

name: str = proto.Field(
proto.STRING,
number=1,
Expand All @@ -528,6 +654,12 @@ class RestoreOption(proto.Enum):
number=3,
oneof="agent",
)
git_source: GitSource = proto.Field(
proto.MESSAGE,
number=6,
oneof="agent",
message=GitSource,
)
restore_option: RestoreOption = proto.Field(
proto.ENUM,
number=5,
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/dialogflowcx_v3/types/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ class GenericWebService(proto.Message):
Optional. Maps the values extracted from
specific fields of the flexible webhook response
into session parameters.
- Key: session parameter name
- Value: field path in the webhook response
- Key: session parameter name
- Value: field path in the webhook response
"""

class WebhookType(proto.Enum):
Expand Down
13 changes: 0 additions & 13 deletions owl-bot-staging/v3/.coveragerc

This file was deleted.

33 changes: 0 additions & 33 deletions owl-bot-staging/v3/.flake8

This file was deleted.

2 changes: 0 additions & 2 deletions owl-bot-staging/v3/MANIFEST.in

This file was deleted.

49 changes: 0 additions & 49 deletions owl-bot-staging/v3/README.rst

This file was deleted.

Loading

0 comments on commit fbcba78

Please sign in to comment.