Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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