From 606bcfa63d95cb6e8ab3f0a90d70e70b130018fa Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 15 May 2024 17:48:49 -0700 Subject: [PATCH] chore(components): Add TaskError proto Signed-off-by: Googler PiperOrigin-RevId: 634137095 --- .../proto/task_error.proto | 11 +++++++ .../proto/task_error_pb2.py | 33 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 components/google-cloud/google_cloud_pipeline_components/proto/task_error.proto create mode 100755 components/google-cloud/google_cloud_pipeline_components/proto/task_error_pb2.py diff --git a/components/google-cloud/google_cloud_pipeline_components/proto/task_error.proto b/components/google-cloud/google_cloud_pipeline_components/proto/task_error.proto new file mode 100644 index 00000000000..ab68a91cabf --- /dev/null +++ b/components/google-cloud/google_cloud_pipeline_components/proto/task_error.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +package task_error; + +// The message allows the 1st party clients of Vertex Pipline to specify +// arbitary error messages they want to catch during the execution of the +// pipeline. +message TaskError { + // The primary error message. + string error_message = 1; +} diff --git a/components/google-cloud/google_cloud_pipeline_components/proto/task_error_pb2.py b/components/google-cloud/google_cloud_pipeline_components/proto/task_error_pb2.py new file mode 100755 index 00000000000..baaaec862ea --- /dev/null +++ b/components/google-cloud/google_cloud_pipeline_components/proto/task_error_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# Protobuf Python Version: 0.20240502.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x13task_error.proto\x12\ntask_error""\n\tTaskError\x12\x15\n\rerror_message\x18\x01' + b' \x01(\tB\x02P\x01\x62\x06proto3' +) + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages( + DESCRIPTOR, + 'google_cloud_pipeline_components.google_cloud_pipeline_components.proto.task_error_pb2', + _globals, +) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'P\001' + _globals['_TASKERROR']._serialized_start = 119 + _globals['_TASKERROR']._serialized_end = 153 +# @@protoc_insertion_point(module_scope)