1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.dialogflow.v2; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workerimport "google/api/annotations.proto"; 20*d5c09012SAndroid Build Coastguard Workerimport "google/api/client.proto"; 21*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto"; 22*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto"; 23*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/dialogflow/v2/context.proto"; 24*d5c09012SAndroid Build Coastguard Workerimport "google/longrunning/operations.proto"; 25*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/empty.proto"; 26*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/field_mask.proto"; 27*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/struct.proto"; 28*d5c09012SAndroid Build Coastguard Worker 29*d5c09012SAndroid Build Coastguard Workeroption cc_enable_arenas = true; 30*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.Dialogflow.V2"; 31*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb"; 32*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 33*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "IntentProto"; 34*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.dialogflow.v2"; 35*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "DF"; 36*d5c09012SAndroid Build Coastguard Worker 37*d5c09012SAndroid Build Coastguard Worker// Service for managing [Intents][google.cloud.dialogflow.v2.Intent]. 38*d5c09012SAndroid Build Coastguard Workerservice Intents { 39*d5c09012SAndroid Build Coastguard Worker option (google.api.default_host) = "dialogflow.googleapis.com"; 40*d5c09012SAndroid Build Coastguard Worker option (google.api.oauth_scopes) = 41*d5c09012SAndroid Build Coastguard Worker "https://www.googleapis.com/auth/cloud-platform," 42*d5c09012SAndroid Build Coastguard Worker "https://www.googleapis.com/auth/dialogflow"; 43*d5c09012SAndroid Build Coastguard Worker 44*d5c09012SAndroid Build Coastguard Worker // Returns the list of all intents in the specified agent. 45*d5c09012SAndroid Build Coastguard Worker rpc ListIntents(ListIntentsRequest) returns (ListIntentsResponse) { 46*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 47*d5c09012SAndroid Build Coastguard Worker get: "/v2/{parent=projects/*/agent}/intents" 48*d5c09012SAndroid Build Coastguard Worker additional_bindings { 49*d5c09012SAndroid Build Coastguard Worker get: "/v2/{parent=projects/*/locations/*/agent}/intents" 50*d5c09012SAndroid Build Coastguard Worker } 51*d5c09012SAndroid Build Coastguard Worker additional_bindings { 52*d5c09012SAndroid Build Coastguard Worker get: "/v2/{parent=projects/*/agent/environments/*}/intents" 53*d5c09012SAndroid Build Coastguard Worker } 54*d5c09012SAndroid Build Coastguard Worker additional_bindings { 55*d5c09012SAndroid Build Coastguard Worker get: "/v2/{parent=projects/*/locations/*/agent/environments/*}/intents" 56*d5c09012SAndroid Build Coastguard Worker } 57*d5c09012SAndroid Build Coastguard Worker }; 58*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent"; 59*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,language_code"; 60*d5c09012SAndroid Build Coastguard Worker } 61*d5c09012SAndroid Build Coastguard Worker 62*d5c09012SAndroid Build Coastguard Worker // Retrieves the specified intent. 63*d5c09012SAndroid Build Coastguard Worker rpc GetIntent(GetIntentRequest) returns (Intent) { 64*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 65*d5c09012SAndroid Build Coastguard Worker get: "/v2/{name=projects/*/agent/intents/*}" 66*d5c09012SAndroid Build Coastguard Worker additional_bindings { 67*d5c09012SAndroid Build Coastguard Worker get: "/v2/{name=projects/*/locations/*/agent/intents/*}" 68*d5c09012SAndroid Build Coastguard Worker } 69*d5c09012SAndroid Build Coastguard Worker }; 70*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "name"; 71*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "name,language_code"; 72*d5c09012SAndroid Build Coastguard Worker } 73*d5c09012SAndroid Build Coastguard Worker 74*d5c09012SAndroid Build Coastguard Worker // Creates an intent in the specified agent. 75*d5c09012SAndroid Build Coastguard Worker // 76*d5c09012SAndroid Build Coastguard Worker // Note: You should always train an agent prior to sending it queries. See the 77*d5c09012SAndroid Build Coastguard Worker // [training 78*d5c09012SAndroid Build Coastguard Worker // documentation](https://cloud.google.com/dialogflow/es/docs/training). 79*d5c09012SAndroid Build Coastguard Worker rpc CreateIntent(CreateIntentRequest) returns (Intent) { 80*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 81*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/agent}/intents" 82*d5c09012SAndroid Build Coastguard Worker body: "intent" 83*d5c09012SAndroid Build Coastguard Worker additional_bindings { 84*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/locations/*/agent}/intents" 85*d5c09012SAndroid Build Coastguard Worker body: "intent" 86*d5c09012SAndroid Build Coastguard Worker } 87*d5c09012SAndroid Build Coastguard Worker }; 88*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,intent"; 89*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,intent,language_code"; 90*d5c09012SAndroid Build Coastguard Worker } 91*d5c09012SAndroid Build Coastguard Worker 92*d5c09012SAndroid Build Coastguard Worker // Updates the specified intent. 93*d5c09012SAndroid Build Coastguard Worker // 94*d5c09012SAndroid Build Coastguard Worker // Note: You should always train an agent prior to sending it queries. See the 95*d5c09012SAndroid Build Coastguard Worker // [training 96*d5c09012SAndroid Build Coastguard Worker // documentation](https://cloud.google.com/dialogflow/es/docs/training). 97*d5c09012SAndroid Build Coastguard Worker rpc UpdateIntent(UpdateIntentRequest) returns (Intent) { 98*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 99*d5c09012SAndroid Build Coastguard Worker patch: "/v2/{intent.name=projects/*/agent/intents/*}" 100*d5c09012SAndroid Build Coastguard Worker body: "intent" 101*d5c09012SAndroid Build Coastguard Worker additional_bindings { 102*d5c09012SAndroid Build Coastguard Worker patch: "/v2/{intent.name=projects/*/locations/*/agent/intents/*}" 103*d5c09012SAndroid Build Coastguard Worker body: "intent" 104*d5c09012SAndroid Build Coastguard Worker } 105*d5c09012SAndroid Build Coastguard Worker }; 106*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "intent,language_code"; 107*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "intent,language_code,update_mask"; 108*d5c09012SAndroid Build Coastguard Worker } 109*d5c09012SAndroid Build Coastguard Worker 110*d5c09012SAndroid Build Coastguard Worker // Deletes the specified intent and its direct or indirect followup intents. 111*d5c09012SAndroid Build Coastguard Worker // 112*d5c09012SAndroid Build Coastguard Worker // Note: You should always train an agent prior to sending it queries. See the 113*d5c09012SAndroid Build Coastguard Worker // [training 114*d5c09012SAndroid Build Coastguard Worker // documentation](https://cloud.google.com/dialogflow/es/docs/training). 115*d5c09012SAndroid Build Coastguard Worker rpc DeleteIntent(DeleteIntentRequest) returns (google.protobuf.Empty) { 116*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 117*d5c09012SAndroid Build Coastguard Worker delete: "/v2/{name=projects/*/agent/intents/*}" 118*d5c09012SAndroid Build Coastguard Worker additional_bindings { 119*d5c09012SAndroid Build Coastguard Worker delete: "/v2/{name=projects/*/locations/*/agent/intents/*}" 120*d5c09012SAndroid Build Coastguard Worker } 121*d5c09012SAndroid Build Coastguard Worker }; 122*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "name"; 123*d5c09012SAndroid Build Coastguard Worker } 124*d5c09012SAndroid Build Coastguard Worker 125*d5c09012SAndroid Build Coastguard Worker // Updates/Creates multiple intents in the specified agent. 126*d5c09012SAndroid Build Coastguard Worker // 127*d5c09012SAndroid Build Coastguard Worker // This method is a [long-running 128*d5c09012SAndroid Build Coastguard Worker // operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). 129*d5c09012SAndroid Build Coastguard Worker // The returned `Operation` type has the following method-specific fields: 130*d5c09012SAndroid Build Coastguard Worker // 131*d5c09012SAndroid Build Coastguard Worker // - `metadata`: An empty [Struct 132*d5c09012SAndroid Build Coastguard Worker // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) 133*d5c09012SAndroid Build Coastguard Worker // - `response`: 134*d5c09012SAndroid Build Coastguard Worker // [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse] 135*d5c09012SAndroid Build Coastguard Worker // 136*d5c09012SAndroid Build Coastguard Worker // Note: You should always train an agent prior to sending it queries. See the 137*d5c09012SAndroid Build Coastguard Worker // [training 138*d5c09012SAndroid Build Coastguard Worker // documentation](https://cloud.google.com/dialogflow/es/docs/training). 139*d5c09012SAndroid Build Coastguard Worker rpc BatchUpdateIntents(BatchUpdateIntentsRequest) 140*d5c09012SAndroid Build Coastguard Worker returns (google.longrunning.Operation) { 141*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 142*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/agent}/intents:batchUpdate" 143*d5c09012SAndroid Build Coastguard Worker body: "*" 144*d5c09012SAndroid Build Coastguard Worker additional_bindings { 145*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/locations/*/agent}/intents:batchUpdate" 146*d5c09012SAndroid Build Coastguard Worker body: "*" 147*d5c09012SAndroid Build Coastguard Worker } 148*d5c09012SAndroid Build Coastguard Worker }; 149*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,intent_batch_uri"; 150*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,intent_batch_inline"; 151*d5c09012SAndroid Build Coastguard Worker option (google.longrunning.operation_info) = { 152*d5c09012SAndroid Build Coastguard Worker response_type: "google.cloud.dialogflow.v2.BatchUpdateIntentsResponse" 153*d5c09012SAndroid Build Coastguard Worker metadata_type: "google.protobuf.Struct" 154*d5c09012SAndroid Build Coastguard Worker }; 155*d5c09012SAndroid Build Coastguard Worker } 156*d5c09012SAndroid Build Coastguard Worker 157*d5c09012SAndroid Build Coastguard Worker // Deletes intents in the specified agent. 158*d5c09012SAndroid Build Coastguard Worker // 159*d5c09012SAndroid Build Coastguard Worker // This method is a [long-running 160*d5c09012SAndroid Build Coastguard Worker // operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). 161*d5c09012SAndroid Build Coastguard Worker // The returned `Operation` type has the following method-specific fields: 162*d5c09012SAndroid Build Coastguard Worker // 163*d5c09012SAndroid Build Coastguard Worker // - `metadata`: An empty [Struct 164*d5c09012SAndroid Build Coastguard Worker // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) 165*d5c09012SAndroid Build Coastguard Worker // - `response`: An [Empty 166*d5c09012SAndroid Build Coastguard Worker // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) 167*d5c09012SAndroid Build Coastguard Worker // 168*d5c09012SAndroid Build Coastguard Worker // Note: You should always train an agent prior to sending it queries. See the 169*d5c09012SAndroid Build Coastguard Worker // [training 170*d5c09012SAndroid Build Coastguard Worker // documentation](https://cloud.google.com/dialogflow/es/docs/training). 171*d5c09012SAndroid Build Coastguard Worker rpc BatchDeleteIntents(BatchDeleteIntentsRequest) 172*d5c09012SAndroid Build Coastguard Worker returns (google.longrunning.Operation) { 173*d5c09012SAndroid Build Coastguard Worker option (google.api.http) = { 174*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/agent}/intents:batchDelete" 175*d5c09012SAndroid Build Coastguard Worker body: "*" 176*d5c09012SAndroid Build Coastguard Worker additional_bindings { 177*d5c09012SAndroid Build Coastguard Worker post: "/v2/{parent=projects/*/locations/*/agent}/intents:batchDelete" 178*d5c09012SAndroid Build Coastguard Worker body: "*" 179*d5c09012SAndroid Build Coastguard Worker } 180*d5c09012SAndroid Build Coastguard Worker }; 181*d5c09012SAndroid Build Coastguard Worker option (google.api.method_signature) = "parent,intents"; 182*d5c09012SAndroid Build Coastguard Worker option (google.longrunning.operation_info) = { 183*d5c09012SAndroid Build Coastguard Worker response_type: "google.protobuf.Empty" 184*d5c09012SAndroid Build Coastguard Worker metadata_type: "google.protobuf.Struct" 185*d5c09012SAndroid Build Coastguard Worker }; 186*d5c09012SAndroid Build Coastguard Worker } 187*d5c09012SAndroid Build Coastguard Worker} 188*d5c09012SAndroid Build Coastguard Worker 189*d5c09012SAndroid Build Coastguard Worker// An intent categorizes an end-user's intention for one conversation turn. For 190*d5c09012SAndroid Build Coastguard Worker// each agent, you define many intents, where your combined intents can handle a 191*d5c09012SAndroid Build Coastguard Worker// complete conversation. When an end-user writes or says something, referred to 192*d5c09012SAndroid Build Coastguard Worker// as an end-user expression or end-user input, Dialogflow matches the end-user 193*d5c09012SAndroid Build Coastguard Worker// input to the best intent in your agent. Matching an intent is also known as 194*d5c09012SAndroid Build Coastguard Worker// intent classification. 195*d5c09012SAndroid Build Coastguard Worker// 196*d5c09012SAndroid Build Coastguard Worker// For more information, see the [intent 197*d5c09012SAndroid Build Coastguard Worker// guide](https://cloud.google.com/dialogflow/docs/intents-overview). 198*d5c09012SAndroid Build Coastguard Workermessage Intent { 199*d5c09012SAndroid Build Coastguard Worker option (google.api.resource) = { 200*d5c09012SAndroid Build Coastguard Worker type: "dialogflow.googleapis.com/Intent" 201*d5c09012SAndroid Build Coastguard Worker pattern: "projects/{project}/agent/intents/{intent}" 202*d5c09012SAndroid Build Coastguard Worker pattern: "projects/{project}/locations/{location}/agent/intents/{intent}" 203*d5c09012SAndroid Build Coastguard Worker }; 204*d5c09012SAndroid Build Coastguard Worker 205*d5c09012SAndroid Build Coastguard Worker // Represents the different states that webhooks can be in. 206*d5c09012SAndroid Build Coastguard Worker enum WebhookState { 207*d5c09012SAndroid Build Coastguard Worker // Webhook is disabled in the agent and in the intent. 208*d5c09012SAndroid Build Coastguard Worker WEBHOOK_STATE_UNSPECIFIED = 0; 209*d5c09012SAndroid Build Coastguard Worker 210*d5c09012SAndroid Build Coastguard Worker // Webhook is enabled in the agent and in the intent. 211*d5c09012SAndroid Build Coastguard Worker WEBHOOK_STATE_ENABLED = 1; 212*d5c09012SAndroid Build Coastguard Worker 213*d5c09012SAndroid Build Coastguard Worker // Webhook is enabled in the agent and in the intent. Also, each slot 214*d5c09012SAndroid Build Coastguard Worker // filling prompt is forwarded to the webhook. 215*d5c09012SAndroid Build Coastguard Worker WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING = 2; 216*d5c09012SAndroid Build Coastguard Worker } 217*d5c09012SAndroid Build Coastguard Worker 218*d5c09012SAndroid Build Coastguard Worker // Represents an example that the agent is trained on. 219*d5c09012SAndroid Build Coastguard Worker message TrainingPhrase { 220*d5c09012SAndroid Build Coastguard Worker // Represents different types of training phrases. 221*d5c09012SAndroid Build Coastguard Worker enum Type { 222*d5c09012SAndroid Build Coastguard Worker // Not specified. This value should never be used. 223*d5c09012SAndroid Build Coastguard Worker TYPE_UNSPECIFIED = 0; 224*d5c09012SAndroid Build Coastguard Worker 225*d5c09012SAndroid Build Coastguard Worker // Examples do not contain @-prefixed entity type names, but example parts 226*d5c09012SAndroid Build Coastguard Worker // can be annotated with entity types. 227*d5c09012SAndroid Build Coastguard Worker EXAMPLE = 1; 228*d5c09012SAndroid Build Coastguard Worker 229*d5c09012SAndroid Build Coastguard Worker // Templates are not annotated with entity types, but they can contain 230*d5c09012SAndroid Build Coastguard Worker // @-prefixed entity type names as substrings. 231*d5c09012SAndroid Build Coastguard Worker // Template mode has been deprecated. Example mode is the only supported 232*d5c09012SAndroid Build Coastguard Worker // way to create new training phrases. If you have existing training 233*d5c09012SAndroid Build Coastguard Worker // phrases that you've created in template mode, those will continue to 234*d5c09012SAndroid Build Coastguard Worker // work. 235*d5c09012SAndroid Build Coastguard Worker TEMPLATE = 2 [deprecated = true]; 236*d5c09012SAndroid Build Coastguard Worker } 237*d5c09012SAndroid Build Coastguard Worker 238*d5c09012SAndroid Build Coastguard Worker // Represents a part of a training phrase. 239*d5c09012SAndroid Build Coastguard Worker message Part { 240*d5c09012SAndroid Build Coastguard Worker // Required. The text for this part. 241*d5c09012SAndroid Build Coastguard Worker string text = 1; 242*d5c09012SAndroid Build Coastguard Worker 243*d5c09012SAndroid Build Coastguard Worker // Optional. The entity type name prefixed with `@`. 244*d5c09012SAndroid Build Coastguard Worker // This field is required for annotated parts of the training phrase. 245*d5c09012SAndroid Build Coastguard Worker string entity_type = 2 [(google.api.field_behavior) = OPTIONAL]; 246*d5c09012SAndroid Build Coastguard Worker 247*d5c09012SAndroid Build Coastguard Worker // Optional. The parameter name for the value extracted from the 248*d5c09012SAndroid Build Coastguard Worker // annotated part of the example. 249*d5c09012SAndroid Build Coastguard Worker // This field is required for annotated parts of the training phrase. 250*d5c09012SAndroid Build Coastguard Worker string alias = 3 [(google.api.field_behavior) = OPTIONAL]; 251*d5c09012SAndroid Build Coastguard Worker 252*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether the text was manually annotated. 253*d5c09012SAndroid Build Coastguard Worker // This field is set to true when the Dialogflow Console is used to 254*d5c09012SAndroid Build Coastguard Worker // manually annotate the part. When creating an annotated part with the 255*d5c09012SAndroid Build Coastguard Worker // API, you must set this to true. 256*d5c09012SAndroid Build Coastguard Worker bool user_defined = 4 [(google.api.field_behavior) = OPTIONAL]; 257*d5c09012SAndroid Build Coastguard Worker } 258*d5c09012SAndroid Build Coastguard Worker 259*d5c09012SAndroid Build Coastguard Worker // Output only. The unique identifier of this training phrase. 260*d5c09012SAndroid Build Coastguard Worker string name = 1; 261*d5c09012SAndroid Build Coastguard Worker 262*d5c09012SAndroid Build Coastguard Worker // Required. The type of the training phrase. 263*d5c09012SAndroid Build Coastguard Worker Type type = 2 [(google.api.field_behavior) = REQUIRED]; 264*d5c09012SAndroid Build Coastguard Worker 265*d5c09012SAndroid Build Coastguard Worker // Required. The ordered list of training phrase parts. 266*d5c09012SAndroid Build Coastguard Worker // The parts are concatenated in order to form the training phrase. 267*d5c09012SAndroid Build Coastguard Worker // 268*d5c09012SAndroid Build Coastguard Worker // Note: The API does not automatically annotate training phrases like the 269*d5c09012SAndroid Build Coastguard Worker // Dialogflow Console does. 270*d5c09012SAndroid Build Coastguard Worker // 271*d5c09012SAndroid Build Coastguard Worker // Note: Do not forget to include whitespace at part boundaries, 272*d5c09012SAndroid Build Coastguard Worker // so the training phrase is well formatted when the parts are concatenated. 273*d5c09012SAndroid Build Coastguard Worker // 274*d5c09012SAndroid Build Coastguard Worker // If the training phrase does not need to be annotated with parameters, 275*d5c09012SAndroid Build Coastguard Worker // you just need a single part with only the 276*d5c09012SAndroid Build Coastguard Worker // [Part.text][google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part.text] 277*d5c09012SAndroid Build Coastguard Worker // field set. 278*d5c09012SAndroid Build Coastguard Worker // 279*d5c09012SAndroid Build Coastguard Worker // If you want to annotate the training phrase, you must create multiple 280*d5c09012SAndroid Build Coastguard Worker // parts, where the fields of each part are populated in one of two ways: 281*d5c09012SAndroid Build Coastguard Worker // 282*d5c09012SAndroid Build Coastguard Worker // - `Part.text` is set to a part of the phrase that has no parameters. 283*d5c09012SAndroid Build Coastguard Worker // - `Part.text` is set to a part of the phrase that you want to annotate, 284*d5c09012SAndroid Build Coastguard Worker // and the `entity_type`, `alias`, and `user_defined` fields are all 285*d5c09012SAndroid Build Coastguard Worker // set. 286*d5c09012SAndroid Build Coastguard Worker repeated Part parts = 3 [(google.api.field_behavior) = REQUIRED]; 287*d5c09012SAndroid Build Coastguard Worker 288*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates how many times this example was added to 289*d5c09012SAndroid Build Coastguard Worker // the intent. Each time a developer adds an existing sample by editing an 290*d5c09012SAndroid Build Coastguard Worker // intent or training, this counter is increased. 291*d5c09012SAndroid Build Coastguard Worker int32 times_added_count = 4 [(google.api.field_behavior) = OPTIONAL]; 292*d5c09012SAndroid Build Coastguard Worker } 293*d5c09012SAndroid Build Coastguard Worker 294*d5c09012SAndroid Build Coastguard Worker // Represents intent parameters. 295*d5c09012SAndroid Build Coastguard Worker message Parameter { 296*d5c09012SAndroid Build Coastguard Worker // The unique identifier of this parameter. 297*d5c09012SAndroid Build Coastguard Worker string name = 1; 298*d5c09012SAndroid Build Coastguard Worker 299*d5c09012SAndroid Build Coastguard Worker // Required. The name of the parameter. 300*d5c09012SAndroid Build Coastguard Worker string display_name = 2; 301*d5c09012SAndroid Build Coastguard Worker 302*d5c09012SAndroid Build Coastguard Worker // Optional. The definition of the parameter value. It can be: 303*d5c09012SAndroid Build Coastguard Worker // 304*d5c09012SAndroid Build Coastguard Worker // - a constant string, 305*d5c09012SAndroid Build Coastguard Worker // - a parameter value defined as `$parameter_name`, 306*d5c09012SAndroid Build Coastguard Worker // - an original parameter value defined as `$parameter_name.original`, 307*d5c09012SAndroid Build Coastguard Worker // - a parameter value from some context defined as 308*d5c09012SAndroid Build Coastguard Worker // `#context_name.parameter_name`. 309*d5c09012SAndroid Build Coastguard Worker string value = 3 [(google.api.field_behavior) = OPTIONAL]; 310*d5c09012SAndroid Build Coastguard Worker 311*d5c09012SAndroid Build Coastguard Worker // Optional. The default value to use when the `value` yields an empty 312*d5c09012SAndroid Build Coastguard Worker // result. 313*d5c09012SAndroid Build Coastguard Worker // Default values can be extracted from contexts by using the following 314*d5c09012SAndroid Build Coastguard Worker // syntax: `#context_name.parameter_name`. 315*d5c09012SAndroid Build Coastguard Worker string default_value = 4 [(google.api.field_behavior) = OPTIONAL]; 316*d5c09012SAndroid Build Coastguard Worker 317*d5c09012SAndroid Build Coastguard Worker // Optional. The name of the entity type, prefixed with `@`, that 318*d5c09012SAndroid Build Coastguard Worker // describes values of the parameter. If the parameter is 319*d5c09012SAndroid Build Coastguard Worker // required, this must be provided. 320*d5c09012SAndroid Build Coastguard Worker string entity_type_display_name = 5 321*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 322*d5c09012SAndroid Build Coastguard Worker 323*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether the parameter is required. That is, 324*d5c09012SAndroid Build Coastguard Worker // whether the intent cannot be completed without collecting the parameter 325*d5c09012SAndroid Build Coastguard Worker // value. 326*d5c09012SAndroid Build Coastguard Worker bool mandatory = 6 [(google.api.field_behavior) = OPTIONAL]; 327*d5c09012SAndroid Build Coastguard Worker 328*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of prompts that the agent can present to the 329*d5c09012SAndroid Build Coastguard Worker // user in order to collect a value for the parameter. 330*d5c09012SAndroid Build Coastguard Worker repeated string prompts = 7 [(google.api.field_behavior) = OPTIONAL]; 331*d5c09012SAndroid Build Coastguard Worker 332*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether the parameter represents a list of values. 333*d5c09012SAndroid Build Coastguard Worker bool is_list = 8 [(google.api.field_behavior) = OPTIONAL]; 334*d5c09012SAndroid Build Coastguard Worker } 335*d5c09012SAndroid Build Coastguard Worker 336*d5c09012SAndroid Build Coastguard Worker // A rich response message. 337*d5c09012SAndroid Build Coastguard Worker // Corresponds to the intent `Response` field in the Dialogflow console. 338*d5c09012SAndroid Build Coastguard Worker // For more information, see 339*d5c09012SAndroid Build Coastguard Worker // [Rich response 340*d5c09012SAndroid Build Coastguard Worker // messages](https://cloud.google.com/dialogflow/docs/intents-rich-messages). 341*d5c09012SAndroid Build Coastguard Worker message Message { 342*d5c09012SAndroid Build Coastguard Worker // The rich response message integration platform. See 343*d5c09012SAndroid Build Coastguard Worker // [Integrations](https://cloud.google.com/dialogflow/docs/integrations). 344*d5c09012SAndroid Build Coastguard Worker enum Platform { 345*d5c09012SAndroid Build Coastguard Worker // Default platform. 346*d5c09012SAndroid Build Coastguard Worker PLATFORM_UNSPECIFIED = 0; 347*d5c09012SAndroid Build Coastguard Worker 348*d5c09012SAndroid Build Coastguard Worker // Facebook. 349*d5c09012SAndroid Build Coastguard Worker FACEBOOK = 1; 350*d5c09012SAndroid Build Coastguard Worker 351*d5c09012SAndroid Build Coastguard Worker // Slack. 352*d5c09012SAndroid Build Coastguard Worker SLACK = 2; 353*d5c09012SAndroid Build Coastguard Worker 354*d5c09012SAndroid Build Coastguard Worker // Telegram. 355*d5c09012SAndroid Build Coastguard Worker TELEGRAM = 3; 356*d5c09012SAndroid Build Coastguard Worker 357*d5c09012SAndroid Build Coastguard Worker // Kik. 358*d5c09012SAndroid Build Coastguard Worker KIK = 4; 359*d5c09012SAndroid Build Coastguard Worker 360*d5c09012SAndroid Build Coastguard Worker // Skype. 361*d5c09012SAndroid Build Coastguard Worker SKYPE = 5; 362*d5c09012SAndroid Build Coastguard Worker 363*d5c09012SAndroid Build Coastguard Worker // Line. 364*d5c09012SAndroid Build Coastguard Worker LINE = 6; 365*d5c09012SAndroid Build Coastguard Worker 366*d5c09012SAndroid Build Coastguard Worker // Viber. 367*d5c09012SAndroid Build Coastguard Worker VIBER = 7; 368*d5c09012SAndroid Build Coastguard Worker 369*d5c09012SAndroid Build Coastguard Worker // Google Assistant 370*d5c09012SAndroid Build Coastguard Worker // See [Dialogflow webhook 371*d5c09012SAndroid Build Coastguard Worker // format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json) 372*d5c09012SAndroid Build Coastguard Worker ACTIONS_ON_GOOGLE = 8; 373*d5c09012SAndroid Build Coastguard Worker 374*d5c09012SAndroid Build Coastguard Worker // Google Hangouts. 375*d5c09012SAndroid Build Coastguard Worker GOOGLE_HANGOUTS = 11; 376*d5c09012SAndroid Build Coastguard Worker } 377*d5c09012SAndroid Build Coastguard Worker 378*d5c09012SAndroid Build Coastguard Worker // The text response message. 379*d5c09012SAndroid Build Coastguard Worker message Text { 380*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of the agent's responses. 381*d5c09012SAndroid Build Coastguard Worker repeated string text = 1 [(google.api.field_behavior) = OPTIONAL]; 382*d5c09012SAndroid Build Coastguard Worker } 383*d5c09012SAndroid Build Coastguard Worker 384*d5c09012SAndroid Build Coastguard Worker // The image response message. 385*d5c09012SAndroid Build Coastguard Worker message Image { 386*d5c09012SAndroid Build Coastguard Worker // Optional. The public URI to an image file. 387*d5c09012SAndroid Build Coastguard Worker string image_uri = 1 [(google.api.field_behavior) = OPTIONAL]; 388*d5c09012SAndroid Build Coastguard Worker 389*d5c09012SAndroid Build Coastguard Worker // Optional. A text description of the image to be used for accessibility, 390*d5c09012SAndroid Build Coastguard Worker // e.g., screen readers. 391*d5c09012SAndroid Build Coastguard Worker string accessibility_text = 2 [(google.api.field_behavior) = OPTIONAL]; 392*d5c09012SAndroid Build Coastguard Worker } 393*d5c09012SAndroid Build Coastguard Worker 394*d5c09012SAndroid Build Coastguard Worker // The quick replies response message. 395*d5c09012SAndroid Build Coastguard Worker message QuickReplies { 396*d5c09012SAndroid Build Coastguard Worker // Optional. The title of the collection of quick replies. 397*d5c09012SAndroid Build Coastguard Worker string title = 1 [(google.api.field_behavior) = OPTIONAL]; 398*d5c09012SAndroid Build Coastguard Worker 399*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of quick replies. 400*d5c09012SAndroid Build Coastguard Worker repeated string quick_replies = 2 401*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 402*d5c09012SAndroid Build Coastguard Worker } 403*d5c09012SAndroid Build Coastguard Worker 404*d5c09012SAndroid Build Coastguard Worker // The card response message. 405*d5c09012SAndroid Build Coastguard Worker message Card { 406*d5c09012SAndroid Build Coastguard Worker // Contains information about a button. 407*d5c09012SAndroid Build Coastguard Worker message Button { 408*d5c09012SAndroid Build Coastguard Worker // Optional. The text to show on the button. 409*d5c09012SAndroid Build Coastguard Worker string text = 1 [(google.api.field_behavior) = OPTIONAL]; 410*d5c09012SAndroid Build Coastguard Worker 411*d5c09012SAndroid Build Coastguard Worker // Optional. The text to send back to the Dialogflow API or a URI to 412*d5c09012SAndroid Build Coastguard Worker // open. 413*d5c09012SAndroid Build Coastguard Worker string postback = 2 [(google.api.field_behavior) = OPTIONAL]; 414*d5c09012SAndroid Build Coastguard Worker } 415*d5c09012SAndroid Build Coastguard Worker 416*d5c09012SAndroid Build Coastguard Worker // Optional. The title of the card. 417*d5c09012SAndroid Build Coastguard Worker string title = 1 [(google.api.field_behavior) = OPTIONAL]; 418*d5c09012SAndroid Build Coastguard Worker 419*d5c09012SAndroid Build Coastguard Worker // Optional. The subtitle of the card. 420*d5c09012SAndroid Build Coastguard Worker string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; 421*d5c09012SAndroid Build Coastguard Worker 422*d5c09012SAndroid Build Coastguard Worker // Optional. The public URI to an image file for the card. 423*d5c09012SAndroid Build Coastguard Worker string image_uri = 3 [(google.api.field_behavior) = OPTIONAL]; 424*d5c09012SAndroid Build Coastguard Worker 425*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of card buttons. 426*d5c09012SAndroid Build Coastguard Worker repeated Button buttons = 4 [(google.api.field_behavior) = OPTIONAL]; 427*d5c09012SAndroid Build Coastguard Worker } 428*d5c09012SAndroid Build Coastguard Worker 429*d5c09012SAndroid Build Coastguard Worker // The simple response message containing speech or text. 430*d5c09012SAndroid Build Coastguard Worker message SimpleResponse { 431*d5c09012SAndroid Build Coastguard Worker // One of text_to_speech or ssml must be provided. The plain text of the 432*d5c09012SAndroid Build Coastguard Worker // speech output. Mutually exclusive with ssml. 433*d5c09012SAndroid Build Coastguard Worker string text_to_speech = 1; 434*d5c09012SAndroid Build Coastguard Worker 435*d5c09012SAndroid Build Coastguard Worker // One of text_to_speech or ssml must be provided. Structured spoken 436*d5c09012SAndroid Build Coastguard Worker // response to the user in the SSML format. Mutually exclusive with 437*d5c09012SAndroid Build Coastguard Worker // text_to_speech. 438*d5c09012SAndroid Build Coastguard Worker string ssml = 2; 439*d5c09012SAndroid Build Coastguard Worker 440*d5c09012SAndroid Build Coastguard Worker // Optional. The text to display. 441*d5c09012SAndroid Build Coastguard Worker string display_text = 3 [(google.api.field_behavior) = OPTIONAL]; 442*d5c09012SAndroid Build Coastguard Worker } 443*d5c09012SAndroid Build Coastguard Worker 444*d5c09012SAndroid Build Coastguard Worker // The collection of simple response candidates. 445*d5c09012SAndroid Build Coastguard Worker // This message in `QueryResult.fulfillment_messages` and 446*d5c09012SAndroid Build Coastguard Worker // `WebhookResponse.fulfillment_messages` should contain only one 447*d5c09012SAndroid Build Coastguard Worker // `SimpleResponse`. 448*d5c09012SAndroid Build Coastguard Worker message SimpleResponses { 449*d5c09012SAndroid Build Coastguard Worker // Required. The list of simple responses. 450*d5c09012SAndroid Build Coastguard Worker repeated SimpleResponse simple_responses = 1 451*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = REQUIRED]; 452*d5c09012SAndroid Build Coastguard Worker } 453*d5c09012SAndroid Build Coastguard Worker 454*d5c09012SAndroid Build Coastguard Worker // The basic card message. Useful for displaying information. 455*d5c09012SAndroid Build Coastguard Worker message BasicCard { 456*d5c09012SAndroid Build Coastguard Worker // The button object that appears at the bottom of a card. 457*d5c09012SAndroid Build Coastguard Worker message Button { 458*d5c09012SAndroid Build Coastguard Worker // Opens the given URI. 459*d5c09012SAndroid Build Coastguard Worker message OpenUriAction { 460*d5c09012SAndroid Build Coastguard Worker // Required. The HTTP or HTTPS scheme URI. 461*d5c09012SAndroid Build Coastguard Worker string uri = 1; 462*d5c09012SAndroid Build Coastguard Worker } 463*d5c09012SAndroid Build Coastguard Worker 464*d5c09012SAndroid Build Coastguard Worker // Required. The title of the button. 465*d5c09012SAndroid Build Coastguard Worker string title = 1; 466*d5c09012SAndroid Build Coastguard Worker 467*d5c09012SAndroid Build Coastguard Worker // Required. Action to take when a user taps on the button. 468*d5c09012SAndroid Build Coastguard Worker OpenUriAction open_uri_action = 2 469*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = REQUIRED]; 470*d5c09012SAndroid Build Coastguard Worker } 471*d5c09012SAndroid Build Coastguard Worker 472*d5c09012SAndroid Build Coastguard Worker // Optional. The title of the card. 473*d5c09012SAndroid Build Coastguard Worker string title = 1 [(google.api.field_behavior) = OPTIONAL]; 474*d5c09012SAndroid Build Coastguard Worker 475*d5c09012SAndroid Build Coastguard Worker // Optional. The subtitle of the card. 476*d5c09012SAndroid Build Coastguard Worker string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; 477*d5c09012SAndroid Build Coastguard Worker 478*d5c09012SAndroid Build Coastguard Worker // Required, unless image is present. The body text of the card. 479*d5c09012SAndroid Build Coastguard Worker string formatted_text = 3; 480*d5c09012SAndroid Build Coastguard Worker 481*d5c09012SAndroid Build Coastguard Worker // Optional. The image for the card. 482*d5c09012SAndroid Build Coastguard Worker Image image = 4 [(google.api.field_behavior) = OPTIONAL]; 483*d5c09012SAndroid Build Coastguard Worker 484*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of card buttons. 485*d5c09012SAndroid Build Coastguard Worker repeated Button buttons = 5 [(google.api.field_behavior) = OPTIONAL]; 486*d5c09012SAndroid Build Coastguard Worker } 487*d5c09012SAndroid Build Coastguard Worker 488*d5c09012SAndroid Build Coastguard Worker // The suggestion chip message that the user can tap to quickly post a reply 489*d5c09012SAndroid Build Coastguard Worker // to the conversation. 490*d5c09012SAndroid Build Coastguard Worker message Suggestion { 491*d5c09012SAndroid Build Coastguard Worker // Required. The text shown the in the suggestion chip. 492*d5c09012SAndroid Build Coastguard Worker string title = 1 [(google.api.field_behavior) = REQUIRED]; 493*d5c09012SAndroid Build Coastguard Worker } 494*d5c09012SAndroid Build Coastguard Worker 495*d5c09012SAndroid Build Coastguard Worker // The collection of suggestions. 496*d5c09012SAndroid Build Coastguard Worker message Suggestions { 497*d5c09012SAndroid Build Coastguard Worker // Required. The list of suggested replies. 498*d5c09012SAndroid Build Coastguard Worker repeated Suggestion suggestions = 1 499*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = REQUIRED]; 500*d5c09012SAndroid Build Coastguard Worker } 501*d5c09012SAndroid Build Coastguard Worker 502*d5c09012SAndroid Build Coastguard Worker // The suggestion chip message that allows the user to jump out to the app 503*d5c09012SAndroid Build Coastguard Worker // or website associated with this agent. 504*d5c09012SAndroid Build Coastguard Worker message LinkOutSuggestion { 505*d5c09012SAndroid Build Coastguard Worker // Required. The name of the app or site this chip is linking to. 506*d5c09012SAndroid Build Coastguard Worker string destination_name = 1 [(google.api.field_behavior) = REQUIRED]; 507*d5c09012SAndroid Build Coastguard Worker 508*d5c09012SAndroid Build Coastguard Worker // Required. The URI of the app or site to open when the user taps the 509*d5c09012SAndroid Build Coastguard Worker // suggestion chip. 510*d5c09012SAndroid Build Coastguard Worker string uri = 2 [(google.api.field_behavior) = REQUIRED]; 511*d5c09012SAndroid Build Coastguard Worker } 512*d5c09012SAndroid Build Coastguard Worker 513*d5c09012SAndroid Build Coastguard Worker // The card for presenting a list of options to select from. 514*d5c09012SAndroid Build Coastguard Worker message ListSelect { 515*d5c09012SAndroid Build Coastguard Worker // An item in the list. 516*d5c09012SAndroid Build Coastguard Worker message Item { 517*d5c09012SAndroid Build Coastguard Worker // Required. Additional information about this option. 518*d5c09012SAndroid Build Coastguard Worker SelectItemInfo info = 1 [(google.api.field_behavior) = REQUIRED]; 519*d5c09012SAndroid Build Coastguard Worker 520*d5c09012SAndroid Build Coastguard Worker // Required. The title of the list item. 521*d5c09012SAndroid Build Coastguard Worker string title = 2 [(google.api.field_behavior) = REQUIRED]; 522*d5c09012SAndroid Build Coastguard Worker 523*d5c09012SAndroid Build Coastguard Worker // Optional. The main text describing the item. 524*d5c09012SAndroid Build Coastguard Worker string description = 3 [(google.api.field_behavior) = OPTIONAL]; 525*d5c09012SAndroid Build Coastguard Worker 526*d5c09012SAndroid Build Coastguard Worker // Optional. The image to display. 527*d5c09012SAndroid Build Coastguard Worker Image image = 4 [(google.api.field_behavior) = OPTIONAL]; 528*d5c09012SAndroid Build Coastguard Worker } 529*d5c09012SAndroid Build Coastguard Worker 530*d5c09012SAndroid Build Coastguard Worker // Optional. The overall title of the list. 531*d5c09012SAndroid Build Coastguard Worker string title = 1 [(google.api.field_behavior) = OPTIONAL]; 532*d5c09012SAndroid Build Coastguard Worker 533*d5c09012SAndroid Build Coastguard Worker // Required. List items. 534*d5c09012SAndroid Build Coastguard Worker repeated Item items = 2 [(google.api.field_behavior) = REQUIRED]; 535*d5c09012SAndroid Build Coastguard Worker 536*d5c09012SAndroid Build Coastguard Worker // Optional. Subtitle of the list. 537*d5c09012SAndroid Build Coastguard Worker string subtitle = 3 [(google.api.field_behavior) = OPTIONAL]; 538*d5c09012SAndroid Build Coastguard Worker } 539*d5c09012SAndroid Build Coastguard Worker 540*d5c09012SAndroid Build Coastguard Worker // The card for presenting a carousel of options to select from. 541*d5c09012SAndroid Build Coastguard Worker message CarouselSelect { 542*d5c09012SAndroid Build Coastguard Worker // An item in the carousel. 543*d5c09012SAndroid Build Coastguard Worker message Item { 544*d5c09012SAndroid Build Coastguard Worker // Required. Additional info about the option item. 545*d5c09012SAndroid Build Coastguard Worker SelectItemInfo info = 1 [(google.api.field_behavior) = REQUIRED]; 546*d5c09012SAndroid Build Coastguard Worker 547*d5c09012SAndroid Build Coastguard Worker // Required. Title of the carousel item. 548*d5c09012SAndroid Build Coastguard Worker string title = 2 [(google.api.field_behavior) = REQUIRED]; 549*d5c09012SAndroid Build Coastguard Worker 550*d5c09012SAndroid Build Coastguard Worker // Optional. The body text of the card. 551*d5c09012SAndroid Build Coastguard Worker string description = 3 [(google.api.field_behavior) = OPTIONAL]; 552*d5c09012SAndroid Build Coastguard Worker 553*d5c09012SAndroid Build Coastguard Worker // Optional. The image to display. 554*d5c09012SAndroid Build Coastguard Worker Image image = 4 [(google.api.field_behavior) = OPTIONAL]; 555*d5c09012SAndroid Build Coastguard Worker } 556*d5c09012SAndroid Build Coastguard Worker 557*d5c09012SAndroid Build Coastguard Worker // Required. Carousel items. 558*d5c09012SAndroid Build Coastguard Worker repeated Item items = 1 [(google.api.field_behavior) = REQUIRED]; 559*d5c09012SAndroid Build Coastguard Worker } 560*d5c09012SAndroid Build Coastguard Worker 561*d5c09012SAndroid Build Coastguard Worker // Additional info about the select item for when it is triggered in a 562*d5c09012SAndroid Build Coastguard Worker // dialog. 563*d5c09012SAndroid Build Coastguard Worker message SelectItemInfo { 564*d5c09012SAndroid Build Coastguard Worker // Required. A unique key that will be sent back to the agent if this 565*d5c09012SAndroid Build Coastguard Worker // response is given. 566*d5c09012SAndroid Build Coastguard Worker string key = 1 [(google.api.field_behavior) = REQUIRED]; 567*d5c09012SAndroid Build Coastguard Worker 568*d5c09012SAndroid Build Coastguard Worker // Optional. A list of synonyms that can also be used to trigger this 569*d5c09012SAndroid Build Coastguard Worker // item in dialog. 570*d5c09012SAndroid Build Coastguard Worker repeated string synonyms = 2 [(google.api.field_behavior) = OPTIONAL]; 571*d5c09012SAndroid Build Coastguard Worker } 572*d5c09012SAndroid Build Coastguard Worker 573*d5c09012SAndroid Build Coastguard Worker // The media content card for Actions on Google. 574*d5c09012SAndroid Build Coastguard Worker message MediaContent { 575*d5c09012SAndroid Build Coastguard Worker // Format of response media type. 576*d5c09012SAndroid Build Coastguard Worker enum ResponseMediaType { 577*d5c09012SAndroid Build Coastguard Worker // Unspecified. 578*d5c09012SAndroid Build Coastguard Worker RESPONSE_MEDIA_TYPE_UNSPECIFIED = 0; 579*d5c09012SAndroid Build Coastguard Worker 580*d5c09012SAndroid Build Coastguard Worker // Response media type is audio. 581*d5c09012SAndroid Build Coastguard Worker AUDIO = 1; 582*d5c09012SAndroid Build Coastguard Worker } 583*d5c09012SAndroid Build Coastguard Worker 584*d5c09012SAndroid Build Coastguard Worker // Response media object for media content card. 585*d5c09012SAndroid Build Coastguard Worker message ResponseMediaObject { 586*d5c09012SAndroid Build Coastguard Worker // Required. Name of media card. 587*d5c09012SAndroid Build Coastguard Worker string name = 1; 588*d5c09012SAndroid Build Coastguard Worker 589*d5c09012SAndroid Build Coastguard Worker // Optional. Description of media card. 590*d5c09012SAndroid Build Coastguard Worker string description = 2 [(google.api.field_behavior) = OPTIONAL]; 591*d5c09012SAndroid Build Coastguard Worker 592*d5c09012SAndroid Build Coastguard Worker // Image to show with the media card. 593*d5c09012SAndroid Build Coastguard Worker oneof image { 594*d5c09012SAndroid Build Coastguard Worker // Optional. Image to display above media content. 595*d5c09012SAndroid Build Coastguard Worker Image large_image = 3 [(google.api.field_behavior) = OPTIONAL]; 596*d5c09012SAndroid Build Coastguard Worker 597*d5c09012SAndroid Build Coastguard Worker // Optional. Icon to display above media content. 598*d5c09012SAndroid Build Coastguard Worker Image icon = 4 [(google.api.field_behavior) = OPTIONAL]; 599*d5c09012SAndroid Build Coastguard Worker } 600*d5c09012SAndroid Build Coastguard Worker 601*d5c09012SAndroid Build Coastguard Worker // Required. Url where the media is stored. 602*d5c09012SAndroid Build Coastguard Worker string content_url = 5; 603*d5c09012SAndroid Build Coastguard Worker } 604*d5c09012SAndroid Build Coastguard Worker 605*d5c09012SAndroid Build Coastguard Worker // Optional. What type of media is the content (ie "audio"). 606*d5c09012SAndroid Build Coastguard Worker ResponseMediaType media_type = 1 [(google.api.field_behavior) = OPTIONAL]; 607*d5c09012SAndroid Build Coastguard Worker 608*d5c09012SAndroid Build Coastguard Worker // Required. List of media objects. 609*d5c09012SAndroid Build Coastguard Worker repeated ResponseMediaObject media_objects = 2; 610*d5c09012SAndroid Build Coastguard Worker } 611*d5c09012SAndroid Build Coastguard Worker 612*d5c09012SAndroid Build Coastguard Worker // Browse Carousel Card for Actions on Google. 613*d5c09012SAndroid Build Coastguard Worker // https://developers.google.com/actions/assistant/responses#browsing_carousel 614*d5c09012SAndroid Build Coastguard Worker message BrowseCarouselCard { 615*d5c09012SAndroid Build Coastguard Worker // Browsing carousel tile 616*d5c09012SAndroid Build Coastguard Worker message BrowseCarouselCardItem { 617*d5c09012SAndroid Build Coastguard Worker // Actions on Google action to open a given url. 618*d5c09012SAndroid Build Coastguard Worker message OpenUrlAction { 619*d5c09012SAndroid Build Coastguard Worker // Type of the URI. 620*d5c09012SAndroid Build Coastguard Worker enum UrlTypeHint { 621*d5c09012SAndroid Build Coastguard Worker // Unspecified 622*d5c09012SAndroid Build Coastguard Worker URL_TYPE_HINT_UNSPECIFIED = 0; 623*d5c09012SAndroid Build Coastguard Worker 624*d5c09012SAndroid Build Coastguard Worker // Url would be an amp action 625*d5c09012SAndroid Build Coastguard Worker AMP_ACTION = 1; 626*d5c09012SAndroid Build Coastguard Worker 627*d5c09012SAndroid Build Coastguard Worker // URL that points directly to AMP content, or to a canonical URL 628*d5c09012SAndroid Build Coastguard Worker // which refers to AMP content via <link rel="amphtml">. 629*d5c09012SAndroid Build Coastguard Worker AMP_CONTENT = 2; 630*d5c09012SAndroid Build Coastguard Worker } 631*d5c09012SAndroid Build Coastguard Worker 632*d5c09012SAndroid Build Coastguard Worker // Required. URL 633*d5c09012SAndroid Build Coastguard Worker string url = 1; 634*d5c09012SAndroid Build Coastguard Worker 635*d5c09012SAndroid Build Coastguard Worker // Optional. Specifies the type of viewer that is used when opening 636*d5c09012SAndroid Build Coastguard Worker // the URL. Defaults to opening via web browser. 637*d5c09012SAndroid Build Coastguard Worker UrlTypeHint url_type_hint = 3 638*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 639*d5c09012SAndroid Build Coastguard Worker } 640*d5c09012SAndroid Build Coastguard Worker 641*d5c09012SAndroid Build Coastguard Worker // Required. Action to present to the user. 642*d5c09012SAndroid Build Coastguard Worker OpenUrlAction open_uri_action = 1; 643*d5c09012SAndroid Build Coastguard Worker 644*d5c09012SAndroid Build Coastguard Worker // Required. Title of the carousel item. Maximum of two lines of text. 645*d5c09012SAndroid Build Coastguard Worker string title = 2; 646*d5c09012SAndroid Build Coastguard Worker 647*d5c09012SAndroid Build Coastguard Worker // Optional. Description of the carousel item. Maximum of four lines of 648*d5c09012SAndroid Build Coastguard Worker // text. 649*d5c09012SAndroid Build Coastguard Worker string description = 3 [(google.api.field_behavior) = OPTIONAL]; 650*d5c09012SAndroid Build Coastguard Worker 651*d5c09012SAndroid Build Coastguard Worker // Optional. Hero image for the carousel item. 652*d5c09012SAndroid Build Coastguard Worker Image image = 4 [(google.api.field_behavior) = OPTIONAL]; 653*d5c09012SAndroid Build Coastguard Worker 654*d5c09012SAndroid Build Coastguard Worker // Optional. Text that appears at the bottom of the Browse Carousel 655*d5c09012SAndroid Build Coastguard Worker // Card. Maximum of one line of text. 656*d5c09012SAndroid Build Coastguard Worker string footer = 5 [(google.api.field_behavior) = OPTIONAL]; 657*d5c09012SAndroid Build Coastguard Worker } 658*d5c09012SAndroid Build Coastguard Worker 659*d5c09012SAndroid Build Coastguard Worker // Image display options for Actions on Google. This should be used for 660*d5c09012SAndroid Build Coastguard Worker // when the image's aspect ratio does not match the image container's 661*d5c09012SAndroid Build Coastguard Worker // aspect ratio. 662*d5c09012SAndroid Build Coastguard Worker enum ImageDisplayOptions { 663*d5c09012SAndroid Build Coastguard Worker // Fill the gaps between the image and the image container with gray 664*d5c09012SAndroid Build Coastguard Worker // bars. 665*d5c09012SAndroid Build Coastguard Worker IMAGE_DISPLAY_OPTIONS_UNSPECIFIED = 0; 666*d5c09012SAndroid Build Coastguard Worker 667*d5c09012SAndroid Build Coastguard Worker // Fill the gaps between the image and the image container with gray 668*d5c09012SAndroid Build Coastguard Worker // bars. 669*d5c09012SAndroid Build Coastguard Worker GRAY = 1; 670*d5c09012SAndroid Build Coastguard Worker 671*d5c09012SAndroid Build Coastguard Worker // Fill the gaps between the image and the image container with white 672*d5c09012SAndroid Build Coastguard Worker // bars. 673*d5c09012SAndroid Build Coastguard Worker WHITE = 2; 674*d5c09012SAndroid Build Coastguard Worker 675*d5c09012SAndroid Build Coastguard Worker // Image is scaled such that the image width and height match or exceed 676*d5c09012SAndroid Build Coastguard Worker // the container dimensions. This may crop the top and bottom of the 677*d5c09012SAndroid Build Coastguard Worker // image if the scaled image height is greater than the container 678*d5c09012SAndroid Build Coastguard Worker // height, or crop the left and right of the image if the scaled image 679*d5c09012SAndroid Build Coastguard Worker // width is greater than the container width. This is similar to "Zoom 680*d5c09012SAndroid Build Coastguard Worker // Mode" on a widescreen TV when playing a 4:3 video. 681*d5c09012SAndroid Build Coastguard Worker CROPPED = 3; 682*d5c09012SAndroid Build Coastguard Worker 683*d5c09012SAndroid Build Coastguard Worker // Pad the gaps between image and image frame with a blurred copy of the 684*d5c09012SAndroid Build Coastguard Worker // same image. 685*d5c09012SAndroid Build Coastguard Worker BLURRED_BACKGROUND = 4; 686*d5c09012SAndroid Build Coastguard Worker } 687*d5c09012SAndroid Build Coastguard Worker 688*d5c09012SAndroid Build Coastguard Worker // Required. List of items in the Browse Carousel Card. Minimum of two 689*d5c09012SAndroid Build Coastguard Worker // items, maximum of ten. 690*d5c09012SAndroid Build Coastguard Worker repeated BrowseCarouselCardItem items = 1; 691*d5c09012SAndroid Build Coastguard Worker 692*d5c09012SAndroid Build Coastguard Worker // Optional. Settings for displaying the image. Applies to every image in 693*d5c09012SAndroid Build Coastguard Worker // [items][google.cloud.dialogflow.v2.Intent.Message.BrowseCarouselCard.items]. 694*d5c09012SAndroid Build Coastguard Worker ImageDisplayOptions image_display_options = 2 695*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 696*d5c09012SAndroid Build Coastguard Worker } 697*d5c09012SAndroid Build Coastguard Worker 698*d5c09012SAndroid Build Coastguard Worker // Table card for Actions on Google. 699*d5c09012SAndroid Build Coastguard Worker message TableCard { 700*d5c09012SAndroid Build Coastguard Worker // Required. Title of the card. 701*d5c09012SAndroid Build Coastguard Worker string title = 1; 702*d5c09012SAndroid Build Coastguard Worker 703*d5c09012SAndroid Build Coastguard Worker // Optional. Subtitle to the title. 704*d5c09012SAndroid Build Coastguard Worker string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; 705*d5c09012SAndroid Build Coastguard Worker 706*d5c09012SAndroid Build Coastguard Worker // Optional. Image which should be displayed on the card. 707*d5c09012SAndroid Build Coastguard Worker Image image = 3 [(google.api.field_behavior) = OPTIONAL]; 708*d5c09012SAndroid Build Coastguard Worker 709*d5c09012SAndroid Build Coastguard Worker // Optional. Display properties for the columns in this table. 710*d5c09012SAndroid Build Coastguard Worker repeated ColumnProperties column_properties = 4 711*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 712*d5c09012SAndroid Build Coastguard Worker 713*d5c09012SAndroid Build Coastguard Worker // Optional. Rows in this table of data. 714*d5c09012SAndroid Build Coastguard Worker repeated TableCardRow rows = 5 [(google.api.field_behavior) = OPTIONAL]; 715*d5c09012SAndroid Build Coastguard Worker 716*d5c09012SAndroid Build Coastguard Worker // Optional. List of buttons for the card. 717*d5c09012SAndroid Build Coastguard Worker repeated BasicCard.Button buttons = 6 718*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 719*d5c09012SAndroid Build Coastguard Worker } 720*d5c09012SAndroid Build Coastguard Worker 721*d5c09012SAndroid Build Coastguard Worker // Column properties for 722*d5c09012SAndroid Build Coastguard Worker // [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. 723*d5c09012SAndroid Build Coastguard Worker message ColumnProperties { 724*d5c09012SAndroid Build Coastguard Worker // Text alignments within a cell. 725*d5c09012SAndroid Build Coastguard Worker enum HorizontalAlignment { 726*d5c09012SAndroid Build Coastguard Worker // Text is aligned to the leading edge of the column. 727*d5c09012SAndroid Build Coastguard Worker HORIZONTAL_ALIGNMENT_UNSPECIFIED = 0; 728*d5c09012SAndroid Build Coastguard Worker 729*d5c09012SAndroid Build Coastguard Worker // Text is aligned to the leading edge of the column. 730*d5c09012SAndroid Build Coastguard Worker LEADING = 1; 731*d5c09012SAndroid Build Coastguard Worker 732*d5c09012SAndroid Build Coastguard Worker // Text is centered in the column. 733*d5c09012SAndroid Build Coastguard Worker CENTER = 2; 734*d5c09012SAndroid Build Coastguard Worker 735*d5c09012SAndroid Build Coastguard Worker // Text is aligned to the trailing edge of the column. 736*d5c09012SAndroid Build Coastguard Worker TRAILING = 3; 737*d5c09012SAndroid Build Coastguard Worker } 738*d5c09012SAndroid Build Coastguard Worker 739*d5c09012SAndroid Build Coastguard Worker // Required. Column heading. 740*d5c09012SAndroid Build Coastguard Worker string header = 1; 741*d5c09012SAndroid Build Coastguard Worker 742*d5c09012SAndroid Build Coastguard Worker // Optional. Defines text alignment for all cells in this column. 743*d5c09012SAndroid Build Coastguard Worker HorizontalAlignment horizontal_alignment = 2 744*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 745*d5c09012SAndroid Build Coastguard Worker } 746*d5c09012SAndroid Build Coastguard Worker 747*d5c09012SAndroid Build Coastguard Worker // Row of [TableCard][google.cloud.dialogflow.v2.Intent.Message.TableCard]. 748*d5c09012SAndroid Build Coastguard Worker message TableCardRow { 749*d5c09012SAndroid Build Coastguard Worker // Optional. List of cells that make up this row. 750*d5c09012SAndroid Build Coastguard Worker repeated TableCardCell cells = 1 [(google.api.field_behavior) = OPTIONAL]; 751*d5c09012SAndroid Build Coastguard Worker 752*d5c09012SAndroid Build Coastguard Worker // Optional. Whether to add a visual divider after this row. 753*d5c09012SAndroid Build Coastguard Worker bool divider_after = 2 [(google.api.field_behavior) = OPTIONAL]; 754*d5c09012SAndroid Build Coastguard Worker } 755*d5c09012SAndroid Build Coastguard Worker 756*d5c09012SAndroid Build Coastguard Worker // Cell of 757*d5c09012SAndroid Build Coastguard Worker // [TableCardRow][google.cloud.dialogflow.v2.Intent.Message.TableCardRow]. 758*d5c09012SAndroid Build Coastguard Worker message TableCardCell { 759*d5c09012SAndroid Build Coastguard Worker // Required. Text in this cell. 760*d5c09012SAndroid Build Coastguard Worker string text = 1; 761*d5c09012SAndroid Build Coastguard Worker } 762*d5c09012SAndroid Build Coastguard Worker 763*d5c09012SAndroid Build Coastguard Worker // Required. The rich response message. 764*d5c09012SAndroid Build Coastguard Worker oneof message { 765*d5c09012SAndroid Build Coastguard Worker // The text response. 766*d5c09012SAndroid Build Coastguard Worker Text text = 1; 767*d5c09012SAndroid Build Coastguard Worker 768*d5c09012SAndroid Build Coastguard Worker // The image response. 769*d5c09012SAndroid Build Coastguard Worker Image image = 2; 770*d5c09012SAndroid Build Coastguard Worker 771*d5c09012SAndroid Build Coastguard Worker // The quick replies response. 772*d5c09012SAndroid Build Coastguard Worker QuickReplies quick_replies = 3; 773*d5c09012SAndroid Build Coastguard Worker 774*d5c09012SAndroid Build Coastguard Worker // The card response. 775*d5c09012SAndroid Build Coastguard Worker Card card = 4; 776*d5c09012SAndroid Build Coastguard Worker 777*d5c09012SAndroid Build Coastguard Worker // A custom platform-specific response. 778*d5c09012SAndroid Build Coastguard Worker google.protobuf.Struct payload = 5; 779*d5c09012SAndroid Build Coastguard Worker 780*d5c09012SAndroid Build Coastguard Worker // The voice and text-only responses for Actions on Google. 781*d5c09012SAndroid Build Coastguard Worker SimpleResponses simple_responses = 7; 782*d5c09012SAndroid Build Coastguard Worker 783*d5c09012SAndroid Build Coastguard Worker // The basic card response for Actions on Google. 784*d5c09012SAndroid Build Coastguard Worker BasicCard basic_card = 8; 785*d5c09012SAndroid Build Coastguard Worker 786*d5c09012SAndroid Build Coastguard Worker // The suggestion chips for Actions on Google. 787*d5c09012SAndroid Build Coastguard Worker Suggestions suggestions = 9; 788*d5c09012SAndroid Build Coastguard Worker 789*d5c09012SAndroid Build Coastguard Worker // The link out suggestion chip for Actions on Google. 790*d5c09012SAndroid Build Coastguard Worker LinkOutSuggestion link_out_suggestion = 10; 791*d5c09012SAndroid Build Coastguard Worker 792*d5c09012SAndroid Build Coastguard Worker // The list card response for Actions on Google. 793*d5c09012SAndroid Build Coastguard Worker ListSelect list_select = 11; 794*d5c09012SAndroid Build Coastguard Worker 795*d5c09012SAndroid Build Coastguard Worker // The carousel card response for Actions on Google. 796*d5c09012SAndroid Build Coastguard Worker CarouselSelect carousel_select = 12; 797*d5c09012SAndroid Build Coastguard Worker 798*d5c09012SAndroid Build Coastguard Worker // Browse carousel card for Actions on Google. 799*d5c09012SAndroid Build Coastguard Worker BrowseCarouselCard browse_carousel_card = 22; 800*d5c09012SAndroid Build Coastguard Worker 801*d5c09012SAndroid Build Coastguard Worker // Table card for Actions on Google. 802*d5c09012SAndroid Build Coastguard Worker TableCard table_card = 23; 803*d5c09012SAndroid Build Coastguard Worker 804*d5c09012SAndroid Build Coastguard Worker // The media content card for Actions on Google. 805*d5c09012SAndroid Build Coastguard Worker MediaContent media_content = 24; 806*d5c09012SAndroid Build Coastguard Worker } 807*d5c09012SAndroid Build Coastguard Worker 808*d5c09012SAndroid Build Coastguard Worker // Optional. The platform that this message is intended for. 809*d5c09012SAndroid Build Coastguard Worker Platform platform = 6 [(google.api.field_behavior) = OPTIONAL]; 810*d5c09012SAndroid Build Coastguard Worker } 811*d5c09012SAndroid Build Coastguard Worker 812*d5c09012SAndroid Build Coastguard Worker // Represents a single followup intent in the chain. 813*d5c09012SAndroid Build Coastguard Worker message FollowupIntentInfo { 814*d5c09012SAndroid Build Coastguard Worker // The unique identifier of the followup intent. 815*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 816*d5c09012SAndroid Build Coastguard Worker string followup_intent_name = 1; 817*d5c09012SAndroid Build Coastguard Worker 818*d5c09012SAndroid Build Coastguard Worker // The unique identifier of the followup intent's parent. 819*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 820*d5c09012SAndroid Build Coastguard Worker string parent_followup_intent_name = 2; 821*d5c09012SAndroid Build Coastguard Worker } 822*d5c09012SAndroid Build Coastguard Worker 823*d5c09012SAndroid Build Coastguard Worker // Optional. The unique identifier of this intent. 824*d5c09012SAndroid Build Coastguard Worker // Required for 825*d5c09012SAndroid Build Coastguard Worker // [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent] and 826*d5c09012SAndroid Build Coastguard Worker // [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents] 827*d5c09012SAndroid Build Coastguard Worker // methods. 828*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 829*d5c09012SAndroid Build Coastguard Worker string name = 1 [(google.api.field_behavior) = OPTIONAL]; 830*d5c09012SAndroid Build Coastguard Worker 831*d5c09012SAndroid Build Coastguard Worker // Required. The name of this intent. 832*d5c09012SAndroid Build Coastguard Worker string display_name = 2 [(google.api.field_behavior) = REQUIRED]; 833*d5c09012SAndroid Build Coastguard Worker 834*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether webhooks are enabled for the intent. 835*d5c09012SAndroid Build Coastguard Worker WebhookState webhook_state = 6 [(google.api.field_behavior) = OPTIONAL]; 836*d5c09012SAndroid Build Coastguard Worker 837*d5c09012SAndroid Build Coastguard Worker // Optional. The priority of this intent. Higher numbers represent higher 838*d5c09012SAndroid Build Coastguard Worker // priorities. 839*d5c09012SAndroid Build Coastguard Worker // 840*d5c09012SAndroid Build Coastguard Worker // - If the supplied value is unspecified or 0, the service 841*d5c09012SAndroid Build Coastguard Worker // translates the value to 500,000, which corresponds to the 842*d5c09012SAndroid Build Coastguard Worker // `Normal` priority in the console. 843*d5c09012SAndroid Build Coastguard Worker // - If the supplied value is negative, the intent is ignored 844*d5c09012SAndroid Build Coastguard Worker // in runtime detect intent requests. 845*d5c09012SAndroid Build Coastguard Worker int32 priority = 3 [(google.api.field_behavior) = OPTIONAL]; 846*d5c09012SAndroid Build Coastguard Worker 847*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether this is a fallback intent. 848*d5c09012SAndroid Build Coastguard Worker bool is_fallback = 4 [(google.api.field_behavior) = OPTIONAL]; 849*d5c09012SAndroid Build Coastguard Worker 850*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether Machine Learning is disabled for the intent. 851*d5c09012SAndroid Build Coastguard Worker // Note: If `ml_disabled` setting is set to true, then this intent is not 852*d5c09012SAndroid Build Coastguard Worker // taken into account during inference in `ML ONLY` match mode. Also, 853*d5c09012SAndroid Build Coastguard Worker // auto-markup in the UI is turned off. 854*d5c09012SAndroid Build Coastguard Worker bool ml_disabled = 19 [(google.api.field_behavior) = OPTIONAL]; 855*d5c09012SAndroid Build Coastguard Worker 856*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates that a live agent should be brought in to handle the 857*d5c09012SAndroid Build Coastguard Worker // interaction with the user. In most cases, when you set this flag to true, 858*d5c09012SAndroid Build Coastguard Worker // you would also want to set end_interaction to true as well. Default is 859*d5c09012SAndroid Build Coastguard Worker // false. 860*d5c09012SAndroid Build Coastguard Worker bool live_agent_handoff = 20 [(google.api.field_behavior) = OPTIONAL]; 861*d5c09012SAndroid Build Coastguard Worker 862*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates that this intent ends an interaction. Some integrations 863*d5c09012SAndroid Build Coastguard Worker // (e.g., Actions on Google or Dialogflow phone gateway) use this information 864*d5c09012SAndroid Build Coastguard Worker // to close interaction with an end user. Default is false. 865*d5c09012SAndroid Build Coastguard Worker bool end_interaction = 21 [(google.api.field_behavior) = OPTIONAL]; 866*d5c09012SAndroid Build Coastguard Worker 867*d5c09012SAndroid Build Coastguard Worker // Optional. The list of context names required for this intent to be 868*d5c09012SAndroid Build Coastguard Worker // triggered. 869*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`. 870*d5c09012SAndroid Build Coastguard Worker repeated string input_context_names = 7 871*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 872*d5c09012SAndroid Build Coastguard Worker 873*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of event names that trigger the intent. 874*d5c09012SAndroid Build Coastguard Worker // If the collection of input contexts is not empty, all of the contexts must 875*d5c09012SAndroid Build Coastguard Worker // be present in the active user session for an event to trigger this intent. 876*d5c09012SAndroid Build Coastguard Worker // Event names are limited to 150 characters. 877*d5c09012SAndroid Build Coastguard Worker repeated string events = 8 [(google.api.field_behavior) = OPTIONAL]; 878*d5c09012SAndroid Build Coastguard Worker 879*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of examples that the agent is 880*d5c09012SAndroid Build Coastguard Worker // trained on. 881*d5c09012SAndroid Build Coastguard Worker repeated TrainingPhrase training_phrases = 9 882*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 883*d5c09012SAndroid Build Coastguard Worker 884*d5c09012SAndroid Build Coastguard Worker // Optional. The name of the action associated with the intent. 885*d5c09012SAndroid Build Coastguard Worker // Note: The action name must not contain whitespaces. 886*d5c09012SAndroid Build Coastguard Worker string action = 10 [(google.api.field_behavior) = OPTIONAL]; 887*d5c09012SAndroid Build Coastguard Worker 888*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of contexts that are activated when the intent 889*d5c09012SAndroid Build Coastguard Worker // is matched. Context messages in this collection should not set the 890*d5c09012SAndroid Build Coastguard Worker // parameters field. Setting the `lifespan_count` to 0 will reset the context 891*d5c09012SAndroid Build Coastguard Worker // when the intent is matched. 892*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`. 893*d5c09012SAndroid Build Coastguard Worker repeated Context output_contexts = 11 894*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 895*d5c09012SAndroid Build Coastguard Worker 896*d5c09012SAndroid Build Coastguard Worker // Optional. Indicates whether to delete all contexts in the current 897*d5c09012SAndroid Build Coastguard Worker // session when this intent is matched. 898*d5c09012SAndroid Build Coastguard Worker bool reset_contexts = 12 [(google.api.field_behavior) = OPTIONAL]; 899*d5c09012SAndroid Build Coastguard Worker 900*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of parameters associated with the intent. 901*d5c09012SAndroid Build Coastguard Worker repeated Parameter parameters = 13 [(google.api.field_behavior) = OPTIONAL]; 902*d5c09012SAndroid Build Coastguard Worker 903*d5c09012SAndroid Build Coastguard Worker // Optional. The collection of rich messages corresponding to the 904*d5c09012SAndroid Build Coastguard Worker // `Response` field in the Dialogflow console. 905*d5c09012SAndroid Build Coastguard Worker repeated Message messages = 14 [(google.api.field_behavior) = OPTIONAL]; 906*d5c09012SAndroid Build Coastguard Worker 907*d5c09012SAndroid Build Coastguard Worker // Optional. The list of platforms for which the first responses will be 908*d5c09012SAndroid Build Coastguard Worker // copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). 909*d5c09012SAndroid Build Coastguard Worker repeated Message.Platform default_response_platforms = 15 910*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 911*d5c09012SAndroid Build Coastguard Worker 912*d5c09012SAndroid Build Coastguard Worker // Output only. 913*d5c09012SAndroid Build Coastguard Worker // Read-only. The unique identifier of the root intent in the chain of 914*d5c09012SAndroid Build Coastguard Worker // followup intents. It identifies the correct followup intents chain for 915*d5c09012SAndroid Build Coastguard Worker // this intent. We populate this field only in the output. 916*d5c09012SAndroid Build Coastguard Worker // 917*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 918*d5c09012SAndroid Build Coastguard Worker string root_followup_intent_name = 16 919*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 920*d5c09012SAndroid Build Coastguard Worker 921*d5c09012SAndroid Build Coastguard Worker // Read-only after creation. The unique identifier of the parent intent in the 922*d5c09012SAndroid Build Coastguard Worker // chain of followup intents. You can set this field when creating an intent, 923*d5c09012SAndroid Build Coastguard Worker // for example with 924*d5c09012SAndroid Build Coastguard Worker // [CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent] or 925*d5c09012SAndroid Build Coastguard Worker // [BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents], 926*d5c09012SAndroid Build Coastguard Worker // in order to make this intent a followup intent. 927*d5c09012SAndroid Build Coastguard Worker // 928*d5c09012SAndroid Build Coastguard Worker // It identifies the parent followup intent. 929*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 930*d5c09012SAndroid Build Coastguard Worker string parent_followup_intent_name = 17; 931*d5c09012SAndroid Build Coastguard Worker 932*d5c09012SAndroid Build Coastguard Worker // Output only. Read-only. Information about all followup intents that have 933*d5c09012SAndroid Build Coastguard Worker // this intent as a direct or indirect parent. We populate this field only in 934*d5c09012SAndroid Build Coastguard Worker // the output. 935*d5c09012SAndroid Build Coastguard Worker repeated FollowupIntentInfo followup_intent_info = 18 936*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OUTPUT_ONLY]; 937*d5c09012SAndroid Build Coastguard Worker} 938*d5c09012SAndroid Build Coastguard Worker 939*d5c09012SAndroid Build Coastguard Worker// The request message for 940*d5c09012SAndroid Build Coastguard Worker// [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. 941*d5c09012SAndroid Build Coastguard Workermessage ListIntentsRequest { 942*d5c09012SAndroid Build Coastguard Worker // Required. The agent to list all intents from. 943*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent` or `projects/<Project 944*d5c09012SAndroid Build Coastguard Worker // ID>/locations/<Location ID>/agent`. 945*d5c09012SAndroid Build Coastguard Worker // 946*d5c09012SAndroid Build Coastguard Worker // Alternatively, you can specify the environment to list intents for. 947*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/environments/<Environment ID>` 948*d5c09012SAndroid Build Coastguard Worker // or `projects/<Project ID>/locations/<Location 949*d5c09012SAndroid Build Coastguard Worker // ID>/agent/environments/<Environment ID>`. 950*d5c09012SAndroid Build Coastguard Worker // Note: training phrases of the intents will not be returned for non-draft 951*d5c09012SAndroid Build Coastguard Worker // environment. 952*d5c09012SAndroid Build Coastguard Worker string parent = 1 [ 953*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 954*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 955*d5c09012SAndroid Build Coastguard Worker child_type: "dialogflow.googleapis.com/Intent" 956*d5c09012SAndroid Build Coastguard Worker } 957*d5c09012SAndroid Build Coastguard Worker ]; 958*d5c09012SAndroid Build Coastguard Worker 959*d5c09012SAndroid Build Coastguard Worker // Optional. The language used to access language-specific data. 960*d5c09012SAndroid Build Coastguard Worker // If not specified, the agent's default language is used. 961*d5c09012SAndroid Build Coastguard Worker // For more information, see 962*d5c09012SAndroid Build Coastguard Worker // [Multilingual intent and entity 963*d5c09012SAndroid Build Coastguard Worker // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). 964*d5c09012SAndroid Build Coastguard Worker string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; 965*d5c09012SAndroid Build Coastguard Worker 966*d5c09012SAndroid Build Coastguard Worker // Optional. The resource view to apply to the returned intent. 967*d5c09012SAndroid Build Coastguard Worker IntentView intent_view = 3 [(google.api.field_behavior) = OPTIONAL]; 968*d5c09012SAndroid Build Coastguard Worker 969*d5c09012SAndroid Build Coastguard Worker // Optional. The maximum number of items to return in a single page. By 970*d5c09012SAndroid Build Coastguard Worker // default 100 and at most 1000. 971*d5c09012SAndroid Build Coastguard Worker int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; 972*d5c09012SAndroid Build Coastguard Worker 973*d5c09012SAndroid Build Coastguard Worker // Optional. The next_page_token value returned from a previous list request. 974*d5c09012SAndroid Build Coastguard Worker string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; 975*d5c09012SAndroid Build Coastguard Worker} 976*d5c09012SAndroid Build Coastguard Worker 977*d5c09012SAndroid Build Coastguard Worker// The response message for 978*d5c09012SAndroid Build Coastguard Worker// [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. 979*d5c09012SAndroid Build Coastguard Workermessage ListIntentsResponse { 980*d5c09012SAndroid Build Coastguard Worker // The list of agent intents. There will be a maximum number of items 981*d5c09012SAndroid Build Coastguard Worker // returned based on the page_size field in the request. 982*d5c09012SAndroid Build Coastguard Worker repeated Intent intents = 1; 983*d5c09012SAndroid Build Coastguard Worker 984*d5c09012SAndroid Build Coastguard Worker // Token to retrieve the next page of results, or empty if there are no 985*d5c09012SAndroid Build Coastguard Worker // more results in the list. 986*d5c09012SAndroid Build Coastguard Worker string next_page_token = 2; 987*d5c09012SAndroid Build Coastguard Worker} 988*d5c09012SAndroid Build Coastguard Worker 989*d5c09012SAndroid Build Coastguard Worker// The request message for 990*d5c09012SAndroid Build Coastguard Worker// [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent]. 991*d5c09012SAndroid Build Coastguard Workermessage GetIntentRequest { 992*d5c09012SAndroid Build Coastguard Worker // Required. The name of the intent. 993*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 994*d5c09012SAndroid Build Coastguard Worker string name = 1 [ 995*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 996*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 997*d5c09012SAndroid Build Coastguard Worker type: "dialogflow.googleapis.com/Intent" 998*d5c09012SAndroid Build Coastguard Worker } 999*d5c09012SAndroid Build Coastguard Worker ]; 1000*d5c09012SAndroid Build Coastguard Worker 1001*d5c09012SAndroid Build Coastguard Worker // Optional. The language used to access language-specific data. 1002*d5c09012SAndroid Build Coastguard Worker // If not specified, the agent's default language is used. 1003*d5c09012SAndroid Build Coastguard Worker // For more information, see 1004*d5c09012SAndroid Build Coastguard Worker // [Multilingual intent and entity 1005*d5c09012SAndroid Build Coastguard Worker // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). 1006*d5c09012SAndroid Build Coastguard Worker string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; 1007*d5c09012SAndroid Build Coastguard Worker 1008*d5c09012SAndroid Build Coastguard Worker // Optional. The resource view to apply to the returned intent. 1009*d5c09012SAndroid Build Coastguard Worker IntentView intent_view = 3 [(google.api.field_behavior) = OPTIONAL]; 1010*d5c09012SAndroid Build Coastguard Worker} 1011*d5c09012SAndroid Build Coastguard Worker 1012*d5c09012SAndroid Build Coastguard Worker// The request message for 1013*d5c09012SAndroid Build Coastguard Worker// [Intents.CreateIntent][google.cloud.dialogflow.v2.Intents.CreateIntent]. 1014*d5c09012SAndroid Build Coastguard Workermessage CreateIntentRequest { 1015*d5c09012SAndroid Build Coastguard Worker // Required. The agent to create a intent for. 1016*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent`. 1017*d5c09012SAndroid Build Coastguard Worker string parent = 1 [ 1018*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 1019*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 1020*d5c09012SAndroid Build Coastguard Worker child_type: "dialogflow.googleapis.com/Intent" 1021*d5c09012SAndroid Build Coastguard Worker } 1022*d5c09012SAndroid Build Coastguard Worker ]; 1023*d5c09012SAndroid Build Coastguard Worker 1024*d5c09012SAndroid Build Coastguard Worker // Required. The intent to create. 1025*d5c09012SAndroid Build Coastguard Worker Intent intent = 2 [(google.api.field_behavior) = REQUIRED]; 1026*d5c09012SAndroid Build Coastguard Worker 1027*d5c09012SAndroid Build Coastguard Worker // Optional. The language used to access language-specific data. 1028*d5c09012SAndroid Build Coastguard Worker // If not specified, the agent's default language is used. 1029*d5c09012SAndroid Build Coastguard Worker // For more information, see 1030*d5c09012SAndroid Build Coastguard Worker // [Multilingual intent and entity 1031*d5c09012SAndroid Build Coastguard Worker // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). 1032*d5c09012SAndroid Build Coastguard Worker string language_code = 3 [(google.api.field_behavior) = OPTIONAL]; 1033*d5c09012SAndroid Build Coastguard Worker 1034*d5c09012SAndroid Build Coastguard Worker // Optional. The resource view to apply to the returned intent. 1035*d5c09012SAndroid Build Coastguard Worker IntentView intent_view = 4 [(google.api.field_behavior) = OPTIONAL]; 1036*d5c09012SAndroid Build Coastguard Worker} 1037*d5c09012SAndroid Build Coastguard Worker 1038*d5c09012SAndroid Build Coastguard Worker// The request message for 1039*d5c09012SAndroid Build Coastguard Worker// [Intents.UpdateIntent][google.cloud.dialogflow.v2.Intents.UpdateIntent]. 1040*d5c09012SAndroid Build Coastguard Workermessage UpdateIntentRequest { 1041*d5c09012SAndroid Build Coastguard Worker // Required. The intent to update. 1042*d5c09012SAndroid Build Coastguard Worker Intent intent = 1 [(google.api.field_behavior) = REQUIRED]; 1043*d5c09012SAndroid Build Coastguard Worker 1044*d5c09012SAndroid Build Coastguard Worker // Optional. The language used to access language-specific data. 1045*d5c09012SAndroid Build Coastguard Worker // If not specified, the agent's default language is used. 1046*d5c09012SAndroid Build Coastguard Worker // For more information, see 1047*d5c09012SAndroid Build Coastguard Worker // [Multilingual intent and entity 1048*d5c09012SAndroid Build Coastguard Worker // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). 1049*d5c09012SAndroid Build Coastguard Worker string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; 1050*d5c09012SAndroid Build Coastguard Worker 1051*d5c09012SAndroid Build Coastguard Worker // Optional. The mask to control which fields get updated. 1052*d5c09012SAndroid Build Coastguard Worker google.protobuf.FieldMask update_mask = 3 1053*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 1054*d5c09012SAndroid Build Coastguard Worker 1055*d5c09012SAndroid Build Coastguard Worker // Optional. The resource view to apply to the returned intent. 1056*d5c09012SAndroid Build Coastguard Worker IntentView intent_view = 4 [(google.api.field_behavior) = OPTIONAL]; 1057*d5c09012SAndroid Build Coastguard Worker} 1058*d5c09012SAndroid Build Coastguard Worker 1059*d5c09012SAndroid Build Coastguard Worker// The request message for 1060*d5c09012SAndroid Build Coastguard Worker// [Intents.DeleteIntent][google.cloud.dialogflow.v2.Intents.DeleteIntent]. 1061*d5c09012SAndroid Build Coastguard Workermessage DeleteIntentRequest { 1062*d5c09012SAndroid Build Coastguard Worker // Required. The name of the intent to delete. If this intent has direct or 1063*d5c09012SAndroid Build Coastguard Worker // indirect followup intents, we also delete them. 1064*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent/intents/<Intent ID>`. 1065*d5c09012SAndroid Build Coastguard Worker string name = 1 [ 1066*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 1067*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 1068*d5c09012SAndroid Build Coastguard Worker type: "dialogflow.googleapis.com/Intent" 1069*d5c09012SAndroid Build Coastguard Worker } 1070*d5c09012SAndroid Build Coastguard Worker ]; 1071*d5c09012SAndroid Build Coastguard Worker} 1072*d5c09012SAndroid Build Coastguard Worker 1073*d5c09012SAndroid Build Coastguard Workermessage BatchUpdateIntentsRequest { 1074*d5c09012SAndroid Build Coastguard Worker // Required. The name of the agent to update or create intents in. 1075*d5c09012SAndroid Build Coastguard Worker // Format: `projects/<Project ID>/agent`. 1076*d5c09012SAndroid Build Coastguard Worker string parent = 1 [ 1077*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 1078*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 1079*d5c09012SAndroid Build Coastguard Worker child_type: "dialogflow.googleapis.com/Intent" 1080*d5c09012SAndroid Build Coastguard Worker } 1081*d5c09012SAndroid Build Coastguard Worker ]; 1082*d5c09012SAndroid Build Coastguard Worker 1083*d5c09012SAndroid Build Coastguard Worker // The source of the intent batch. 1084*d5c09012SAndroid Build Coastguard Worker oneof intent_batch { 1085*d5c09012SAndroid Build Coastguard Worker // The URI to a Google Cloud Storage file containing intents to update or 1086*d5c09012SAndroid Build Coastguard Worker // create. The file format can either be a serialized proto (of IntentBatch 1087*d5c09012SAndroid Build Coastguard Worker // type) or JSON object. Note: The URI must start with "gs://". 1088*d5c09012SAndroid Build Coastguard Worker string intent_batch_uri = 2; 1089*d5c09012SAndroid Build Coastguard Worker 1090*d5c09012SAndroid Build Coastguard Worker // The collection of intents to update or create. 1091*d5c09012SAndroid Build Coastguard Worker IntentBatch intent_batch_inline = 3; 1092*d5c09012SAndroid Build Coastguard Worker } 1093*d5c09012SAndroid Build Coastguard Worker 1094*d5c09012SAndroid Build Coastguard Worker // Optional. The language used to access language-specific data. 1095*d5c09012SAndroid Build Coastguard Worker // If not specified, the agent's default language is used. 1096*d5c09012SAndroid Build Coastguard Worker // For more information, see 1097*d5c09012SAndroid Build Coastguard Worker // [Multilingual intent and entity 1098*d5c09012SAndroid Build Coastguard Worker // data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity). 1099*d5c09012SAndroid Build Coastguard Worker string language_code = 4 [(google.api.field_behavior) = OPTIONAL]; 1100*d5c09012SAndroid Build Coastguard Worker 1101*d5c09012SAndroid Build Coastguard Worker // Optional. The mask to control which fields get updated. 1102*d5c09012SAndroid Build Coastguard Worker google.protobuf.FieldMask update_mask = 5 1103*d5c09012SAndroid Build Coastguard Worker [(google.api.field_behavior) = OPTIONAL]; 1104*d5c09012SAndroid Build Coastguard Worker 1105*d5c09012SAndroid Build Coastguard Worker // Optional. The resource view to apply to the returned intent. 1106*d5c09012SAndroid Build Coastguard Worker IntentView intent_view = 6 [(google.api.field_behavior) = OPTIONAL]; 1107*d5c09012SAndroid Build Coastguard Worker} 1108*d5c09012SAndroid Build Coastguard Worker 1109*d5c09012SAndroid Build Coastguard Worker// The response message for 1110*d5c09012SAndroid Build Coastguard Worker// [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2.Intents.BatchUpdateIntents]. 1111*d5c09012SAndroid Build Coastguard Workermessage BatchUpdateIntentsResponse { 1112*d5c09012SAndroid Build Coastguard Worker // The collection of updated or created intents. 1113*d5c09012SAndroid Build Coastguard Worker repeated Intent intents = 1; 1114*d5c09012SAndroid Build Coastguard Worker} 1115*d5c09012SAndroid Build Coastguard Worker 1116*d5c09012SAndroid Build Coastguard Worker// The request message for 1117*d5c09012SAndroid Build Coastguard Worker// [Intents.BatchDeleteIntents][google.cloud.dialogflow.v2.Intents.BatchDeleteIntents]. 1118*d5c09012SAndroid Build Coastguard Workermessage BatchDeleteIntentsRequest { 1119*d5c09012SAndroid Build Coastguard Worker // Required. The name of the agent to delete all entities types for. Format: 1120*d5c09012SAndroid Build Coastguard Worker // `projects/<Project ID>/agent`. 1121*d5c09012SAndroid Build Coastguard Worker string parent = 1 [ 1122*d5c09012SAndroid Build Coastguard Worker (google.api.field_behavior) = REQUIRED, 1123*d5c09012SAndroid Build Coastguard Worker (google.api.resource_reference) = { 1124*d5c09012SAndroid Build Coastguard Worker child_type: "dialogflow.googleapis.com/Intent" 1125*d5c09012SAndroid Build Coastguard Worker } 1126*d5c09012SAndroid Build Coastguard Worker ]; 1127*d5c09012SAndroid Build Coastguard Worker 1128*d5c09012SAndroid Build Coastguard Worker // Required. The collection of intents to delete. Only intent `name` must be 1129*d5c09012SAndroid Build Coastguard Worker // filled in. 1130*d5c09012SAndroid Build Coastguard Worker repeated Intent intents = 2 [(google.api.field_behavior) = REQUIRED]; 1131*d5c09012SAndroid Build Coastguard Worker} 1132*d5c09012SAndroid Build Coastguard Worker 1133*d5c09012SAndroid Build Coastguard Worker// Represents the options for views of an intent. 1134*d5c09012SAndroid Build Coastguard Worker// An intent can be a sizable object. Therefore, we provide a resource view that 1135*d5c09012SAndroid Build Coastguard Worker// does not return training phrases in the response by default. 1136*d5c09012SAndroid Build Coastguard Workerenum IntentView { 1137*d5c09012SAndroid Build Coastguard Worker // Training phrases field is not populated in the response. 1138*d5c09012SAndroid Build Coastguard Worker INTENT_VIEW_UNSPECIFIED = 0; 1139*d5c09012SAndroid Build Coastguard Worker 1140*d5c09012SAndroid Build Coastguard Worker // All fields are populated. 1141*d5c09012SAndroid Build Coastguard Worker INTENT_VIEW_FULL = 1; 1142*d5c09012SAndroid Build Coastguard Worker} 1143*d5c09012SAndroid Build Coastguard Worker 1144*d5c09012SAndroid Build Coastguard Worker// This message is a wrapper around a collection of intents. 1145*d5c09012SAndroid Build Coastguard Workermessage IntentBatch { 1146*d5c09012SAndroid Build Coastguard Worker // A collection of intents. 1147*d5c09012SAndroid Build Coastguard Worker repeated Intent intents = 1; 1148*d5c09012SAndroid Build Coastguard Worker} 1149