operation_metadata.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.documentai.v1beta3;
  16. import "google/protobuf/timestamp.proto";
  17. import "google/api/annotations.proto";
  18. option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "OperationMetadataProto";
  22. option java_package = "com.google.cloud.documentai.v1beta3";
  23. option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
  24. option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
  25. // The common metadata for long running operations.
  26. message CommonOperationMetadata {
  27. // State of the longrunning operation.
  28. enum State {
  29. // Unspecified state.
  30. STATE_UNSPECIFIED = 0;
  31. // Operation is still running.
  32. RUNNING = 1;
  33. // Operation is being cancelled.
  34. CANCELLING = 2;
  35. // Operation succeeded.
  36. SUCCEEDED = 3;
  37. // Operation failed.
  38. FAILED = 4;
  39. // Operation is cancelled.
  40. CANCELLED = 5;
  41. }
  42. // The state of the operation.
  43. State state = 1;
  44. // A message providing more details about the current state of processing.
  45. string state_message = 2;
  46. // The creation time of the operation.
  47. google.protobuf.Timestamp create_time = 3;
  48. // The last update time of the operation.
  49. google.protobuf.Timestamp update_time = 4;
  50. }