operation_metadata.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.common;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/common;common";
  19. option java_multiple_files = true;
  20. option java_package = "com.google.cloud.common";
  21. // Represents the metadata of the long-running operation.
  22. message OperationMetadata {
  23. // Output only. The time the operation was created.
  24. google.protobuf.Timestamp create_time = 1
  25. [(google.api.field_behavior) = OUTPUT_ONLY];
  26. // Output only. The time the operation finished running.
  27. google.protobuf.Timestamp end_time = 2
  28. [(google.api.field_behavior) = OUTPUT_ONLY];
  29. // Output only. Server-defined resource path for the target of the operation.
  30. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  31. // Output only. Name of the verb executed by the operation.
  32. string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  33. // Output only. Human-readable status of the operation, if any.
  34. string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  35. // Output only. Identifies whether the user has requested cancellation
  36. // of the operation. Operations that have successfully been cancelled
  37. // have [Operation.error][] value with a [google.rpc.Status.code][] of 1,
  38. // corresponding to `Code.CANCELLED`.
  39. bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  40. // Output only. API version used to start the operation.
  41. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  42. }