operation_metadata.proto 1.9 KB

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