validation_message.proto 2.6 KB

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