cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/pipeline_failure_policy.pb.go (about) 1 // Copyright 2025 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 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.35.2 18 // protoc v4.25.7 19 // source: google/cloud/aiplatform/v1/pipeline_failure_policy.proto 20 21 package aiplatformpb 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28 ) 29 30 const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35 ) 36 37 // Represents the failure policy of a pipeline. Currently, the default of a 38 // pipeline is that the pipeline will continue to run until no more tasks can be 39 // executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a 40 // pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling 41 // any new tasks when a task has failed. Any scheduled tasks will continue to 42 // completion. 43 type PipelineFailurePolicy int32 44 45 const ( 46 // Default value, and follows fail slow behavior. 47 PipelineFailurePolicy_PIPELINE_FAILURE_POLICY_UNSPECIFIED PipelineFailurePolicy = 0 48 // Indicates that the pipeline should continue to run until all possible 49 // tasks have been scheduled and completed. 50 PipelineFailurePolicy_PIPELINE_FAILURE_POLICY_FAIL_SLOW PipelineFailurePolicy = 1 51 // Indicates that the pipeline should stop scheduling new tasks after a task 52 // has failed. 53 PipelineFailurePolicy_PIPELINE_FAILURE_POLICY_FAIL_FAST PipelineFailurePolicy = 2 54 ) 55 56 // Enum value maps for PipelineFailurePolicy. 57 var ( 58 PipelineFailurePolicy_name = map[int32]string{ 59 0: "PIPELINE_FAILURE_POLICY_UNSPECIFIED", 60 1: "PIPELINE_FAILURE_POLICY_FAIL_SLOW", 61 2: "PIPELINE_FAILURE_POLICY_FAIL_FAST", 62 } 63 PipelineFailurePolicy_value = map[string]int32{ 64 "PIPELINE_FAILURE_POLICY_UNSPECIFIED": 0, 65 "PIPELINE_FAILURE_POLICY_FAIL_SLOW": 1, 66 "PIPELINE_FAILURE_POLICY_FAIL_FAST": 2, 67 } 68 ) 69 70 func (x PipelineFailurePolicy) Enum() *PipelineFailurePolicy { 71 p := new(PipelineFailurePolicy) 72 *p = x 73 return p 74 } 75 76 func (x PipelineFailurePolicy) String() string { 77 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 78 } 79 80 func (PipelineFailurePolicy) Descriptor() protoreflect.EnumDescriptor { 81 return file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_enumTypes[0].Descriptor() 82 } 83 84 func (PipelineFailurePolicy) Type() protoreflect.EnumType { 85 return &file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_enumTypes[0] 86 } 87 88 func (x PipelineFailurePolicy) Number() protoreflect.EnumNumber { 89 return protoreflect.EnumNumber(x) 90 } 91 92 // Deprecated: Use PipelineFailurePolicy.Descriptor instead. 93 func (PipelineFailurePolicy) EnumDescriptor() ([]byte, []int) { 94 return file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescGZIP(), []int{0} 95 } 96 97 var File_google_cloud_aiplatform_v1_pipeline_failure_policy_proto protoreflect.FileDescriptor 98 99 var file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDesc = []byte{ 100 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x61, 101 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x69, 0x70, 102 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x70, 0x6f, 103 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 104 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 105 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2a, 0x8e, 0x01, 0x0a, 0x15, 0x50, 0x69, 0x70, 0x65, 0x6c, 106 0x69, 0x6e, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 107 0x12, 0x27, 0x0a, 0x23, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x46, 0x41, 0x49, 108 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 109 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x49, 0x50, 110 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x4f, 111 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x01, 112 0x12, 0x25, 0x0a, 0x21, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x46, 0x41, 0x49, 113 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x46, 0x41, 0x49, 0x4c, 114 0x5f, 0x46, 0x41, 0x53, 0x54, 0x10, 0x02, 0x42, 0xd8, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 115 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 116 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x42, 0x1a, 0x50, 0x69, 0x70, 0x65, 117 0x6c, 0x69, 0x6e, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 118 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 119 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 120 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 121 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b, 0x61, 0x69, 0x70, 0x6c, 122 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 123 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 124 0x72, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 125 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 126 0x56, 0x31, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 127 0x75, 0x64, 0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 128 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 129 } 130 131 var ( 132 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescOnce sync.Once 133 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescData = file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDesc 134 ) 135 136 func file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescGZIP() []byte { 137 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescOnce.Do(func() { 138 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescData) 139 }) 140 return file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDescData 141 } 142 143 var file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 144 var file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_goTypes = []any{ 145 (PipelineFailurePolicy)(0), // 0: google.cloud.aiplatform.v1.PipelineFailurePolicy 146 } 147 var file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_depIdxs = []int32{ 148 0, // [0:0] is the sub-list for method output_type 149 0, // [0:0] is the sub-list for method input_type 150 0, // [0:0] is the sub-list for extension type_name 151 0, // [0:0] is the sub-list for extension extendee 152 0, // [0:0] is the sub-list for field type_name 153 } 154 155 func init() { file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_init() } 156 func file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_init() { 157 if File_google_cloud_aiplatform_v1_pipeline_failure_policy_proto != nil { 158 return 159 } 160 type x struct{} 161 out := protoimpl.TypeBuilder{ 162 File: protoimpl.DescBuilder{ 163 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 164 RawDescriptor: file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDesc, 165 NumEnums: 1, 166 NumMessages: 0, 167 NumExtensions: 0, 168 NumServices: 0, 169 }, 170 GoTypes: file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_goTypes, 171 DependencyIndexes: file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_depIdxs, 172 EnumInfos: file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_enumTypes, 173 }.Build() 174 File_google_cloud_aiplatform_v1_pipeline_failure_policy_proto = out.File 175 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_rawDesc = nil 176 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_goTypes = nil 177 file_google_cloud_aiplatform_v1_pipeline_failure_policy_proto_depIdxs = nil 178 }