operations.proto 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Copyright 2016 Google Inc.
  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.genomics.v1;
  16. import "google/api/annotations.proto";
  17. import "google/protobuf/any.proto";
  18. import "google/protobuf/timestamp.proto";
  19. option cc_enable_arenas = true;
  20. option java_multiple_files = true;
  21. option java_outer_classname = "OperationsProto";
  22. option java_package = "com.google.genomics.v1";
  23. // Metadata describing an [Operation][google.longrunning.Operation].
  24. message OperationMetadata {
  25. // The Google Cloud Project in which the job is scoped.
  26. string project_id = 1;
  27. // The time at which the job was submitted to the Genomics service.
  28. google.protobuf.Timestamp create_time = 2;
  29. // The time at which the job began to run.
  30. google.protobuf.Timestamp start_time = 3;
  31. // The time at which the job stopped running.
  32. google.protobuf.Timestamp end_time = 4;
  33. // The original request that started the operation. Note that this will be in
  34. // current version of the API. If the operation was started with v1beta2 API
  35. // and a GetOperation is performed on v1 API, a v1 request will be returned.
  36. google.protobuf.Any request = 5;
  37. // Optional event messages that were generated during the job's execution.
  38. // This also contains any warnings that were generated during import
  39. // or export.
  40. repeated OperationEvent events = 6;
  41. // Optionally provided by the caller when submitting the request that creates
  42. // the operation.
  43. string client_id = 7;
  44. // Runtime metadata on this Operation.
  45. google.protobuf.Any runtime_metadata = 8;
  46. }
  47. // An event that occurred during an [Operation][google.longrunning.Operation].
  48. message OperationEvent {
  49. // Optional time of when event started.
  50. google.protobuf.Timestamp start_time = 1;
  51. // Optional time of when event finished. An event can have a start time and no
  52. // finish time. If an event has a finish time, there must be a start time.
  53. google.protobuf.Timestamp end_time = 2;
  54. // Required description of event.
  55. string description = 3;
  56. }