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 15syntax = "proto3"; 16 17package google.cloud.enterpriseknowledgegraph.v1; 18 19import "google/protobuf/timestamp.proto"; 20 21option go_package = "cloud.google.com/go/enterpriseknowledgegraph/apiv1/enterpriseknowledgegraphpb;enterpriseknowledgegraphpb"; 22option java_multiple_files = true; 23option java_outer_classname = "OperationMetadataProto"; 24option java_package = "com.google.cloud.enterpriseknowledgegraph.v1"; 25option php_namespace = "Google\\Cloud\\EnterpriseKnowledgeGraph\\V1"; 26option ruby_package = "Google::Cloud::EnterpriseKnowledgeGraph::V1"; 27option csharp_namespace = "Google.Cloud.EnterpriseKnowledgeGraph.V1"; 28 29// The common metadata for long running operations. 30message CommonOperationMetadata { 31 // State of the longrunning operation. 32 enum State { 33 // Unspecified state. 34 STATE_UNSPECIFIED = 0; 35 36 // Operation is still running. 37 RUNNING = 1; 38 39 // Operation is being cancelled. 40 CANCELLING = 2; 41 42 // Operation succeeded. 43 SUCCEEDED = 3; 44 45 // Operation failed. 46 FAILED = 4; 47 48 // Operation is cancelled. 49 CANCELLED = 5; 50 51 // Operation is pending not running yet. 52 PENDING = 6; 53 } 54 55 // The state of the operation. 56 State state = 1; 57 58 // The creation time of the operation. 59 google.protobuf.Timestamp create_time = 2; 60 61 // The last update time of the operation. 62 google.protobuf.Timestamp update_time = 3; 63} 64