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