validation_result.proto 2.5 KB

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