Skip to content

Commit ecd7b99

Browse files
authored
Merge Samples into Master (dialogflow#1)
* Fix README instructions, command line argument parsing, and pom configurations * Update deprecated create() methods to of()
1 parent f50652f commit ecd7b99

File tree

11 files changed

+425
-42
lines changed

11 files changed

+425
-42
lines changed

samples/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ mvn exec:java -DDetectIntentStreamMountainView
103103
DialogFlow API Detect Intent sample with text inputs.
104104
105105
```
106-
mvn exec:java -DDetectIntentTexts
106+
mvn exec:java -DDetectIntentText
107107
```
108108
109109
### Entity Management
@@ -134,8 +134,16 @@ Create an entity type with the given display name
134134
mvn exec:java -DEntityTypeManagementCreate
135135
```
136136
Delete entity type with the given entity type name
137+
138+
Example output from `mvn exec:java -DEntityTypeManagementCreate`:
139+
"projects/java-docs-samples-testing/agent/entityTypes/86f57a32-483a-4818-b080-764dbcb31c6a"
140+
141+
ENTITY_TYPE_ID=86f57a32-483a-4818-b080-764dbcb31c6a
142+
143+
Use the outputted ENTITY_TYPE_ID from your `mvn exec:java -DEntityTypeManagementCreate` call
137144
```
138-
mvn exec:java -DEntityTypeManagementDelete
145+
mvn exec:java -DEntityTypeManagementDelete -Dexec.args='delete ENTITY_TYPE_ID
146+
--projectId PROJECT_ID'
139147
```
140148
141149
### Intent Management
@@ -150,8 +158,15 @@ Create an intent of the given intent type
150158
mvn exec:java -DIntentManagementCreate
151159
```
152160
Delete intent with the given intent type and intent value
161+
162+
Example output from `mvn exec:java -DIntentManagementCreate`:
163+
"Intent created: name:"projects/java-docs-samples-testing/agent/intents/5294c404-2516-47df-9a36-f0168ceca6f8""
164+
165+
INTENT_ID=5294c404-2516-47df-9a36-f0168ceca6f8
166+
167+
Use the outputted INTENT_ID from your `mvn exec:java -DIntentManagementCreate` call
153168
```
154-
mvn exec:java -DIntentManagementDelete
169+
mvn exec:java -DIntentManagementDelete -Dexec.args='delete INTENT_ID --projectId PROJECT_ID'
155170
```
156171
157172
### Session Entity Type Management

0 commit comments

Comments
 (0)