cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/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/v1beta1/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_v1beta1_pipeline_failure_policy_proto_enumTypes[0].Descriptor()
    82  }
    83  
    84  func (PipelineFailurePolicy) Type() protoreflect.EnumType {
    85  	return &file_google_cloud_aiplatform_v1beta1_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_v1beta1_pipeline_failure_policy_proto_rawDescGZIP(), []int{0}
    95  }
    96  
    97  var File_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto protoreflect.FileDescriptor
    98  
    99  var file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDesc = []byte{
   100  	0x0a, 0x3d, 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, 0x62, 0x65, 0x74, 0x61,
   102  	0x31, 0x2f, 0x70, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75,
   103  	0x72, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   104  	0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69,
   105  	0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
   106  	0x2a, 0x8e, 0x01, 0x0a, 0x15, 0x50, 0x69, 0x70, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x46, 0x61, 0x69,
   107  	0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x27, 0x0a, 0x23, 0x50, 0x49,
   108  	0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x50,
   109  	0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,
   110  	0x44, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f,
   111  	0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x46,
   112  	0x41, 0x49, 0x4c, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x01, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x49,
   113  	0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x50,
   114  	0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x10,
   115  	0x02, 0x42, 0xf1, 0x01, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   116  	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
   117  	0x6d, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x1a, 0x50, 0x69, 0x70, 0x65, 0x6c,
   118  	0x69, 0x6e, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
   119  	0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67,
   120  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x69, 0x70,
   121  	0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74,
   122  	0x61, 0x31, 0x2f, 0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0x3b,
   123  	0x61, 0x69, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x70, 0x62, 0xaa, 0x02, 0x1f, 0x47,
   124  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x41, 0x49, 0x50, 0x6c,
   125  	0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02,
   126  	0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x41, 0x49,
   127  	0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
   128  	0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64,
   129  	0x3a, 0x3a, 0x41, 0x49, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x3a, 0x3a, 0x56, 0x31,
   130  	0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   131  }
   132  
   133  var (
   134  	file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescOnce sync.Once
   135  	file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescData = file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDesc
   136  )
   137  
   138  func file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescGZIP() []byte {
   139  	file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescOnce.Do(func() {
   140  		file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescData)
   141  	})
   142  	return file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDescData
   143  }
   144  
   145  var file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   146  var file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_goTypes = []any{
   147  	(PipelineFailurePolicy)(0), // 0: google.cloud.aiplatform.v1beta1.PipelineFailurePolicy
   148  }
   149  var file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_depIdxs = []int32{
   150  	0, // [0:0] is the sub-list for method output_type
   151  	0, // [0:0] is the sub-list for method input_type
   152  	0, // [0:0] is the sub-list for extension type_name
   153  	0, // [0:0] is the sub-list for extension extendee
   154  	0, // [0:0] is the sub-list for field type_name
   155  }
   156  
   157  func init() { file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_init() }
   158  func file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_init() {
   159  	if File_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto != nil {
   160  		return
   161  	}
   162  	type x struct{}
   163  	out := protoimpl.TypeBuilder{
   164  		File: protoimpl.DescBuilder{
   165  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   166  			RawDescriptor: file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDesc,
   167  			NumEnums:      1,
   168  			NumMessages:   0,
   169  			NumExtensions: 0,
   170  			NumServices:   0,
   171  		},
   172  		GoTypes:           file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_goTypes,
   173  		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_depIdxs,
   174  		EnumInfos:         file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_enumTypes,
   175  	}.Build()
   176  	File_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto = out.File
   177  	file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_rawDesc = nil
   178  	file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_goTypes = nil
   179  	file_google_cloud_aiplatform_v1beta1_pipeline_failure_policy_proto_depIdxs = nil
   180  }