file_processing_error.proto 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.devtools.resultstore.v2;
  16. option go_package = "google.golang.org/genproto/googleapis/devtools/resultstore/v2;resultstore";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "FileProcessingErrorProto";
  19. option java_package = "com.google.devtools.resultstore.v2";
  20. // Stores errors reading or parsing a file during post-processing.
  21. message FileProcessingErrors {
  22. // The uid of the File being read or parsed.
  23. string file_uid = 1;
  24. // What went wrong.
  25. repeated FileProcessingError file_processing_errors = 3;
  26. }
  27. // Stores an error reading or parsing a file during post-processing.
  28. message FileProcessingError {
  29. // The type of error that occurred.
  30. FileProcessingErrorType type = 1;
  31. // Error message describing the problem.
  32. string message = 2;
  33. }
  34. // Errors in file post-processing are categorized using this enum.
  35. enum FileProcessingErrorType {
  36. // Type unspecified or not listed here.
  37. FILE_PROCESSING_ERROR_TYPE_UNSPECIFIED = 0;
  38. // A read error occurred trying to read the file.
  39. GENERIC_READ_ERROR = 1;
  40. // There was an error trying to parse the file.
  41. GENERIC_PARSE_ERROR = 2;
  42. // File is exceeds size limit.
  43. FILE_TOO_LARGE = 3;
  44. // The result of parsing the file exceeded size limit.
  45. OUTPUT_TOO_LARGE = 4;
  46. // Read access to the file was denied by file system.
  47. ACCESS_DENIED = 5;
  48. // Deadline exceeded trying to read the file.
  49. DEADLINE_EXCEEDED = 6;
  50. // File not found.
  51. NOT_FOUND = 7;
  52. // File is empty but was expected to have content.
  53. FILE_EMPTY = 8;
  54. }