migration_error_details.proto 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.bigquery.migration.v2;
  16. import "google/api/field_behavior.proto";
  17. import "google/rpc/error_details.proto";
  18. option csharp_namespace = "Google.Cloud.BigQuery.Migration.V2";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2;migration";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "MigrationErrorDetailsProto";
  22. option java_package = "com.google.cloud.bigquery.migration.v2";
  23. option php_namespace = "Google\\Cloud\\BigQuery\\Migration\\V2";
  24. // Provides details for errors and the corresponding resources.
  25. message ResourceErrorDetail {
  26. // Required. Information about the resource where the error is located.
  27. google.rpc.ResourceInfo resource_info = 1 [(google.api.field_behavior) = REQUIRED];
  28. // Required. The error details for the resource.
  29. repeated ErrorDetail error_details = 2 [(google.api.field_behavior) = REQUIRED];
  30. // Required. How many errors there are in total for the resource. Truncation can be
  31. // indicated by having an `error_count` that is higher than the size of
  32. // `error_details`.
  33. int32 error_count = 3 [(google.api.field_behavior) = REQUIRED];
  34. }
  35. // Provides details for errors, e.g. issues that where encountered when
  36. // processing a subtask.
  37. message ErrorDetail {
  38. // Optional. The exact location within the resource (if applicable).
  39. ErrorLocation location = 1 [(google.api.field_behavior) = OPTIONAL];
  40. // Required. Describes the cause of the error with structured detail.
  41. google.rpc.ErrorInfo error_info = 2 [(google.api.field_behavior) = REQUIRED];
  42. }
  43. // Holds information about where the error is located.
  44. message ErrorLocation {
  45. // Optional. If applicable, denotes the line where the error occurred. A zero value
  46. // means that there is no line information.
  47. int32 line = 1 [(google.api.field_behavior) = OPTIONAL];
  48. // Optional. If applicable, denotes the column where the error occurred. A zero value
  49. // means that there is no columns information.
  50. int32 column = 2 [(google.api.field_behavior) = OPTIONAL];
  51. }