Skip to content

Commit 18c59ec

Browse files
Google APIscopybara-github
authored andcommitted
feat: removed OPTIONAL for speech model variant
feat: supported the knowledge base in knowledge operation metadata docs: added more docs for speech model variant and improved docs format for participant PiperOrigin-RevId: 416079874
1 parent 14b7a25 commit 18c59ec

5 files changed

Lines changed: 137 additions & 175 deletions

File tree

google/cloud/dialogflow/v2beta1/BUILD.bazel

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,20 @@ csharp_gapic_assembly_pkg(
391391
##############################################################################
392392
# C++
393393
##############################################################################
394-
# Put your C++ rules here
394+
load(
395+
"@com_google_googleapis_imports//:imports.bzl",
396+
"cc_grpc_library",
397+
"cc_proto_library",
398+
)
399+
400+
cc_proto_library(
401+
name = "dialogflow_cc_proto",
402+
deps = [":dialogflow_proto"],
403+
)
404+
405+
cc_grpc_library(
406+
name = "dialogflow_cc_grpc",
407+
srcs = [":dialogflow_proto"],
408+
grpc_only = True,
409+
deps = [":dialogflow_cc_proto"],
410+
)

google/cloud/dialogflow/v2beta1/audio_config.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,13 +373,16 @@ enum OutputAudioEncoding {
373373
OUTPUT_AUDIO_ENCODING_MULAW = 5;
374374
}
375375

376-
// Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile].
376+
// Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile].
377377
message SpeechToTextConfig {
378-
// Optional. The speech model used in speech to text.
378+
// The speech model used in speech to text.
379379
// `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
380380
// `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest] and
381381
// [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest] request.
382-
SpeechModelVariant speech_model_variant = 1 [(google.api.field_behavior) = OPTIONAL];
382+
// If enhanced model variant is specified and an enhanced
383+
// version of the specified model for the language does not exist, then it
384+
// would emit an error.
385+
SpeechModelVariant speech_model_variant = 1;
383386
}
384387

385388
// [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling)

google/cloud/dialogflow/v2beta1/conversation_profile.proto

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

google/cloud/dialogflow/v2beta1/document.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ message KnowledgeOperationMetadata {
540540

541541
// Required. Output only. The current state of this operation.
542542
State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
543+
544+
// The name of the knowledge base interacted with during the operation.
545+
string knowledge_base = 3;
543546
}
544547

545548
// Request message for [Documents.ReloadDocument][google.cloud.dialogflow.v2beta1.Documents.ReloadDocument].

0 commit comments

Comments
 (0)