Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e8f114

Browse files
Google APIscopybara-github
authored andcommitted
- Update grpc config for retry mechanism.
- Update ImportAgent/ExportAgent external documentation. PiperOrigin-RevId: 317902626
1 parent d989593 commit 4e8f114

File tree

4 files changed

+74
-535
lines changed

4 files changed

+74
-535
lines changed

google/cloud/dialogflow/v2/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ java_gapic_library(
7474
name = "dialogflow_java_gapic",
7575
src = ":dialogflow_proto_with_info",
7676
gapic_yaml = "dialogflow_gapic.yaml",
77+
grpc_service_config = "dialogflow_grpc_service_config.json",
7778
package = "google.cloud.dialogflow.v2",
7879
service_yaml = "dialogflow_v2.yaml",
7980
test_deps = [
@@ -213,6 +214,7 @@ py_gapic_library(
213214
name = "dialogflow_py_gapic",
214215
src = ":dialogflow_proto_with_info",
215216
gapic_yaml = "dialogflow_gapic.yaml",
217+
grpc_service_config = "dialogflow_grpc_service_config.json",
216218
package = "google.cloud.dialogflow.v2",
217219
service_yaml = "dialogflow_v2.yaml",
218220
deps = [
@@ -257,6 +259,7 @@ php_gapic_library(
257259
name = "dialogflow_php_gapic",
258260
src = ":dialogflow_proto_with_info",
259261
gapic_yaml = "dialogflow_gapic.yaml",
262+
grpc_service_config = "dialogflow_grpc_service_config.json",
260263
package = "google.cloud.dialogflow.v2",
261264
service_yaml = "dialogflow_v2.yaml",
262265
deps = [
@@ -327,6 +330,7 @@ ruby_gapic_library(
327330
name = "dialogflow_ruby_gapic",
328331
src = ":dialogflow_proto_with_info",
329332
gapic_yaml = "dialogflow_gapic.yaml",
333+
grpc_service_config = "dialogflow_grpc_service_config.json",
330334
package = "google.cloud.dialogflow.v2",
331335
service_yaml = "dialogflow_v2.yaml",
332336
deps = [
@@ -371,6 +375,7 @@ csharp_gapic_library(
371375
name = "dialogflow_csharp_gapic",
372376
src = ":dialogflow_proto_with_info",
373377
gapic_yaml = "dialogflow_gapic.yaml",
378+
grpc_service_config = "dialogflow_grpc_service_config.json",
374379
package = "google.cloud.dialogflow.v2",
375380
service_yaml = "dialogflow_v2.yaml",
376381
deps = [

google/cloud/dialogflow/v2/agent.proto

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,15 @@ service Agents {
113113
//
114114
// Uploads new intents and entity types without deleting the existing ones.
115115
// Intents and entity types with the same name are replaced with the new
116-
// versions from ImportAgentRequest.
116+
// versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
117+
// agent will be trained automatically (unless disabled in agent settings).
118+
// However, once the import is done, training may not be completed yet. Please
119+
// call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
120+
// explicitly.
117121
//
118122
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
123+
// An operation which tracks when importing is complete. It only tracks
124+
// when the draft agent is updated not when it is done training.
119125
rpc ImportAgent(ImportAgentRequest) returns (google.longrunning.Operation) {
120126
option (google.api.http) = {
121127
post: "/v2/{parent=projects/*}/agent:import"
@@ -130,9 +136,15 @@ service Agents {
130136
// Restores the specified agent from a ZIP file.
131137
//
132138
// Replaces the current agent version with a new one. All the intents and
133-
// entity types in the older version are deleted.
139+
// entity types in the older version are deleted. After the restore, the
140+
// restored draft agent will be trained automatically (unless disabled in
141+
// agent settings). However, once the restore is done, training may not be
142+
// completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
143+
// returns in order to train explicitly.
134144
//
135145
// Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>
146+
// An operation which tracks when restoring is complete. It only tracks
147+
// when the draft agent is updated not when it is done training.
136148
rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) {
137149
option (google.api.http) = {
138150
post: "/v2/{parent=projects/*}/agent:restore"

google/cloud/dialogflow/v2/audio_config.proto

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,6 @@ option java_outer_classname = "AudioConfigProto";
2929
option java_package = "com.google.cloud.dialogflow.v2";
3030
option objc_class_prefix = "DF";
3131

32-
// Hints for the speech recognizer to help with recognition in a specific
33-
// conversation state.
34-
message SpeechContext {
35-
// Optional. A list of strings containing words and phrases that the speech
36-
// recognizer should recognize with higher likelihood.
37-
//
38-
// This list can be used to:
39-
// * improve accuracy for words and phrases you expect the user to say,
40-
// e.g. typical commands for your Dialogflow agent
41-
// * add additional words to the speech recognizer vocabulary
42-
// * ...
43-
//
44-
// See the [Cloud Speech
45-
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
46-
// limits.
47-
repeated string phrases = 1;
48-
49-
// Optional. Boost for this context compared to other contexts:
50-
//
51-
// * If the boost is positive, Dialogflow will increase the probability that
52-
// the phrases in this context are recognized over similar sounding phrases.
53-
// * If the boost is unspecified or non-positive, Dialogflow will not apply
54-
// any boost.
55-
//
56-
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
57-
// find a value that fits your use case with binary search.
58-
float boost = 2;
59-
}
60-
6132
// Audio encoding of the audio content sent in the conversational query request.
6233
// Refer to the
6334
// [Cloud Speech API
@@ -107,6 +78,35 @@ enum AudioEncoding {
10778
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
10879
}
10980

81+
// Hints for the speech recognizer to help with recognition in a specific
82+
// conversation state.
83+
message SpeechContext {
84+
// Optional. A list of strings containing words and phrases that the speech
85+
// recognizer should recognize with higher likelihood.
86+
//
87+
// This list can be used to:
88+
// * improve accuracy for words and phrases you expect the user to say,
89+
// e.g. typical commands for your Dialogflow agent
90+
// * add additional words to the speech recognizer vocabulary
91+
// * ...
92+
//
93+
// See the [Cloud Speech
94+
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
95+
// limits.
96+
repeated string phrases = 1;
97+
98+
// Optional. Boost for this context compared to other contexts:
99+
//
100+
// * If the boost is positive, Dialogflow will increase the probability that
101+
// the phrases in this context are recognized over similar sounding phrases.
102+
// * If the boost is unspecified or non-positive, Dialogflow will not apply
103+
// any boost.
104+
//
105+
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
106+
// find a value that fits your use case with binary search.
107+
float boost = 2;
108+
}
109+
110110
// Information for a word recognized by the speech recognizer.
111111
message SpeechWordInfo {
112112
// The word this info is for.

0 commit comments

Comments
 (0)