Skip to content

Commit 15b4370

Browse files
feat: [google-cloud-dialogflow-cx] added Generator API (#12065)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: Added Generator API feat: Add grpc_ports to UploadModel ModelContainerSpec feat: Add DirectPredict to PredictionService feat: Add DirectRawPredict to PredictionService feat: Add StreamingPredict to PredictionService. feat: Add StreamingRawPredict to PredictionService. feat: Add auto_populated_fields to google.api.MethodSettings feat: Add support for python 3.12 feat: Introduce compatibility with native namespace packages fix: Use `retry_async` instead of `retry` in async client fix: Require proto-plus >= 1.22.3 END_COMMIT_OVERRIDE docs: updated doc for speech mode PiperOrigin-RevId: 586469693 Source-Link: googleapis/googleapis@e8148d6 Source-Link: googleapis/googleapis-gen@85136bd Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== BEGIN_NESTED_COMMIT feat: [google-cloud-dialogflow-cx] add grpc_ports to UploadModel ModelContainerSpec feat: add DirectPredict to PredictionService feat: add DirectRawPredict to PredictionService feat: add StreamingPredict to PredictionService. feat: add StreamingRawPredict to PredictionService. PiperOrigin-RevId: 586417186 Source-Link: googleapis/googleapis@362f61e Source-Link: googleapis/googleapis-gen@a81e534 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImE4MWU1MzQzY2U2Y2E5ZWU0YTU0NTU0OWRjMzJlZGMyMzUwNTMwYWEifQ== END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [google-cloud-dialogflow-cx] add auto_populated_fields to google.api.MethodSettings PiperOrigin-RevId: 586359350 Source-Link: googleapis/googleapis@fce431c Source-Link: googleapis/googleapis-gen@df4b8f4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImRmNGI4ZjQxMmRmYTlmYzgwMjA1NzUwNTNjN2JjNWVhZjNlMmNkMGIifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 48c0978 commit 15b4370

104 files changed

Lines changed: 13124 additions & 805 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-dialogflow-cx/CONTRIBUTING.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.7, 3.8, 3.9, 3.10 and 3.11 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.11 -- -k <name of test>
75+
$ nox -s unit-3.12 -- -k <name of test>
7676

7777

7878
.. note::
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system-3.11 -- -k <name of test>
146+
$ nox -s system-3.12 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.8, 3.9, 3.10 and 3.11.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11 and 3.12.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -226,12 +226,14 @@ We support:
226226
- `Python 3.9`_
227227
- `Python 3.10`_
228228
- `Python 3.11`_
229+
- `Python 3.12`_
229230

230231
.. _Python 3.7: https://docs.python.org/3.7/
231232
.. _Python 3.8: https://docs.python.org/3.8/
232233
.. _Python 3.9: https://docs.python.org/3.9/
233234
.. _Python 3.10: https://docs.python.org/3.10/
234235
.. _Python 3.11: https://docs.python.org/3.11/
236+
.. _Python 3.12: https://docs.python.org/3.12/
235237

236238

237239
Supported versions can be found in our ``noxfile.py`` `config`_.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Generators
2+
----------------------------
3+
4+
.. automodule:: google.cloud.dialogflowcx_v3.services.generators
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.dialogflowcx_v3.services.generators.pagers
9+
:members:
10+
:inherited-members:

packages/google-cloud-dialogflow-cx/docs/dialogflowcx_v3/services_.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Services for Google Cloud Dialogflowcx v3 API
1010
environments
1111
experiments
1212
flows
13+
generators
1314
intents
1415
pages
1516
security_settings_service

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx/__init__.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
from google.cloud.dialogflowcx_v3.services.experiments.client import ExperimentsClient
4343
from google.cloud.dialogflowcx_v3.services.flows.async_client import FlowsAsyncClient
4444
from google.cloud.dialogflowcx_v3.services.flows.client import FlowsClient
45+
from google.cloud.dialogflowcx_v3.services.generators.async_client import (
46+
GeneratorsAsyncClient,
47+
)
48+
from google.cloud.dialogflowcx_v3.services.generators.client import GeneratorsClient
4549
from google.cloud.dialogflowcx_v3.services.intents.async_client import (
4650
IntentsAsyncClient,
4751
)
@@ -196,6 +200,16 @@
196200
from google.cloud.dialogflowcx_v3.types.fulfillment import Fulfillment
197201
from google.cloud.dialogflowcx_v3.types.gcs import GcsDestination
198202
from google.cloud.dialogflowcx_v3.types.generative_settings import GenerativeSettings
203+
from google.cloud.dialogflowcx_v3.types.generator import (
204+
CreateGeneratorRequest,
205+
DeleteGeneratorRequest,
206+
Generator,
207+
GetGeneratorRequest,
208+
ListGeneratorsRequest,
209+
ListGeneratorsResponse,
210+
Phrase,
211+
UpdateGeneratorRequest,
212+
)
199213
from google.cloud.dialogflowcx_v3.types.import_strategy import ImportStrategy
200214
from google.cloud.dialogflowcx_v3.types.inline import InlineDestination, InlineSource
201215
from google.cloud.dialogflowcx_v3.types.intent import (
@@ -366,6 +380,8 @@
366380
"ExperimentsAsyncClient",
367381
"FlowsClient",
368382
"FlowsAsyncClient",
383+
"GeneratorsClient",
384+
"GeneratorsAsyncClient",
369385
"IntentsClient",
370386
"IntentsAsyncClient",
371387
"PagesClient",
@@ -480,6 +496,14 @@
480496
"Fulfillment",
481497
"GcsDestination",
482498
"GenerativeSettings",
499+
"CreateGeneratorRequest",
500+
"DeleteGeneratorRequest",
501+
"Generator",
502+
"GetGeneratorRequest",
503+
"ListGeneratorsRequest",
504+
"ListGeneratorsResponse",
505+
"Phrase",
506+
"UpdateGeneratorRequest",
483507
"ImportStrategy",
484508
"InlineDestination",
485509
"InlineSource",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/__init__.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from .services.environments import EnvironmentsAsyncClient, EnvironmentsClient
2626
from .services.experiments import ExperimentsAsyncClient, ExperimentsClient
2727
from .services.flows import FlowsAsyncClient, FlowsClient
28+
from .services.generators import GeneratorsAsyncClient, GeneratorsClient
2829
from .services.intents import IntentsAsyncClient, IntentsClient
2930
from .services.pages import PagesAsyncClient, PagesClient
3031
from .services.security_settings_service import (
@@ -154,6 +155,16 @@
154155
from .types.fulfillment import Fulfillment
155156
from .types.gcs import GcsDestination
156157
from .types.generative_settings import GenerativeSettings
158+
from .types.generator import (
159+
CreateGeneratorRequest,
160+
DeleteGeneratorRequest,
161+
Generator,
162+
GetGeneratorRequest,
163+
ListGeneratorsRequest,
164+
ListGeneratorsResponse,
165+
Phrase,
166+
UpdateGeneratorRequest,
167+
)
157168
from .types.import_strategy import ImportStrategy
158169
from .types.inline import InlineDestination, InlineSource
159170
from .types.intent import (
@@ -314,6 +325,7 @@
314325
"EnvironmentsAsyncClient",
315326
"ExperimentsAsyncClient",
316327
"FlowsAsyncClient",
328+
"GeneratorsAsyncClient",
317329
"IntentsAsyncClient",
318330
"PagesAsyncClient",
319331
"SecuritySettingsServiceAsyncClient",
@@ -351,6 +363,7 @@
351363
"CreateEnvironmentRequest",
352364
"CreateExperimentRequest",
353365
"CreateFlowRequest",
366+
"CreateGeneratorRequest",
354367
"CreateIntentRequest",
355368
"CreatePageRequest",
356369
"CreateSecuritySettingsRequest",
@@ -367,6 +380,7 @@
367380
"DeleteEnvironmentRequest",
368381
"DeleteExperimentRequest",
369382
"DeleteFlowRequest",
383+
"DeleteGeneratorRequest",
370384
"DeleteIntentRequest",
371385
"DeletePageRequest",
372386
"DeleteSecuritySettingsRequest",
@@ -411,6 +425,8 @@
411425
"Fulfillment",
412426
"GcsDestination",
413427
"GenerativeSettings",
428+
"Generator",
429+
"GeneratorsClient",
414430
"GetAgentRequest",
415431
"GetAgentValidationResultRequest",
416432
"GetChangelogRequest",
@@ -421,6 +437,7 @@
421437
"GetFlowRequest",
422438
"GetFlowValidationResultRequest",
423439
"GetGenerativeSettingsRequest",
440+
"GetGeneratorRequest",
424441
"GetIntentRequest",
425442
"GetPageRequest",
426443
"GetSecuritySettingsRequest",
@@ -464,6 +481,8 @@
464481
"ListExperimentsResponse",
465482
"ListFlowsRequest",
466483
"ListFlowsResponse",
484+
"ListGeneratorsRequest",
485+
"ListGeneratorsResponse",
467486
"ListIntentsRequest",
468487
"ListIntentsResponse",
469488
"ListPagesRequest",
@@ -494,6 +513,7 @@
494513
"Page",
495514
"PageInfo",
496515
"PagesClient",
516+
"Phrase",
497517
"QueryInput",
498518
"QueryParameters",
499519
"QueryResult",
@@ -550,6 +570,7 @@
550570
"UpdateExperimentRequest",
551571
"UpdateFlowRequest",
552572
"UpdateGenerativeSettingsRequest",
573+
"UpdateGeneratorRequest",
553574
"UpdateIntentRequest",
554575
"UpdatePageRequest",
555576
"UpdateSecuritySettingsRequest",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/gapic_metadata.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,100 @@
828828
}
829829
}
830830
},
831+
"Generators": {
832+
"clients": {
833+
"grpc": {
834+
"libraryClient": "GeneratorsClient",
835+
"rpcs": {
836+
"CreateGenerator": {
837+
"methods": [
838+
"create_generator"
839+
]
840+
},
841+
"DeleteGenerator": {
842+
"methods": [
843+
"delete_generator"
844+
]
845+
},
846+
"GetGenerator": {
847+
"methods": [
848+
"get_generator"
849+
]
850+
},
851+
"ListGenerators": {
852+
"methods": [
853+
"list_generators"
854+
]
855+
},
856+
"UpdateGenerator": {
857+
"methods": [
858+
"update_generator"
859+
]
860+
}
861+
}
862+
},
863+
"grpc-async": {
864+
"libraryClient": "GeneratorsAsyncClient",
865+
"rpcs": {
866+
"CreateGenerator": {
867+
"methods": [
868+
"create_generator"
869+
]
870+
},
871+
"DeleteGenerator": {
872+
"methods": [
873+
"delete_generator"
874+
]
875+
},
876+
"GetGenerator": {
877+
"methods": [
878+
"get_generator"
879+
]
880+
},
881+
"ListGenerators": {
882+
"methods": [
883+
"list_generators"
884+
]
885+
},
886+
"UpdateGenerator": {
887+
"methods": [
888+
"update_generator"
889+
]
890+
}
891+
}
892+
},
893+
"rest": {
894+
"libraryClient": "GeneratorsClient",
895+
"rpcs": {
896+
"CreateGenerator": {
897+
"methods": [
898+
"create_generator"
899+
]
900+
},
901+
"DeleteGenerator": {
902+
"methods": [
903+
"delete_generator"
904+
]
905+
},
906+
"GetGenerator": {
907+
"methods": [
908+
"get_generator"
909+
]
910+
},
911+
"ListGenerators": {
912+
"methods": [
913+
"list_generators"
914+
]
915+
},
916+
"UpdateGenerator": {
917+
"methods": [
918+
"update_generator"
919+
]
920+
}
921+
}
922+
}
923+
}
924+
},
831925
"Intents": {
832926
"clients": {
833927
"grpc": {

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

0 commit comments

Comments
 (0)