1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.dialogflow.cx.v3beta1; 18 19option cc_enable_arenas = true; 20option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; 21option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb"; 22option java_multiple_files = true; 23option java_outer_classname = "ValidationMessageProto"; 24option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; 25option objc_class_prefix = "DF"; 26option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; 27 28// Agent/flow validation message. 29message ValidationMessage { 30 // Resource types. 31 enum ResourceType { 32 // Unspecified. 33 RESOURCE_TYPE_UNSPECIFIED = 0; 34 35 // Agent. 36 AGENT = 1; 37 38 // Intent. 39 INTENT = 2; 40 41 // Intent training phrase. 42 INTENT_TRAINING_PHRASE = 8; 43 44 // Intent parameter. 45 INTENT_PARAMETER = 9; 46 47 // Multiple intents. 48 INTENTS = 10; 49 50 // Multiple training phrases. 51 INTENT_TRAINING_PHRASES = 11; 52 53 // Entity type. 54 ENTITY_TYPE = 3; 55 56 // Multiple entity types. 57 ENTITY_TYPES = 12; 58 59 // Webhook. 60 WEBHOOK = 4; 61 62 // Flow. 63 FLOW = 5; 64 65 // Page. 66 PAGE = 6; 67 68 // Multiple pages. 69 PAGES = 13; 70 71 // Transition route group. 72 TRANSITION_ROUTE_GROUP = 7; 73 74 // Agent transition route group. 75 AGENT_TRANSITION_ROUTE_GROUP = 14; 76 } 77 78 // Severity level. 79 enum Severity { 80 // Unspecified. 81 SEVERITY_UNSPECIFIED = 0; 82 83 // The agent doesn't follow Dialogflow best practices. 84 INFO = 1; 85 86 // The agent may not behave as expected. 87 WARNING = 2; 88 89 // The agent may experience failures. 90 ERROR = 3; 91 } 92 93 // The type of the resources where the message is found. 94 ResourceType resource_type = 1; 95 96 // The names of the resources where the message is found. 97 repeated string resources = 2 [deprecated = true]; 98 99 // The resource names of the resources where the message is found. 100 repeated ResourceName resource_names = 6; 101 102 // Indicates the severity of the message. 103 Severity severity = 3; 104 105 // The message detail. 106 string detail = 4; 107} 108 109// Resource name and display name. 110message ResourceName { 111 // Name. 112 string name = 1; 113 114 // Display name. 115 string display_name = 2; 116} 117