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

Commit

Permalink
fix!: Set agent default language code as required (#238)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/5cbf6e13-833e-4879-a642-7270f8729446/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 378978212
Source-Link: googleapis/googleapis@ecc3ac6

feat: Support partial response feature
docs: Update docs of Agents, Fulfillments, SecuritySettings and Sessions
  • Loading branch information
yoshi-automation authored Jun 14, 2021
1 parent 3209e54 commit d14161e
Show file tree
Hide file tree
Showing 22 changed files with 1,207 additions and 356 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public final UnaryCallable<DetectIntentRequest, DetectIntentResponse> detectInte
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
* .setEnablePartialResponse(true)
* .build();
* bidiStream.send(request);
* for (StreamingDetectIntentResponse response : bidiStream) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void detectIntentTest() throws Exception {
.setQueryResult(QueryResult.newBuilder().build())
.setOutputAudio(ByteString.EMPTY)
.setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
.setAllowCancellation(true)
.build();
mockSessions.addResponse(expectedResponse);

Expand Down Expand Up @@ -158,6 +159,7 @@ public void streamingDetectIntentTest() throws Exception {
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
.setEnablePartialResponse(true)
.build();

MockStreamObserver<StreamingDetectIntentResponse> responseObserver = new MockStreamObserver<>();
Expand Down Expand Up @@ -188,6 +190,7 @@ public void streamingDetectIntentExceptionTest() throws Exception {
.setQueryParams(QueryParameters.newBuilder().build())
.setQueryInput(QueryInput.newBuilder().build())
.setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
.setEnablePartialResponse(true)
.build();

MockStreamObserver<StreamingDetectIntentResponse> responseObserver = new MockStreamObserver<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,16 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The defaultLanguageCode.
*/
Expand All @@ -352,14 +354,16 @@ public java.lang.String getDefaultLanguageCode() {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The bytes for defaultLanguageCode.
*/
Expand Down Expand Up @@ -1566,14 +1570,16 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The defaultLanguageCode.
*/
Expand All @@ -1592,14 +1598,16 @@ public java.lang.String getDefaultLanguageCode() {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The bytes for defaultLanguageCode.
*/
Expand All @@ -1618,14 +1626,16 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @param value The defaultLanguageCode to set.
* @return This builder for chaining.
Expand All @@ -1643,14 +1653,16 @@ public Builder setDefaultLanguageCode(java.lang.String value) {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return This builder for chaining.
*/
Expand All @@ -1664,14 +1676,16 @@ public Builder clearDefaultLanguageCode() {
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @param value The bytes for defaultLanguageCode to set.
* @return This builder for chaining.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,16 @@ public interface AgentOrBuilder
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The defaultLanguageCode.
*/
Expand All @@ -99,14 +101,16 @@ public interface AgentOrBuilder
*
*
* <pre>
* Immutable. The default language of the agent as a language tag.
* Required. Immutable. The default language of the agent as a language tag.
* See [Language
* Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
* for a list of the currently supported language codes.
* This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
* </pre>
*
* <code>string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
* <code>
* string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
* </code>
*
* @return The bytes for defaultLanguageCode.
*/
Expand Down
Loading

0 comments on commit d14161e

Please sign in to comment.