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

Commit fc1889f

Browse files
feat: add support for service directory webhooks
PiperOrigin-RevId: 372602458 Source-Author: Google APIs <[email protected]> Source-Date: Fri May 7 12:07:49 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 3e32fd102910803198332eb5039cbc0b6dee9850 Source-Link: googleapis/googleapis@3e32fd1
1 parent cbf96bb commit fc1889f

28 files changed

Lines changed: 2818 additions & 1330 deletions

grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java

Lines changed: 22 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
*
2323
* <pre>
2424
* A session represents an interaction with a user. You retrieve user input
25-
* and pass it to the
26-
* [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
27-
* determine user intent and respond.
25+
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
26+
* user intent and respond.
2827
* </pre>
2928
*/
3029
@javax.annotation.Generated(
@@ -269,9 +268,8 @@ public SessionsFutureStub newStub(
269268
*
270269
* <pre>
271270
* A session represents an interaction with a user. You retrieve user input
272-
* and pass it to the
273-
* [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
274-
* determine user intent and respond.
271+
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
272+
* user intent and respond.
275273
* </pre>
276274
*/
277275
public abstract static class SessionsImplBase implements io.grpc.BindableService {
@@ -339,13 +337,9 @@ public void matchIntent(
339337
*
340338
*
341339
* <pre>
342-
* Fulfills a matched intent returned by
343-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
344-
* called after
345-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
346-
* input from
347-
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
348-
* Otherwise, the behavior is undefined.
340+
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
341+
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
342+
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
349343
* </pre>
350344
*/
351345
public void fulfillIntent(
@@ -396,9 +390,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
396390
*
397391
* <pre>
398392
* A session represents an interaction with a user. You retrieve user input
399-
* and pass it to the
400-
* [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
401-
* determine user intent and respond.
393+
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
394+
* user intent and respond.
402395
* </pre>
403396
*/
404397
public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub<SessionsStub> {
@@ -479,13 +472,9 @@ public void matchIntent(
479472
*
480473
*
481474
* <pre>
482-
* Fulfills a matched intent returned by
483-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
484-
* called after
485-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
486-
* input from
487-
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
488-
* Otherwise, the behavior is undefined.
475+
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
476+
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
477+
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
489478
* </pre>
490479
*/
491480
public void fulfillIntent(
@@ -504,9 +493,8 @@ public void fulfillIntent(
504493
*
505494
* <pre>
506495
* A session represents an interaction with a user. You retrieve user input
507-
* and pass it to the
508-
* [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
509-
* determine user intent and respond.
496+
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
497+
* user intent and respond.
510498
* </pre>
511499
*/
512500
public static final class SessionsBlockingStub
@@ -557,13 +545,9 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse matchIntent(
557545
*
558546
*
559547
* <pre>
560-
* Fulfills a matched intent returned by
561-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
562-
* called after
563-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
564-
* input from
565-
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
566-
* Otherwise, the behavior is undefined.
548+
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
549+
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
550+
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
567551
* </pre>
568552
*/
569553
public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse fulfillIntent(
@@ -578,9 +562,8 @@ public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse fulfillIntent(
578562
*
579563
* <pre>
580564
* A session represents an interaction with a user. You retrieve user input
581-
* and pass it to the
582-
* [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
583-
* determine user intent and respond.
565+
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
566+
* user intent and respond.
584567
* </pre>
585568
*/
586569
public static final class SessionsFutureStub
@@ -633,13 +616,9 @@ protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
633616
*
634617
*
635618
* <pre>
636-
* Fulfills a matched intent returned by
637-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
638-
* called after
639-
* [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
640-
* input from
641-
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
642-
* Otherwise, the behavior is undefined.
619+
* Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
620+
* Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
621+
* [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
643622
* </pre>
644623
*/
645624
public com.google.common.util.concurrent.ListenableFuture<

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInput.java

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,8 @@ public com.google.cloud.dialogflow.cx.v3.InputAudioConfigOrBuilder getConfigOrBu
188188
* <pre>
189189
* The natural language speech audio to be processed.
190190
* A single request can contain up to 1 minute of speech audio data.
191-
* The [transcribed
192-
* text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
193-
* more than 256 bytes.
191+
* The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
192+
* bytes.
194193
* For non-streaming audio detect intent, both `config` and `audio` must be
195194
* provided.
196195
* For streaming audio detect intent, `config` must be provided in
@@ -760,9 +759,8 @@ public com.google.cloud.dialogflow.cx.v3.InputAudioConfigOrBuilder getConfigOrBu
760759
* <pre>
761760
* The natural language speech audio to be processed.
762761
* A single request can contain up to 1 minute of speech audio data.
763-
* The [transcribed
764-
* text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
765-
* more than 256 bytes.
762+
* The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
763+
* bytes.
766764
* For non-streaming audio detect intent, both `config` and `audio` must be
767765
* provided.
768766
* For streaming audio detect intent, `config` must be provided in
@@ -783,9 +781,8 @@ public com.google.protobuf.ByteString getAudio() {
783781
* <pre>
784782
* The natural language speech audio to be processed.
785783
* A single request can contain up to 1 minute of speech audio data.
786-
* The [transcribed
787-
* text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
788-
* more than 256 bytes.
784+
* The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
785+
* bytes.
789786
* For non-streaming audio detect intent, both `config` and `audio` must be
790787
* provided.
791788
* For streaming audio detect intent, `config` must be provided in
@@ -812,9 +809,8 @@ public Builder setAudio(com.google.protobuf.ByteString value) {
812809
* <pre>
813810
* The natural language speech audio to be processed.
814811
* A single request can contain up to 1 minute of speech audio data.
815-
* The [transcribed
816-
* text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
817-
* more than 256 bytes.
812+
* The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
813+
* bytes.
818814
* For non-streaming audio detect intent, both `config` and `audio` must be
819815
* provided.
820816
* For streaming audio detect intent, `config` must be provided in

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInputOrBuilder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ public interface AudioInputOrBuilder
7070
* <pre>
7171
* The natural language speech audio to be processed.
7272
* A single request can contain up to 1 minute of speech audio data.
73-
* The [transcribed
74-
* text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
75-
* more than 256 bytes.
73+
* The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
74+
* bytes.
7675
* For non-streaming audio detect intent, both `config` and `audio` must be
7776
* provided.
7877
* For streaming audio detect intent, `config` must be provided in

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu
258258
* The audio data bytes encoded as specified in the request.
259259
* Note: The output audio is generated based on the values of default platform
260260
* text responses found in the
261-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
262-
* field. If multiple default text responses exist, they will be concatenated
263-
* when generating audio. If no default platform text responses exist, the
261+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
262+
* multiple default text responses exist, they will be concatenated when
263+
* generating audio. If no default platform text responses exist, the
264264
* generated audio content will be empty.
265265
* In some scenarios, multiple output audio fields may be present in the
266266
* response structure. In these cases, only the top-most-level audio output
@@ -1020,9 +1020,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu
10201020
* The audio data bytes encoded as specified in the request.
10211021
* Note: The output audio is generated based on the values of default platform
10221022
* text responses found in the
1023-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
1024-
* field. If multiple default text responses exist, they will be concatenated
1025-
* when generating audio. If no default platform text responses exist, the
1023+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
1024+
* multiple default text responses exist, they will be concatenated when
1025+
* generating audio. If no default platform text responses exist, the
10261026
* generated audio content will be empty.
10271027
* In some scenarios, multiple output audio fields may be present in the
10281028
* response structure. In these cases, only the top-most-level audio output
@@ -1044,9 +1044,9 @@ public com.google.protobuf.ByteString getOutputAudio() {
10441044
* The audio data bytes encoded as specified in the request.
10451045
* Note: The output audio is generated based on the values of default platform
10461046
* text responses found in the
1047-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
1048-
* field. If multiple default text responses exist, they will be concatenated
1049-
* when generating audio. If no default platform text responses exist, the
1047+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
1048+
* multiple default text responses exist, they will be concatenated when
1049+
* generating audio. If no default platform text responses exist, the
10501050
* generated audio content will be empty.
10511051
* In some scenarios, multiple output audio fields may be present in the
10521052
* response structure. In these cases, only the top-most-level audio output
@@ -1074,9 +1074,9 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) {
10741074
* The audio data bytes encoded as specified in the request.
10751075
* Note: The output audio is generated based on the values of default platform
10761076
* text responses found in the
1077-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
1078-
* field. If multiple default text responses exist, they will be concatenated
1079-
* when generating audio. If no default platform text responses exist, the
1077+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
1078+
* multiple default text responses exist, they will be concatenated when
1079+
* generating audio. If no default platform text responses exist, the
10801080
* generated audio content will be empty.
10811081
* In some scenarios, multiple output audio fields may be present in the
10821082
* response structure. In these cases, only the top-most-level audio output

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseOrBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public interface DetectIntentResponseOrBuilder
9292
* The audio data bytes encoded as specified in the request.
9393
* Note: The output audio is generated based on the values of default platform
9494
* text responses found in the
95-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
96-
* field. If multiple default text responses exist, they will be concatenated
97-
* when generating audio. If no default platform text responses exist, the
95+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
96+
* multiple default text responses exist, they will be concatenated when
97+
* generating audio. If no default platform text responses exist, the
9898
* generated audio content will be empty.
9999
* In some scenarios, multiple output audio fields may be present in the
100100
* response structure. In these cases, only the top-most-level audio output

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu
258258
* The audio data bytes encoded as specified in the request.
259259
* Note: The output audio is generated based on the values of default platform
260260
* text responses found in the
261-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
262-
* field. If multiple default text responses exist, they will be concatenated
263-
* when generating audio. If no default platform text responses exist, the
261+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
262+
* multiple default text responses exist, they will be concatenated when
263+
* generating audio. If no default platform text responses exist, the
264264
* generated audio content will be empty.
265265
* In some scenarios, multiple output audio fields may be present in the
266266
* response structure. In these cases, only the top-most-level audio output
@@ -1020,9 +1020,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu
10201020
* The audio data bytes encoded as specified in the request.
10211021
* Note: The output audio is generated based on the values of default platform
10221022
* text responses found in the
1023-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
1024-
* field. If multiple default text responses exist, they will be concatenated
1025-
* when generating audio. If no default platform text responses exist, the
1023+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
1024+
* multiple default text responses exist, they will be concatenated when
1025+
* generating audio. If no default platform text responses exist, the
10261026
* generated audio content will be empty.
10271027
* In some scenarios, multiple output audio fields may be present in the
10281028
* response structure. In these cases, only the top-most-level audio output
@@ -1044,9 +1044,9 @@ public com.google.protobuf.ByteString getOutputAudio() {
10441044
* The audio data bytes encoded as specified in the request.
10451045
* Note: The output audio is generated based on the values of default platform
10461046
* text responses found in the
1047-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
1048-
* field. If multiple default text responses exist, they will be concatenated
1049-
* when generating audio. If no default platform text responses exist, the
1047+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
1048+
* multiple default text responses exist, they will be concatenated when
1049+
* generating audio. If no default platform text responses exist, the
10501050
* generated audio content will be empty.
10511051
* In some scenarios, multiple output audio fields may be present in the
10521052
* response structure. In these cases, only the top-most-level audio output
@@ -1074,9 +1074,9 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) {
10741074
* The audio data bytes encoded as specified in the request.
10751075
* Note: The output audio is generated based on the values of default platform
10761076
* text responses found in the
1077-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
1078-
* field. If multiple default text responses exist, they will be concatenated
1079-
* when generating audio. If no default platform text responses exist, the
1077+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
1078+
* multiple default text responses exist, they will be concatenated when
1079+
* generating audio. If no default platform text responses exist, the
10801080
* generated audio content will be empty.
10811081
* In some scenarios, multiple output audio fields may be present in the
10821082
* response structure. In these cases, only the top-most-level audio output

proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponseOrBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public interface FulfillIntentResponseOrBuilder
9292
* The audio data bytes encoded as specified in the request.
9393
* Note: The output audio is generated based on the values of default platform
9494
* text responses found in the
95-
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages]
96-
* field. If multiple default text responses exist, they will be concatenated
97-
* when generating audio. If no default platform text responses exist, the
95+
* [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If
96+
* multiple default text responses exist, they will be concatenated when
97+
* generating audio. If no default platform text responses exist, the
9898
* generated audio content will be empty.
9999
* In some scenarios, multiple output audio fields may be present in the
100100
* response structure. In these cases, only the top-most-level audio output

0 commit comments

Comments
 (0)