validation_result.proto 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.v2;
  16. import "google/api/annotations.proto";
  17. option cc_enable_arenas = true;
  18. option csharp_namespace = "Google.Cloud.Dialogflow.V2";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "ValidationResultProto";
  22. option java_package = "com.google.cloud.dialogflow.v2";
  23. option objc_class_prefix = "DF";
  24. // Represents a single validation error.
  25. message ValidationError {
  26. // Represents a level of severity.
  27. enum Severity {
  28. // Not specified. This value should never be used.
  29. SEVERITY_UNSPECIFIED = 0;
  30. // The agent doesn't follow Dialogflow best practices.
  31. INFO = 1;
  32. // The agent may not behave as expected.
  33. WARNING = 2;
  34. // The agent may experience partial failures.
  35. ERROR = 3;
  36. // The agent may completely fail.
  37. CRITICAL = 4;
  38. }
  39. // The severity of the error.
  40. Severity severity = 1;
  41. // The names of the entries that the error is associated with.
  42. // Format:
  43. //
  44. // - "projects/<Project ID>/agent", if the error is associated with the entire
  45. // agent.
  46. // - "projects/<Project ID>/agent/intents/<Intent ID>", if the error is
  47. // associated with certain intents.
  48. // - "projects/<Project
  49. // ID>/agent/intents/<Intent Id>/trainingPhrases/<Training Phrase ID>", if the
  50. // error is associated with certain intent training phrases.
  51. // - "projects/<Project ID>/agent/intents/<Intent Id>/parameters/<Parameter
  52. // ID>", if the error is associated with certain intent parameters.
  53. // - "projects/<Project ID>/agent/entities/<Entity ID>", if the error is
  54. // associated with certain entities.
  55. repeated string entries = 3;
  56. // The detailed error messsage.
  57. string error_message = 4;
  58. }
  59. // Represents the output of agent validation.
  60. message ValidationResult {
  61. // Contains all validation errors.
  62. repeated ValidationError validation_errors = 1;
  63. }