Skip to content

Commit

Permalink
Dialogflow weekly v2/v2beta1 library update:
Browse files Browse the repository at this point in the history
- Update comments on Contexts and Sessions resources.

PiperOrigin-RevId: 305919798
  • Loading branch information
Google APIs authored and copybara-github committed Apr 10, 2020
1 parent 1df336a commit 1e92c34
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 42 deletions.
2 changes: 0 additions & 2 deletions google/cloud/dialogflow/v2/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,6 @@ message DeleteAgentRequest {
];
}

// ============================================================================
// Requests and responses for custom methods.
// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
message SearchAgentsRequest {
// Required. The project to list agents from.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dialogflow/v2/context.proto
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ message Context {
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: string
// - Else: string or number, depending on parameter value type
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
Expand Down
50 changes: 12 additions & 38 deletions google/cloud/dialogflow/v2/dialogflow_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,46 +24,20 @@ documentation:
Builds conversational interfaces (for example, chatbots, and voice-powered
apps and devices).
overview: |-
[Dialogflow](http://dialogflow.com/) is a natural language
understanding platform that makes it easy for you to design and integrate
a conversational user interface into your mobile app, web application,
device, bot, and so on. Using Dialogflow you can provide users new and
engaging ways to interact with your product using both voice recognition
and text input.
<!-- mdformat off(presubmit failing, mdformat is as well) --> Dialogflow is
a natural language understanding platform that makes it easy
to design and integrate a conversational user interface into your mobile
app, web application, device, bot, interactive voice response system, and
so on. Using Dialogflow, you can provide new and engaging ways for
users to interact with your product.
For information on how Dialogflow agents, intents, entities, and so on
work, see the [Dialogflow getting
started
guide](https://dialogflow.com/docs/getting-started/basics) in the
dialogflow.com documentation.
Dialogflow can analyze multiple types of input from your customers,
including text or audio inputs (like from a phone or voice recording).
It can also respond to your customers in a couple of ways, either through
text or with synthetic speech.
## Dialogflow Editions
Dialogflow is available in two editions: Standard and Enterprise. For
information on the difference in Dialogflow editions, see [Dialogflow
Editions](https://cloud.google.com/dialogflow-enterprise/docs/editions).
## The Dialogflow API
The Dialogflow API provides a REST and gRPC API that you can use to
incorporate the Dialogflow into your product. After you have created a
Google Cloud project and a Dialogflow agent, you can use the API to create
intents, entities, and so on, and then pass user input to your Dialogflow
agent to determine user intent using
the
[detectIntent](https://cloud.google.com/dialogflow-enterprise/docs/reference/rest/v2beta1/projects.agent.sessions/detectIntent) REST
API, or the
[StreamingDetectIntentRequest](https://cloud.google.com/dialogflow-enterprise/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest) gRPC
API.
## Getting Started
* For information on setting up a Google Cloud Platform project and
creating an agent using the Dialogflow Enterprise Edition, see
[Quickstart](https://cloud.google.com/dialogflow-enterprise/docs/quickstart). *
For information on creating an agent using the Dialogflow Standard
Edition, see [Building Your First
Agent](https://dialogflow.com/docs/getting-started/building-your-first-agent)
For more information, see the
[Dialogflow documentation](https://cloud.google.com/dialogflow/docs).
backend:
rules:
Expand Down
29 changes: 28 additions & 1 deletion google/cloud/dialogflow/v2/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ service Sessions {
}
}

// Requests and responses for custom methods.
// The request to detect user's intent.
message DetectIntentRequest {
// Required. The name of the session this query is sent to. Format:
Expand Down Expand Up @@ -244,6 +243,20 @@ message QueryResult {
string action = 3;

// The collection of extracted parameters.
//
// Depending on your protocol or client library language, this is a
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// - MapKey type: string
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: string or number, depending on parameter value type
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
// - Else: parameter value
google.protobuf.Struct parameters = 4;

// This field is set to:
Expand Down Expand Up @@ -539,6 +552,20 @@ message EventInput {
string name = 1 [(google.api.field_behavior) = REQUIRED];

// The collection of parameters associated with the event.
//
// Depending on your protocol or client library language, this is a
// map, associative array, symbol table, dictionary, or JSON object
// composed of a collection of (MapKey, MapValue) pairs:
//
// - MapKey type: string
// - MapKey value: parameter name
// - MapValue type:
// - If parameter's entity type is a composite entity: map
// - Else: string or number, depending on parameter value type
// - MapValue value:
// - If parameter's entity type is a composite entity:
// map from composite entity property names to property values
// - Else: parameter value
google.protobuf.Struct parameters = 2;

// Required. The language of this query. See [Language
Expand Down

0 comments on commit 1e92c34

Please sign in to comment.