Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat!: Remove flow level spell correction setting. feat: Change LRO r…
Browse files Browse the repository at this point in the history
…esponse for ImportAgent from Empty to ImportAgentResponse, to include the created agent name. feat: Add parameter flag into page and intent parameters. feat: Add `allow_playback_interruption` to OutputAudioText to make it have feature parity with Text message type. feat: Enable sentiment analysis feature. feat: Enable EventInput. feat: Enable `trigger_event` in MatchIntentResponse. docs: Add documentation for sessions. (#42)

feat: Change LRO response for ImportAgent from Empty to ImportAgentResponse, to include the created agent name.
feat: Remove flow level spell correction setting.
feat: Add parameter flag into page and intent parameters.
feat: Add `allow_playback_interruption` to OutputAudioText to make it have feature parity with Text message type.
feat: Enable sentiment analysis feature.
feat: Enable EventInput.
feat: Enable `trigger_event` in MatchIntentResponse.
docs: Add documentation for sessions.

BREAKING CHANGE: removed enable_spell_correction from `NluSettings`

This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/e7e729c8-48cb-4ca6-b514-0cf6cff070be/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 336005205
Source-Link: googleapis/googleapis@f7a34a4
  • Loading branch information
yoshi-automation committed Oct 12, 2020
1 parent 2ac186f commit 77f6650
Show file tree
Hide file tree
Showing 120 changed files with 8,305 additions and 5,738 deletions.
Expand Up @@ -26,8 +26,7 @@
*
*
* <pre>
* Service for managing
* [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -315,8 +314,7 @@ public EntityTypesFutureStub newStub(
*
*
* <pre>
* Service for managing
* [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* </pre>
*/
public abstract static class EntityTypesImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -435,8 +433,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* Service for managing
* [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* </pre>
*/
public static final class EntityTypesStub
Expand Down Expand Up @@ -539,8 +536,7 @@ public void deleteEntityType(
*
*
* <pre>
* Service for managing
* [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* </pre>
*/
public static final class EntityTypesBlockingStub
Expand Down Expand Up @@ -623,8 +619,7 @@ public com.google.protobuf.Empty deleteEntityType(
*
*
* <pre>
* Service for managing
* [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType].
* </pre>
*/
public static final class EntityTypesFutureStub
Expand Down
Expand Up @@ -26,8 +26,7 @@
*
*
* <pre>
* Service for managing
* [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -338,8 +337,7 @@ public SessionEntityTypesFutureStub newStub(
*
*
* <pre>
* Service for managing
* [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* </pre>
*/
public abstract static class SessionEntityTypesImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -461,8 +459,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* Service for managing
* [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* </pre>
*/
public static final class SessionEntityTypesStub
Expand Down Expand Up @@ -569,8 +566,7 @@ public void deleteSessionEntityType(
*
*
* <pre>
* Service for managing
* [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* </pre>
*/
public static final class SessionEntityTypesBlockingStub
Expand Down Expand Up @@ -659,8 +655,7 @@ public com.google.protobuf.Empty deleteSessionEntityType(
*
*
* <pre>
* Service for managing
* [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType].
* </pre>
*/
public static final class SessionEntityTypesFutureStub
Expand Down
Expand Up @@ -30,9 +30,8 @@
*
* <pre>
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine
* user intent and respond.
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -277,9 +276,8 @@ public SessionsFutureStub newStub(
*
* <pre>
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine
* user intent and respond.
* </pre>
*/
public abstract static class SessionsImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -338,13 +336,9 @@ public void matchIntent(
*
*
* <pre>
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.
* </pre>
*/
public void fulfillIntent(
Expand Down Expand Up @@ -394,9 +388,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
* <pre>
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine
* user intent and respond.
* </pre>
*/
public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub<SessionsStub> {
Expand Down Expand Up @@ -471,13 +464,9 @@ public void matchIntent(
*
*
* <pre>
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.
* </pre>
*/
public void fulfillIntent(
Expand All @@ -496,9 +485,8 @@ public void fulfillIntent(
*
* <pre>
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine
* user intent and respond.
* </pre>
*/
public static final class SessionsBlockingStub
Expand Down Expand Up @@ -544,13 +532,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse matchIntent(
*
*
* <pre>
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.
* </pre>
*/
public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse fulfillIntent(
Expand All @@ -564,9 +548,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse fulfillInten
*
* <pre>
* A session represents an interaction with a user. You retrieve user input
* and pass it to the
* [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent]
* method to determine user intent and respond.
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine
* user intent and respond.
* </pre>
*/
public static final class SessionsFutureStub
Expand Down Expand Up @@ -616,13 +599,9 @@ protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
*
*
* <pre>
* Fulfills a matched intent returned by
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after
* [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent],
* with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse].
* Otherwise, the behavior is undefined.
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent].
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<
Expand Down
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/dialogflow/cx/v3beta1/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/dialogflow/cx/v3beta1/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/dialogflow/cx/v3beta1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>

<!-- TODO: remove after 0.2.0 is released -->
<difference>
<differenceType>6011</differenceType>
<className>com/google/cloud/dialogflow/cx/v3beta1/NluSettings</className>
<field>ENABLE_SPELL_CORRECTION_FIELD_NUMBER</field>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/cloud/dialogflow/cx/v3beta1/NluSettings*</className>
<method>* *EnableSpellCorrection(*)</method>
</difference>
</differences>
Expand Up @@ -71,6 +71,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_dialogflow_cx_v3beta1_ImportAgentResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_dialogflow_cx_v3beta1_ImportAgentResponse_fieldAccessorTable;

public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
Expand Down Expand Up @@ -125,49 +129,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tent\030\002 \001(\014H\000B\007\n\005agent\"\203\001\n\023RestoreAgentRe"
+ "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow."
+ "googleapis.com/Agent\022\023\n\tagent_uri\030\002 \001(\tH"
+ "\000\022\027\n\ragent_content\030\003 \001(\014H\000B\007\n\005agent2\327\013\n\006"
+ "Agents\022\275\001\n\nListAgents\0225.google.cloud.dia"
+ "logflow.cx.v3beta1.ListAgentsRequest\0326.g"
+ "oogle.cloud.dialogflow.cx.v3beta1.ListAg"
+ "entsResponse\"@\202\323\344\223\0021\022//v3beta1/{parent=p"
+ "rojects/*/locations/*}/agents\332A\006parent\022\252"
+ "\001\n\010GetAgent\0223.google.cloud.dialogflow.cx"
+ ".v3beta1.GetAgentRequest\032).google.cloud."
+ "dialogflow.cx.v3beta1.Agent\">\202\323\344\223\0021\022//v3"
+ "beta1/{name=projects/*/locations/*/agent"
+ "s/*}\332A\004name\022\277\001\n\013CreateAgent\0226.google.clo"
+ "ud.dialogflow.cx.v3beta1.CreateAgentRequ"
+ "est\032).google.cloud.dialogflow.cx.v3beta1"
+ ".Agent\"M\202\323\344\223\0028\"//v3beta1/{parent=project"
+ "s/*/locations/*}/agents:\005agent\332A\014parent,"
+ "agent\022\312\001\n\013UpdateAgent\0226.google.cloud.dia"
+ "logflow.cx.v3beta1.UpdateAgentRequest\032)."
+ "google.cloud.dialogflow.cx.v3beta1.Agent"
+ "\"X\202\323\344\223\002>25/v3beta1/{agent.name=projects/"
+ "*/locations/*/agents/*}:\005agent\332A\021agent,u"
+ "pdate_mask\022\235\001\n\013DeleteAgent\0226.google.clou"
+ "d.dialogflow.cx.v3beta1.DeleteAgentReque"
+ "st\032\026.google.protobuf.Empty\">\202\323\344\223\0021*//v3b"
+ "eta1/{name=projects/*/locations/*/agents"
+ "/*}\332A\004name\022\327\001\n\013ExportAgent\0226.google.clou"
+ "d.dialogflow.cx.v3beta1.ExportAgentReque"
+ "st\032\035.google.longrunning.Operation\"q\202\323\344\223\002"
+ ";\"6/v3beta1/{name=projects/*/locations/*"
+ "/agents/*}:export:\001*\312A-\n\023ExportAgentResp"
+ "onse\022\026google.protobuf.Struct\022\334\001\n\014Restore"
+ "Agent\0227.google.cloud.dialogflow.cx.v3bet"
+ "a1.RestoreAgentRequest\032\035.google.longrunn"
+ "ing.Operation\"t\202\323\344\223\002<\"7/v3beta1/{name=pr"
+ "ojects/*/locations/*/agents/*}:restore:\001"
+ "*\312A/\n\025google.protobuf.Empty\022\026google.prot"
+ "obuf.Struct\032x\312A\031dialogflow.googleapis.co"
+ "m\322AYhttps://www.googleapis.com/auth/clou"
+ "d-platform,https://www.googleapis.com/au"
+ "th/dialogflowB\251\001\n&com.google.cloud.dialo"
+ "gflow.cx.v3beta1B\nAgentProtoP\001ZDgoogle.g"
+ "olang.org/genproto/googleapis/cloud/dial"
+ "ogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cl"
+ "oud.Dialogflow.Cx.V3Beta1b\006proto3"
+ "\000\022\027\n\ragent_content\030\003 \001(\014H\000B\007\n\005agent\"J\n\023I"
+ "mportAgentResponse\0223\n\005agent\030\001 \001(\tB$\372A!\n\037"
+ "dialogflow.googleapis.com/Agent2\327\013\n\006Agen"
+ "ts\022\275\001\n\nListAgents\0225.google.cloud.dialogf"
+ "low.cx.v3beta1.ListAgentsRequest\0326.googl"
+ "e.cloud.dialogflow.cx.v3beta1.ListAgents"
+ "Response\"@\202\323\344\223\0021\022//v3beta1/{parent=proje"
+ "cts/*/locations/*}/agents\332A\006parent\022\252\001\n\010G"
+ "etAgent\0223.google.cloud.dialogflow.cx.v3b"
+ "eta1.GetAgentRequest\032).google.cloud.dial"
+ "ogflow.cx.v3beta1.Agent\">\202\323\344\223\0021\022//v3beta"
+ "1/{name=projects/*/locations/*/agents/*}"
+ "\332A\004name\022\277\001\n\013CreateAgent\0226.google.cloud.d"
+ "ialogflow.cx.v3beta1.CreateAgentRequest\032"
+ ").google.cloud.dialogflow.cx.v3beta1.Age"
+ "nt\"M\202\323\344\223\0028\"//v3beta1/{parent=projects/*/"
+ "locations/*}/agents:\005agent\332A\014parent,agen"
+ "t\022\312\001\n\013UpdateAgent\0226.google.cloud.dialogf"
+ "low.cx.v3beta1.UpdateAgentRequest\032).goog"
+ "le.cloud.dialogflow.cx.v3beta1.Agent\"X\202\323"
+ "\344\223\002>25/v3beta1/{agent.name=projects/*/lo"
+ "cations/*/agents/*}:\005agent\332A\021agent,updat"
+ "e_mask\022\235\001\n\013DeleteAgent\0226.google.cloud.di"
+ "alogflow.cx.v3beta1.DeleteAgentRequest\032\026"
+ ".google.protobuf.Empty\">\202\323\344\223\0021*//v3beta1"
+ "/{name=projects/*/locations/*/agents/*}\332"
+ "A\004name\022\327\001\n\013ExportAgent\0226.google.cloud.di"
+ "alogflow.cx.v3beta1.ExportAgentRequest\032\035"
+ ".google.longrunning.Operation\"q\202\323\344\223\002;\"6/"
+ "v3beta1/{name=projects/*/locations/*/age"
+ "nts/*}:export:\001*\312A-\n\023ExportAgentResponse"
+ "\022\026google.protobuf.Struct\022\334\001\n\014RestoreAgen"
+ "t\0227.google.cloud.dialogflow.cx.v3beta1.R"
+ "estoreAgentRequest\032\035.google.longrunning."
+ "Operation\"t\202\323\344\223\002<\"7/v3beta1/{name=projec"
+ "ts/*/locations/*/agents/*}:restore:\001*\312A/"
+ "\n\025google.protobuf.Empty\022\026google.protobuf"
+ ".Struct\032x\312A\031dialogflow.googleapis.com\322AY"
+ "https://www.googleapis.com/auth/cloud-pl"
+ "atform,https://www.googleapis.com/auth/d"
+ "ialogflowB\251\001\n&com.google.cloud.dialogflo"
+ "w.cx.v3beta1B\nAgentProtoP\001ZDgoogle.golan"
+ "g.org/genproto/googleapis/cloud/dialogfl"
+ "ow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud."
+ "Dialogflow.Cx.V3Beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down Expand Up @@ -279,6 +285,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Name", "AgentUri", "AgentContent", "Agent",
});
internal_static_google_cloud_dialogflow_cx_v3beta1_ImportAgentResponse_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_google_cloud_dialogflow_cx_v3beta1_ImportAgentResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_dialogflow_cx_v3beta1_ImportAgentResponse_descriptor,
new java.lang.String[] {
"Agent",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
Expand Down

0 comments on commit 77f6650

Please sign in to comment.