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

Commit 605e949

Browse files
fix: restore retry configs and update generated docs (#187)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/b94bacd6-05ee-45c2-be4d-b0f667030fab/targets PiperOrigin-RevId: 312123588 Source-Link: googleapis/googleapis@cd3ce26 PiperOrigin-RevId: 312088359 Source-Link: googleapis/googleapis@5a90d46
1 parent bea15ff commit 605e949

File tree

10 files changed

+52
-8
lines changed

10 files changed

+52
-8
lines changed

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/EnvironmentsStubSettings.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,13 @@ public static class Builder extends StubSettings.Builder<EnvironmentsStubSetting
252252
"idempotent",
253253
ImmutableSet.copyOf(
254254
Lists.<StatusCode.Code>newArrayList(
255-
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
255+
StatusCode.Code.INTERNAL, StatusCode.Code.UNAVAILABLE)));
256256
definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
257+
definitions.put(
258+
"idempotent2",
259+
ImmutableSet.copyOf(
260+
Lists.<StatusCode.Code>newArrayList(
261+
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
257262
RETRYABLE_CODE_DEFINITIONS = definitions.build();
258263
}
259264

@@ -304,7 +309,7 @@ private static Builder initDefaults(Builder builder) {
304309

305310
builder
306311
.listEnvironmentsSettings()
307-
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
312+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent2"))
308313
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
309314

310315
return builder;

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
315315
* multiple default text responses exist, they will be concatenated when
316316
* generating audio. If no default platform text responses exist, the
317317
* generated audio content will be empty.
318+
* In some scenarios, multiple output audio fields may be present in the
319+
* response structure. In these cases, only the top-most-level audio output
320+
* has content.
318321
* </pre>
319322
*
320323
* <code>bytes output_audio = 4;</code>
@@ -1279,6 +1282,9 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
12791282
* multiple default text responses exist, they will be concatenated when
12801283
* generating audio. If no default platform text responses exist, the
12811284
* generated audio content will be empty.
1285+
* In some scenarios, multiple output audio fields may be present in the
1286+
* response structure. In these cases, only the top-most-level audio output
1287+
* has content.
12821288
* </pre>
12831289
*
12841290
* <code>bytes output_audio = 4;</code>
@@ -1298,6 +1304,9 @@ public com.google.protobuf.ByteString getOutputAudio() {
12981304
* multiple default text responses exist, they will be concatenated when
12991305
* generating audio. If no default platform text responses exist, the
13001306
* generated audio content will be empty.
1307+
* In some scenarios, multiple output audio fields may be present in the
1308+
* response structure. In these cases, only the top-most-level audio output
1309+
* has content.
13011310
* </pre>
13021311
*
13031312
* <code>bytes output_audio = 4;</code>
@@ -1324,6 +1333,9 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) {
13241333
* multiple default text responses exist, they will be concatenated when
13251334
* generating audio. If no default platform text responses exist, the
13261335
* generated audio content will be empty.
1336+
* In some scenarios, multiple output audio fields may be present in the
1337+
* response structure. In these cases, only the top-most-level audio output
1338+
* has content.
13271339
* </pre>
13281340
*
13291341
* <code>bytes output_audio = 4;</code>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ public interface DetectIntentResponseOrBuilder
133133
* multiple default text responses exist, they will be concatenated when
134134
* generating audio. If no default platform text responses exist, the
135135
* generated audio content will be empty.
136+
* In some scenarios, multiple output audio fields may be present in the
137+
* response structure. In these cases, only the top-most-level audio output
138+
* has content.
136139
* </pre>
137140
*
138141
* <code>bytes output_audio = 4;</code>

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Environment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
154154
*
155155
*
156156
* <pre>
157-
* Represents an environment state. When a environment is pointed to a new
157+
* Represents an environment state. When an environment is pointed to a new
158158
* agent version, the environment is temporarily set to the `LOADING` state.
159159
* During that time, the environment keeps on serving the previous version of
160160
* the agent. After the new agent version is done loading, the environment is

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponse.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
383383
* multiple default text responses exist, they will be concatenated when
384384
* generating audio. If no default platform text responses exist, the
385385
* generated audio content will be empty.
386+
* In some scenarios, multiple output audio fields may be present in the
387+
* response structure. In these cases, only the top-most-level audio output
388+
* has content.
386389
* </pre>
387390
*
388391
* <code>bytes output_audio = 5;</code>
@@ -1568,6 +1571,9 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder() {
15681571
* multiple default text responses exist, they will be concatenated when
15691572
* generating audio. If no default platform text responses exist, the
15701573
* generated audio content will be empty.
1574+
* In some scenarios, multiple output audio fields may be present in the
1575+
* response structure. In these cases, only the top-most-level audio output
1576+
* has content.
15711577
* </pre>
15721578
*
15731579
* <code>bytes output_audio = 5;</code>
@@ -1587,6 +1593,9 @@ public com.google.protobuf.ByteString getOutputAudio() {
15871593
* multiple default text responses exist, they will be concatenated when
15881594
* generating audio. If no default platform text responses exist, the
15891595
* generated audio content will be empty.
1596+
* In some scenarios, multiple output audio fields may be present in the
1597+
* response structure. In these cases, only the top-most-level audio output
1598+
* has content.
15901599
* </pre>
15911600
*
15921601
* <code>bytes output_audio = 5;</code>
@@ -1613,6 +1622,9 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) {
16131622
* multiple default text responses exist, they will be concatenated when
16141623
* generating audio. If no default platform text responses exist, the
16151624
* generated audio content will be empty.
1625+
* In some scenarios, multiple output audio fields may be present in the
1626+
* response structure. In these cases, only the top-most-level audio output
1627+
* has content.
16161628
* </pre>
16171629
*
16181630
* <code>bytes output_audio = 5;</code>

proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingDetectIntentResponseOrBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ public interface StreamingDetectIntentResponseOrBuilder
166166
* multiple default text responses exist, they will be concatenated when
167167
* generating audio. If no default platform text responses exist, the
168168
* generated audio content will be empty.
169+
* In some scenarios, multiple output audio fields may be present in the
170+
* response structure. In these cases, only the top-most-level audio output
171+
* has content.
169172
* </pre>
170173
*
171174
* <code>bytes output_audio = 5;</code>

proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/environment.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ message Environment {
5454
pattern: "projects/{project}/agent/environments/{environment}"
5555
};
5656

57-
// Represents an environment state. When a environment is pointed to a new
57+
// Represents an environment state. When an environment is pointed to a new
5858
// agent version, the environment is temporarily set to the `LOADING` state.
5959
// During that time, the environment keeps on serving the previous version of
6060
// the agent. After the new agent version is done loading, the environment is

proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/intent.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ message Intent {
244244
string display_name = 2;
245245

246246
// Optional. The definition of the parameter value. It can be:
247+
//
247248
// - a constant string,
248249
// - a parameter value defined as `$parameter_name`,
249250
// - an original parameter value defined as `$parameter_name.original`,

proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ message DetectIntentResponse {
145145
// multiple default text responses exist, they will be concatenated when
146146
// generating audio. If no default platform text responses exist, the
147147
// generated audio content will be empty.
148+
//
149+
// In some scenarios, multiple output audio fields may be present in the
150+
// response structure. In these cases, only the top-most-level audio output
151+
// has content.
148152
bytes output_audio = 4;
149153

150154
// The config used by the speech synthesizer to generate the output audio.
@@ -439,6 +443,10 @@ message StreamingDetectIntentResponse {
439443
// multiple default text responses exist, they will be concatenated when
440444
// generating audio. If no default platform text responses exist, the
441445
// generated audio content will be empty.
446+
//
447+
// In some scenarios, multiple output audio fields may be present in the
448+
// response structure. In these cases, only the top-most-level audio output
449+
// has content.
442450
bytes output_audio = 5;
443451

444452
// The config used by the speech synthesizer to generate the output audio.

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "aed11c01e52921613b9ee469c2d85f5f33175fb7",
15-
"internalRef": "310660461"
14+
"sha": "cd3ce2651c3921670217e664303976cdf76e9fe2",
15+
"internalRef": "312123588"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "aed11c01e52921613b9ee469c2d85f5f33175fb7",
23-
"internalRef": "310660461"
22+
"sha": "cd3ce2651c3921670217e664303976cdf76e9fe2",
23+
"internalRef": "312123588"
2424
}
2525
},
2626
{

0 commit comments

Comments
 (0)