From 3f7b640f52975057c62a5edb3051257048b1aa45 Mon Sep 17 00:00:00 2001 From: jerempy <95110820+jerempy@users.noreply.github.com> Date: Mon, 24 Oct 2022 19:51:23 -0400 Subject: [PATCH] Add createworkflow failure proto #minor (#331) --- .../gen/pb-cpp/flyteidl/admin/workflow.pb.cc | 1151 ++++++++- .../gen/pb-cpp/flyteidl/admin/workflow.pb.h | 586 ++++- .../gen/pb-go/flyteidl/admin/workflow.pb.go | 226 +- .../flyteidl/admin/workflow.pb.validate.go | 252 ++ .../flyteidl/admin/WorkflowOuterClass.java | 2198 ++++++++++++++++- flyteidl/gen/pb-js/flyteidl.d.ts | 165 ++ flyteidl/gen/pb-js/flyteidl.js | 378 +++ .../pb_python/flyteidl/admin/workflow_pb2.py | 139 +- flyteidl/protos/docs/admin/admin.rst | 64 + flyteidl/protos/docs/core/core.rst | 2 - .../protos/docs/datacatalog/datacatalog.rst | 2 - flyteidl/protos/docs/event/event.rst | 2 - flyteidl/protos/flyteidl/admin/workflow.proto | 18 + 13 files changed, 5121 insertions(+), 62 deletions(-) diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc index 2e4f05d026..09b61dd188 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc @@ -16,6 +16,8 @@ // @@protoc_insertion_point(includes) #include +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto; @@ -49,6 +51,20 @@ class WorkflowClosureDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _WorkflowClosure_default_instance_; +class WorkflowErrorExistsDifferentStructureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowErrorExistsDifferentStructure_default_instance_; +class WorkflowErrorExistsIdenticalStructureDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; +} _WorkflowErrorExistsIdenticalStructure_default_instance_; +class CreateWorkflowFailureReasonDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed _instance; + const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure_; + const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure_; +} _CreateWorkflowFailureReason_default_instance_; } // namespace admin } // namespace flyteidl static void InitDefaultsWorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto() { @@ -143,6 +159,52 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fadm &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base, &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; +static void InitDefaultsWorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowErrorExistsDifferentStructure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsWorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_; + new (ptr) ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; + +static void InitDefaultsCreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_; + new (ptr) ::flyteidl::admin::CreateWorkflowFailureReason(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::flyteidl::admin::CreateWorkflowFailureReason::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<2> scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto}, { + &scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base, + &scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; + void InitDefaults_flyteidl_2fadmin_2fworkflow_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_WorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto.base); @@ -150,9 +212,12 @@ void InitDefaults_flyteidl_2fadmin_2fworkflow_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + ::google::protobuf::internal::InitSCC(&scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[6]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[9]; constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_2eproto = nullptr; constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_2eproto = nullptr; @@ -197,6 +262,26 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fworkflow_2eproto ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, compiled_workflow_), PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, created_at_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsDifferentStructure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsDifferentStructure, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure, id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateWorkflowFailureReason, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateWorkflowFailureReason, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + offsetof(::flyteidl::admin::CreateWorkflowFailureReasonDefaultTypeInternal, exists_different_structure_), + offsetof(::flyteidl::admin::CreateWorkflowFailureReasonDefaultTypeInternal, exists_identical_structure_), + PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateWorkflowFailureReason, reason_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::flyteidl::admin::WorkflowCreateRequest)}, @@ -205,6 +290,9 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 19, -1, sizeof(::flyteidl::admin::WorkflowList)}, { 26, -1, sizeof(::flyteidl::admin::WorkflowSpec)}, { 33, -1, sizeof(::flyteidl::admin::WorkflowClosure)}, + { 40, -1, sizeof(::flyteidl::admin::WorkflowErrorExistsDifferentStructure)}, + { 46, -1, sizeof(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure)}, + { 52, -1, sizeof(::flyteidl::admin::CreateWorkflowFailureReason)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -214,12 +302,15 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::flyteidl::admin::_WorkflowList_default_instance_), reinterpret_cast(&::flyteidl::admin::_WorkflowSpec_default_instance_), reinterpret_cast(&::flyteidl::admin::_WorkflowClosure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_), + reinterpret_cast(&::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_), }; ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto = { {}, AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto, "flyteidl/admin/workflow.proto", schemas, file_default_instances, TableStruct_flyteidl_2fadmin_2fworkflow_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto, 6, file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_2eproto, + file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto, 9, file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_2eproto, }; const char descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_2eproto[] = @@ -241,14 +332,23 @@ const char descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_2eproto[] = "mplate\"\204\001\n\017WorkflowClosure\022A\n\021compiled_w" "orkflow\030\001 \001(\0132&.flyteidl.core.CompiledWo" "rkflowClosure\022.\n\ncreated_at\030\002 \001(\0132\032.goog" - "le.protobuf.TimestampB7Z5github.com/flyt" - "eorg/flyteidl/gen/pb-go/flyteidl/adminb\006" - "proto3" + "le.protobuf.Timestamp\"N\n%WorkflowErrorEx" + "istsDifferentStructure\022%\n\002id\030\001 \001(\0132\031.fly" + "teidl.core.Identifier\"N\n%WorkflowErrorEx" + "istsIdenticalStructure\022%\n\002id\030\001 \001(\0132\031.fly" + "teidl.core.Identifier\"\341\001\n\033CreateWorkflow" + "FailureReason\022[\n\032exists_different_struct" + "ure\030\001 \001(\01325.flyteidl.admin.WorkflowError" + "ExistsDifferentStructureH\000\022[\n\032exists_ide" + "ntical_structure\030\002 \001(\01325.flyteidl.admin." + "WorkflowErrorExistsIdenticalStructureH\000B" + "\010\n\006reasonB7Z5github.com/flyteorg/flyteid" + "l/gen/pb-go/flyteidl/adminb\006proto3" ; ::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fworkflow_2eproto = { false, InitDefaults_flyteidl_2fadmin_2fworkflow_2eproto, descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_2eproto, - "flyteidl/admin/workflow.proto", &assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto, 806, + "flyteidl/admin/workflow.proto", &assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto, 1194, }; void AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto() { @@ -2278,28 +2378,1033 @@ ::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { } -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowCreateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowCreateRequest >(arena); +// =================================================================== + +void WorkflowErrorExistsDifferentStructure::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowCreateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowCreateResponse >(arena); +class WorkflowErrorExistsDifferentStructure::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const WorkflowErrorExistsDifferentStructure* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowErrorExistsDifferentStructure::HasBitSetters::id(const WorkflowErrorExistsDifferentStructure* msg) { + return *msg->id_; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Workflow* Arena::CreateMaybeMessage< ::flyteidl::admin::Workflow >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Workflow >(arena); +void WorkflowErrorExistsDifferentStructure::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowList* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowList >(arena); +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowErrorExistsDifferentStructure::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowErrorExistsDifferentStructure::WorkflowErrorExistsDifferentStructure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowErrorExistsDifferentStructure) } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowSpec >(arena); +WorkflowErrorExistsDifferentStructure::WorkflowErrorExistsDifferentStructure(const WorkflowErrorExistsDifferentStructure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowErrorExistsDifferentStructure) } -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowClosure >(arena); + +void WorkflowErrorExistsDifferentStructure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + id_ = nullptr; +} + +WorkflowErrorExistsDifferentStructure::~WorkflowErrorExistsDifferentStructure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + SharedDtor(); +} + +void WorkflowErrorExistsDifferentStructure::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowErrorExistsDifferentStructure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowErrorExistsDifferentStructure& WorkflowErrorExistsDifferentStructure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowErrorExistsDifferentStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowErrorExistsDifferentStructure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowErrorExistsDifferentStructure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowErrorExistsDifferentStructure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowErrorExistsDifferentStructure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowErrorExistsDifferentStructure) +} + +::google::protobuf::uint8* WorkflowErrorExistsDifferentStructure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + return target; +} + +size_t WorkflowErrorExistsDifferentStructure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowErrorExistsDifferentStructure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowErrorExistsDifferentStructure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + MergeFrom(*source); + } +} + +void WorkflowErrorExistsDifferentStructure::MergeFrom(const WorkflowErrorExistsDifferentStructure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } +} + +void WorkflowErrorExistsDifferentStructure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowErrorExistsDifferentStructure::CopyFrom(const WorkflowErrorExistsDifferentStructure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowErrorExistsDifferentStructure::IsInitialized() const { + return true; +} + +void WorkflowErrorExistsDifferentStructure::Swap(WorkflowErrorExistsDifferentStructure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowErrorExistsDifferentStructure::InternalSwap(WorkflowErrorExistsDifferentStructure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata WorkflowErrorExistsDifferentStructure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void WorkflowErrorExistsIdenticalStructure::InitAsDefaultInstance() { + ::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( + ::flyteidl::core::Identifier::internal_default_instance()); +} +class WorkflowErrorExistsIdenticalStructure::HasBitSetters { + public: + static const ::flyteidl::core::Identifier& id(const WorkflowErrorExistsIdenticalStructure* msg); +}; + +const ::flyteidl::core::Identifier& +WorkflowErrorExistsIdenticalStructure::HasBitSetters::id(const WorkflowErrorExistsIdenticalStructure* msg) { + return *msg->id_; +} +void WorkflowErrorExistsIdenticalStructure::clear_id() { + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int WorkflowErrorExistsIdenticalStructure::kIdFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +WorkflowErrorExistsIdenticalStructure::WorkflowErrorExistsIdenticalStructure() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) +} +WorkflowErrorExistsIdenticalStructure::WorkflowErrorExistsIdenticalStructure(const WorkflowErrorExistsIdenticalStructure& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_id()) { + id_ = new ::flyteidl::core::Identifier(*from.id_); + } else { + id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) +} + +void WorkflowErrorExistsIdenticalStructure::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + id_ = nullptr; +} + +WorkflowErrorExistsIdenticalStructure::~WorkflowErrorExistsIdenticalStructure() { + // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + SharedDtor(); +} + +void WorkflowErrorExistsIdenticalStructure::SharedDtor() { + if (this != internal_default_instance()) delete id_; +} + +void WorkflowErrorExistsIdenticalStructure::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const WorkflowErrorExistsIdenticalStructure& WorkflowErrorExistsIdenticalStructure::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowErrorExistsIdenticalStructure_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void WorkflowErrorExistsIdenticalStructure::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { + delete id_; + } + id_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* WorkflowErrorExistsIdenticalStructure::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::core::Identifier::_InternalParse; + object = msg->mutable_id(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool WorkflowErrorExistsIdenticalStructure::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.core.Identifier id = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_id())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void WorkflowErrorExistsIdenticalStructure::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::id(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) +} + +::google::protobuf::uint8* WorkflowErrorExistsIdenticalStructure::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::id(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + return target; +} + +size_t WorkflowErrorExistsIdenticalStructure::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .flyteidl.core.Identifier id = 1; + if (this->has_id()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *id_); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void WorkflowErrorExistsIdenticalStructure::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + GOOGLE_DCHECK_NE(&from, this); + const WorkflowErrorExistsIdenticalStructure* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + MergeFrom(*source); + } +} + +void WorkflowErrorExistsIdenticalStructure::MergeFrom(const WorkflowErrorExistsIdenticalStructure& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_id()) { + mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); + } +} + +void WorkflowErrorExistsIdenticalStructure::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void WorkflowErrorExistsIdenticalStructure::CopyFrom(const WorkflowErrorExistsIdenticalStructure& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool WorkflowErrorExistsIdenticalStructure::IsInitialized() const { + return true; +} + +void WorkflowErrorExistsIdenticalStructure::Swap(WorkflowErrorExistsIdenticalStructure* other) { + if (other == this) return; + InternalSwap(other); +} +void WorkflowErrorExistsIdenticalStructure::InternalSwap(WorkflowErrorExistsIdenticalStructure* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(id_, other->id_); +} + +::google::protobuf::Metadata WorkflowErrorExistsIdenticalStructure::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// =================================================================== + +void CreateWorkflowFailureReason::InitAsDefaultInstance() { + ::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_.exists_different_structure_ = const_cast< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure*>( + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure::internal_default_instance()); + ::flyteidl::admin::_CreateWorkflowFailureReason_default_instance_.exists_identical_structure_ = const_cast< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure*>( + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::internal_default_instance()); +} +class CreateWorkflowFailureReason::HasBitSetters { + public: + static const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& exists_different_structure(const CreateWorkflowFailureReason* msg); + static const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& exists_identical_structure(const CreateWorkflowFailureReason* msg); +}; + +const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& +CreateWorkflowFailureReason::HasBitSetters::exists_different_structure(const CreateWorkflowFailureReason* msg) { + return *msg->reason_.exists_different_structure_; +} +const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& +CreateWorkflowFailureReason::HasBitSetters::exists_identical_structure(const CreateWorkflowFailureReason* msg) { + return *msg->reason_.exists_identical_structure_; +} +void CreateWorkflowFailureReason::set_allocated_exists_different_structure(::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (exists_different_structure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + exists_different_structure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exists_different_structure, submessage_arena); + } + set_has_exists_different_structure(); + reason_.exists_different_structure_ = exists_different_structure; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) +} +void CreateWorkflowFailureReason::set_allocated_exists_identical_structure(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + clear_reason(); + if (exists_identical_structure) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + exists_identical_structure = ::google::protobuf::internal::GetOwnedMessage( + message_arena, exists_identical_structure, submessage_arena); + } + set_has_exists_identical_structure(); + reason_.exists_identical_structure_ = exists_identical_structure; + } + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int CreateWorkflowFailureReason::kExistsDifferentStructureFieldNumber; +const int CreateWorkflowFailureReason::kExistsIdenticalStructureFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +CreateWorkflowFailureReason::CreateWorkflowFailureReason() + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:flyteidl.admin.CreateWorkflowFailureReason) +} +CreateWorkflowFailureReason::CreateWorkflowFailureReason(const CreateWorkflowFailureReason& from) + : ::google::protobuf::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + clear_has_reason(); + switch (from.reason_case()) { + case kExistsDifferentStructure: { + mutable_exists_different_structure()->::flyteidl::admin::WorkflowErrorExistsDifferentStructure::MergeFrom(from.exists_different_structure()); + break; + } + case kExistsIdenticalStructure: { + mutable_exists_identical_structure()->::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::MergeFrom(from.exists_identical_structure()); + break; + } + case REASON_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateWorkflowFailureReason) +} + +void CreateWorkflowFailureReason::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto.base); + clear_has_reason(); +} + +CreateWorkflowFailureReason::~CreateWorkflowFailureReason() { + // @@protoc_insertion_point(destructor:flyteidl.admin.CreateWorkflowFailureReason) + SharedDtor(); +} + +void CreateWorkflowFailureReason::SharedDtor() { + if (has_reason()) { + clear_reason(); + } +} + +void CreateWorkflowFailureReason::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CreateWorkflowFailureReason& CreateWorkflowFailureReason::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_CreateWorkflowFailureReason_flyteidl_2fadmin_2fworkflow_2eproto.base); + return *internal_default_instance(); +} + + +void CreateWorkflowFailureReason::clear_reason() { +// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.CreateWorkflowFailureReason) + switch (reason_case()) { + case kExistsDifferentStructure: { + delete reason_.exists_different_structure_; + break; + } + case kExistsIdenticalStructure: { + delete reason_.exists_identical_structure_; + break; + } + case REASON_NOT_SET: { + break; + } + } + _oneof_case_[0] = REASON_NOT_SET; +} + + +void CreateWorkflowFailureReason::Clear() { +// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_reason(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CreateWorkflowFailureReason::_InternalParse(const char* begin, const char* end, void* object, + ::google::protobuf::internal::ParseContext* ctx) { + auto msg = static_cast(object); + ::google::protobuf::int32 size; (void)size; + int depth; (void)depth; + ::google::protobuf::uint32 tag; + ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; + auto ptr = begin; + while (ptr < end) { + ptr = ::google::protobuf::io::Parse32(ptr, &tag); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + switch (tag >> 3) { + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + case 1: { + if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowErrorExistsDifferentStructure::_InternalParse; + object = msg->mutable_exists_different_structure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + case 2: { + if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; + ptr = ::google::protobuf::io::ReadSize(ptr, &size); + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); + parser_till_end = ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::_InternalParse; + object = msg->mutable_exists_identical_structure(); + if (size > end - ptr) goto len_delim_till_end; + ptr += size; + GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( + {parser_till_end, object}, ptr - size, ptr)); + break; + } + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->EndGroup(tag); + return ptr; + } + auto res = UnknownFieldParse(tag, {_InternalParse, msg}, + ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); + ptr = res.first; + GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); + if (res.second) return ptr; + } + } // switch + } // while + return ptr; +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool CreateWorkflowFailureReason::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:flyteidl.admin.CreateWorkflowFailureReason) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_exists_different_structure())); + } else { + goto handle_unusual; + } + break; + } + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, mutable_exists_identical_structure())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:flyteidl.admin.CreateWorkflowFailureReason) + return true; +failure: + // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateWorkflowFailureReason) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CreateWorkflowFailureReason::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + if (has_exists_different_structure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, HasBitSetters::exists_different_structure(this), output); + } + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + if (has_exists_identical_structure()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, HasBitSetters::exists_identical_structure(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:flyteidl.admin.CreateWorkflowFailureReason) +} + +::google::protobuf::uint8* CreateWorkflowFailureReason::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + if (has_exists_different_structure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, HasBitSetters::exists_different_structure(this), target); + } + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + if (has_exists_identical_structure()) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, HasBitSetters::exists_identical_structure(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:flyteidl.admin.CreateWorkflowFailureReason) + return target; +} + +size_t CreateWorkflowFailureReason::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateWorkflowFailureReason) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (reason_case()) { + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + case kExistsDifferentStructure: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.exists_different_structure_); + break; + } + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + case kExistsIdenticalStructure: { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reason_.exists_identical_structure_); + break; + } + case REASON_NOT_SET: { + break; + } + } + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CreateWorkflowFailureReason::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateWorkflowFailureReason) + GOOGLE_DCHECK_NE(&from, this); + const CreateWorkflowFailureReason* source = + ::google::protobuf::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateWorkflowFailureReason) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateWorkflowFailureReason) + MergeFrom(*source); + } +} + +void CreateWorkflowFailureReason::MergeFrom(const CreateWorkflowFailureReason& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateWorkflowFailureReason) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.reason_case()) { + case kExistsDifferentStructure: { + mutable_exists_different_structure()->::flyteidl::admin::WorkflowErrorExistsDifferentStructure::MergeFrom(from.exists_different_structure()); + break; + } + case kExistsIdenticalStructure: { + mutable_exists_identical_structure()->::flyteidl::admin::WorkflowErrorExistsIdenticalStructure::MergeFrom(from.exists_identical_structure()); + break; + } + case REASON_NOT_SET: { + break; + } + } +} + +void CreateWorkflowFailureReason::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateWorkflowFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CreateWorkflowFailureReason::CopyFrom(const CreateWorkflowFailureReason& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateWorkflowFailureReason) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CreateWorkflowFailureReason::IsInitialized() const { + return true; +} + +void CreateWorkflowFailureReason::Swap(CreateWorkflowFailureReason* other) { + if (other == this) return; + InternalSwap(other); +} +void CreateWorkflowFailureReason::InternalSwap(CreateWorkflowFailureReason* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(reason_, other->reason_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::google::protobuf::Metadata CreateWorkflowFailureReason::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); + return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace admin +} // namespace flyteidl +namespace google { +namespace protobuf { +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowCreateRequest >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowCreateRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowCreateResponse >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowCreateResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::Workflow* Arena::CreateMaybeMessage< ::flyteidl::admin::Workflow >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::Workflow >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowList* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowList >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowList >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowSpec >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowSpec >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowClosure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowClosure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure >(arena); +} +template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateWorkflowFailureReason* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateWorkflowFailureReason >(Arena* arena) { + return Arena::CreateInternal< ::flyteidl::admin::CreateWorkflowFailureReason >(arena); } } // namespace protobuf } // namespace google diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h index 187806a3c3..8cdffbda36 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h @@ -45,7 +45,7 @@ struct TableStruct_flyteidl_2fadmin_2fworkflow_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[6] + static const ::google::protobuf::internal::ParseTable schema[9] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -54,6 +54,9 @@ struct TableStruct_flyteidl_2fadmin_2fworkflow_2eproto { void AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto(); namespace flyteidl { namespace admin { +class CreateWorkflowFailureReason; +class CreateWorkflowFailureReasonDefaultTypeInternal; +extern CreateWorkflowFailureReasonDefaultTypeInternal _CreateWorkflowFailureReason_default_instance_; class Workflow; class WorkflowDefaultTypeInternal; extern WorkflowDefaultTypeInternal _Workflow_default_instance_; @@ -66,6 +69,12 @@ extern WorkflowCreateRequestDefaultTypeInternal _WorkflowCreateRequest_default_i class WorkflowCreateResponse; class WorkflowCreateResponseDefaultTypeInternal; extern WorkflowCreateResponseDefaultTypeInternal _WorkflowCreateResponse_default_instance_; +class WorkflowErrorExistsDifferentStructure; +class WorkflowErrorExistsDifferentStructureDefaultTypeInternal; +extern WorkflowErrorExistsDifferentStructureDefaultTypeInternal _WorkflowErrorExistsDifferentStructure_default_instance_; +class WorkflowErrorExistsIdenticalStructure; +class WorkflowErrorExistsIdenticalStructureDefaultTypeInternal; +extern WorkflowErrorExistsIdenticalStructureDefaultTypeInternal _WorkflowErrorExistsIdenticalStructure_default_instance_; class WorkflowList; class WorkflowListDefaultTypeInternal; extern WorkflowListDefaultTypeInternal _WorkflowList_default_instance_; @@ -76,10 +85,13 @@ extern WorkflowSpecDefaultTypeInternal _WorkflowSpec_default_instance_; } // namespace flyteidl namespace google { namespace protobuf { +template<> ::flyteidl::admin::CreateWorkflowFailureReason* Arena::CreateMaybeMessage<::flyteidl::admin::CreateWorkflowFailureReason>(Arena*); template<> ::flyteidl::admin::Workflow* Arena::CreateMaybeMessage<::flyteidl::admin::Workflow>(Arena*); template<> ::flyteidl::admin::WorkflowClosure* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowClosure>(Arena*); template<> ::flyteidl::admin::WorkflowCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowCreateRequest>(Arena*); template<> ::flyteidl::admin::WorkflowCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowCreateResponse>(Arena*); +template<> ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowErrorExistsDifferentStructure>(Arena*); +template<> ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowErrorExistsIdenticalStructure>(Arena*); template<> ::flyteidl::admin::WorkflowList* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowList>(Arena*); template<> ::flyteidl::admin::WorkflowSpec* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowSpec>(Arena*); } // namespace protobuf @@ -828,6 +840,379 @@ class WorkflowClosure final : mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; }; +// ------------------------------------------------------------------- + +class WorkflowErrorExistsDifferentStructure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowErrorExistsDifferentStructure) */ { + public: + WorkflowErrorExistsDifferentStructure(); + virtual ~WorkflowErrorExistsDifferentStructure(); + + WorkflowErrorExistsDifferentStructure(const WorkflowErrorExistsDifferentStructure& from); + + inline WorkflowErrorExistsDifferentStructure& operator=(const WorkflowErrorExistsDifferentStructure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowErrorExistsDifferentStructure(WorkflowErrorExistsDifferentStructure&& from) noexcept + : WorkflowErrorExistsDifferentStructure() { + *this = ::std::move(from); + } + + inline WorkflowErrorExistsDifferentStructure& operator=(WorkflowErrorExistsDifferentStructure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowErrorExistsDifferentStructure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowErrorExistsDifferentStructure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowErrorExistsDifferentStructure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + void Swap(WorkflowErrorExistsDifferentStructure* other); + friend void swap(WorkflowErrorExistsDifferentStructure& a, WorkflowErrorExistsDifferentStructure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowErrorExistsDifferentStructure* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowErrorExistsDifferentStructure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowErrorExistsDifferentStructure& from); + void MergeFrom(const WorkflowErrorExistsDifferentStructure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowErrorExistsDifferentStructure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class WorkflowErrorExistsIdenticalStructure final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) */ { + public: + WorkflowErrorExistsIdenticalStructure(); + virtual ~WorkflowErrorExistsIdenticalStructure(); + + WorkflowErrorExistsIdenticalStructure(const WorkflowErrorExistsIdenticalStructure& from); + + inline WorkflowErrorExistsIdenticalStructure& operator=(const WorkflowErrorExistsIdenticalStructure& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + WorkflowErrorExistsIdenticalStructure(WorkflowErrorExistsIdenticalStructure&& from) noexcept + : WorkflowErrorExistsIdenticalStructure() { + *this = ::std::move(from); + } + + inline WorkflowErrorExistsIdenticalStructure& operator=(WorkflowErrorExistsIdenticalStructure&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const WorkflowErrorExistsIdenticalStructure& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const WorkflowErrorExistsIdenticalStructure* internal_default_instance() { + return reinterpret_cast( + &_WorkflowErrorExistsIdenticalStructure_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + void Swap(WorkflowErrorExistsIdenticalStructure* other); + friend void swap(WorkflowErrorExistsIdenticalStructure& a, WorkflowErrorExistsIdenticalStructure& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline WorkflowErrorExistsIdenticalStructure* New() const final { + return CreateMaybeMessage(nullptr); + } + + WorkflowErrorExistsIdenticalStructure* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const WorkflowErrorExistsIdenticalStructure& from); + void MergeFrom(const WorkflowErrorExistsIdenticalStructure& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(WorkflowErrorExistsIdenticalStructure* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.core.Identifier id = 1; + bool has_id() const; + void clear_id(); + static const int kIdFieldNumber = 1; + const ::flyteidl::core::Identifier& id() const; + ::flyteidl::core::Identifier* release_id(); + ::flyteidl::core::Identifier* mutable_id(); + void set_allocated_id(::flyteidl::core::Identifier* id); + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + private: + class HasBitSetters; + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::flyteidl::core::Identifier* id_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; +// ------------------------------------------------------------------- + +class CreateWorkflowFailureReason final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateWorkflowFailureReason) */ { + public: + CreateWorkflowFailureReason(); + virtual ~CreateWorkflowFailureReason(); + + CreateWorkflowFailureReason(const CreateWorkflowFailureReason& from); + + inline CreateWorkflowFailureReason& operator=(const CreateWorkflowFailureReason& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + CreateWorkflowFailureReason(CreateWorkflowFailureReason&& from) noexcept + : CreateWorkflowFailureReason() { + *this = ::std::move(from); + } + + inline CreateWorkflowFailureReason& operator=(CreateWorkflowFailureReason&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); + } + static const CreateWorkflowFailureReason& default_instance(); + + enum ReasonCase { + kExistsDifferentStructure = 1, + kExistsIdenticalStructure = 2, + REASON_NOT_SET = 0, + }; + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CreateWorkflowFailureReason* internal_default_instance() { + return reinterpret_cast( + &_CreateWorkflowFailureReason_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + void Swap(CreateWorkflowFailureReason* other); + friend void swap(CreateWorkflowFailureReason& a, CreateWorkflowFailureReason& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline CreateWorkflowFailureReason* New() const final { + return CreateMaybeMessage(nullptr); + } + + CreateWorkflowFailureReason* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const CreateWorkflowFailureReason& from); + void MergeFrom(const CreateWorkflowFailureReason& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); + ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + #else + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(CreateWorkflowFailureReason* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + bool has_exists_different_structure() const; + void clear_exists_different_structure(); + static const int kExistsDifferentStructureFieldNumber = 1; + const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& exists_different_structure() const; + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* release_exists_different_structure(); + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* mutable_exists_different_structure(); + void set_allocated_exists_different_structure(::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure); + + // .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + bool has_exists_identical_structure() const; + void clear_exists_identical_structure(); + static const int kExistsIdenticalStructureFieldNumber = 2; + const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& exists_identical_structure() const; + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* release_exists_identical_structure(); + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* mutable_exists_identical_structure(); + void set_allocated_exists_identical_structure(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure); + + void clear_reason(); + ReasonCase reason_case() const; + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateWorkflowFailureReason) + private: + class HasBitSetters; + void set_has_exists_different_structure(); + void set_has_exists_identical_structure(); + + inline bool has_reason() const; + inline void clear_has_reason(); + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + union ReasonUnion { + ReasonUnion() {} + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* exists_different_structure_; + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* exists_identical_structure_; + } reason_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::uint32 _oneof_case_[1]; + + friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; +}; // =================================================================== @@ -1297,6 +1682,199 @@ inline void WorkflowClosure::set_allocated_created_at(::google::protobuf::Timest // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowClosure.created_at) } +// ------------------------------------------------------------------- + +// WorkflowErrorExistsDifferentStructure + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowErrorExistsDifferentStructure::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& WorkflowErrorExistsDifferentStructure::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsDifferentStructure::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsDifferentStructure::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) + return id_; +} +inline void WorkflowErrorExistsDifferentStructure::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowErrorExistsDifferentStructure.id) +} + +// ------------------------------------------------------------------- + +// WorkflowErrorExistsIdenticalStructure + +// .flyteidl.core.Identifier id = 1; +inline bool WorkflowErrorExistsIdenticalStructure::has_id() const { + return this != internal_default_instance() && id_ != nullptr; +} +inline const ::flyteidl::core::Identifier& WorkflowErrorExistsIdenticalStructure::id() const { + const ::flyteidl::core::Identifier* p = id_; + // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) + return p != nullptr ? *p : *reinterpret_cast( + &::flyteidl::core::_Identifier_default_instance_); +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsIdenticalStructure::release_id() { + // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) + + ::flyteidl::core::Identifier* temp = id_; + id_ = nullptr; + return temp; +} +inline ::flyteidl::core::Identifier* WorkflowErrorExistsIdenticalStructure::mutable_id() { + + if (id_ == nullptr) { + auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); + id_ = p; + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) + return id_; +} +inline void WorkflowErrorExistsIdenticalStructure::set_allocated_id(::flyteidl::core::Identifier* id) { + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::google::protobuf::MessageLite*>(id_); + } + if (id) { + ::google::protobuf::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + id = ::google::protobuf::internal::GetOwnedMessage( + message_arena, id, submessage_arena); + } + + } else { + + } + id_ = id; + // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id) +} + +// ------------------------------------------------------------------- + +// CreateWorkflowFailureReason + +// .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; +inline bool CreateWorkflowFailureReason::has_exists_different_structure() const { + return reason_case() == kExistsDifferentStructure; +} +inline void CreateWorkflowFailureReason::set_has_exists_different_structure() { + _oneof_case_[0] = kExistsDifferentStructure; +} +inline void CreateWorkflowFailureReason::clear_exists_different_structure() { + if (has_exists_different_structure()) { + delete reason_.exists_different_structure_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* CreateWorkflowFailureReason::release_exists_different_structure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) + if (has_exists_different_structure()) { + clear_has_reason(); + ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* temp = reason_.exists_different_structure_; + reason_.exists_different_structure_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::WorkflowErrorExistsDifferentStructure& CreateWorkflowFailureReason::exists_different_structure() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) + return has_exists_different_structure() + ? *reason_.exists_different_structure_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure*>(&::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_); +} +inline ::flyteidl::admin::WorkflowErrorExistsDifferentStructure* CreateWorkflowFailureReason::mutable_exists_different_structure() { + if (!has_exists_different_structure()) { + clear_reason(); + set_has_exists_different_structure(); + reason_.exists_different_structure_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsDifferentStructure >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure) + return reason_.exists_different_structure_; +} + +// .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; +inline bool CreateWorkflowFailureReason::has_exists_identical_structure() const { + return reason_case() == kExistsIdenticalStructure; +} +inline void CreateWorkflowFailureReason::set_has_exists_identical_structure() { + _oneof_case_[0] = kExistsIdenticalStructure; +} +inline void CreateWorkflowFailureReason::clear_exists_identical_structure() { + if (has_exists_identical_structure()) { + delete reason_.exists_identical_structure_; + clear_has_reason(); + } +} +inline ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* CreateWorkflowFailureReason::release_exists_identical_structure() { + // @@protoc_insertion_point(field_release:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) + if (has_exists_identical_structure()) { + clear_has_reason(); + ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* temp = reason_.exists_identical_structure_; + reason_.exists_identical_structure_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure& CreateWorkflowFailureReason::exists_identical_structure() const { + // @@protoc_insertion_point(field_get:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) + return has_exists_identical_structure() + ? *reason_.exists_identical_structure_ + : *reinterpret_cast< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure*>(&::flyteidl::admin::_WorkflowErrorExistsIdenticalStructure_default_instance_); +} +inline ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure* CreateWorkflowFailureReason::mutable_exists_identical_structure() { + if (!has_exists_identical_structure()) { + clear_reason(); + set_has_exists_identical_structure(); + reason_.exists_identical_structure_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowErrorExistsIdenticalStructure >( + GetArenaNoVirtual()); + } + // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure) + return reason_.exists_identical_structure_; +} + +inline bool CreateWorkflowFailureReason::has_reason() const { + return reason_case() != REASON_NOT_SET; +} +inline void CreateWorkflowFailureReason::clear_has_reason() { + _oneof_case_[0] = REASON_NOT_SET; +} +inline CreateWorkflowFailureReason::ReasonCase CreateWorkflowFailureReason::reason_case() const { + return CreateWorkflowFailureReason::ReasonCase(_oneof_case_[0]); +} #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1310,6 +1888,12 @@ inline void WorkflowClosure::set_allocated_created_at(::google::protobuf::Timest // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go index c2f723d921..f411e6895f 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go @@ -312,6 +312,167 @@ func (m *WorkflowClosure) GetCreatedAt() *timestamp.Timestamp { return nil } +// The workflow id is already used and the structure is different +type WorkflowErrorExistsDifferentStructure struct { + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowErrorExistsDifferentStructure) Reset() { *m = WorkflowErrorExistsDifferentStructure{} } +func (m *WorkflowErrorExistsDifferentStructure) String() string { return proto.CompactTextString(m) } +func (*WorkflowErrorExistsDifferentStructure) ProtoMessage() {} +func (*WorkflowErrorExistsDifferentStructure) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{6} +} + +func (m *WorkflowErrorExistsDifferentStructure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Unmarshal(m, b) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Marshal(b, m, deterministic) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Merge(m, src) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_Size() int { + return xxx_messageInfo_WorkflowErrorExistsDifferentStructure.Size(m) +} +func (m *WorkflowErrorExistsDifferentStructure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowErrorExistsDifferentStructure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowErrorExistsDifferentStructure proto.InternalMessageInfo + +func (m *WorkflowErrorExistsDifferentStructure) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +// The workflow id is already used with an identical sctructure +type WorkflowErrorExistsIdenticalStructure struct { + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *WorkflowErrorExistsIdenticalStructure) Reset() { *m = WorkflowErrorExistsIdenticalStructure{} } +func (m *WorkflowErrorExistsIdenticalStructure) String() string { return proto.CompactTextString(m) } +func (*WorkflowErrorExistsIdenticalStructure) ProtoMessage() {} +func (*WorkflowErrorExistsIdenticalStructure) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{7} +} + +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Unmarshal(m, b) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Marshal(b, m, deterministic) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Merge(m, src) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_Size() int { + return xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.Size(m) +} +func (m *WorkflowErrorExistsIdenticalStructure) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowErrorExistsIdenticalStructure.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowErrorExistsIdenticalStructure proto.InternalMessageInfo + +func (m *WorkflowErrorExistsIdenticalStructure) GetId() *core.Identifier { + if m != nil { + return m.Id + } + return nil +} + +// When a CreateWorkflowRequest failes due to matching id +type CreateWorkflowFailureReason struct { + // Types that are valid to be assigned to Reason: + // *CreateWorkflowFailureReason_ExistsDifferentStructure + // *CreateWorkflowFailureReason_ExistsIdenticalStructure + Reason isCreateWorkflowFailureReason_Reason `protobuf_oneof:"reason"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CreateWorkflowFailureReason) Reset() { *m = CreateWorkflowFailureReason{} } +func (m *CreateWorkflowFailureReason) String() string { return proto.CompactTextString(m) } +func (*CreateWorkflowFailureReason) ProtoMessage() {} +func (*CreateWorkflowFailureReason) Descriptor() ([]byte, []int) { + return fileDescriptor_827ade3f2372dc85, []int{8} +} + +func (m *CreateWorkflowFailureReason) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CreateWorkflowFailureReason.Unmarshal(m, b) +} +func (m *CreateWorkflowFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CreateWorkflowFailureReason.Marshal(b, m, deterministic) +} +func (m *CreateWorkflowFailureReason) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateWorkflowFailureReason.Merge(m, src) +} +func (m *CreateWorkflowFailureReason) XXX_Size() int { + return xxx_messageInfo_CreateWorkflowFailureReason.Size(m) +} +func (m *CreateWorkflowFailureReason) XXX_DiscardUnknown() { + xxx_messageInfo_CreateWorkflowFailureReason.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateWorkflowFailureReason proto.InternalMessageInfo + +type isCreateWorkflowFailureReason_Reason interface { + isCreateWorkflowFailureReason_Reason() +} + +type CreateWorkflowFailureReason_ExistsDifferentStructure struct { + ExistsDifferentStructure *WorkflowErrorExistsDifferentStructure `protobuf:"bytes,1,opt,name=exists_different_structure,json=existsDifferentStructure,proto3,oneof"` +} + +type CreateWorkflowFailureReason_ExistsIdenticalStructure struct { + ExistsIdenticalStructure *WorkflowErrorExistsIdenticalStructure `protobuf:"bytes,2,opt,name=exists_identical_structure,json=existsIdenticalStructure,proto3,oneof"` +} + +func (*CreateWorkflowFailureReason_ExistsDifferentStructure) isCreateWorkflowFailureReason_Reason() {} + +func (*CreateWorkflowFailureReason_ExistsIdenticalStructure) isCreateWorkflowFailureReason_Reason() {} + +func (m *CreateWorkflowFailureReason) GetReason() isCreateWorkflowFailureReason_Reason { + if m != nil { + return m.Reason + } + return nil +} + +func (m *CreateWorkflowFailureReason) GetExistsDifferentStructure() *WorkflowErrorExistsDifferentStructure { + if x, ok := m.GetReason().(*CreateWorkflowFailureReason_ExistsDifferentStructure); ok { + return x.ExistsDifferentStructure + } + return nil +} + +func (m *CreateWorkflowFailureReason) GetExistsIdenticalStructure() *WorkflowErrorExistsIdenticalStructure { + if x, ok := m.GetReason().(*CreateWorkflowFailureReason_ExistsIdenticalStructure); ok { + return x.ExistsIdenticalStructure + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*CreateWorkflowFailureReason) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*CreateWorkflowFailureReason_ExistsDifferentStructure)(nil), + (*CreateWorkflowFailureReason_ExistsIdenticalStructure)(nil), + } +} + func init() { proto.RegisterType((*WorkflowCreateRequest)(nil), "flyteidl.admin.WorkflowCreateRequest") proto.RegisterType((*WorkflowCreateResponse)(nil), "flyteidl.admin.WorkflowCreateResponse") @@ -319,37 +480,46 @@ func init() { proto.RegisterType((*WorkflowList)(nil), "flyteidl.admin.WorkflowList") proto.RegisterType((*WorkflowSpec)(nil), "flyteidl.admin.WorkflowSpec") proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.admin.WorkflowClosure") + proto.RegisterType((*WorkflowErrorExistsDifferentStructure)(nil), "flyteidl.admin.WorkflowErrorExistsDifferentStructure") + proto.RegisterType((*WorkflowErrorExistsIdenticalStructure)(nil), "flyteidl.admin.WorkflowErrorExistsIdenticalStructure") + proto.RegisterType((*CreateWorkflowFailureReason)(nil), "flyteidl.admin.CreateWorkflowFailureReason") } func init() { proto.RegisterFile("flyteidl/admin/workflow.proto", fileDescriptor_827ade3f2372dc85) } var fileDescriptor_827ade3f2372dc85 = []byte{ - // 421 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x5f, 0x6b, 0xd6, 0x30, - 0x14, 0xc6, 0x69, 0xfd, 0xb7, 0xf7, 0x6c, 0xfe, 0x0b, 0x2a, 0xb5, 0x4c, 0xdf, 0xd1, 0x0b, 0x99, - 0x17, 0x26, 0x32, 0x51, 0x19, 0x5e, 0xe9, 0xeb, 0x8d, 0xe0, 0x55, 0x36, 0x10, 0x44, 0x18, 0x6d, - 0x7a, 0x5a, 0xc3, 0xda, 0x26, 0x36, 0x29, 0xc3, 0x8f, 0xe1, 0x47, 0xf0, 0x9b, 0xca, 0xd2, 0xa4, - 0x2f, 0x2d, 0x0c, 0xd9, 0x65, 0xfa, 0xfc, 0xf2, 0x9c, 0xe7, 0x9c, 0x9c, 0xc2, 0xb3, 0xaa, 0xf9, - 0x6d, 0x51, 0x96, 0x0d, 0xcb, 0xcb, 0x56, 0x76, 0xec, 0x42, 0xf5, 0xe7, 0x55, 0xa3, 0x2e, 0xa8, - 0xee, 0x95, 0x55, 0xe4, 0x5e, 0x90, 0xa9, 0x93, 0xd3, 0xfd, 0x09, 0x17, 0xaa, 0x47, 0x26, 0x54, - 0xab, 0x65, 0x83, 0xfd, 0x48, 0xa7, 0xcf, 0xe7, 0xaa, 0x2c, 0xb1, 0xb3, 0xb2, 0x92, 0x93, 0xbe, - 0xb8, 0x3d, 0xaf, 0x95, 0xae, 0x6b, 0xa5, 0xea, 0x06, 0x99, 0x3b, 0x15, 0x43, 0xc5, 0xac, 0x6c, - 0xd1, 0xd8, 0xbc, 0xd5, 0x23, 0x90, 0x59, 0x78, 0xfc, 0xcd, 0x5f, 0xd9, 0xf4, 0x98, 0x5b, 0xe4, - 0xf8, 0x6b, 0x40, 0x63, 0xc9, 0x4b, 0x88, 0x65, 0x99, 0x44, 0x07, 0xd1, 0xe1, 0xee, 0xd1, 0x53, - 0x3a, 0x45, 0xbe, 0x2c, 0x42, 0xbf, 0x4c, 0x21, 0x78, 0x2c, 0x4b, 0xf2, 0x1a, 0x6e, 0x1a, 0x8d, - 0x22, 0x89, 0x1d, 0xbc, 0x4f, 0xe7, 0xfd, 0xd1, 0xe0, 0x7f, 0xa2, 0x51, 0x70, 0x47, 0x66, 0x09, - 0x3c, 0x59, 0x56, 0x35, 0x5a, 0x75, 0x06, 0x33, 0x0d, 0x3b, 0x41, 0xb9, 0x4e, 0x84, 0x63, 0xb8, - 0x23, 0x1a, 0x65, 0x86, 0x1e, 0x7d, 0x8a, 0xf5, 0x55, 0x29, 0x36, 0x23, 0xc6, 0x03, 0x9f, 0xfd, - 0x80, 0xbd, 0xa0, 0x7d, 0x95, 0xc6, 0x92, 0x77, 0xb0, 0x0a, 0x43, 0x34, 0x49, 0x74, 0x70, 0xe3, - 0x70, 0xf7, 0x28, 0xb9, 0xca, 0x8c, 0x6f, 0x51, 0xf2, 0x08, 0x6e, 0x59, 0x75, 0x8e, 0x9d, 0x0b, - 0xb0, 0xe2, 0xe3, 0x21, 0xfb, 0x13, 0x6d, 0xed, 0x2f, 0x07, 0x40, 0x3e, 0xc0, 0x8e, 0xc5, 0x56, - 0x37, 0xb9, 0x45, 0xdf, 0xda, 0x7a, 0xd1, 0x5a, 0xc0, 0x4f, 0x3d, 0xc6, 0xa7, 0x0b, 0xe4, 0x33, - 0xdc, 0x35, 0x43, 0x71, 0xb6, 0xcd, 0x17, 0xbb, 0x7c, 0xff, 0x75, 0xd8, 0x33, 0x43, 0x11, 0x3e, - 0x9a, 0xec, 0x6f, 0x04, 0xf7, 0x17, 0xe3, 0x20, 0x27, 0xf0, 0xd0, 0x2f, 0x5e, 0x39, 0xd9, 0xfb, - 0x7c, 0x2f, 0x16, 0xee, 0x1b, 0xcf, 0x2d, 0x27, 0xfa, 0x40, 0x2c, 0x04, 0x72, 0x0c, 0x20, 0xdc, - 0xf3, 0x96, 0x67, 0xb9, 0xf5, 0x0f, 0x93, 0xd2, 0x71, 0x25, 0x69, 0x58, 0x49, 0x7a, 0x1a, 0x56, - 0x92, 0xaf, 0x3c, 0xfd, 0xd1, 0x7e, 0x7a, 0xff, 0xfd, 0x6d, 0x2d, 0xed, 0xcf, 0xa1, 0xa0, 0x42, - 0xb5, 0xcc, 0x05, 0x50, 0x7d, 0xcd, 0xa6, 0x65, 0xaf, 0xb1, 0x63, 0xba, 0x78, 0x55, 0x2b, 0x36, - 0xff, 0xd9, 0x8a, 0xdb, 0xce, 0xf7, 0xcd, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2a, 0xc9, 0x42, - 0xe2, 0x85, 0x03, 0x00, 0x00, + // 528 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5f, 0x6b, 0xd4, 0x4e, + 0x14, 0xfd, 0x6d, 0x7e, 0x5a, 0x77, 0x6f, 0xeb, 0xbf, 0xa0, 0x12, 0xd7, 0xea, 0x96, 0x80, 0x52, + 0x1f, 0x9c, 0x48, 0xa5, 0x4a, 0xf1, 0xc9, 0x6e, 0x2b, 0x0a, 0x3e, 0xcd, 0x16, 0x04, 0x11, 0x96, + 0x64, 0x72, 0x13, 0x87, 0x26, 0x99, 0x38, 0x33, 0xa1, 0xfa, 0x31, 0x7c, 0xf0, 0x03, 0xf8, 0x4d, + 0x65, 0x27, 0x33, 0x59, 0x37, 0x65, 0xb5, 0xfa, 0x98, 0x9c, 0x33, 0xe7, 0x9c, 0x7b, 0xe7, 0x30, + 0x70, 0x3f, 0x2b, 0xbe, 0x6a, 0xe4, 0x69, 0x11, 0xc5, 0x69, 0xc9, 0xab, 0xe8, 0x4c, 0xc8, 0xd3, + 0xac, 0x10, 0x67, 0xa4, 0x96, 0x42, 0x0b, 0xff, 0x9a, 0x83, 0x89, 0x81, 0xc7, 0xdb, 0x1d, 0x9d, + 0x09, 0x89, 0x11, 0x13, 0x65, 0xcd, 0x0b, 0x94, 0x2d, 0x7b, 0xfc, 0x60, 0x15, 0xe5, 0x29, 0x56, + 0x9a, 0x67, 0xbc, 0xc3, 0x7b, 0xa7, 0x57, 0xbd, 0xc6, 0x93, 0x5c, 0x88, 0xbc, 0xc0, 0xc8, 0x7c, + 0x25, 0x4d, 0x16, 0x69, 0x5e, 0xa2, 0xd2, 0x71, 0x59, 0xb7, 0x84, 0x50, 0xc3, 0xed, 0xf7, 0xf6, + 0xc8, 0x54, 0x62, 0xac, 0x91, 0xe2, 0xe7, 0x06, 0x95, 0xf6, 0x1f, 0x83, 0xc7, 0xd3, 0x60, 0xb0, + 0x33, 0xd8, 0xdd, 0xdc, 0xbb, 0x4b, 0xba, 0xc8, 0x0b, 0x13, 0xf2, 0xb6, 0x0b, 0x41, 0x3d, 0x9e, + 0xfa, 0x4f, 0xe1, 0x92, 0xaa, 0x91, 0x05, 0x9e, 0x21, 0x6f, 0x93, 0xd5, 0xf9, 0x88, 0xd3, 0x9f, + 0xd5, 0xc8, 0xa8, 0x61, 0x86, 0x01, 0xdc, 0xe9, 0xbb, 0xaa, 0x5a, 0x54, 0x0a, 0xc3, 0x1a, 0x86, + 0x0e, 0xf9, 0x9b, 0x08, 0x07, 0x70, 0x85, 0x15, 0x42, 0x35, 0x12, 0x6d, 0x8a, 0xc9, 0xba, 0x14, + 0xd3, 0x96, 0x46, 0x1d, 0x3f, 0xfc, 0x08, 0x5b, 0x0e, 0x7b, 0xc7, 0x95, 0xf6, 0x9f, 0xc3, 0xc8, + 0x2d, 0x51, 0x05, 0x83, 0x9d, 0xff, 0x77, 0x37, 0xf7, 0x82, 0x75, 0x62, 0x74, 0x49, 0xf5, 0x6f, + 0xc1, 0x65, 0x2d, 0x4e, 0xb1, 0x32, 0x01, 0x46, 0xb4, 0xfd, 0x08, 0xbf, 0x0d, 0x96, 0xf2, 0x8b, + 0x05, 0xf8, 0x2f, 0x61, 0xa8, 0xb1, 0xac, 0x8b, 0x58, 0xa3, 0x1d, 0x6d, 0xd2, 0x1b, 0xcd, 0xd1, + 0x4f, 0x2c, 0x8d, 0x76, 0x07, 0xfc, 0x23, 0xb8, 0xaa, 0x9a, 0x64, 0xbe, 0xcc, 0xe7, 0x99, 0x7c, + 0x7f, 0x54, 0xd8, 0x52, 0x4d, 0xe2, 0x7e, 0xaa, 0xf0, 0xc7, 0x00, 0xae, 0xf7, 0xd6, 0xe1, 0xcf, + 0xe0, 0xa6, 0x2d, 0x5e, 0xda, 0xc9, 0xdb, 0x7c, 0x8f, 0x7a, 0xea, 0x53, 0xcb, 0xeb, 0x6f, 0xf4, + 0x06, 0xeb, 0x01, 0xfe, 0x01, 0x00, 0x33, 0xd7, 0x9b, 0xce, 0x63, 0x6d, 0x2f, 0x66, 0x4c, 0xda, + 0x4a, 0x12, 0x57, 0x49, 0x72, 0xe2, 0x2a, 0x49, 0x47, 0x96, 0xfd, 0x4a, 0x87, 0x14, 0x1e, 0x3a, + 0x99, 0x63, 0x29, 0x85, 0x3c, 0xfe, 0xc2, 0x95, 0x56, 0x47, 0x3c, 0xcb, 0x50, 0x62, 0xa5, 0x67, + 0x5a, 0x36, 0x4c, 0x2f, 0x82, 0x5f, 0xbc, 0x24, 0x6b, 0x34, 0x5b, 0x12, 0x8b, 0x8b, 0x7f, 0xd2, + 0xfc, 0xee, 0xc1, 0xbd, 0xb6, 0xc2, 0x4e, 0xfa, 0x75, 0xcc, 0x8b, 0xc5, 0x3a, 0x30, 0x56, 0xa2, + 0xf2, 0x1b, 0x18, 0xa3, 0xb1, 0x99, 0xa7, 0x2e, 0xfb, 0x5c, 0x39, 0x23, 0x6b, 0xb1, 0xbf, 0xae, + 0x5e, 0xbf, 0x9d, 0xfc, 0xcd, 0x7f, 0x34, 0xc0, 0x75, 0x5b, 0x59, 0xda, 0x72, 0x37, 0xde, 0x2f, + 0xb6, 0xde, 0x85, 0x6d, 0xcf, 0x2f, 0x67, 0x69, 0x7b, 0x1e, 0x3b, 0x1c, 0xc2, 0x86, 0x34, 0x73, + 0x1f, 0xbe, 0xf8, 0xb0, 0x9f, 0x73, 0xfd, 0xa9, 0x49, 0x08, 0x13, 0x65, 0x64, 0x8c, 0x84, 0xcc, + 0xa3, 0xee, 0xb1, 0xca, 0xb1, 0x8a, 0xea, 0xe4, 0x49, 0x2e, 0xa2, 0xd5, 0xc7, 0x32, 0xd9, 0x30, + 0xbd, 0x78, 0xf6, 0x33, 0x00, 0x00, 0xff, 0xff, 0x13, 0xc5, 0xff, 0xe5, 0x45, 0x05, 0x00, 0x00, } diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go index a7ea425adc..1f750efa91 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.validate.go @@ -530,3 +530,255 @@ var _ interface { Cause() error ErrorName() string } = WorkflowClosureValidationError{} + +// Validate checks the field values on WorkflowErrorExistsDifferentStructure +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *WorkflowErrorExistsDifferentStructure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowErrorExistsDifferentStructureValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowErrorExistsDifferentStructureValidationError is the validation error +// returned by WorkflowErrorExistsDifferentStructure.Validate if the +// designated constraints aren't met. +type WorkflowErrorExistsDifferentStructureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowErrorExistsDifferentStructureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowErrorExistsDifferentStructureValidationError) ErrorName() string { + return "WorkflowErrorExistsDifferentStructureValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowErrorExistsDifferentStructureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowErrorExistsDifferentStructure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowErrorExistsDifferentStructureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowErrorExistsDifferentStructureValidationError{} + +// Validate checks the field values on WorkflowErrorExistsIdenticalStructure +// with the rules defined in the proto definition for this message. If any +// rules are violated, an error is returned. +func (m *WorkflowErrorExistsIdenticalStructure) Validate() error { + if m == nil { + return nil + } + + if v, ok := interface{}(m.GetId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return WorkflowErrorExistsIdenticalStructureValidationError{ + field: "Id", + reason: "embedded message failed validation", + cause: err, + } + } + } + + return nil +} + +// WorkflowErrorExistsIdenticalStructureValidationError is the validation error +// returned by WorkflowErrorExistsIdenticalStructure.Validate if the +// designated constraints aren't met. +type WorkflowErrorExistsIdenticalStructureValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e WorkflowErrorExistsIdenticalStructureValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e WorkflowErrorExistsIdenticalStructureValidationError) ErrorName() string { + return "WorkflowErrorExistsIdenticalStructureValidationError" +} + +// Error satisfies the builtin error interface +func (e WorkflowErrorExistsIdenticalStructureValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sWorkflowErrorExistsIdenticalStructure.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = WorkflowErrorExistsIdenticalStructureValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = WorkflowErrorExistsIdenticalStructureValidationError{} + +// Validate checks the field values on CreateWorkflowFailureReason with the +// rules defined in the proto definition for this message. If any rules are +// violated, an error is returned. +func (m *CreateWorkflowFailureReason) Validate() error { + if m == nil { + return nil + } + + switch m.Reason.(type) { + + case *CreateWorkflowFailureReason_ExistsDifferentStructure: + + if v, ok := interface{}(m.GetExistsDifferentStructure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateWorkflowFailureReasonValidationError{ + field: "ExistsDifferentStructure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CreateWorkflowFailureReason_ExistsIdenticalStructure: + + if v, ok := interface{}(m.GetExistsIdenticalStructure()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateWorkflowFailureReasonValidationError{ + field: "ExistsIdenticalStructure", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + return nil +} + +// CreateWorkflowFailureReasonValidationError is the validation error returned +// by CreateWorkflowFailureReason.Validate if the designated constraints +// aren't met. +type CreateWorkflowFailureReasonValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateWorkflowFailureReasonValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateWorkflowFailureReasonValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateWorkflowFailureReasonValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateWorkflowFailureReasonValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateWorkflowFailureReasonValidationError) ErrorName() string { + return "CreateWorkflowFailureReasonValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateWorkflowFailureReasonValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateWorkflowFailureReason.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateWorkflowFailureReasonValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateWorkflowFailureReasonValidationError{} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java index 50c0869ce1..eb37c37b97 100644 --- a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java +++ b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java @@ -5555,6 +5555,2156 @@ public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForTy } + public interface WorkflowErrorExistsDifferentStructureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The workflow id is already used and the structure is different
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsDifferentStructure} + */ + public static final class WorkflowErrorExistsDifferentStructure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + WorkflowErrorExistsDifferentStructureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowErrorExistsDifferentStructure.newBuilder() to construct. + private WorkflowErrorExistsDifferentStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowErrorExistsDifferentStructure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowErrorExistsDifferentStructure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure other = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The workflow id is already used and the structure is different
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsDifferentStructure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure result = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowErrorExistsDifferentStructure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowErrorExistsDifferentStructure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface WorkflowErrorExistsIdenticalStructureOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.core.Identifier id = 1; + */ + boolean hasId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.Identifier getId(); + /** + * .flyteidl.core.Identifier id = 1; + */ + flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); + } + /** + *
+   * The workflow id is already used with an identical sctructure
+   * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsIdenticalStructure} + */ + public static final class WorkflowErrorExistsIdenticalStructure extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + WorkflowErrorExistsIdenticalStructureOrBuilder { + private static final long serialVersionUID = 0L; + // Use WorkflowErrorExistsIdenticalStructure.newBuilder() to construct. + private WorkflowErrorExistsIdenticalStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private WorkflowErrorExistsIdenticalStructure() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private WorkflowErrorExistsIdenticalStructure( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; + if (id_ != null) { + subBuilder = id_.toBuilder(); + } + id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(id_); + id_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private flyteidl.core.IdentifierOuterClass.Identifier id_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + return getId(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (id_ != null) { + output.writeMessage(1, getId()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (id_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getId()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure other = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) obj; + + if (hasId() != other.hasId()) return false; + if (hasId()) { + if (!getId() + .equals(other.getId())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasId()) { + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The workflow id is already used with an identical sctructure
+     * 
+ * + * Protobuf type {@code flyteidl.admin.WorkflowErrorExistsIdenticalStructure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.class, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (idBuilder_ == null) { + id_ = null; + } else { + id_ = null; + idBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure build() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure buildPartial() { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure result = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure(this); + if (idBuilder_ == null) { + result.id_ = id_; + } else { + result.id_ = idBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure other) { + if (other == flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance()) return this; + if (other.hasId()) { + mergeId(other.getId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private flyteidl.core.IdentifierOuterClass.Identifier id_; + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> idBuilder_; + /** + * .flyteidl.core.Identifier id = 1; + */ + public boolean hasId() { + return idBuilder_ != null || id_ != null; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier getId() { + if (idBuilder_ == null) { + return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } else { + return idBuilder_.getMessage(); + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + onChanged(); + } else { + idBuilder_.setMessage(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder setId( + flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { + if (idBuilder_ == null) { + id_ = builderForValue.build(); + onChanged(); + } else { + idBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder mergeId(flyteidl.core.IdentifierOuterClass.Identifier value) { + if (idBuilder_ == null) { + if (id_ != null) { + id_ = + flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(id_).mergeFrom(value).buildPartial(); + } else { + id_ = value; + } + onChanged(); + } else { + idBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public Builder clearId() { + if (idBuilder_ == null) { + id_ = null; + onChanged(); + } else { + id_ = null; + idBuilder_ = null; + } + + return this; + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { + + onChanged(); + return getIdFieldBuilder().getBuilder(); + } + /** + * .flyteidl.core.Identifier id = 1; + */ + public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { + if (idBuilder_ != null) { + return idBuilder_.getMessageOrBuilder(); + } else { + return id_ == null ? + flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; + } + } + /** + * .flyteidl.core.Identifier id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> + getIdFieldBuilder() { + if (idBuilder_ == null) { + idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( + getId(), + getParentForChildren(), + isClean()); + id_ = null; + } + return idBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + private static final flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure(); + } + + public static flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkflowErrorExistsIdenticalStructure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WorkflowErrorExistsIdenticalStructure(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CreateWorkflowFailureReasonOrBuilder extends + // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateWorkflowFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + boolean hasExistsDifferentStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getExistsDifferentStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder getExistsDifferentStructureOrBuilder(); + + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + boolean hasExistsIdenticalStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getExistsIdenticalStructure(); + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder getExistsIdenticalStructureOrBuilder(); + + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.ReasonCase getReasonCase(); + } + /** + *
+   * When a CreateWorkflowRequest failes due to matching id
+   * 
+ * + * Protobuf type {@code flyteidl.admin.CreateWorkflowFailureReason} + */ + public static final class CreateWorkflowFailureReason extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateWorkflowFailureReason) + CreateWorkflowFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateWorkflowFailureReason.newBuilder() to construct. + private CreateWorkflowFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateWorkflowFailureReason() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateWorkflowFailureReason( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder subBuilder = null; + if (reasonCase_ == 1) { + subBuilder = ((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 1; + break; + } + case 18: { + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder subBuilder = null; + if (reasonCase_ == 2) { + subBuilder = ((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_).toBuilder(); + } + reason_ = + input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_); + reason_ = subBuilder.buildPartial(); + } + reasonCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.class, flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + public enum ReasonCase + implements com.google.protobuf.Internal.EnumLite { + EXISTS_DIFFERENT_STRUCTURE(1), + EXISTS_IDENTICAL_STRUCTURE(2), + REASON_NOT_SET(0); + private final int value; + private ReasonCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 1: return EXISTS_DIFFERENT_STRUCTURE; + case 2: return EXISTS_IDENTICAL_STRUCTURE; + case 0: return REASON_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public static final int EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER = 1; + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public boolean hasExistsDifferentStructure() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getExistsDifferentStructure() { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder getExistsDifferentStructureOrBuilder() { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + + public static final int EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER = 2; + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public boolean hasExistsIdenticalStructure() { + return reasonCase_ == 2; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getExistsIdenticalStructure() { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder getExistsIdenticalStructureOrBuilder() { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (reasonCase_ == 1) { + output.writeMessage(1, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_); + } + if (reasonCase_ == 2) { + output.writeMessage(2, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reasonCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_); + } + if (reasonCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason)) { + return super.equals(obj); + } + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason other = (flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason) obj; + + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 1: + if (!getExistsDifferentStructure() + .equals(other.getExistsDifferentStructure())) return false; + break; + case 2: + if (!getExistsIdenticalStructure() + .equals(other.getExistsIdenticalStructure())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (reasonCase_) { + case 1: + hash = (37 * hash) + EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getExistsDifferentStructure().hashCode(); + break; + case 2: + hash = (37 * hash) + EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER; + hash = (53 * hash) + getExistsIdenticalStructure().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * When a CreateWorkflowRequest failes due to matching id
+     * 
+ * + * Protobuf type {@code flyteidl.admin.CreateWorkflowFailureReason} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateWorkflowFailureReason) + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.class, flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.Builder.class); + } + + // Construct using flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason getDefaultInstanceForType() { + return flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason build() { + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason buildPartial() { + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason result = new flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason(this); + if (reasonCase_ == 1) { + if (existsDifferentStructureBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = existsDifferentStructureBuilder_.build(); + } + } + if (reasonCase_ == 2) { + if (existsIdenticalStructureBuilder_ == null) { + result.reason_ = reason_; + } else { + result.reason_ = existsIdenticalStructureBuilder_.build(); + } + } + result.reasonCase_ = reasonCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason) { + return mergeFrom((flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason other) { + if (other == flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason.getDefaultInstance()) return this; + switch (other.getReasonCase()) { + case EXISTS_DIFFERENT_STRUCTURE: { + mergeExistsDifferentStructure(other.getExistsDifferentStructure()); + break; + } + case EXISTS_IDENTICAL_STRUCTURE: { + mergeExistsIdenticalStructure(other.getExistsIdenticalStructure()); + break; + } + case REASON_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int reasonCase_ = 0; + private java.lang.Object reason_; + public ReasonCase + getReasonCase() { + return ReasonCase.forNumber( + reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder> existsDifferentStructureBuilder_; + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public boolean hasExistsDifferentStructure() { + return reasonCase_ == 1; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure getExistsDifferentStructure() { + if (existsDifferentStructureBuilder_ == null) { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } else { + if (reasonCase_ == 1) { + return existsDifferentStructureBuilder_.getMessage(); + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder setExistsDifferentStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure value) { + if (existsDifferentStructureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + existsDifferentStructureBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder setExistsDifferentStructure( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder builderForValue) { + if (existsDifferentStructureBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + existsDifferentStructureBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder mergeExistsDifferentStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure value) { + if (existsDifferentStructureBuilder_ == null) { + if (reasonCase_ == 1 && + reason_ != flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance()) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.newBuilder((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 1) { + existsDifferentStructureBuilder_.mergeFrom(value); + } + existsDifferentStructureBuilder_.setMessage(value); + } + reasonCase_ = 1; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public Builder clearExistsDifferentStructure() { + if (existsDifferentStructureBuilder_ == null) { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 1) { + reasonCase_ = 0; + reason_ = null; + } + existsDifferentStructureBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder getExistsDifferentStructureBuilder() { + return getExistsDifferentStructureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder getExistsDifferentStructureOrBuilder() { + if ((reasonCase_ == 1) && (existsDifferentStructureBuilder_ != null)) { + return existsDifferentStructureBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 1) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder> + getExistsDifferentStructureFieldBuilder() { + if (existsDifferentStructureBuilder_ == null) { + if (!(reasonCase_ == 1)) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.getDefaultInstance(); + } + existsDifferentStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructureOrBuilder>( + (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsDifferentStructure) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 1; + onChanged();; + return existsDifferentStructureBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder> existsIdenticalStructureBuilder_; + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public boolean hasExistsIdenticalStructure() { + return reasonCase_ == 2; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure getExistsIdenticalStructure() { + if (existsIdenticalStructureBuilder_ == null) { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } else { + if (reasonCase_ == 2) { + return existsIdenticalStructureBuilder_.getMessage(); + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder setExistsIdenticalStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure value) { + if (existsIdenticalStructureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + existsIdenticalStructureBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder setExistsIdenticalStructure( + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder builderForValue) { + if (existsIdenticalStructureBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + existsIdenticalStructureBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder mergeExistsIdenticalStructure(flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure value) { + if (existsIdenticalStructureBuilder_ == null) { + if (reasonCase_ == 2 && + reason_ != flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance()) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.newBuilder((flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_) + .mergeFrom(value).buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 2) { + existsIdenticalStructureBuilder_.mergeFrom(value); + } + existsIdenticalStructureBuilder_.setMessage(value); + } + reasonCase_ = 2; + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public Builder clearExistsIdenticalStructure() { + if (existsIdenticalStructureBuilder_ == null) { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 2) { + reasonCase_ = 0; + reason_ = null; + } + existsIdenticalStructureBuilder_.clear(); + } + return this; + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder getExistsIdenticalStructureBuilder() { + return getExistsIdenticalStructureFieldBuilder().getBuilder(); + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + public flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder getExistsIdenticalStructureOrBuilder() { + if ((reasonCase_ == 2) && (existsIdenticalStructureBuilder_ != null)) { + return existsIdenticalStructureBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 2) { + return (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_; + } + return flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + } + /** + * .flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder> + getExistsIdenticalStructureFieldBuilder() { + if (existsIdenticalStructureBuilder_ == null) { + if (!(reasonCase_ == 2)) { + reason_ = flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.getDefaultInstance(); + } + existsIdenticalStructureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructureOrBuilder>( + (flyteidl.admin.WorkflowOuterClass.WorkflowErrorExistsIdenticalStructure) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 2; + onChanged();; + return existsIdenticalStructureBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:flyteidl.admin.CreateWorkflowFailureReason) + } + + // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateWorkflowFailureReason) + private static final flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason(); + } + + public static flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateWorkflowFailureReason(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public flyteidl.admin.WorkflowOuterClass.CreateWorkflowFailureReason getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; private static final @@ -5585,6 +7735,21 @@ public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForTy private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -5612,9 +7777,18 @@ public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForTy "mplate\"\204\001\n\017WorkflowClosure\022A\n\021compiled_w" + "orkflow\030\001 \001(\0132&.flyteidl.core.CompiledWo" + "rkflowClosure\022.\n\ncreated_at\030\002 \001(\0132\032.goog" + - "le.protobuf.TimestampB7Z5github.com/flyt" + - "eorg/flyteidl/gen/pb-go/flyteidl/adminb\006" + - "proto3" + "le.protobuf.Timestamp\"N\n%WorkflowErrorEx" + + "istsDifferentStructure\022%\n\002id\030\001 \001(\0132\031.fly" + + "teidl.core.Identifier\"N\n%WorkflowErrorEx" + + "istsIdenticalStructure\022%\n\002id\030\001 \001(\0132\031.fly" + + "teidl.core.Identifier\"\341\001\n\033CreateWorkflow" + + "FailureReason\022[\n\032exists_different_struct" + + "ure\030\001 \001(\01325.flyteidl.admin.WorkflowError" + + "ExistsDifferentStructureH\000\022[\n\032exists_ide" + + "ntical_structure\030\002 \001(\01325.flyteidl.admin." + + "WorkflowErrorExistsIdenticalStructureH\000B" + + "\010\n\006reasonB7Z5github.com/flyteorg/flyteid" + + "l/gen/pb-go/flyteidl/adminb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -5668,6 +7842,24 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_flyteidl_admin_WorkflowClosure_descriptor, new java.lang.String[] { "CompiledWorkflow", "CreatedAt", }); + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowErrorExistsDifferentStructure_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_WorkflowErrorExistsIdenticalStructure_descriptor, + new java.lang.String[] { "Id", }); + internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_flyteidl_admin_CreateWorkflowFailureReason_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_flyteidl_admin_CreateWorkflowFailureReason_descriptor, + new java.lang.String[] { "ExistsDifferentStructure", "ExistsIdenticalStructure", "Reason", }); flyteidl.core.Compiler.getDescriptor(); flyteidl.core.IdentifierOuterClass.getDescriptor(); flyteidl.core.Workflow.getDescriptor(); diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 2e27842e92..9143e540c5 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -15505,6 +15505,171 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } + /** Properties of a WorkflowErrorExistsDifferentStructure. */ + interface IWorkflowErrorExistsDifferentStructure { + + /** WorkflowErrorExistsDifferentStructure id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowErrorExistsDifferentStructure. */ + class WorkflowErrorExistsDifferentStructure implements IWorkflowErrorExistsDifferentStructure { + + /** + * Constructs a new WorkflowErrorExistsDifferentStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure); + + /** WorkflowErrorExistsDifferentStructure id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowErrorExistsDifferentStructure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure): flyteidl.admin.WorkflowErrorExistsDifferentStructure; + + /** + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * @param message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowErrorExistsDifferentStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowErrorExistsDifferentStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsDifferentStructure; + + /** + * Verifies a WorkflowErrorExistsDifferentStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowErrorExistsIdenticalStructure. */ + interface IWorkflowErrorExistsIdenticalStructure { + + /** WorkflowErrorExistsIdenticalStructure id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowErrorExistsIdenticalStructure. */ + class WorkflowErrorExistsIdenticalStructure implements IWorkflowErrorExistsIdenticalStructure { + + /** + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure); + + /** WorkflowErrorExistsIdenticalStructure id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowErrorExistsIdenticalStructure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; + + /** + * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * @param message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowErrorExistsIdenticalStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; + + /** + * Verifies a WorkflowErrorExistsIdenticalStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateWorkflowFailureReason. */ + interface ICreateWorkflowFailureReason { + + /** CreateWorkflowFailureReason existsDifferentStructure */ + existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); + + /** CreateWorkflowFailureReason existsIdenticalStructure */ + existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); + } + + /** Represents a CreateWorkflowFailureReason. */ + class CreateWorkflowFailureReason implements ICreateWorkflowFailureReason { + + /** + * Constructs a new CreateWorkflowFailureReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateWorkflowFailureReason); + + /** CreateWorkflowFailureReason existsDifferentStructure. */ + public existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); + + /** CreateWorkflowFailureReason existsIdenticalStructure. */ + public existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); + + /** CreateWorkflowFailureReason reason. */ + public reason?: ("existsDifferentStructure"|"existsIdenticalStructure"); + + /** + * Creates a new CreateWorkflowFailureReason instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateWorkflowFailureReason instance + */ + public static create(properties?: flyteidl.admin.ICreateWorkflowFailureReason): flyteidl.admin.CreateWorkflowFailureReason; + + /** + * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. + * @param message CreateWorkflowFailureReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateWorkflowFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateWorkflowFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateWorkflowFailureReason; + + /** + * Verifies a CreateWorkflowFailureReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + /** Properties of a WorkflowAttributes. */ interface IWorkflowAttributes { diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index fe1ad5fe6f..ee34fe99e4 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -36926,6 +36926,384 @@ export const flyteidl = $root.flyteidl = (() => { return WorkflowClosure; })(); + admin.WorkflowErrorExistsDifferentStructure = (function() { + + /** + * Properties of a WorkflowErrorExistsDifferentStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsDifferentStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id + */ + + /** + * Constructs a new WorkflowErrorExistsDifferentStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsDifferentStructure. + * @implements IWorkflowErrorExistsDifferentStructure + * @constructor + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + */ + function WorkflowErrorExistsDifferentStructure(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowErrorExistsDifferentStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @instance + */ + WorkflowErrorExistsDifferentStructure.prototype.id = null; + + /** + * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance + */ + WorkflowErrorExistsDifferentStructure.create = function create(properties) { + return new WorkflowErrorExistsDifferentStructure(properties); + }; + + /** + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowErrorExistsDifferentStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowErrorExistsDifferentStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowErrorExistsDifferentStructure message. + * @function verify + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowErrorExistsDifferentStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowErrorExistsDifferentStructure; + })(); + + admin.WorkflowErrorExistsIdenticalStructure = (function() { + + /** + * Properties of a WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsIdenticalStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id + */ + + /** + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsIdenticalStructure. + * @implements IWorkflowErrorExistsIdenticalStructure + * @constructor + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + */ + function WorkflowErrorExistsIdenticalStructure(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowErrorExistsIdenticalStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @instance + */ + WorkflowErrorExistsIdenticalStructure.prototype.id = null; + + /** + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance + */ + WorkflowErrorExistsIdenticalStructure.create = function create(properties) { + return new WorkflowErrorExistsIdenticalStructure(properties); + }; + + /** + * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure} message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowErrorExistsIdenticalStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowErrorExistsIdenticalStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowErrorExistsIdenticalStructure message. + * @function verify + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowErrorExistsIdenticalStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + let error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowErrorExistsIdenticalStructure; + })(); + + admin.CreateWorkflowFailureReason = (function() { + + /** + * Properties of a CreateWorkflowFailureReason. + * @memberof flyteidl.admin + * @interface ICreateWorkflowFailureReason + * @property {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null} [existsDifferentStructure] CreateWorkflowFailureReason existsDifferentStructure + * @property {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null} [existsIdenticalStructure] CreateWorkflowFailureReason existsIdenticalStructure + */ + + /** + * Constructs a new CreateWorkflowFailureReason. + * @memberof flyteidl.admin + * @classdesc Represents a CreateWorkflowFailureReason. + * @implements ICreateWorkflowFailureReason + * @constructor + * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + */ + function CreateWorkflowFailureReason(properties) { + if (properties) + for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateWorkflowFailureReason existsDifferentStructure. + * @member {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null|undefined} existsDifferentStructure + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + CreateWorkflowFailureReason.prototype.existsDifferentStructure = null; + + /** + * CreateWorkflowFailureReason existsIdenticalStructure. + * @member {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null|undefined} existsIdenticalStructure + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + CreateWorkflowFailureReason.prototype.existsIdenticalStructure = null; + + // OneOf field names bound to virtual getters and setters + let $oneOfFields; + + /** + * CreateWorkflowFailureReason reason. + * @member {"existsDifferentStructure"|"existsIdenticalStructure"|undefined} reason + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + Object.defineProperty(CreateWorkflowFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["existsDifferentStructure", "existsIdenticalStructure"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CreateWorkflowFailureReason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason instance + */ + CreateWorkflowFailureReason.create = function create(properties) { + return new CreateWorkflowFailureReason(properties); + }; + + /** + * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {flyteidl.admin.ICreateWorkflowFailureReason} message CreateWorkflowFailureReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateWorkflowFailureReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) + $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.encode(message.existsDifferentStructure, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) + $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.encode(message.existsIdenticalStructure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateWorkflowFailureReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateWorkflowFailureReason(); + while (reader.pos < end) { + let tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.existsDifferentStructure = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.decode(reader, reader.uint32()); + break; + case 2: + message.existsIdenticalStructure = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateWorkflowFailureReason message. + * @function verify + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateWorkflowFailureReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + let properties = {}; + if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) { + properties.reason = 1; + { + let error = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify(message.existsDifferentStructure); + if (error) + return "existsDifferentStructure." + error; + } + } + if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) { + if (properties.reason === 1) + return "reason: multiple values"; + properties.reason = 1; + { + let error = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify(message.existsIdenticalStructure); + if (error) + return "existsIdenticalStructure." + error; + } + } + return null; + }; + + return CreateWorkflowFailureReason; + })(); + admin.WorkflowAttributes = (function() { /** diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py index 908941081d..4f0a5adcb4 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py @@ -24,7 +24,7 @@ package='flyteidl.admin', syntax='proto3', serialized_options=_b('Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin'), - serialized_pb=_b('\n\x1d\x66lyteidl/admin/workflow.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"j\n\x15WorkflowCreateRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12*\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpec\"\x18\n\x16WorkflowCreateResponse\"c\n\x08Workflow\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12\x30\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosure\"J\n\x0cWorkflowList\x12+\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.Workflow\x12\r\n\x05token\x18\x02 \x01(\t\"y\n\x0cWorkflowSpec\x12\x31\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\x12\x36\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\"\x84\x01\n\x0fWorkflowClosure\x12\x41\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosure\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB7Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') + serialized_pb=_b('\n\x1d\x66lyteidl/admin/workflow.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"j\n\x15WorkflowCreateRequest\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12*\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpec\"\x18\n\x16WorkflowCreateResponse\"c\n\x08Workflow\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\x12\x30\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosure\"J\n\x0cWorkflowList\x12+\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.Workflow\x12\r\n\x05token\x18\x02 \x01(\t\"y\n\x0cWorkflowSpec\x12\x31\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\x12\x36\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplate\"\x84\x01\n\x0fWorkflowClosure\x12\x41\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosure\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"N\n%WorkflowErrorExistsDifferentStructure\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\"N\n%WorkflowErrorExistsIdenticalStructure\x12%\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.Identifier\"\xe1\x01\n\x1b\x43reateWorkflowFailureReason\x12[\n\x1a\x65xists_different_structure\x18\x01 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsDifferentStructureH\x00\x12[\n\x1a\x65xists_identical_structure\x18\x02 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsIdenticalStructureH\x00\x42\x08\n\x06reasonB7Z5github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/adminb\x06proto3') , dependencies=[flyteidl_dot_core_dot_compiler__pb2.DESCRIPTOR,flyteidl_dot_core_dot_identifier__pb2.DESCRIPTOR,flyteidl_dot_core_dot_workflow__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) @@ -244,6 +244,109 @@ serialized_end=741, ) + +_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE = _descriptor.Descriptor( + name='WorkflowErrorExistsDifferentStructure', + full_name='flyteidl.admin.WorkflowErrorExistsDifferentStructure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.WorkflowErrorExistsDifferentStructure.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=743, + serialized_end=821, +) + + +_WORKFLOWERROREXISTSIDENTICALSTRUCTURE = _descriptor.Descriptor( + name='WorkflowErrorExistsIdenticalStructure', + full_name='flyteidl.admin.WorkflowErrorExistsIdenticalStructure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=823, + serialized_end=901, +) + + +_CREATEWORKFLOWFAILUREREASON = _descriptor.Descriptor( + name='CreateWorkflowFailureReason', + full_name='flyteidl.admin.CreateWorkflowFailureReason', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='exists_different_structure', full_name='flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='exists_identical_structure', full_name='flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='reason', full_name='flyteidl.admin.CreateWorkflowFailureReason.reason', + index=0, containing_type=None, fields=[]), + ], + serialized_start=904, + serialized_end=1129, +) + _WORKFLOWCREATEREQUEST.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER _WORKFLOWCREATEREQUEST.fields_by_name['spec'].message_type = _WORKFLOWSPEC _WORKFLOW.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER @@ -253,12 +356,25 @@ _WORKFLOWSPEC.fields_by_name['sub_workflows'].message_type = flyteidl_dot_core_dot_workflow__pb2._WORKFLOWTEMPLATE _WORKFLOWCLOSURE.fields_by_name['compiled_workflow'].message_type = flyteidl_dot_core_dot_compiler__pb2._COMPILEDWORKFLOWCLOSURE _WORKFLOWCLOSURE.fields_by_name['created_at'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP +_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_WORKFLOWERROREXISTSIDENTICALSTRUCTURE.fields_by_name['id'].message_type = flyteidl_dot_core_dot_identifier__pb2._IDENTIFIER +_CREATEWORKFLOWFAILUREREASON.fields_by_name['exists_different_structure'].message_type = _WORKFLOWERROREXISTSDIFFERENTSTRUCTURE +_CREATEWORKFLOWFAILUREREASON.fields_by_name['exists_identical_structure'].message_type = _WORKFLOWERROREXISTSIDENTICALSTRUCTURE +_CREATEWORKFLOWFAILUREREASON.oneofs_by_name['reason'].fields.append( + _CREATEWORKFLOWFAILUREREASON.fields_by_name['exists_different_structure']) +_CREATEWORKFLOWFAILUREREASON.fields_by_name['exists_different_structure'].containing_oneof = _CREATEWORKFLOWFAILUREREASON.oneofs_by_name['reason'] +_CREATEWORKFLOWFAILUREREASON.oneofs_by_name['reason'].fields.append( + _CREATEWORKFLOWFAILUREREASON.fields_by_name['exists_identical_structure']) +_CREATEWORKFLOWFAILUREREASON.fields_by_name['exists_identical_structure'].containing_oneof = _CREATEWORKFLOWFAILUREREASON.oneofs_by_name['reason'] DESCRIPTOR.message_types_by_name['WorkflowCreateRequest'] = _WORKFLOWCREATEREQUEST DESCRIPTOR.message_types_by_name['WorkflowCreateResponse'] = _WORKFLOWCREATERESPONSE DESCRIPTOR.message_types_by_name['Workflow'] = _WORKFLOW DESCRIPTOR.message_types_by_name['WorkflowList'] = _WORKFLOWLIST DESCRIPTOR.message_types_by_name['WorkflowSpec'] = _WORKFLOWSPEC DESCRIPTOR.message_types_by_name['WorkflowClosure'] = _WORKFLOWCLOSURE +DESCRIPTOR.message_types_by_name['WorkflowErrorExistsDifferentStructure'] = _WORKFLOWERROREXISTSDIFFERENTSTRUCTURE +DESCRIPTOR.message_types_by_name['WorkflowErrorExistsIdenticalStructure'] = _WORKFLOWERROREXISTSIDENTICALSTRUCTURE +DESCRIPTOR.message_types_by_name['CreateWorkflowFailureReason'] = _CREATEWORKFLOWFAILUREREASON _sym_db.RegisterFileDescriptor(DESCRIPTOR) WorkflowCreateRequest = _reflection.GeneratedProtocolMessageType('WorkflowCreateRequest', (_message.Message,), dict( @@ -303,6 +419,27 @@ )) _sym_db.RegisterMessage(WorkflowClosure) +WorkflowErrorExistsDifferentStructure = _reflection.GeneratedProtocolMessageType('WorkflowErrorExistsDifferentStructure', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWERROREXISTSDIFFERENTSTRUCTURE, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsDifferentStructure) + )) +_sym_db.RegisterMessage(WorkflowErrorExistsDifferentStructure) + +WorkflowErrorExistsIdenticalStructure = _reflection.GeneratedProtocolMessageType('WorkflowErrorExistsIdenticalStructure', (_message.Message,), dict( + DESCRIPTOR = _WORKFLOWERROREXISTSIDENTICALSTRUCTURE, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowErrorExistsIdenticalStructure) + )) +_sym_db.RegisterMessage(WorkflowErrorExistsIdenticalStructure) + +CreateWorkflowFailureReason = _reflection.GeneratedProtocolMessageType('CreateWorkflowFailureReason', (_message.Message,), dict( + DESCRIPTOR = _CREATEWORKFLOWFAILUREREASON, + __module__ = 'flyteidl.admin.workflow_pb2' + # @@protoc_insertion_point(class_scope:flyteidl.admin.CreateWorkflowFailureReason) + )) +_sym_db.RegisterMessage(CreateWorkflowFailureReason) + DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/protos/docs/admin/admin.rst b/flyteidl/protos/docs/admin/admin.rst index 7d47ed2b39..4d7743788a 100644 --- a/flyteidl/protos/docs/admin/admin.rst +++ b/flyteidl/protos/docs/admin/admin.rst @@ -3566,6 +3566,28 @@ flyteidl/admin/workflow.proto +.. _ref_flyteidl.admin.CreateWorkflowFailureReason: + +CreateWorkflowFailureReason +------------------------------------------------------------------ + +When a CreateWorkflowRequest failes due to matching id + + + +.. csv-table:: CreateWorkflowFailureReason type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "exists_different_structure", ":ref:`ref_flyteidl.admin.WorkflowErrorExistsDifferentStructure`", "", "" + "exists_identical_structure", ":ref:`ref_flyteidl.admin.WorkflowErrorExistsIdenticalStructure`", "", "" + + + + + + + .. _ref_flyteidl.admin.Workflow: Workflow @@ -3649,6 +3671,48 @@ Purposefully empty, may be populated in the future. +.. _ref_flyteidl.admin.WorkflowErrorExistsDifferentStructure: + +WorkflowErrorExistsDifferentStructure +------------------------------------------------------------------ + +The workflow id is already used and the structure is different + + + +.. csv-table:: WorkflowErrorExistsDifferentStructure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "" + + + + + + + +.. _ref_flyteidl.admin.WorkflowErrorExistsIdenticalStructure: + +WorkflowErrorExistsIdenticalStructure +------------------------------------------------------------------ + +The workflow id is already used with an identical sctructure + + + +.. csv-table:: WorkflowErrorExistsIdenticalStructure type fields + :header: "Field", "Type", "Label", "Description" + :widths: auto + + "id", ":ref:`ref_flyteidl.core.Identifier`", "", "" + + + + + + + .. _ref_flyteidl.admin.WorkflowList: WorkflowList diff --git a/flyteidl/protos/docs/core/core.rst b/flyteidl/protos/docs/core/core.rst index 2701bff087..4d5d16c54a 100644 --- a/flyteidl/protos/docs/core/core.rst +++ b/flyteidl/protos/docs/core/core.rst @@ -3233,7 +3233,6 @@ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build(); - Example 5: Compute Timestamp from Java `Instant.now()`. Instant now = Instant.now(); @@ -3242,7 +3241,6 @@ Example 5: Compute Timestamp from Java `Instant.now()`. Timestamp.newBuilder().setSeconds(now.getEpochSecond()) .setNanos(now.getNano()).build(); - Example 6: Compute Timestamp from current time in Python. timestamp = Timestamp() diff --git a/flyteidl/protos/docs/datacatalog/datacatalog.rst b/flyteidl/protos/docs/datacatalog/datacatalog.rst index 36df9eea8a..81f22317b3 100644 --- a/flyteidl/protos/docs/datacatalog/datacatalog.rst +++ b/flyteidl/protos/docs/datacatalog/datacatalog.rst @@ -942,7 +942,6 @@ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build(); - Example 5: Compute Timestamp from Java `Instant.now()`. Instant now = Instant.now(); @@ -951,7 +950,6 @@ Example 5: Compute Timestamp from Java `Instant.now()`. Timestamp.newBuilder().setSeconds(now.getEpochSecond()) .setNanos(now.getNano()).build(); - Example 6: Compute Timestamp from current time in Python. timestamp = Timestamp() diff --git a/flyteidl/protos/docs/event/event.rst b/flyteidl/protos/docs/event/event.rst index e4bcae16a2..df0a3b2e8b 100644 --- a/flyteidl/protos/docs/event/event.rst +++ b/flyteidl/protos/docs/event/event.rst @@ -401,7 +401,6 @@ Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build(); - Example 5: Compute Timestamp from Java `Instant.now()`. Instant now = Instant.now(); @@ -410,7 +409,6 @@ Example 5: Compute Timestamp from Java `Instant.now()`. Timestamp.newBuilder().setSeconds(now.getEpochSecond()) .setNanos(now.getNano()).build(); - Example 6: Compute Timestamp from current time in Python. timestamp = Timestamp() diff --git a/flyteidl/protos/flyteidl/admin/workflow.proto b/flyteidl/protos/flyteidl/admin/workflow.proto index 895e33b774..c9b3b801dd 100644 --- a/flyteidl/protos/flyteidl/admin/workflow.proto +++ b/flyteidl/protos/flyteidl/admin/workflow.proto @@ -65,3 +65,21 @@ message WorkflowClosure { // Time at which the workflow was created. google.protobuf.Timestamp created_at = 2; } + +// The workflow id is already used and the structure is different +message WorkflowErrorExistsDifferentStructure { + core.Identifier id = 1; +} + +// The workflow id is already used with an identical sctructure +message WorkflowErrorExistsIdenticalStructure { + core.Identifier id = 1; +} + +// When a CreateWorkflowRequest failes due to matching id +message CreateWorkflowFailureReason { + oneof reason { + WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + } +}