1// Copyright 2023 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.aiplatform.v1;
18
19option csharp_namespace = "Google.Cloud.AIPlatform.V1";
20option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
21option java_multiple_files = true;
22option java_outer_classname = "PipelineStateProto";
23option java_package = "com.google.cloud.aiplatform.v1";
24option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
25option ruby_package = "Google::Cloud::AIPlatform::V1";
26
27// Describes the state of a pipeline.
28enum PipelineState {
29  // The pipeline state is unspecified.
30  PIPELINE_STATE_UNSPECIFIED = 0;
31
32  // The pipeline has been created or resumed, and processing has not yet
33  // begun.
34  PIPELINE_STATE_QUEUED = 1;
35
36  // The service is preparing to run the pipeline.
37  PIPELINE_STATE_PENDING = 2;
38
39  // The pipeline is in progress.
40  PIPELINE_STATE_RUNNING = 3;
41
42  // The pipeline completed successfully.
43  PIPELINE_STATE_SUCCEEDED = 4;
44
45  // The pipeline failed.
46  PIPELINE_STATE_FAILED = 5;
47
48  // The pipeline is being cancelled. From this state, the pipeline may only go
49  // to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or
50  // PIPELINE_STATE_CANCELLED.
51  PIPELINE_STATE_CANCELLING = 6;
52
53  // The pipeline has been cancelled.
54  PIPELINE_STATE_CANCELLED = 7;
55
56  // The pipeline has been stopped, and can be resumed.
57  PIPELINE_STATE_PAUSED = 8;
58}
59