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

Commit 987bfb1

Browse files
docs: recommend AnalyzeContent for future users (#745)
* docs: recommend AnalyzeContent for future users PiperOrigin-RevId: 402401837 Source-Link: googleapis/googleapis@16ff813 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c9e6ac25d5e309170f1805bf8ea382a8b23dee65 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzllNmFjMjVkNWUzMDkxNzBmMTgwNWJmOGVhMzgyYThiMjNkZWU2NSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 866ca0f commit 987bfb1

File tree

3 files changed

+80
-0
lines changed
  • google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2
  • grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2
  • proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2

3 files changed

+80
-0
lines changed

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ public SessionsStub getStub() {
147147
* method is not idempotent, because it may cause contexts and session entity types to be updated,
148148
* which in turn might affect results of future queries.
149149
*
150+
* <p>If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI
151+
* products now or in the future, consider using
152+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of
153+
* `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI
154+
* products.
155+
*
150156
* <p>Note: Always use agent versions for production traffic. See [Versions and
151157
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
152158
*
@@ -195,6 +201,12 @@ public final DetectIntentResponse detectIntent(SessionName session, QueryInput q
195201
* method is not idempotent, because it may cause contexts and session entity types to be updated,
196202
* which in turn might affect results of future queries.
197203
*
204+
* <p>If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI
205+
* products now or in the future, consider using
206+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of
207+
* `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI
208+
* products.
209+
*
198210
* <p>Note: Always use agent versions for production traffic. See [Versions and
199211
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
200212
*
@@ -240,6 +252,12 @@ public final DetectIntentResponse detectIntent(String session, QueryInput queryI
240252
* method is not idempotent, because it may cause contexts and session entity types to be updated,
241253
* which in turn might affect results of future queries.
242254
*
255+
* <p>If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI
256+
* products now or in the future, consider using
257+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of
258+
* `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI
259+
* products.
260+
*
243261
* <p>Note: Always use agent versions for production traffic. See [Versions and
244262
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
245263
*
@@ -273,6 +291,12 @@ public final DetectIntentResponse detectIntent(DetectIntentRequest request) {
273291
* method is not idempotent, because it may cause contexts and session entity types to be updated,
274292
* which in turn might affect results of future queries.
275293
*
294+
* <p>If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI
295+
* products now or in the future, consider using
296+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of
297+
* `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI
298+
* products.
299+
*
276300
* <p>Note: Always use agent versions for production traffic. See [Versions and
277301
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
278302
*
@@ -306,6 +330,12 @@ public final UnaryCallable<DetectIntentRequest, DetectIntentResponse> detectInte
306330
* structured, actionable data as a result. This method is only available via the gRPC API (not
307331
* REST).
308332
*
333+
* <p>If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI
334+
* products now or in the future, consider using
335+
* [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
336+
* instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has additional functionality for
337+
* Agent Assist and other CCAI products.
338+
*
309339
* <p>Note: Always use agent versions for production traffic. See [Versions and
310340
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
311341
*

grpc-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SessionsGrpc.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ public abstract static class SessionsImplBase implements io.grpc.BindableService
190190
* as a result. This method is not idempotent, because it may cause contexts
191191
* and session entity types to be updated, which in turn might affect
192192
* results of future queries.
193+
* If you might use
194+
* [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
195+
* or other CCAI products now or in the future, consider using
196+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
197+
* instead of `DetectIntent`. `AnalyzeContent` has additional
198+
* functionality for Agent Assist and other CCAI products.
193199
* Note: Always use agent versions for production traffic.
194200
* See [Versions and
195201
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
@@ -210,6 +216,12 @@ public void detectIntent(
210216
* Processes a natural language query in audio format in a streaming fashion
211217
* and returns structured, actionable data as a result. This method is only
212218
* available via the gRPC API (not REST).
219+
* If you might use
220+
* [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
221+
* or other CCAI products now or in the future, consider using
222+
* [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
223+
* instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
224+
* additional functionality for Agent Assist and other CCAI products.
213225
* Note: Always use agent versions for production traffic.
214226
* See [Versions and
215227
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
@@ -272,6 +284,12 @@ protected SessionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOp
272284
* as a result. This method is not idempotent, because it may cause contexts
273285
* and session entity types to be updated, which in turn might affect
274286
* results of future queries.
287+
* If you might use
288+
* [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
289+
* or other CCAI products now or in the future, consider using
290+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
291+
* instead of `DetectIntent`. `AnalyzeContent` has additional
292+
* functionality for Agent Assist and other CCAI products.
275293
* Note: Always use agent versions for production traffic.
276294
* See [Versions and
277295
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
@@ -294,6 +312,12 @@ public void detectIntent(
294312
* Processes a natural language query in audio format in a streaming fashion
295313
* and returns structured, actionable data as a result. This method is only
296314
* available via the gRPC API (not REST).
315+
* If you might use
316+
* [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
317+
* or other CCAI products now or in the future, consider using
318+
* [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
319+
* instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
320+
* additional functionality for Agent Assist and other CCAI products.
297321
* Note: Always use agent versions for production traffic.
298322
* See [Versions and
299323
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
@@ -338,6 +362,12 @@ protected SessionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption
338362
* as a result. This method is not idempotent, because it may cause contexts
339363
* and session entity types to be updated, which in turn might affect
340364
* results of future queries.
365+
* If you might use
366+
* [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
367+
* or other CCAI products now or in the future, consider using
368+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
369+
* instead of `DetectIntent`. `AnalyzeContent` has additional
370+
* functionality for Agent Assist and other CCAI products.
341371
* Note: Always use agent versions for production traffic.
342372
* See [Versions and
343373
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
@@ -378,6 +408,12 @@ protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
378408
* as a result. This method is not idempotent, because it may cause contexts
379409
* and session entity types to be updated, which in turn might affect
380410
* results of future queries.
411+
* If you might use
412+
* [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
413+
* or other CCAI products now or in the future, consider using
414+
* [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
415+
* instead of `DetectIntent`. `AnalyzeContent` has additional
416+
* functionality for Agent Assist and other CCAI products.
381417
* Note: Always use agent versions for production traffic.
382418
* See [Versions and
383419
* environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ service Sessions {
6060
// and session entity types to be updated, which in turn might affect
6161
// results of future queries.
6262
//
63+
// If you might use
64+
// [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
65+
// or other CCAI products now or in the future, consider using
66+
// [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
67+
// instead of `DetectIntent`. `AnalyzeContent` has additional
68+
// functionality for Agent Assist and other CCAI products.
69+
//
6370
// Note: Always use agent versions for production traffic.
6471
// See [Versions and
6572
// environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
@@ -87,6 +94,13 @@ service Sessions {
8794
// and returns structured, actionable data as a result. This method is only
8895
// available via the gRPC API (not REST).
8996
//
97+
// If you might use
98+
// [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
99+
// or other CCAI products now or in the future, consider using
100+
// [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
101+
// instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
102+
// additional functionality for Agent Assist and other CCAI products.
103+
//
90104
// Note: Always use agent versions for production traffic.
91105
// See [Versions and
92106
// environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).

0 commit comments

Comments
 (0)