Skip to content

Commit

Permalink
feat: [dialogflow-cx] Added persist_parameter_changes field from `que…
Browse files Browse the repository at this point in the history
…ry_params` to MatchIntentRequest (#9130)

* feat: added gcs.proto. added support for GcsDestination and TextToSpeechSettings. feat!: Remove [REQUIRED] for VersionConfig
docs: add more meaningful comments

PiperOrigin-RevId: 510257108

Source-Link: googleapis/googleapis@140334b

Source-Link: googleapis/googleapis-gen@88ee501
Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI4OGVlNTAxNTY2N2Q3MTY0MmU4ZTljZjljNmU2MDVhMzgyZWUzOTRjIn0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: added gcs.proto. added support for GcsDestination and TextToSpeechSettings
feat!: Remove [REQUIRED] for VersionConfig
docs: add more meaningful comments

PiperOrigin-RevId: 511306725

Source-Link: googleapis/googleapis@57673de

Source-Link: googleapis/googleapis-gen@9adddda
Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI5YWRkZGRhMjY4ZTFiMTMxZDZkZmNiOTM0ZjhiMzRmNzg0ODliZjA4In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: Added persist_parameter_changes field from `query_params` to MatchIntentRequest

PiperOrigin-RevId: 512734924

Source-Link: googleapis/googleapis@7483cdc

Source-Link: googleapis/googleapis-gen@86f1d59
Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI4NmYxZDU5YTc0OWU4MDc1YjM0NWNlMTU3MzAwMTlkZDE1MjhmMjg4In0=

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Feb 28, 2023
1 parent 74c459c commit 7fcde13
Show file tree
Hide file tree
Showing 62 changed files with 6,678 additions and 1,335 deletions.
6 changes: 3 additions & 3 deletions java-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dialogflow-cx</artifactId>
<version>0.20.0</version>
<version>0.22.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.20.0'
implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.22.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.20.0"
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.22.0"
```
<!--- {x-version-update-end} -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ public final UnaryCallable<DetectIntentRequest, DetectIntentResponse> detectInte
* .toString())
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setPersistParameterChanges(true)
* .build();
* MatchIntentResponse response = sessionsClient.matchIntent(request);
* }
Expand Down Expand Up @@ -359,6 +360,7 @@ public final MatchIntentResponse matchIntent(MatchIntentRequest request) {
* .toString())
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setPersistParameterChanges(true)
* .build();
* ApiFuture<MatchIntentResponse> future =
* sessionsClient.matchIntentCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public void getAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -265,6 +266,7 @@ public void getAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -324,6 +326,7 @@ public void createAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -385,6 +388,7 @@ public void createAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -446,6 +450,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -467,6 +472,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -514,6 +520,7 @@ public void updateAgentExceptionTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateAgent(agent, updateMask);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public void getAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -255,6 +256,7 @@ public void getAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -308,6 +310,7 @@ public void createAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -364,6 +367,7 @@ public void createAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -420,6 +424,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public void matchIntentTest() throws Exception {
.toString())
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setPersistParameterChanges(true)
.build();

MatchIntentResponse actualResponse = client.matchIntent(request);
Expand Down Expand Up @@ -207,6 +208,7 @@ public void matchIntentExceptionTest() throws Exception {
.toString())
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setPersistParameterChanges(true)
.build();
client.matchIntent(request);
Assert.fail("No exception raised");
Expand Down Expand Up @@ -236,6 +238,7 @@ public void fulfillIntentTest() throws Exception {
.toString())
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setPersistParameterChanges(true)
.build())
.setMatch(Match.newBuilder().build())
.setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
Expand Down Expand Up @@ -277,6 +280,7 @@ public void fulfillIntentExceptionTest() throws Exception {
.toString())
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setPersistParameterChanges(true)
.build())
.setMatch(Match.newBuilder().build())
.setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public void matchIntentTest() throws Exception {
.toString())
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setPersistParameterChanges(true)
.build();

MatchIntentResponse actualResponse = client.matchIntent(request);
Expand All @@ -253,6 +254,8 @@ public void matchIntentTest() throws Exception {
Assert.assertEquals(request.getSession(), actualRequest.getSession());
Assert.assertEquals(request.getQueryParams(), actualRequest.getQueryParams());
Assert.assertEquals(request.getQueryInput(), actualRequest.getQueryInput());
Assert.assertEquals(
request.getPersistParameterChanges(), actualRequest.getPersistParameterChanges());
Assert.assertTrue(
channelProvider.isHeaderSent(
ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
Expand All @@ -273,6 +276,7 @@ public void matchIntentExceptionTest() throws Exception {
.toString())
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setPersistParameterChanges(true)
.build();
client.matchIntent(request);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public void getAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -265,6 +266,7 @@ public void getAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -324,6 +326,7 @@ public void createAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -385,6 +388,7 @@ public void createAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -446,6 +450,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -467,6 +472,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -514,6 +520,7 @@ public void updateAgentExceptionTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateAgent(agent, updateMask);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public void getAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -255,6 +256,7 @@ public void getAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -308,6 +310,7 @@ public void createAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -364,6 +367,7 @@ public void createAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down Expand Up @@ -420,6 +424,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);

Expand Down

0 comments on commit 7fcde13

Please sign in to comment.