Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dialogflow/cloud-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ To get started, [download][maven-download] and [install][maven-install] it.
```
* Set PROJECT_ID in pom.xml to your Google Cloud Project Id.
* Set SESSION_ID in pom.xml to a session name of your choice. (Defaults to SESSION_ID)
* Set CONTEXT_ID in pom.xml to a context name of your choice. (Defaults to CONTEXT_ID)

[cloud-console]: https://console.cloud.google.com
[dialogflow-api]: https://console.cloud.google.com/apis/library/dialogflow.googleapis.com
Expand Down
1 change: 0 additions & 1 deletion dialogflow/cloud-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

<projectId>java-docs-samples-testing</projectId> <!-- TODO SET PROJECT_ID -->
<sessionId>SESSION_ID</sessionId> <!-- TODO SET SESSION_ID -->
<contextId>CONTEXT_ID</contextId> <!-- TODO SET CONTEXT_ID -->
</properties>

<dependencies>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.google.cloud.dialogflow.v2beta1.SessionName;
import com.google.cloud.dialogflow.v2beta1.SessionsClient;
import com.google.cloud.dialogflow.v2beta1.TextInput;
import com.google.cloud.dialogflow.v2beta1.TextInput.Builder;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -67,7 +66,8 @@ public static Map<String, KnowledgeAnswers> detectIntentKnowledge(
// Detect intents for each text input
for (String text : texts) {
// Set the text and language code (en-US) for the query
Builder textInput = TextInput.newBuilder().setText(text).setLanguageCode(languageCode);
TextInput.Builder textInput =
TextInput.newBuilder().setText(text).setLanguageCode(languageCode);
// Build the query with the TextInput
QueryInput queryInput = QueryInput.newBuilder().setText(textInput).build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.google.cloud.dialogflow.v2.SessionName;
import com.google.cloud.dialogflow.v2.SessionsClient;
import com.google.cloud.dialogflow.v2.TextInput;
import com.google.cloud.dialogflow.v2.TextInput.Builder;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -61,7 +60,8 @@ public static Map<String, QueryResult> detectIntentTexts(
// Detect intents for each text input
for (String text : texts) {
// Set the text (hello) and language code (en-US) for the query
Builder textInput = TextInput.newBuilder().setText(text).setLanguageCode(languageCode);
TextInput.Builder textInput =
TextInput.newBuilder().setText(text).setLanguageCode(languageCode);

// Build the query with the TextInput
QueryInput queryInput = QueryInput.newBuilder().setText(textInput).build();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.google.cloud.dialogflow.v2.SessionName;
import com.google.cloud.dialogflow.v2.SessionsClient;
import com.google.cloud.dialogflow.v2.TextInput;
import com.google.cloud.dialogflow.v2.TextInput.Builder;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -59,7 +58,8 @@ public static Map<String, QueryResult> detectIntentSentimentAnalysis(
// Detect intents for each text input
for (String text : texts) {
// Set the text (hello) and language code (en-US) for the query
Builder textInput = TextInput.newBuilder().setText(text).setLanguageCode(languageCode);
TextInput.Builder textInput =
TextInput.newBuilder().setText(text).setLanguageCode(languageCode);

// Build the query with the TextInput
QueryInput queryInput = QueryInput.newBuilder().setText(textInput).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.google.cloud.dialogflow.v2.SessionName;
import com.google.cloud.dialogflow.v2.SessionsClient;
import com.google.cloud.dialogflow.v2.TextInput;
import com.google.cloud.dialogflow.v2.TextInput.Builder;
import com.google.common.collect.Maps;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -59,7 +58,8 @@ public static Map<String, QueryResult> detectIntentWithTexttoSpeech(
// Detect intents for each text input
for (String text : texts) {
// Set the text (hello) and language code (en-US) for the query
Builder textInput = TextInput.newBuilder().setText(text).setLanguageCode(languageCode);
TextInput.Builder textInput =
TextInput.newBuilder().setText(text).setLanguageCode(languageCode);

// Build the query with the TextInput
QueryInput queryInput = QueryInput.newBuilder().setText(textInput).build();
Expand Down
Loading