Skip to content

Commit 79acb42

Browse files
Google APIscopybara-github
authored andcommitted
feat: added support for custom content types
docs: clarified wording around quota usage PiperOrigin-RevId: 513764591
1 parent 4a6262f commit 79acb42

9 files changed

Lines changed: 63 additions & 3 deletions

google/cloud/dialogflow/v2beta1/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ java_gapic_library(
9999
rest_numeric_enums = True,
100100
service_yaml = "dialogflow_v2beta1.yaml",
101101
test_deps = [
102-
":dialogflow_java_grpc",
103102
"//google/cloud/location:location_java_grpc",
103+
":dialogflow_java_grpc",
104104
],
105105
transport = "grpc+rest",
106106
deps = [

google/cloud/dialogflow/v2beta1/agent.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import "google/cloud/dialogflow/v2beta1/validation_result.proto";
2424
import "google/longrunning/operations.proto";
2525
import "google/protobuf/empty.proto";
2626
import "google/protobuf/field_mask.proto";
27+
import "google/protobuf/struct.proto";
2728

2829
option cc_enable_arenas = true;
2930
option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1";

google/cloud/dialogflow/v2beta1/audio_config.proto

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,39 @@ message SpeechWordInfo {
184184
float confidence = 4;
185185
}
186186

187+
// Configuration of the barge-in behavior. Barge-in instructs the API to return
188+
// a detected utterance at a proper time while the client is playing back the
189+
// response audio from a previous request. When the client sees the
190+
// utterance, it should stop the playback and immediately get ready for
191+
// receiving the responses for the current request.
192+
//
193+
// The barge-in handling requires the client to start streaming audio input
194+
// as soon as it starts playing back the audio from the previous response. The
195+
// playback is modeled into two phases:
196+
//
197+
// * No barge-in phase: which goes first and during which speech detection
198+
// should not be carried out.
199+
//
200+
// * Barge-in phase: which follows the no barge-in phase and during which
201+
// the API starts speech detection and may inform the client that an utterance
202+
// has been detected. Note that no-speech event is not expected in this
203+
// phase.
204+
//
205+
// The client provides this configuration in terms of the durations of those
206+
// two phases. The durations are measured in terms of the audio length fromt the
207+
// the start of the input audio.
208+
//
209+
// No-speech event is a response with END_OF_UTTERANCE without any transcript
210+
// following up.
211+
message BargeInConfig {
212+
// Duration that is not eligible for barge-in at the beginning of the input
213+
// audio.
214+
google.protobuf.Duration no_barge_in_duration = 1;
215+
216+
// Total duration for the playback at the beginning of the input audio.
217+
google.protobuf.Duration total_duration = 2;
218+
}
219+
187220
// Instructs the speech recognizer on how to process the audio content.
188221
message InputAudioConfig {
189222
// Required. Audio encoding of the audio content to process.
@@ -266,6 +299,9 @@ message InputAudioConfig {
266299
// If `false` and recognition doesn't return any result, trigger
267300
// `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
268301
bool disable_no_speech_recognized_event = 14;
302+
303+
// Configuration of barge-in behavior during the streaming of input audio.
304+
BargeInConfig barge_in_config = 15;
269305
}
270306

271307
// Gender of the voice as described in

google/cloud/dialogflow/v2beta1/conversation.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ message SuggestConversationSummaryRequest {
478478
// [latest_message] to use as context when compiling the
479479
// suggestion. By default 500 and at most 1000.
480480
int32 context_size = 4;
481+
482+
// Parameters for a human assist query.
483+
AssistQueryParameters assist_query_params = 5;
481484
}
482485

483486
// The response message for

google/cloud/dialogflow/v2beta1/conversation_profile.proto

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ service ConversationProfiles {
154154
}
155155
};
156156
option (google.api.method_signature) = "conversation_profile";
157+
option (google.api.method_signature) =
158+
"conversation_profile,participant_role,suggestion_feature_config";
157159
option (google.longrunning.operation_info) = {
158160
response_type: "ConversationProfile"
159161
metadata_type: "SetSuggestionFeatureConfigOperationMetadata"
@@ -182,6 +184,8 @@ service ConversationProfiles {
182184
}
183185
};
184186
option (google.api.method_signature) = "conversation_profile";
187+
option (google.api.method_signature) =
188+
"conversation_profile,participant_role,suggestion_feature_type";
185189
option (google.longrunning.operation_info) = {
186190
response_type: "ConversationProfile"
187191
metadata_type: "ClearSuggestionFeatureConfigOperationMetadata"
@@ -257,6 +261,12 @@ message ConversationProfile {
257261
string security_settings = 13 [(google.api.resource_reference) = {
258262
type: "dialogflow.googleapis.com/CXSecuritySettings"
259263
}];
264+
265+
// Configuration for Text-to-Speech synthesization.
266+
//
267+
// Used by Phone Gateway to specify synthesization options. If agent defines
268+
// synthesization options as well, agent settings overrides the option here.
269+
SynthesizeSpeechConfig tts_config = 18;
260270
}
261271

262272
// Defines the Automated Agent to connect to a conversation.
@@ -568,10 +578,10 @@ message NotificationConfig {
568578
// If it is unspecified, PROTO will be used.
569579
MESSAGE_FORMAT_UNSPECIFIED = 0;
570580

571-
// Pubsub message will be serialized proto.
581+
// Pub/Sub message will be serialized proto.
572582
PROTO = 1;
573583

574-
// Pubsub message will be json.
584+
// Pub/Sub message will be json.
575585
JSON = 2;
576586
}
577587

google/cloud/dialogflow/v2beta1/dialogflow_grpc_service_config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
{
6969
"service": "google.cloud.dialogflow.v2beta1.Documents"
7070
},
71+
{
72+
"service": "google.cloud.dialogflow.v2beta1.DocumentCollections"
73+
},
7174
{
7275
"service": "google.cloud.dialogflow.v2beta1.EntityTypes"
7376
},

google/cloud/dialogflow/v2beta1/dialogflow_v2beta1.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ documentation:
6262
- selector: google.cloud.location.Locations.ListLocations
6363
description: Lists information about the supported locations for this service.
6464

65+
- selector: google.longrunning.Operations.ListOperations
66+
description: |-
67+
Lists operations that match the specified filter in the request. If
68+
the server doesn't support this method, it returns `UNIMPLEMENTED`.
69+
6570
backend:
6671
rules:
6772
- selector: 'google.cloud.dialogflow.v2beta1.Agents.*'

google/cloud/dialogflow/v2beta1/document.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/cloud/dialogflow/v2beta1/gcs.proto";
2424
import "google/longrunning/operations.proto";
25+
import "google/protobuf/empty.proto";
2526
import "google/protobuf/field_mask.proto";
2627
import "google/protobuf/timestamp.proto";
2728
import "google/rpc/status.proto";

google/cloud/dialogflow/v2beta1/entity_type.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import "google/api/resource.proto";
2323
import "google/longrunning/operations.proto";
2424
import "google/protobuf/empty.proto";
2525
import "google/protobuf/field_mask.proto";
26+
import "google/protobuf/struct.proto";
2627

2728
option cc_enable_arenas = true;
2829
option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1";

0 commit comments

Comments
 (0)