xref: /aosp_15_r20/external/googleapis/google/cloud/enterpriseknowledgegraph/v1/job_state.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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
19option go_package = "cloud.google.com/go/enterpriseknowledgegraph/apiv1/enterpriseknowledgegraphpb;enterpriseknowledgegraphpb";
20option java_multiple_files = true;
21option java_outer_classname = "JobStateProto";
22option java_package = "com.google.cloud.enterpriseknowledgegraph.v1";
23option php_namespace = "Google\\Cloud\\EnterpriseKnowledgeGraph\\V1";
24option ruby_package = "Google::Cloud::EnterpriseKnowledgeGraph::V1";
25option csharp_namespace = "Google.Cloud.EnterpriseKnowledgeGraph.V1";
26
27// Describes the state of a job.
28enum JobState {
29  // The job state is unspecified.
30  JOB_STATE_UNSPECIFIED = 0;
31
32  // The service is preparing to run the job.
33  JOB_STATE_PENDING = 9;
34
35  // The job is in progress.
36  JOB_STATE_RUNNING = 1;
37
38  // The job completed successfully.
39  JOB_STATE_SUCCEEDED = 2;
40
41  // The job failed.
42  JOB_STATE_FAILED = 3;
43
44  // The job has been cancelled.
45  JOB_STATE_CANCELLED = 4;
46
47  // Entity Recon API: The knowledge extraction job is running.
48  JOB_STATE_KNOWLEDGE_EXTRACTION = 5;
49
50  // Entity Recon API: The preprocessing job is running.
51  JOB_STATE_RECON_PREPROCESSING = 6;
52
53  // Entity Recon API: The clustering job is running.
54  JOB_STATE_CLUSTERING = 7;
55
56  // Entity Recon API: The exporting clusters job is running.
57  JOB_STATE_EXPORTING_CLUSTERS = 8;
58}
59