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