operations.proto 2.7 KB

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