validation_message.proto 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // Copyright 2021 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. syntax = "proto3";
  15. package google.cloud.dialogflow.cx.v3;
  16. import "google/protobuf/struct.proto";
  17. import "google/api/annotations.proto";
  18. option cc_enable_arenas = true;
  19. option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "ValidationMessageProto";
  23. option java_package = "com.google.cloud.dialogflow.cx.v3";
  24. option objc_class_prefix = "DF";
  25. // Agent/flow validation message.
  26. message ValidationMessage {
  27. // Resource types.
  28. enum ResourceType {
  29. // Unspecified.
  30. RESOURCE_TYPE_UNSPECIFIED = 0;
  31. // Agent.
  32. AGENT = 1;
  33. // Intent.
  34. INTENT = 2;
  35. // Intent training phrase.
  36. INTENT_TRAINING_PHRASE = 8;
  37. // Intent parameter.
  38. INTENT_PARAMETER = 9;
  39. // Multiple intents.
  40. INTENTS = 10;
  41. // Multiple training phrases.
  42. INTENT_TRAINING_PHRASES = 11;
  43. // Entity type.
  44. ENTITY_TYPE = 3;
  45. // Multiple entity types.
  46. ENTITY_TYPES = 12;
  47. // Webhook.
  48. WEBHOOK = 4;
  49. // Flow.
  50. FLOW = 5;
  51. // Page.
  52. PAGE = 6;
  53. // Multiple pages.
  54. PAGES = 13;
  55. // Transition route group.
  56. TRANSITION_ROUTE_GROUP = 7;
  57. }
  58. // Severity level.
  59. enum Severity {
  60. // Unspecified.
  61. SEVERITY_UNSPECIFIED = 0;
  62. // The agent doesn't follow Dialogflow best practices.
  63. INFO = 1;
  64. // The agent may not behave as expected.
  65. WARNING = 2;
  66. // The agent may experience failures.
  67. ERROR = 3;
  68. }
  69. // The type of the resources where the message is found.
  70. ResourceType resource_type = 1;
  71. // The names of the resources where the message is found.
  72. repeated string resources = 2 [deprecated = true];
  73. // The resource names of the resources where the message is found.
  74. repeated ResourceName resource_names = 6;
  75. // Indicates the severity of the message.
  76. Severity severity = 3;
  77. // The message detail.
  78. string detail = 4;
  79. }
  80. // Resource name and display name.
  81. message ResourceName {
  82. // Name.
  83. string name = 1;
  84. // Display name.
  85. string display_name = 2;
  86. }