Synchronize new proto changes.

This commit is contained in:
Google APIs 2018-02-14 11:04:36 -08:00
parent 4568cba600
commit 3925c5ccc4
3 changed files with 62 additions and 15 deletions

View file

@ -71,8 +71,13 @@ service Contexts {
// Represents a context.
message Context {
// Required. The unique identifier of the context. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
// Note: The Context ID is always converted to lowercase.
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
// or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
// ID>/contexts/<Context ID>`.
// Note: Runtimes are under construction and will be available soon.
// The Context ID is always converted to lowercase.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
string name = 1;
// Optional. The number of conversational query requests after which the
@ -90,7 +95,10 @@ message Context {
// The request message for [Contexts.ListContexts][google.cloud.dialogflow.v2beta1.Contexts.ListContexts].
message ListContextsRequest {
// Required. The session to list all contexts from.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
string parent = 1;
// Optional. The maximum number of items to return in a single page. By
@ -115,14 +123,21 @@ message ListContextsResponse {
// The request message for [Contexts.GetContext][google.cloud.dialogflow.v2beta1.Contexts.GetContext].
message GetContextRequest {
// Required. The name of the context. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
// or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
// ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
// be available soon. If <Runtime ID> is not specified, we assume default
// 'sandbox' runtime.
string name = 1;
}
// The request message for [Contexts.CreateContext][google.cloud.dialogflow.v2beta1.Contexts.CreateContext].
message CreateContextRequest {
// Required. The session to create a context for.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
string parent = 1;
// Required. The context to create.
@ -141,13 +156,20 @@ message UpdateContextRequest {
// The request message for [Contexts.DeleteContext][google.cloud.dialogflow.v2beta1.Contexts.DeleteContext].
message DeleteContextRequest {
// Required. The name of the context to delete. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
// `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
// or `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session
// ID>/contexts/<Context ID>`. Note: Runtimes are under construction and will
// be available soon. If <Runtime ID> is not specified, we assume default
// 'sandbox' runtime.
string name = 1;
}
// The request message for [Contexts.DeleteAllContexts][google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts].
message DeleteAllContextsRequest {
// Required. The name of the session to delete all contexts from. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>`.
// `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
// ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`. Note: Runtimes are
// under construction and will be available soon. If <Runtime ID> is not
// specified we assume default 'sandbox' runtime.
string parent = 1;
}

View file

@ -54,7 +54,10 @@ service Sessions {
// The request to detect user's intent.
message DetectIntentRequest {
// Required. The name of the session this query is sent to. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>`.
// `projects/<Project ID>/agent/sessions/<Session ID>`, or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
// It's up to the API caller to choose an appropriate session ID. It can be
// a random number or some type of user identifier (preferably hashed).
// The length of the session ID must not exceed 36 bytes.
@ -232,7 +235,10 @@ message QueryResult {
message StreamingDetectIntentRequest {
// Required. The name of the session the query is sent to.
// Format of the session name:
// `projects/<Project ID>/agent/sessions/<Session ID>`.
// `projects/<Project ID>/agent/sessions/<Session ID>`, or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
// Its up to the API caller to choose an appropriate <Session ID>. It can be
// a random number or some type of user identifier (preferably hashed).
// The length of the session ID must not exceed 36 characters.

View file

@ -91,7 +91,11 @@ message SessionEntityType {
// Required. The unique identifier of this session entity type. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
// Display Name>`, or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>sessions/<Session
// ID>/entityTypes/<Entity Type Display Name>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
string name = 1;
// Required. Indicates whether the additional data should override or
@ -106,7 +110,10 @@ message SessionEntityType {
// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes].
message ListSessionEntityTypesRequest {
// Required. The session to list all session entity types from.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
string parent = 1;
// Optional. The maximum number of items to return in a single page. By
@ -132,14 +139,20 @@ message ListSessionEntityTypesResponse {
message GetSessionEntityTypeRequest {
// Required. The name of the session entity type. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
// Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
// Runtimes are under construction and will be available soon. If <Runtime ID>
// is not specified, we assume default 'sandbox' runtime.
string name = 1;
}
// The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType].
message CreateSessionEntityTypeRequest {
// Required. The session to create a session entity type for.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
// Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
// `projects/<Project ID>/agent/runtimes/<Runtime ID>/sessions/<Session ID>`.
// Note: Runtimes are under construction and will be available soon.
// If <Runtime ID> is not specified, we assume default 'sandbox' runtime.
string parent = 1;
// Required. The session entity type to create.
@ -150,7 +163,10 @@ message CreateSessionEntityTypeRequest {
message UpdateSessionEntityTypeRequest {
// Required. The entity type to update. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
// Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
// Runtimes are under construction and will be available soon. If <Runtime ID>
// is not specified, we assume default 'sandbox' runtime.
SessionEntityType session_entity_type = 1;
// Optional. The mask to control which fields get updated.
@ -161,6 +177,9 @@ message UpdateSessionEntityTypeRequest {
message DeleteSessionEntityTypeRequest {
// Required. The name of the entity type to delete. Format:
// `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
// Display Name>`.
// Display Name>` or `projects/<Project ID>/agent/runtimes/<Runtime
// ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`. Note:
// Runtimes are under construction and will be available soon. If <Runtime ID>
// is not specified, we assume default 'sandbox' runtime.
string name = 1;
}